ConvertF32_F16

Converts a 32.32 fraction to a 16.16 fraction.

Synopsis

frac16 ConvertF32_F16( frac32 *x )

Description

This macro converts a 32.32 fraction to a 16.16 fraction. The result will be correct only if the integer part of the argument can be expressed in 16-bits. Only the most-significant 16-bits of the fractional part of the argument are preserved.

Arguments

x
A pointer to a 32.32 fraction to be converted.

Return Value

The function returns the 16.16 fraction 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(), ConvertF16_32(), Convert32_F32(), Convert32_F16(), ConvertS32_64(), ConvertSF16_F32(), ConvertU32_64(), ConvertUF16_F32()