|
float | powsp (float a, float b) |
|
◆ powsp()
float powsp |
( |
float |
a, |
|
|
float |
b |
|
) |
| |
- Description:
- The powsp function returns the a power of b function. The return value is the number a^b.
- Parameters
-
[in] | a | = Input float Base |
[in] | b | = Input float Power |
- Returns
- Resultant float
- Special Cases:
- If a or b is NaN (Not a Number), the return value may be random.
- If b = 0, return 1.0 (a is ignored).
- If a < 0, and b is not an integer value, then NaN is returned.
- If a = 0, and b < 0, return value is 0 for Asm, Infinity for C/Inline/Vector.
- If |a| = Inf, b < 0, return value is Inf for Asm, 0 for C/Inline/Vector.
- If a = b = 1.175494351E-38, return value is 0 for Asm, 1 for C/Inline/Vector.
- See also
-
- Implementation Notes:
- The code supports little endian mode.
Copyright 2022, Texas Instruments Incorporated