XCORE SDK
XCORE Software Development Kit
Public Attributes | List of all members
float_s64_t Struct Reference

A floating-point scalar with a 64-bit mantissa. More...

#include <xs3_math_types.h>

Public Attributes

int64_t mant
 64-bit mantissa
 
exponent_t exp
 exponent
 

Detailed Description

A floating-point scalar with a 64-bit mantissa.

Represents a (non-standard) floating-point value given by \( M \cdot 2^{x} \), where \(M\) is the 64-bit mantissa mant, and \(x\) is the exponent exp.

To convert a float_s64_t to a standard IEEE754 double-precision floating-point value (which may result in a loss of precision):

double to_ieee_float(float_s64_t x) {
return ldexp(x.mant, x.exp);
}
A floating-point scalar with a 64-bit mantissa.
Definition: xs3_math_types.h:190
exponent_t exp
exponent
Definition: xs3_math_types.h:192
int64_t mant
64-bit mantissa
Definition: xs3_math_types.h:191

The documentation for this struct was generated from the following file: