GATE
mathematics.h File Reference

Basic arithmetic utilities optimized for GATE types. More...

#include "gate/gate_core_api.h"
#include "gate/gatetypes.h"

Macros

#define GATE_MATH_CONST_E   2.71828182845904523536
 
#define GATE_MATH_CONST_PI   3.14159265358979323846
 

Functions

GATE_CORE_API gate_bool_t gate_math_iszero (gate_real64_t num)
 
GATE_CORE_API gate_bool_t gate_math_iszerof (gate_real32_t num)
 
GATE_CORE_API gate_bool_t gate_math_isnan (gate_real64_t num)
 
GATE_CORE_API gate_bool_t gate_math_isnanf (gate_real32_t num)
 
GATE_CORE_API int gate_math_isinfinite (gate_real64_t num)
 
GATE_CORE_API int gate_math_isinfinitef (gate_real32_t num)
 
GATE_CORE_API int gate_math_signum_i8 (gate_int8_t num)
 
GATE_CORE_API int gate_math_signum_i16 (gate_int16_t num)
 
GATE_CORE_API int gate_math_signum_i32 (gate_int32_t num)
 
GATE_CORE_API int gate_math_signum_i64 (gate_int64_t num)
 
GATE_CORE_API int gate_math_signum_r32 (gate_real32_t num)
 
GATE_CORE_API int gate_math_signum_r64 (gate_real64_t num)
 
GATE_CORE_API gate_int8_t gate_math_abs_i8 (gate_int8_t num)
 
GATE_CORE_API gate_int16_t gate_math_abs_i16 (gate_int16_t num)
 
GATE_CORE_API gate_int32_t gate_math_abs_i32 (gate_int32_t num)
 
GATE_CORE_API gate_int64_t gate_math_abs_i64 (gate_int64_t num)
 
GATE_CORE_API gate_real32_t gate_math_abs_r32 (gate_real32_t num)
 
GATE_CORE_API gate_real64_t gate_math_abs_r64 (gate_real64_t num)
 
GATE_CORE_API gate_int16_t gate_math_min_i16 (gate_size_t count,...)
 
GATE_CORE_API gate_int32_t gate_math_min_i32 (gate_size_t count,...)
 
GATE_CORE_API gate_int64_t gate_math_min_i64 (gate_size_t count,...)
 
GATE_CORE_API gate_real32_t gate_math_min_r32 (gate_size_t count,...)
 
GATE_CORE_API gate_real64_t gate_math_min_r64 (gate_size_t count,...)
 
GATE_CORE_API gate_int16_t gate_math_max_i16 (gate_size_t count,...)
 
GATE_CORE_API gate_int32_t gate_math_max_i32 (gate_size_t count,...)
 
GATE_CORE_API gate_int64_t gate_math_max_i64 (gate_size_t count,...)
 
GATE_CORE_API gate_real32_t gate_math_max_r32 (gate_size_t count,...)
 
GATE_CORE_API gate_real64_t gate_math_max_r64 (gate_size_t count,...)
 
GATE_CORE_API gate_uint8_t gate_math_decimal_length (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_cos (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_sin (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_tan (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_acos (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_asin (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_atan (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_atan2 (gate_real64_t y, gate_real64_t x)
 
GATE_CORE_API gate_real64_t gate_math_cosh (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_sinh (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_tanh (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_acosh (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_asinh (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_atanh (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_exp (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_frexp (gate_real64_t value, int *exp)
 
GATE_CORE_API gate_real64_t gate_math_ldexp (gate_real64_t value, int exp)
 
GATE_CORE_API gate_real64_t gate_math_log (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_log10 (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_modf (gate_real64_t value, gate_real64_t *intpart)
 
GATE_CORE_API gate_int64_t gate_math_pow_i64 (gate_int64_t base, gate_uint16_t exp)
 
GATE_CORE_API gate_real64_t gate_math_pow_iexp (gate_real64_t base, gate_uint16_t exp)
 
GATE_CORE_API gate_real64_t gate_math_pow (gate_real64_t base, gate_real64_t exp)
 
GATE_CORE_API gate_real64_t gate_math_sqrt (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_ceil (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_floor (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_deg2rad (gate_real64_t value)
 
GATE_CORE_API gate_real64_t gate_math_rad2deg (gate_real64_t value)
 

Detailed Description

Basic arithmetic utilities optimized for GATE types.