Convert32_F16

Converts a 32-bit integer to a 16.16 fraction.

Synopsis

frac16 Convert32_F16( int32 x )

Description

This macro converts a 32-bit integer into a 16.16 fraction.

Arguments

x
The 32-bit integer to be converted.

Return Value

The function returns the 16.16 result of the conversion. The fractional 1- bits of the result are zero, and the upper 16-bits of the argument are lost.

Implementation

Macro implemented in operamath.h V20.

Associated Files

operamath.h

See Also

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