Datasheet
Floating-point Support
5-6 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
5.2.3 Conversions between long longs and other number formats
The routines in Table 5-3 perform conversions between
long long
s and other number
formats.
Table 5-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
a
a. 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
_r
on the end of its name, that performs the same operation but rounds according to the current
mode.
_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