[PATCH] Throw the switch from 16.16 to 24.8 fixed-point format
Carl Worth
cworth at cworth.org
Thu Feb 14 12:31:12 PST 2008
Vlad did all the really hard work for this long ago. All we've
been waiting on recently was a fix for the infinite-loop bug
that this change had uncovered.
---
src/cairo-fixed-type-private.h | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/cairo-fixed-type-private.h b/src/cairo-fixed-type-private.h
index d8305ee..f87aa02 100644
--- a/src/cairo-fixed-type-private.h
+++ b/src/cairo-fixed-type-private.h
@@ -55,11 +55,8 @@ typedef cairo_int128_t cairo_fixed_96_32_t;
*/
#define CAIRO_FIXED_BITS 32
-/* 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
+/* The number of fractional bits. */
+#define CAIRO_FIXED_FRAC_BITS 8
/* A signed type %CAIRO_FIXED_BITS in size; the main fixed point type */
typedef int32_t cairo_fixed_t;
--
1.5.3.2
--Multipart_Thu_Feb_14_12:34:31_2008-1--
--pgp-sign-Multipart_Thu_Feb_14_12:34:31_2008-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHtKXX6JDdNq8qSWgRAmr/AJ417cIuvK6t5uoSB1LsrSAcsDJQDwCfSqW4
gejIi+/BuGYw9MAuE+JifqE=
=0a60
-----END PGP SIGNATURE-----
--pgp-sign-Multipart_Thu_Feb_14_12:34:31_2008-1--
More information about the cairo
mailing list