| |||
Home > Floating-point Support > The software floating-point library, fplib > Conversions between long longs and other number formats |
The routines in Table 6.3 perform conversions between long longs and other number formats.
Table 6.3. Conversion routines involving long long format
Function | Argument type | Result type |
---|---|---|
_ll_sto_f | long long | float |
_ll_uto_f | unsigned long long | float |
_ll_sto_d | long long | double |
_ll_uto_d | unsigned long long | double |
_ll_sfrom_f | float | long long^{[1]} |
_ll_sfrom_f_r | float | long long |
_ll_ufrom_f | float | unsigned long long^{a} |
_ll_ufrom_f_r | float | unsigned long long |
_ll_sfrom_d | double | long long^{a} |
_ll_sfrom_d_r | double | long long |
_ll_ufrom_d | double | unsigned long long^{a} |
_ll_ufrom_d_r | double | unsigned long long |
^{[1] }Rounded
toward zero, independently of the current rounding mode. This is
because the C standard requires implicit conversions to integers
to round this way, so it is convenient not to have to change the
rounding mode to do so. Each function has a corresponding function
with |