|
| enum | impulse_math_func_id_t {
MATH_FUNC_ABS = 0x01
, MATH_FUNC_SQRT = 0x02
, MATH_FUNC_RSQRT = 0x03
, MATH_FUNC_CBRT = 0x04
,
MATH_FUNC_POW = 0x05
, MATH_FUNC_HYPOT = 0x06
, MATH_FUNC_LERP = 0x07
, MATH_FUNC_EXP = 0x08
,
MATH_FUNC_EXP2 = 0x09
, MATH_FUNC_EXP10 = 0x0A
, MATH_FUNC_EXPM1 = 0x0B
, MATH_FUNC_LOG = 0x0C
,
MATH_FUNC_LOG2 = 0x0D
, MATH_FUNC_LOG10 = 0x0E
, MATH_FUNC_LOG1P = 0x0F
, MATH_FUNC_SIN = 0x10
,
MATH_FUNC_COS = 0x11
, MATH_FUNC_TAN = 0x12
, MATH_FUNC_ASIN = 0x13
, MATH_FUNC_ACOS = 0x14
,
MATH_FUNC_ATAN = 0x15
, MATH_FUNC_ATAN2 = 0x16
, MATH_FUNC_SINC = 0x17
, MATH_FUNC_SINH = 0x18
,
MATH_FUNC_COSH = 0x19
, MATH_FUNC_TANH = 0x1A
, MATH_FUNC_ASINH = 0x1B
, MATH_FUNC_ACOSH = 0x1C
,
MATH_FUNC_ATANH = 0x1D
, MATH_FUNC_FLOOR = 0x1E
, MATH_FUNC_CEIL = 0x1F
, MATH_FUNC_TRUNC = 0x20
,
MATH_FUNC_ROUND = 0x21
, MATH_FUNC_CLAMP = 0x22
, MATH_FUNC_COPYSIGN = 0x23
, MATH_FUNC_FMOD = 0x24
,
MATH_FUNC_RELU = 0x25
, MATH_FUNC_LEAKY_RELU = 0x26
, MATH_FUNC_SIGMOID = 0x27
, MATH_FUNC_GELU = 0x28
,
MATH_FUNC_SILU = 0x29
, MATH_FUNC_SOFTPLUS = 0x2A
, MATH_FUNC_ERF = 0x2B
, MATH_FUNC_ERFC = 0x2C
,
MATH_FUNC_LGAMMA = 0x2D
, MATH_FUNC_POPCOUNT = 0x2E
, MATH_FUNC_CLZ = 0x2F
, MATH_FUNC_CTZ = 0x30
,
MATH_FUNC_ROTL = 0x31
, MATH_FUNC_ROTR = 0x32
, MATH_FUNC_SAFE_DIV = 0x33
, MATH_FUNC_ISNAN = 0x34
,
MATH_FUNC_ISINF = 0x35
, MATH_FUNC_ISFINITE = 0x36
} |
| | Canonical 42 Vector Math Function Identifiers (func_id). More...
|
|
| static uint32_t | impulse_builtin_popcount32 (uint32_t x) |
| static uint32_t | impulse_builtin_clz32 (uint32_t x) |
| static uint32_t | impulse_builtin_ctz32 (uint32_t x) |
| static uint32_t | impulse_builtin_popcount64 (uint64_t x) |
| static uint32_t | impulse_builtin_clz64 (uint64_t x) |
| static uint32_t | impulse_builtin_ctz64 (uint64_t x) |
| static uint32_t | impulse_f32_to_u32_clamped (float x) |
| | UB-free float-to-uint32 saturating truncation helper.
|
| static uint64_t | impulse_f64_to_u64_clamped (double x) |
| | UB-free double-to-uint64 saturating truncation helper.
|
| static uint32_t | impulse_shift_amount_f64 (double y, uint32_t mask) |
| | UB-free masked shift count extraction from double.
|
| static float | impulse_math_unary_f32 (uint8_t func_id, float x) |
| | Evaluates a scalar unary math operation on float.
|
| static double | impulse_math_unary_f64 (uint8_t func_id, double x) |
| | Evaluates a scalar unary math operation on double.
|
| static float | impulse_math_binary_f32 (uint8_t func_id, float x, float y) |
| | Evaluates a scalar binary math operation on float.
|
| static double | impulse_math_binary_f64 (uint8_t func_id, double x, double y) |
| | Evaluates a scalar binary math operation on double.
|
| static float | impulse_math_ternary_f32 (uint8_t func_id, float x, float y, float z) |
| | Evaluates a scalar ternary math operation on float.
|
| static double | impulse_math_ternary_f64 (uint8_t func_id, double x, double y, double z) |
| | Evaluates a scalar ternary math operation on double.
|
| static void | impulse_vector_math_unary_f32 (uint8_t func_id, float *dst, const float *src, size_t count) |
| | Vectorized Unary Vector Math Evaluation.
|
| static void | impulse_vector_math_unary_f64 (uint8_t func_id, double *dst, const double *src, size_t count) |
| static void | impulse_vector_math_binary_f32 (uint8_t func_id, float *dst, const float *src1, const float *src2, size_t count) |
| | Vectorized Binary Vector Math Evaluation.
|
| static void | impulse_vector_math_binary_f64 (uint8_t func_id, double *dst, const double *src1, const double *src2, size_t count) |
| static void | impulse_vector_math_ternary_f32 (uint8_t func_id, float *dst, const float *src1, const float *src2, const float *src3, size_t count) |
| | Vectorized Ternary Vector Math Evaluation.
|
| static void | impulse_vector_math_ternary_f64 (uint8_t func_id, double *dst, const double *src1, const double *src2, const double *src3, size_t count) |
Table-Driven 42-Function Vector Math Engine & SIMD Transcendental Catalog.
Implements vectorized mathematical, trigonometric, exponential, hyperbolic, statistical, rounding, and GNN neural activation functions over off-heap float/double/int vectors.