Added prototypes and notes for three new functions: FT_RoundFix, FT_CeilFix, and FT_FloorFix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index d0fb855..1d07590 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -2227,6 +2227,9 @@ FT_BEGIN_HEADER
/* FT_MulDiv */
/* FT_MulFix */
/* FT_DivFix */
+ /* FT_RoundFix */
+ /* FT_CeilFix */
+ /* FT_FloorFix */
/* FT_Vector_Transform */
/* FT_Matrix_Multiply */
/* FT_Matrix_Invert */
@@ -2325,6 +2328,71 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Function> */
+ /* FT_RoundFix */
+ /* */
+ /* <Description> */
+ /* A very simple function used to round a 16.16 fixed number */
+ /* */
+ /* <Input> */
+ /* a :: The number to be rounded. */
+ /* */
+ /* <Return> */
+ /* The result of `(a + 0x8000) & -0x10000'. */
+ /* */
+ /* <Note> */
+ /* This function assumes that the target platform supports 32 bit */
+ /* signed integers. */
+ /* */
+ FT_EXPORT( FT_Fixed ) FT_RoundFix( FT_Fixed a );
+
+
+ /*************************************************************************/
+ /* */
+ /* <Function> */
+ /* FT_CeilFix */
+ /* */
+ /* <Description> */
+ /* A very simple function used to compute the ceiling function of a */
+ /* 16.16 fixed number */
+ /* */
+ /* <Input> */
+ /* a :: The number for which the ceiling function is to be computed. */
+ /* */
+ /* <Return> */
+ /* The result of `(a + 0x10000 - 1) & -0x10000'. */
+ /* */
+ /* <Note> */
+ /* This function assumes that the target platform supports 32 bit */
+ /* signed integers. */
+ /* */
+ FT_EXPORT( FT_Fixed ) FT_CeilFix( FT_Fixed a );
+
+
+ /*************************************************************************/
+ /* */
+ /* <Function> */
+ /* FT_FloorFix */
+ /* */
+ /* <Description> */
+ /* A very simple function used to compute the floor function of a */
+ /* 16.16 fixed number */
+ /* */
+ /* <Input> */
+ /* a :: The number for which the floor function is to be computed. */
+ /* */
+ /* <Return> */
+ /* The result of `a & -0x10000'. */
+ /* */
+ /* <Note> */
+ /* This function assumes that the target platform supports 32 bit */
+ /* signed integers. */
+ /* */
+ FT_EXPORT( FT_Fixed ) FT_FloorFix( FT_Fixed a );
+
+
+ /*************************************************************************/
+ /* */
+ /* <Function> */
/* FT_Vector_Transform */
/* */
/* <Description> */