implemented atan2

This commit is contained in:
Kyler Olsen 2025-11-30 23:01:53 -07:00
parent 8067b93e62
commit c9f15fceb9
1 changed files with 14 additions and 2 deletions

View File

@ -1134,8 +1134,20 @@ Boolean builtin_atan(InterpreterState *interpreter_state) {
}
Boolean builtin_atan2(InterpreterState *interpreter_state) {
(void)interpreter_state;
return FALSE;
NUMERIC_TYPES;
(void)ai;
(void)bi;
(void)type;
StackItem *node = interpreter_state->stack;
interpreter_state->stack = interpreter_state->stack->next->next;
node->next->next = NULL;
clean_stack(node);
return push_token(interpreter_state, (Token){
.type = TOKEN_DOUBLE,
.double_literal = atan2(bf, af),
});
}
Boolean builtin_bitand(InterpreterState *interpreter_state) {