author | MattD <mattd@symbian.org> |
Mon, 08 Feb 2010 15:30:13 +0000 | |
changeset 66 | 18fedaf0292a |
permissions | -rw-r--r-- |
66
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
1 |
/***************************************************************************/ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
2 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
3 |
/* ftcalc.h */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
4 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
5 |
/* Arithmetic computations (specification). */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
6 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
7 |
/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006 by */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
9 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
10 |
/* This file is part of the FreeType project, and may only be used, */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
11 |
/* modified, and distributed under the terms of the FreeType project */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
12 |
/* license, FTL.TXT. By continuing to use, modify, or distribute */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
13 |
/* this file you indicate that you have read the license and */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
14 |
/* understand and accept it fully. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
15 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
16 |
/***************************************************************************/ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
17 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
18 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
19 |
#ifndef __FTCALC_H__ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
20 |
#define __FTCALC_H__ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
21 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
22 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
23 |
#include <ft2build.h> |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
24 |
#include FT_FREETYPE_H |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
25 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
26 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
27 |
FT_BEGIN_HEADER |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
28 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
29 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
30 |
/*************************************************************************/ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
31 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
32 |
/* <Function> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
33 |
/* FT_FixedSqrt */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
34 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
35 |
/* <Description> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
36 |
/* Computes the square root of a 16.16 fixed point value. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
37 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
38 |
/* <Input> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
39 |
/* x :: The value to compute the root for. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
40 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
41 |
/* <Return> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
42 |
/* The result of `sqrt(x)'. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
43 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
44 |
/* <Note> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
45 |
/* This function is not very fast. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
46 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
47 |
FT_BASE( FT_Int32 ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
48 |
FT_SqrtFixed( FT_Int32 x ); |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
49 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
50 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
51 |
#ifdef FT_CONFIG_OPTION_OLD_INTERNALS |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
52 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
53 |
/*************************************************************************/ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
54 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
55 |
/* <Function> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
56 |
/* FT_Sqrt32 */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
57 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
58 |
/* <Description> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
59 |
/* Computes the square root of an Int32 integer (which will be */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
60 |
/* handled as an unsigned long value). */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
61 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
62 |
/* <Input> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
63 |
/* x :: The value to compute the root for. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
64 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
65 |
/* <Return> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
66 |
/* The result of `sqrt(x)'. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
67 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
68 |
FT_EXPORT( FT_Int32 ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
69 |
FT_Sqrt32( FT_Int32 x ); |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
70 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
71 |
#endif /* FT_CONFIG_OPTION_OLD_INTERNALS */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
72 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
73 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
74 |
/*************************************************************************/ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
75 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
76 |
/* FT_MulDiv() and FT_MulFix() are declared in freetype.h. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
77 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
78 |
/*************************************************************************/ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
79 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
80 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
81 |
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
82 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
83 |
/*************************************************************************/ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
84 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
85 |
/* <Function> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
86 |
/* FT_MulDiv_No_Round */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
87 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
88 |
/* <Description> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
89 |
/* A very simple function used to perform the computation `(a*b)/c' */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
90 |
/* (without rounding) with maximal accuracy (it uses a 64-bit */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
91 |
/* intermediate integer whenever necessary). */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
92 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
93 |
/* This function isn't necessarily as fast as some processor specific */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
94 |
/* operations, but is at least completely portable. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
95 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
96 |
/* <Input> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
97 |
/* a :: The first multiplier. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
98 |
/* b :: The second multiplier. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
99 |
/* c :: The divisor. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
100 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
101 |
/* <Return> */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
102 |
/* The result of `(a*b)/c'. This function never traps when trying to */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
103 |
/* divide by zero; it simply returns `MaxInt' or `MinInt' depending */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
104 |
/* on the signs of `a' and `b'. */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
105 |
/* */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
106 |
FT_BASE( FT_Long ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
107 |
FT_MulDiv_No_Round( FT_Long a, |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
108 |
FT_Long b, |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
109 |
FT_Long c ); |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
110 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
111 |
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
112 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
113 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
114 |
#define INT_TO_F26DOT6( x ) ( (FT_Long)(x) << 6 ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
115 |
#define INT_TO_F2DOT14( x ) ( (FT_Long)(x) << 14 ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
116 |
#define INT_TO_FIXED( x ) ( (FT_Long)(x) << 16 ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
117 |
#define F2DOT14_TO_FIXED( x ) ( (FT_Long)(x) << 2 ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
118 |
#define FLOAT_TO_FIXED( x ) ( (FT_Long)( x * 65536.0 ) ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
119 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
120 |
#define ROUND_F26DOT6( x ) ( x >= 0 ? ( ( (x) + 32 ) & -64 ) \ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
121 |
: ( -( ( 32 - (x) ) & -64 ) ) ) |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
122 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
123 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
124 |
FT_END_HEADER |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
125 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
126 |
#endif /* __FTCALC_H__ */ |
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
127 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
128 |
|
18fedaf0292a
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
129 |
/* END */ |