Download v1.1 ARM Tools Reference

Transcript
ARM Embedded Tools Reference
frexp, ldexp, modf, scalbn, scalbln
Math.h
Tgmath.h
Description
frexp
frexpl
frexpf
frexp
Splits a float x into fraction f and exponent n, so that:
f = 0.0 or 0.5 ≤ | f | ≤ 1.0 and f*2 n = x. Returns f,
stores n.
ldexp
ldexpl
ldexpf
ldexp
Inverse of frexp. Returns the result of x*2n.
(x and n are both arguments).
modf
modfl
modff
−
Splits a float x into fraction f and integer n, so that:
| f | < 1.0 and f+n=x. Returns f, stores n.
scalbn scalbnl scalbnf
scalbn
Computes the result of x*FLT_RADIXn. efficiently, not
normally by computing FLT_RADIXn explicitly.
scalbln scalblnl scalblnf
scalbln
Same as scalbn but with argument n as long int.
Power and absolute−value functions
Math.h
Tgmath.h
Description
cbrt
cbrtl
cbrtf
cbrt
Returns the real cube root of x (=x1/3).
(Not implemented)
fabs
fabsl
fabsf
fabs
Returns the absolute value of x (|x|). (abs, labs,
llabs, div, ldiv, lldiv are defined in stdlib.h)
fma
fmal
fmaf
fma
Floating−point multiply add. Returns x*y+z.
(Not implemented)
hypot
hypotl
hypotf
hypot
Returns the square root of x2+y2.
pow
powl
powf
power
Returns x raised to the power y (xy).
sqrt
sqrtl
sqrtf
sqrt
Returns the non−negative square root of x. x0.
Manipulation functions: copysign, nan, nextafter, nexttoward
Math.h
copysign
nan
nanl
copysignl
copysignf
nanf
Tgmath.h
Description
copysign
Returns the value of x with the sign of y.
−
Returns a quiet NaN, if available, with content ind
cated through tagp. (Not implemented)
nextafter
nextafterl
nextafterf
nextafter
Returns the next representable value in the specified
format after x in the direction of y. Returns y is x=y.
(Not implemented)
nexttoward
nexttowardl
nexttowardf
nexttoward
Same as nextafter, except that the second argu
ment in all three variants is of type long double.
Returns y if x=y. (Not implemented)
2−10