Site Tools


documentation:development:opera:pf25:ppgfldr:pgsfldr:spr:03spr027

ConvertSF16_F32

Converts a 16.16 fraction to a 32.32 fraction.

Synopsis

void ConvertSF16_F32( frac32 *d, frac16 x )

Description

This macro converts a 16.16 fraction to a 32.32 fraction. The upper 16-bits of the result are the sign bit of the argument, the least 16-bits of the result are zero. The 32.32 fraction result is deposited in the location pointed to by the d argument.

Arguments

  • d A pointer to a 32.32 fraction structure to store the result.
  • x A 16.16 fraction to be converted.

Implementation

Macro implemented in operamath.h V20.

Associated Files

operamath.h

See Also

documentation/development/opera/pf25/ppgfldr/pgsfldr/spr/03spr027.txt · Last modified: 2022/10/10 16:54 by 127.0.0.1