Datasheet

Table Of Contents
Offset V2 Cycles
(Avg)
Description
0x20 74 int _double2fix(double v, int n)
Convert a double to a signed fixed point integer representation where n specifies the position
of the binary point in the resulting fixed point representation - e.g. _double2fix(0.5f, 16) ==
0x8000. This method rounds towards -Infinity, and clamps the resulting integer to lie within the
range -0x80000000 to 0x7FFFFFFF
0x24 63 uint _double2uint(double v)
Convert a double to an unsigned integer, rounding towards -Infinity, and clamping the result
to lie within the range 0x00000000 to 0xFFFFFFFF
0x28 62 uint _double2ufix(double v, int n)
Convert a double to an unsigned fixed point integer representation where n specifies the
position of the binary point in the resulting fixed point representation, e.g. _double2ufix(0.5f,
16) == 0x8000. This method rounds towards -Infinity, and clamps the resulting integer to lie
within the range 0x00000000 to 0xFFFFFFFF
0x2c 69 double _int2double(int v)
Convert a signed integer to the nearest double value, rounding to even on tie
0x30 68 double _fix2double(int32_t v, int n)
Convert a signed fixed point integer representation to the nearest double value, rounding to
even on tie. n specifies the position of the binary point in fixed point, so
0x34 64 double _uint2double(uint32_t v)
Convert an unsigned integer to the nearest double value, rounding to even on tie
0x38 62 double _ufix2double(uint32_t v, int n)
Convert an unsigned fixed point integer representation to the nearest double value, rounding
to even on tie. n specifies the position of the binary point in fixed point, so
0x3c 1617 double _dcos(double angle)
Return the cosine of angle. angle is in radians, and must be in the range -1024 to 1024
0x40 1618 double _dsin(double angle)
Return the sine of angle. angle is in radians, and must be in the range -1024 to 1024
0x44 1891 double _dtan(double angle)
Return the tangent of angle. angle is in radians, and must be in the range -1024 to 1024
0x48 N/A deprecated
Do not use this function
0x4c 804 double _dexp(double v)
Return the exponential value of v, i.e. so
RP2040 Datasheet
2.7. Bootrom 125