Skip to main content

Module constants

Module constants 

Source
Expand description

Scalar constants shared by the ported kernels.

Values and names follow sleef-rs rev 3671d46 (src/f64.rs, src/f32.rs), which in turn carries SLEEF’s misc.h / sleefdp.c constants. Double-double constants are kept as (hi, lo) tuples; see crate::doubled.

Constants§

D1_23
2^23.
D1_24
2^24.
D1_28
2^28.
D1_31
2^31.
D1_32
2^32.
D1_52
2^52.
D1_53
2^53.
D1_54
2^54.
D1_60
2^60.
D1_63
2^63.
D_LN2
ln 2 as a double-double.
D_LN2_F
ln 2 as a double-double for f32.
D_PI
pi as a double-double.
D_PI_F
pi as a double-double for f32.
F1_10
2^10.
F1_12
2^12.
F1_23
2^23.
F1_24
2^24.
F1_25
2^25.
F1_30
2^30.
F1_32
2^32.
L2L_F
Low part of ln 2 for f32.
L2U_F
High part of ln 2 for f32.
L2_L
Low part of ln 2.
L2_U
High part of ln 2.
L10L_F
Low part of log10 2 for f32.
L10U_F
High part of log10 2 for f32.
L10_L
Low part of log10 2.
L10_U
High part of log10 2.
LOG10_2
log2 10.
LOG10_2_F
log2 10 for f32.
M_2_PI
2 / pi as a double-double.
PI_A
pi reduced into two parts with a trailing zero run of 28 bits, together with the matching low parts; PI_A + PI_B + PI_C + PI_D approximates pi.
PI_A2
Two-term pi split used for arguments up to TRIGRANGEMAX2.
PI_A2_F
See PI_A2; the f32 three-term reduction.
PI_A_F
See PI_A; the f32 four-term reduction.
PI_B
See PI_A.
PI_B2
See PI_A2.
PI_B2_F
See PI_A2_F.
PI_B_F
See PI_A_F.
PI_C
See PI_A.
PI_C2_F
See PI_A2_F.
PI_C_F
See PI_A_F.
PI_D
See PI_A.
PI_D_F
See PI_A_F.
R_LN2
1 / ln 2.
R_LN2_F
1 / ln 2 for f32.
SLEEF_FP_ILOGB0
ilogb(0) as returned by SLEEF.
SLEEF_FP_ILOGBNAN
ilogb(NaN) as returned by SLEEF.
SQRT_DBL_MAX
sqrt(f64::MAX).
SQRT_FLT_MAX
sqrt(f32::MAX).
TRIGRANGEMAX
Argument bound for the four-term reduction.
TRIGRANGEMAX2
Argument bound for the two-term reduction.
TRIGRANGEMAX3
Argument bound for the 1e9-range *pi functions.
TRIGRANGEMAX2_F
Argument bound for the f32 three-term reduction.
TRIGRANGEMAX4_F
Argument bound for the f32 two-term reduction.
TRIGRANGEMAX_F
Argument bound for the f32 four-term reduction.