#[cfg(test)]
macro_rules! for_each_format {
($suite:ident) => {
$suite!(q22_10, i32, 10, w32);
$suite!(q16_16, i32, 16, w32);
$suite!(q32_32, i64, 32, w64);
$suite!(q64_64, i128, 64, w128);
$suite!(q128_128, crate::fixed_point::I256, 128, w256);
$suite!(q256_256, crate::fixed_point::I512, 256, w512);
#[cfg(gmath_all_splits)] $suite!(split_q24_8, i32, 8, w32);
#[cfg(gmath_all_splits)] $suite!(split_q20_12, i32, 12, w32);
#[cfg(gmath_all_splits)] $suite!(split_q12_20, i32, 20, w32);
#[cfg(gmath_all_splits)] $suite!(split_q8_24, i32, 24, w32);
};
}
#[cfg(test)]
macro_rules! on_words {
($w:ident in [$($a:ident)*] { $($t:tt)* }) => { on_words!(@scan $w [$($a)*] { $($t)* }); };
(@scan $w:ident [] { $($t:tt)* }) => {};
(@scan w32 [w32 $($r:ident)*] { $($t:tt)* }) => { $($t)* };
(@scan w64 [w64 $($r:ident)*] { $($t:tt)* }) => { $($t)* };
(@scan w128 [w128 $($r:ident)*] { $($t:tt)* }) => { $($t)* };
(@scan w256 [w256 $($r:ident)*] { $($t:tt)* }) => { $($t)* };
(@scan w512 [w512 $($r:ident)*] { $($t:tt)* }) => { $($t)* };
(@scan $w:ident [$h:ident $($r:ident)*] { $($t:tt)* }) => { on_words!(@scan $w [$($r)*] { $($t)* }); };
}
pub mod fixed_point;
pub use fixed_point::canonical;
pub use fixed_point::compute_tier;
pub use fixed_point::wide;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
#[cfg(doctest)]
#[doc = include_str!("../README.md")]
struct ReadmeExamples;
#[cfg(doctest)]
#[doc = include_str!("../docs/UPGRADING_0.7.md")]
struct UpgradingExamples;
#[cfg(doctest)]
#[doc = include_str!("../docs/README_IMPERATIVE.md")]
struct ImperativeGuideExamples;
#[cfg(doctest)]
#[doc = include_str!("../docs/README_PRECISION.md")]
struct PrecisionGuideExamples;
#[cfg(doctest)]
#[doc = include_str!("../docs/README_ROUTING.md")]
struct RoutingGuideExamples;
#[cfg(doctest)]
#[doc = include_str!("../docs/README_TRANSCENDENTALS.md")]
struct TranscendentalsGuideExamples;
#[cfg(doctest)]
#[doc = include_str!("../docs/README_FUSED.md")]
struct FusedGuideExamples;
#[cfg(doctest)]
#[doc = include_str!("../docs/README_LINALG.md")]
struct LinalgGuideExamples;
#[cfg(doctest)]
#[doc = include_str!("../docs/README_GEOMETRY.md")]
struct GeometryGuideExamples;