Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
math Directory Reference
Directory dependency graph for math:
src/vm/math

Files

 
abs.c
 Implements the OP_ABS opcode for absolute value in the VM.
 
ceil.c
 Implements the OP_CEIL opcode using C99 math.h ceil().
 
clamp.c
 Implements the OP_CLAMP opcode for value clamping in the VM.
 
cos.c
 Implements the OP_COS opcode using C99 math.h cos().
 
exp.c
 Implements the OP_EXP opcode using C99 math.h exp().
 
floor.c
 Implements the OP_FLOOR opcode using C99 math.h floor().
 
fmax.c
 Implements the OP_FMAX opcode using C99 math.h fmax(). Accepts int or float; follows IEEE-754 NaN handling per fmax.
 
fmin.c
 Implements the OP_FMIN opcode using C99 math.h fmin(). Accepts int or float; follows IEEE-754 NaN handling per fmin.
 
gcd.c
 Implements the OP_GCD opcode for greatest common divisor.
 
isqrt.c
 Implements the OP_ISQRT opcode for integer square root (floor).
 
lcm.c
 Implements the OP_LCM opcode for least common multiple.
 
log.c
 Implements the OP_LOG opcode using C99 math.h log() (natural logarithm).
 
log10.c
 Implements the OP_LOG10 opcode using C99 math.h log10().
 
max.c
 Implements the OP_MAX opcode for finding the maximum of two values in the VM.
 
min.c
 Implements the OP_MIN opcode for finding the minimum of two values in the VM.
 
mod.c
 Implements the OP_MOD opcode for modulo operation in the VM.
 
pow.c
 Implements the OP_POW opcode for exponentiation in the VM.
 
random_int.c
 Implements the OP_RANDOM_INT opcode for generating random integers in the VM.
 
random_seed.c
 Implements the OP_RANDOM_SEED opcode for seeding the random number generator in the VM.
 
round.c
 Implements the OP_ROUND opcode using C99 math.h round(). C99 round() rounds half away from zero.
 
sign.c
 Implements the OP_SIGN opcode returning -1, 0, or 1.
 
sin.c
 Implements the OP_SIN opcode using C99 math.h sin().
 
sqrt.c
 Implements the OP_SQRT opcode using C99 math.h sqrt().
 
tan.c
 Implements the OP_TAN opcode using C99 math.h tan().
 
trunc.c
 Implements the OP_TRUNC opcode using C99 math.h trunc().