Powsp


Detailed Description


Functions

float powsp (float a, float b)
float powsp_c (float a, float b)


Function Documentation

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 both big and little endian modes.

float powsp_c ( float  a,
float  b 
)


Copyright 2016, Texas Instruments Incorporated