numeric.float64


template <Denorm denorm_mode>
inline uint64 add(uint64 in1, uint64 in2) §

Addition.

template <Denorm denorm_mode>
inline uint64 mul(uint64 in1, uint64 in2) §

Multiplication.

template <Denorm denorm_mode>
inline bool eq(uint64 in1, uint64 in2) §

Compare two float64 values for equality.

template <Denorm denorm_mode>
inline bool lt(uint64 in1, uint64 in2) §

Check in1 less than in2.

template <Denorm denorm_mode>
inline bool gt(uint64 in1, uint64 in2) §

Check in1 greater than in2.

inline uint64 neg(uint64 x) §

Negate.

template <Denorm denorm_mode>
inline uint64 sub(uint64 in1, uint64 in2) §

Subtract in2 from in1.

template <auto N>
inline uint64 from_int(int<N> value) §

Convert a signed integer to a float64.

Parameters

  • auto N
    

    Width of value.

template <auto N>
inline uint64 from_uint(uint<N> value) §

Convert an unsigned integer to a float64.

Parameters

  • auto N
    

    Width of value.

template <auto N>
inline optional<int<N>> to_int(uint64 value) §

Convert a float64 to a signed integer

Parameters

  • auto N
    

    Width of the signed integer.

template <auto N>
inline optional<uint<N>> to_uint(uint64 value) §

Convert a float64 to an unsigned integer

Parameters

  • auto N
    

    Width of the unsigned integer.

inline float64 from_float32(float32 value) §

Convert a float32 to a float64.

inline bool isnan(uint64 x) §

Check x is not a number.

inline bool isinf(uint64 x) §

Check x is positive or negative infinity.

inline bool isfinite(uint64 x) §
inline bool isnormal(uint64 x) §
inline bool signbit(uint64 x) §

Return sign of x.

template <Denorm denorm_mode>
inline uint64 min(uint64 x, uint64 y) §

Return the smaller of x and y. A NaN is treated as missing data, and the other value will be returned.

template <Denorm denorm_mode>
inline uint64 max(uint64 x, uint64 y) §

Return the larger of x and y. A NaN is treated as missing data, and the other value will be returned.

template <Denorm denorm_mode>
inline uint64 ceil(uint64 x) §

Return the smallest integer not less than x: (x )

template <Denorm denorm_mode>
inline uint64 floor(uint64 x) §

Return the largest integer not greater than x: (x )

template <Denorm denorm_mode>
inline uint64 round(uint64 x) §

Return the nearest integer to x, rounding halfway away from zero.

template <Denorm denorm_mode>
inline uint64 trunc(uint64 x) §

Return the nearest integer not greater in magnitude than x.

template <Denorm denorm_mode>
inline uint64 dim(uint64 x, uint64 y) §

Return the positive difference between x and y, i.e. max(x - y, 0).

template <Denorm denorm_mode>
inline uint64 abs(uint64 x) §

Return the absolute value of x: |x|