spinn_common 7.2.2
Support code for SpiNNaker applications.
|
An implementation of exponential for fixpoint accum. More...
Functions | |
static uint32_t | coef_mult (uint32_t c, uint32_t x) |
Multiplies a coefficient and the variable term correctly and efficiently, implementing multiplication of accum values. | |
static uint32_t | exp_series (uint32_t x) |
Exponential series, part of implementation of expk() | |
uint64_t | __expi64 (int_k_t n) |
accum | expk (accum x) |
Fixed point exponential. | |
unsigned accum | expuk (accum x) |
Fixed point exponential. | |
unsigned long fract | expulr (accum x) |
Fixed point exponential. | |
Variables | |
static uint64_t | __exp_hi [26] |
Series to support exponential: upper coefficients. | |
static uint32_t | __expm1_mid [16] |
Series to support exponential: middle coefficients. | |
static uint32_t | __exp_series [3] = { 5294, 4293434720, 2081624032 } |
Series to support exponential: lower coefficients. | |
An implementation of exponential for fixpoint accum.
|
inlinestatic |
Multiplies a coefficient and the variable term correctly and efficiently, implementing multiplication of accum
values.
[in] | c | a bit-cast accum |
[in] | x | a bit-cast accum |
c
× x
, a bit-cast accum
|
inlinestatic |
accum expk | ( | s1615 | x | ) |
Fixed point exponential.
[in] | x | Value to compute the exponential of. |
x
possible in an s1615 unsigned accum expuk | ( | s1615 | x | ) |
Fixed point exponential.
[in] | x | Value to compute the exponential of. |
x
possible in a u1616 unsigned long fract expulr | ( | s1615 | x | ) |
Fixed point exponential.
[in] | x | Value to compute the exponential of. |
x
possible in a u032
|
static |
Series to support exponential: upper coefficients.
|
static |
Series to support exponential: middle coefficients.