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
//! Scalar math for consistent simulation results.
//!
//! Keep the specified `f32` and `f64` operations in order.
//! Only explicit `mul_add` calls fuse. Constants use exact bit patterns.
//!
//! # Supported ranges
//!
//! [`ucrt_sinf`] is defined for `abs_bits(x) < UCRT_SINF_LIMIT`.
//! [`trig::ucrt_cosf`] is defined for `abs_bits(x) < UCRT_COSF_LIMIT`.
//!
//! [`sinf`] and [`cosf`] cover all `f32` inputs. They call [`f32::sin`]
//! or [`f32::cos`] outside the core range. The platform fallback can differ
//! from a different C runtime in the last bits. Do not use the fallback when
//! the caller needs exact output bits.
//!
//! [`ucrt_atan2f`], [`ucrt_powf`], and [`ucrt_acosf`] accept all `f32` inputs.
//! They handle NaN, infinities, and signed zeros. NaN results are quiet and
//! keep the payload bits that the algorithm selects.
// Explicit paths keep the module tree resolvable when a standalone tool
// includes this file with its own `#[path]` attribute.
pub use ucrt_acosf;
pub use ucrt_atan2f;
pub use ucrt_powf;
// The standalone comparison tool calls the bounded cosine function.
pub use ucrt_cosf;
pub use ;