Content-type: text/html Manpage of FT_DivFix

FT_DivFix

Section: Misc. Reference Manual Pages (3)
Index Return to Main Contents
 

NAME

FT_DivFix  

DESCRIPTION

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 );  

RETURNS

The result of `(a*0x10000)/b'.  

VERSION

This documentation was generated for Freetype 2.0.4 by autodocbook (http://www.stillhq.com). Autodocbook is (c) Michael Still 2001.
      

AUTHOR

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.  

BUGS

Please report errors in this documentation, and Freetype itself to freetype@freetype.org


 

Index

NAME
DESCRIPTION
RETURNS
VERSION
AUTHOR
BUGS

This document was created by man2html, using the manual pages.
Time: 04:44:35 GMT, July 26, 2001