mir-core ~master (2021-10-18T16:44:50Z)
Dub
Repo
floatTraits
mir
math
ieee
Undocumented in source.
package
template
floatTraits (
T
) {
package
enum
norm_factor
;
package
static if
(
T.mant_dig == 24
)
enum
realFormat
;
package
static if
(!(
T.mant_dig == 24
))
static if
(
T.mant_dig == 53
)
static if
(
T.sizeof == 8
)
enum
realFormat
;
package
static if
(!(
T.mant_dig == 24
))
static if
(!(
T.mant_dig == 53
))
static if
(
T.mant_dig == 64
)
enum
realFormat
;
package
static if
(!(
T.mant_dig == 24
))
static if
(!(
T.mant_dig == 53
))
static if
(!(
T.mant_dig == 64
))
static if
(
T.mant_dig == 113
)
enum
realFormat
;
alias
S
=
int
;
alias
U
=
ushort
;
package
static if
(
realFormat == RealFormat.ieeeExtended
)
enum
sig_mask
;
package
static if
(
realFormat == RealFormat.ieeeExtended
)
enum
exp_shft
;
package
static if
(
realFormat == RealFormat.ieeeExtended
)
enum
man_mask
;
version(LittleEndian)
package
static if
(
realFormat == RealFormat.ieeeExtended
)
enum
idx
;
version(!LittleEndian)
package
static if
(
realFormat == RealFormat.ieeeExtended
)
enum
idx
;
alias
S
=
long
;
alias
U
=
ulong
;
alias
S
=
int
;
alias
U
=
uint
;
alias
M
=
ulong
;
alias
M
=
U
;
package
static if
(!(
realFormat == RealFormat.ieeeExtended
))
enum
sig_mask
;
package
static if
(!(
realFormat == RealFormat.ieeeExtended
))
enum
uint
exp_shft
;
package
static if
(!(
realFormat == RealFormat.ieeeExtended
))
enum
man_mask
;
package
static if
(!(
realFormat == RealFormat.ieeeExtended
))
enum
idx
;
package
enum
exp_mask
;
package
enum
int
exp_msh
;
package
enum
intPartMask
;
package
enum
exp_nrm
;
}
Members
Aliases
M
alias
M
=
ulong
Undocumented in source.
M
alias
M
=
U
Undocumented in source.
S
alias
S
=
int
Undocumented in source.
S
alias
S
=
long
Undocumented in source.
S
alias
S
=
int
Undocumented in source.
U
alias
U
=
ushort
Undocumented in source.
U
alias
U
=
ulong
Undocumented in source.
U
alias
U
=
uint
Undocumented in source.
Manifest constants
exp_mask
enum
exp_mask
;
Undocumented in source.
exp_nrm
enum
exp_nrm
;
Undocumented in source.
exp_shft
enum
exp_shft
;
Undocumented in source.
idx
enum
idx
;
Undocumented in source.
idx
enum
idx
;
Undocumented in source.
idx
enum
idx
;
Undocumented in source.
intPartMask
enum
intPartMask
;
Undocumented in source.
man_mask
enum
man_mask
;
Undocumented in source.
man_mask
enum
man_mask
;
Undocumented in source.
norm_factor
enum
norm_factor
;
Undocumented in source.
realFormat
enum
realFormat
;
Undocumented in source.
realFormat
enum
realFormat
;
Undocumented in source.
realFormat
enum
realFormat
;
Undocumented in source.
realFormat
enum
realFormat
;
Undocumented in source.
sig_mask
enum
sig_mask
;
Undocumented in source.
sig_mask
enum
sig_mask
;
Undocumented in source.
Variables
exp_msh
enum
int
exp_msh
;
Undocumented in source.
exp_shft
enum
uint
exp_shft
;
Undocumented in source.
Meta
Source
See Implementation
mir
math
ieee
enums
RealFormat
functions
feqrel
frexp
ieeeMean
ldexp
nextDown
nextUp
signbit
manifest constants
MANTISSA_LSB
MANTISSA_MSB
templates
floatTraits