![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_FMIN opcode using C99 math.h fmin(). Accepts int or float; follows IEEE-754 NaN handling per fmin. More...
#include <math.h>
Go to the source code of this file.
Functions | |
| if (!((a.type==VAL_INT||a.type==VAL_FLOAT) &&(b.type==VAL_INT||b.type==VAL_FLOAT))) | |
| if (!isnan(r) &&!isinf(r) &&r >=(double) INT64_MIN &&r<=(double) INT64_MAX) | |
| free_value (a) | |
| free_value (b) | |
| push_value (vm, out) | |
Variables | |
| case | OP_FMIN |
| Value | a = pop_value(vm) |
| double | da = (a.type == VAL_FLOAT) ? a.d : (double)a.i |
| double | db = (b.type == VAL_FLOAT) ? b.d : (double)b.i |
| double | r = fmin(da, db) |
| Value | out |
| else | |
| break | |
Implements the OP_FMIN opcode using C99 math.h fmin(). Accepts int or float; follows IEEE-754 NaN handling per fmin.
Definition in file fmin.c.
| free_value | ( | a | ) |
| free_value | ( | b | ) |
| if | ( | ! | (a.type==VAL_INT||a.type==VAL_FLOAT) &&(b.type==VAL_INT||b.type==VAL_FLOAT) | ) |
| push_value | ( | vm | , |
| out | ) |
| else |