6.2.3. 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

FunctionArgument typeResult type
_ll_sto_flong longfloat
_ll_uto_funsigned long longfloat
_ll_sto_dlong longdouble
_ll_uto_dunsigned long longdouble
_ll_sfrom_ffloatlong long[1]
_ll_sfrom_f_rfloatlong long
_ll_ufrom_ffloatunsigned long longa
_ll_ufrom_f_rfloatunsigned long long
_ll_sfrom_ddoublelong longa
_ll_sfrom_d_rdoublelong long
_ll_ufrom_ddoubleunsigned long longa
_ll_ufrom_d_rdoubleunsigned 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 _r on the end of its name, that performs the same operation but rounds according to the current mode.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0232B
Non-Confidential