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 2as a double-double.- D_LN2_F
ln 2as a double-double forf32.- D_PI
pias a double-double.- D_PI_F
pias a double-double forf32.- 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 2forf32. - L2U_F
- High part of
ln 2forf32. - L2_L
- Low part of
ln 2. - L2_U
- High part of
ln 2. - L10L_F
- Low part of
log10 2forf32. - L10U_F
- High part of
log10 2forf32. - L10_L
- Low part of
log10 2. - L10_U
- High part of
log10 2. - LOG10_2
log2 10.- LOG10_
2_ F log2 10forf32.- M_2_PI
2 / pias a double-double.- PI_A
pireduced into two parts with a trailing zero run of 28 bits, together with the matching low parts;PI_A + PI_B + PI_C + PI_Dapproximatespi.- PI_A2
- Two-term
pisplit used for arguments up toTRIGRANGEMAX2. - PI_A2_F
- See
PI_A2; thef32three-term reduction. - PI_A_F
- See
PI_A; thef32four-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 2forf32.- SLEEF_
FP_ ILOG B0 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.
- TRIGRANGEMA
X2 - Argument bound for the two-term reduction.
- TRIGRANGEMA
X3 - Argument bound for the 1e9-range
*pifunctions. - TRIGRANGEMA
X2_ F - Argument bound for the
f32three-term reduction. - TRIGRANGEMA
X4_ F - Argument bound for the
f32two-term reduction. - TRIGRANGEMAX_
F - Argument bound for the
f32four-term reduction.