diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-01-20 02:54:16 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-01-20 02:55:07 -0500 |
commit | ac17ce0f89b494a404756c8d24b21a7fb354218e (patch) | |
tree | 1098a26ee28696b816d93056eb56abebde9c645e /src/cairo-fixed-private.h | |
parent | f072d815d40e6fd44369424b68d54cea22da3a26 (diff) | |
download | cairo-ac17ce0f89b494a404756c8d24b21a7fb354218e.tar.gz |
[cairo-fixed/wideint-private.h] Split out typedefs from prototypes
such that the type definitions can be used from boilerplate without exposing
the prototypes.
Diffstat (limited to 'src/cairo-fixed-private.h')
-rw-r--r-- | src/cairo-fixed-private.h | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/src/cairo-fixed-private.h b/src/cairo-fixed-private.h index cb42ac13e..626c02a0b 100644 --- a/src/cairo-fixed-private.h +++ b/src/cairo-fixed-private.h @@ -37,39 +37,11 @@ #ifndef CAIRO_FIXED_PRIVATE_H #define CAIRO_FIXED_PRIVATE_H -#include "cairo-wideint-private.h" - -/* - * Fixed-point configuration - */ - -typedef int32_t cairo_fixed_16_16_t; -typedef cairo_int64_t cairo_fixed_32_32_t; -typedef cairo_int64_t cairo_fixed_48_16_t; -typedef cairo_int128_t cairo_fixed_64_64_t; -typedef cairo_int128_t cairo_fixed_96_32_t; - -/* Eventually, we should allow changing this, but I think - * there are some assumptions in the tesselator about the - * size of a fixed type. For now, it must be 32. - */ -#define CAIRO_FIXED_BITS 32 +#include "cairo-fixed-type-private.h" -/* The number of fractional bits. Changing this involves - * making sure that you compute a double-to-fixed magic number. - * (see below). - */ -#define CAIRO_FIXED_FRAC_BITS 16 - -/* A signed type CAIRO_FIXED_BITS in size; the main fixed point type */ -typedef int32_t cairo_fixed_t; - -/* An unsigned type of the same size as cairo_fixed_t */ -typedef uint32_t cairo_fixed_unsigned_t; +#include "cairo-wideint-private.h" -/* - * No configurable bits below this. - */ +/* Implementation */ #if (CAIRO_FIXED_BITS != 32) # error CAIRO_FIXED_BITS must be 32, and the type must be a 32-bit type. |