1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Correctly rounded binary64 elementary functions.
//!
//! - `exp`, `log`, `log1p`: each result is the infinitely precise value rounded to nearest,
//! ties to even, with gradual underflow.
//! - `pow`: the same for every input pair whose final 256-bit rounding test succeeds.
//! CORE-MATH proves correct rounding of `pow` modulo the hardest-to-round cases, which are
//! unknown for binary64 (Hubrecht, Jeannerod and Zimmermann, ARITH 2023,
//! <https://inria.hal.science/hal-04159652>). No known input fails the test. If one does,
//! the result is the 256-bit approximation rounded to nearest.
//! - `acos`: correct rounding on `[-1, -2^-4]` and `[2^-4, 1]` is proven by CORE-MATH's
//! exhaustive search. For `|x| < 2^-4` no proof covers it, and MPFR tests find no
//! misrounded input.
//!
//! The bits are therefore a property of the mathematical function: they do not depend on
//! the platform libm, the target, or the caller.
//!
//! The kernels port CORE-MATH (MIT licence, <https://core-math.gitlabpages.inria.fr/>).
//! They use only IEEE add, subtract, multiply and `f64::mul_add`, in a fixed order, plus
//! exact integer operations on bit patterns. `acos` also uses IEEE divide and `f64::sqrt`.
//! The caller keeps round-to-nearest-even and gradual underflow active. Every NaN result is the canonical quiet NaN
//! `0x7ff8000000000000`. IEEE exception flags are not promised.
pub use acos;
pub use CANONICAL_NAN;
pub use exp;
pub use log;
pub use log1p;
pub use pow;