__fctuwz
Purpose
Floating-point conversion to unsigned integer word with rounding to zero
Converts a floating-point number into a 32-bit unsigned integer and rounds to zero. The conversion result is stored in a double return value. This function is intended for use with the __stfiw built-in function.
Prototype
double __fctuwz(double);
Result value
The result is a double number. The low-order 32 bits of the result contain the unsigned int value from converting the double parameter to unsigned int, rounded to zero. The high-order 32 bits contain an undefined value.
Example
The following example demonstrates the usage of this function.
#include <stdio.h>
int main(){
double result;
int y;
result = __fctuwz(-1.5);
__stfiw(&y, result);
printf("%d\n", y); /* prints 0 */
result = __fctuwz(1.5);
__stfiw(&y, result);
printf("%d\n", y); /* prints 1 */
return 0;
}


