ConvertF16_32

Converts a 16.16 fraction to a 32-bit integer.

Synopsis

int32 ConvertF16_32( frac16 x )

Description

This macro converts a 16.16 fraction to a 32-bit integer. The upper 16-bits are zero or are filled with the sign bit of the argument. The fraction bits of the argument are lost.

Arguments

x
The 16.16 fraction to be converted.

Return Value

The function returns the 32-bit integer result of the conversion.

Implementation

Macro implemented in operamath.h V20.

Associated Files

operamath.h

See Also

ConvertF14_F16(), ConvertF16_F14(), ConvertF16_F30(), ConvertF30_F16(), ConvertF32_F16(), Convert32_F32(), Convert32_F16(), ConvertS32_64(), ConvertSF16_F32(), ConvertU32_64(), ConvertUF16_F32()