Content-type: text/html
A very simple function used to perform the computation `(a*0x10000)/b' with maximal accuracy. Most of the time, this is used to divide a given value by a 16.16 fixed float factor.
Input:
a :: The first multiplier.
b :: The second multiplier. Use a 16.16 factor here whenever possible (see note below). A very simple function used to perform the computation `(a*0x10000)/b' with maximal accuracy. Most of the time, this is used to divide a given value by a 16.16 fixed float factor.
Input:
a :: The first multiplier.
b :: The second multiplier. Use a 16.16 factor here whenever possible (see note below).
Notes: The optimization for FT_DivFix() is simple: If (a << 16) fits in 32 bits, then the division is computed directly. Otherwise, we use a specialized version of the old FT_MulDiv64(). FT_EXPORT( FT_Long ) FT_DivFix( FT_Long a, FT_Long b );
The result of `(a*0x10000)/b'.
This documentation was generated for Freetype 2.0.4 by autodocbook (http://www.stillhq.com). Autodocbook is (c) Michael Still 2001.
Copyright 1996-2000 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used, modified, and distributed under the terms of the FreeType project license, LICENSE.TXT. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully.
Please report errors in this documentation, and Freetype itself to freetype@freetype.org