Datasheet

Table Of Contents
0x70 N/A 53 _float2fix64
Convert a float to a signed fixed point 64-bit integer representation where n
specifies the position of the binary point in the resulting fixed point representation -
e.g. _float2fix(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and
clamps the resulting integer to lie within the range -0x8000000000000000 to
0x7FFFFFFFFFFFFFFF
0x74 N/A 42 _float2uint64
Convert a float to an unsigned 64-bit integer, rounding towards -Infinity, and
clamping the result to lie within the range 0x0000000000000000 to 0xFFFFFFFFFFFFFFFF
0x78 N/A 41 _float2ufix64
Convert a float to an unsigned fixed point 64-bit integer representation where n
specifies the position of the binary point in the resulting fixed point representation,
e.g. _float2ufix(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and
clamps the resulting integer to lie within the range 0x0000000000000000 to
0xFFFFFFFFFFFFFFFF
0x7c N/A 15 double _float2double(float v)
Converts a float to a double
Note that the V2 bootrom contains an equivalent table of functions for double-precision floating point operations. The
offsets are the same, however where there was now float there is double (and vice versa for the float<>double conversion)
Table 164. Double-
precision Floating
Point Function Table.
Timings are average
time in us over
random (worst case)
input. Functions with
timing of N/A are not
present in that ROM
version, and the
function pointer
should be considered
invalid. The functions
(and table entries)
from offset 0x54
onwards are only
present in the V2
ROM.
Offset V2 Cycles
(Avg)
Description
0x00 91 double _dadd(double a, double b)
Return a + b
0x04 95 double _dsub(double a, double b)
Return a - b
0x08 155 double _dmul(double a, double b)
Return a * b
0x0c 183 double _ddiv(double a, double b)
Return a / b
0x10 N/A deprecated
Do not use this function
0x14 N/A deprecated
Do not use this function
0x18 169 double _dsqrt(double v)
Return or -Infinity if v is negative.
0x1c 75 int _double2int(double v)
Convert a double to a signed integer, rounding towards -Infinity, and clamping the result to lie
within the range -0x80000000 to 0x7FFFFFFF
RP2040 Datasheet
2.7. Bootrom 124