Debian Codegraph @

src/float.rs

raw symbols SCIP
1 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::{Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#, Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#};
2 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::{Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#, Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#, Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#, Negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#};
3
4 mod privaterust-analyzer cargo fast-float2 0.2.3 float/private/ {
5 pub trait Sealedrust-analyzer cargo fast-float2 0.2.3 float/private/Sealed# {}
6 }
7
8 #[doc(hidden)]
9 pub trait Floatrust-analyzer cargo fast-float2 0.2.3 float/Float#:
10 Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#
11 + privaterust-analyzer cargo fast-float2 0.2.3 float/private/::Sealedrust-analyzer cargo fast-float2 0.2.3 float/private/Sealed#
12 + Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#<Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#Output# = Self>
13 + Negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#<Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#Output# = Self>
14 + Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# = Self>
15 + Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#<Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#Output# = Self>
16 + PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#
17 + PartialOrdrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd#
18 + Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default#
19 + Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone#
20 + Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#
21 + Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#
22 + Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#
23 {
24 const INFINITYrust-analyzer cargo fast-float2 0.2.3 float/Float#INFINITY.: Self;
25 const NEG_INFINITYrust-analyzer cargo fast-float2 0.2.3 float/Float#NEG_INFINITY.: Self;
26 const NANrust-analyzer cargo fast-float2 0.2.3 float/Float#NAN.: Self;
27 const NEG_NANrust-analyzer cargo fast-float2 0.2.3 float/Float#NEG_NAN.: Self;
28
29 const MANTISSA_EXPLICIT_BITSrust-analyzer cargo fast-float2 0.2.3 float/Float#MANTISSA_EXPLICIT_BITS.: usize;
30 const MIN_EXPONENT_ROUND_TO_EVENrust-analyzer cargo fast-float2 0.2.3 float/Float#MIN_EXPONENT_ROUND_TO_EVEN.: i32;
31 const MAX_EXPONENT_ROUND_TO_EVENrust-analyzer cargo fast-float2 0.2.3 float/Float#MAX_EXPONENT_ROUND_TO_EVEN.: i32;
32 const MIN_EXPONENT_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/Float#MIN_EXPONENT_FAST_PATH.: i64;
33 const MAX_EXPONENT_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/Float#MAX_EXPONENT_FAST_PATH.: i64;
34 const MAX_EXPONENT_DISGUISED_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/Float#MAX_EXPONENT_DISGUISED_FAST_PATH.: i64;
35 const MINIMUM_EXPONENTrust-analyzer cargo fast-float2 0.2.3 float/Float#MINIMUM_EXPONENT.: i32;
36 const INFINITE_POWERrust-analyzer cargo fast-float2 0.2.3 float/Float#INFINITE_POWER.: i32;
37 const SIGN_INDEXrust-analyzer cargo fast-float2 0.2.3 float/Float#SIGN_INDEX.: usize;
38 const SMALLEST_POWER_OF_TENrust-analyzer cargo fast-float2 0.2.3 float/Float#SMALLEST_POWER_OF_TEN.: i32;
39 const LARGEST_POWER_OF_TENrust-analyzer cargo fast-float2 0.2.3 float/Float#LARGEST_POWER_OF_TEN.: i32;
40
41 const MAX_MANTISSA_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/Float#MAX_MANTISSA_FAST_PATH.: u64 = 2_u64 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shl<usize>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shl<usize>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shl<usize>`]shl().Self::MANTISSA_EXPLICIT_BITSrust-analyzer cargo fast-float2 0.2.3 float/Float#MANTISSA_EXPLICIT_BITS.;
42
43 fn from_u64rust-analyzer cargo fast-float2 0.2.3 float/Float#from_u64().(v: u64) -> Self;
44 fn from_u64_bitsrust-analyzer cargo fast-float2 0.2.3 float/Float#from_u64_bits().(v: u64) -> Self;
45 fn pow10_fast_pathrust-analyzer cargo fast-float2 0.2.3 float/Float#pow10_fast_path().(exponent: usize) -> Self;
46 }
47
48 impl privaterust-analyzer cargo fast-float2 0.2.3 float/private/::Sealedrust-analyzer cargo fast-float2 0.2.3 float/private/Sealed# for f32 {
49 }
50
51 impl Floatrust-analyzer cargo fast-float2 0.2.3 float/Float# for f32 {
52 const INFINITYrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]INFINITY.: Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float] = corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::f32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/::INFINITYrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/INFINITY.;
53 const NEG_INFINITYrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]NEG_INFINITY.: Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float] = corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::f32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/::NEG_INFINITYrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/NEG_INFINITY.;
54 const NANrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]NAN.: Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float] = corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::f32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/::NANrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/NAN.;
55 const NEG_NANrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]NEG_NAN.: Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float] = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::f32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/::NANrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/NAN.;
56
57 const MANTISSA_EXPLICIT_BITSrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]MANTISSA_EXPLICIT_BITS.: usize = 23;
58 const MIN_EXPONENT_ROUND_TO_EVENrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]MIN_EXPONENT_ROUND_TO_EVEN.: i32 = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][Neg]neg().17;
59 const MAX_EXPONENT_ROUND_TO_EVENrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]MAX_EXPONENT_ROUND_TO_EVEN.: i32 = 10;
60 const MIN_EXPONENT_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]MIN_EXPONENT_FAST_PATH.: i64 = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i64][Neg]neg().10; // assuming FLT_EVAL_METHOD = 0
61 const MAX_EXPONENT_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]MAX_EXPONENT_FAST_PATH.: i64 = 10;
62 const MAX_EXPONENT_DISGUISED_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]MAX_EXPONENT_DISGUISED_FAST_PATH.: i64 = 17;
63 const MINIMUM_EXPONENTrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]MINIMUM_EXPONENT.: i32 = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][Neg]neg().127;
64 const INFINITE_POWERrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]INFINITE_POWER.: i32 = 0xFF;
65 const SIGN_INDEXrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]SIGN_INDEX.: usize = 31;
66 const SMALLEST_POWER_OF_TENrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]SMALLEST_POWER_OF_TEN.: i32 = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][Neg]neg().65;
67 const LARGEST_POWER_OF_TENrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]LARGEST_POWER_OF_TEN.: i32 = 38;
68
69 #[inline]
70 fn from_u64rust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]from_u64().(v: u64) -> Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float] {
71 v as f32
72 }
73
74 #[inline]
75 fn from_u64_bitsrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]from_u64_bits().(v: u64) -> Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float] {
76 f32::from_bitsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]from_bits().((v rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().0xFFFF_FFFF) as u32)
77 }
78
79 #[inline]
80 fn pow10_fast_pathrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float]pow10_fast_path().(exponent: usize) -> Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f32][Float] {
81 #[allow(clippy::use_self)]
82 const TABLErust-analyzer cargo fast-float2 0.2.3 float/TABLE.: [f32; 16] =
83 [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
84 TABLErust-analyzer cargo fast-float2 0.2.3 float/TABLE.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().exponent rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[usize][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[usize][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[usize][`BitAnd<Self>`]bitand().15]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().
85 }
86 }
87
88 impl privaterust-analyzer cargo fast-float2 0.2.3 float/private/::Sealedrust-analyzer cargo fast-float2 0.2.3 float/private/Sealed# for f64 {
89 }
90
91 impl Floatrust-analyzer cargo fast-float2 0.2.3 float/Float# for f64 {
92 const INFINITYrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]INFINITY.: Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float] = corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::f64rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/::INFINITYrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/INFINITY.;
93 const NEG_INFINITYrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]NEG_INFINITY.: Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float] = corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::f64rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/::NEG_INFINITYrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/NEG_INFINITY.;
94 const NANrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]NAN.: Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float] = corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::f64rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/::NANrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/NAN.;
95 const NEG_NANrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]NEG_NAN.: Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float] = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::f64rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/::NANrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/NAN.;
96
97 const MANTISSA_EXPLICIT_BITSrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]MANTISSA_EXPLICIT_BITS.: usize = 52;
98 const MIN_EXPONENT_ROUND_TO_EVENrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]MIN_EXPONENT_ROUND_TO_EVEN.: i32 = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][Neg]neg().4;
99 const MAX_EXPONENT_ROUND_TO_EVENrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]MAX_EXPONENT_ROUND_TO_EVEN.: i32 = 23;
100 const MIN_EXPONENT_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]MIN_EXPONENT_FAST_PATH.: i64 = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i64][Neg]neg().22; // assuming FLT_EVAL_METHOD = 0
101 const MAX_EXPONENT_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]MAX_EXPONENT_FAST_PATH.: i64 = 22;
102 const MAX_EXPONENT_DISGUISED_FAST_PATHrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]MAX_EXPONENT_DISGUISED_FAST_PATH.: i64 = 37;
103 const MINIMUM_EXPONENTrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]MINIMUM_EXPONENT.: i32 = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][Neg]neg().1023;
104 const INFINITE_POWERrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]INFINITE_POWER.: i32 = 0x7FF;
105 const SIGN_INDEXrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]SIGN_INDEX.: usize = 63;
106 const SMALLEST_POWER_OF_TENrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]SMALLEST_POWER_OF_TEN.: i32 = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][Neg]neg().342;
107 const LARGEST_POWER_OF_TENrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]LARGEST_POWER_OF_TEN.: i32 = 308;
108
109 #[inline]
110 fn from_u64rust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]from_u64().(v: u64) -> Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float] {
111 v as f64
112 }
113
114 #[inline]
115 fn from_u64_bitsrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]from_u64_bits().(v: u64) -> Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float] {
116 f64::from_bitsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]from_bits().(v)
117 }
118
119 #[inline]
120 fn pow10_fast_pathrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float]pow10_fast_path().(exponent: usize) -> Selfrust-analyzer cargo fast-float2 0.2.3 float/impl#[f64][Float] {
121 #[allow(clippy::use_self)]
122 const TABLErust-analyzer cargo fast-float2 0.2.3 float/TABLE.: [f64; 32] = [
123 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
124 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
125 ];
126 TABLErust-analyzer cargo fast-float2 0.2.3 float/TABLE.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().exponent rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[usize][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[usize][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[usize][`BitAnd<Self>`]bitand().31]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().
127 }
128 }