diff options
Diffstat (limited to 'meta/packages/cairo/cairo-1.2.4/cairo-fixed.patch')
-rw-r--r-- | meta/packages/cairo/cairo-1.2.4/cairo-fixed.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/packages/cairo/cairo-1.2.4/cairo-fixed.patch b/meta/packages/cairo/cairo-1.2.4/cairo-fixed.patch deleted file mode 100644 index 8df54d9cb5..0000000000 --- a/meta/packages/cairo/cairo-1.2.4/cairo-fixed.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | diff -ur cairo-1.2.4/src/cairo-fixed.c cairo-1.2.4-new/src/cairo-fixed.c | ||
2 | --- cairo-1.2.4/src/cairo-fixed.c 2006-06-10 07:07:37.000000000 +0300 | ||
3 | +++ cairo-1.2.4-new/src/cairo-fixed.c 2006-08-25 13:06:26.000000000 +0300 | ||
4 | @@ -43,12 +43,6 @@ | ||
5 | } | ||
6 | |||
7 | cairo_fixed_t | ||
8 | -_cairo_fixed_from_double (double d) | ||
9 | -{ | ||
10 | - return (cairo_fixed_t) floor (d * 65536 + 0.5); | ||
11 | -} | ||
12 | - | ||
13 | -cairo_fixed_t | ||
14 | _cairo_fixed_from_26_6 (uint32_t i) | ||
15 | { | ||
16 | return i << 10; | ||
17 | diff -ur cairo-1.2.4/src/cairoint.h cairo-1.2.4-new/src/cairoint.h | ||
18 | --- cairo-1.2.4/src/cairoint.h 2006-08-18 17:20:16.000000000 +0300 | ||
19 | +++ cairo-1.2.4-new/src/cairoint.h 2006-08-25 13:14:07.000000000 +0300 | ||
20 | @@ -1117,8 +1117,21 @@ | ||
21 | |||
22 | #define CAIRO_FIXED_ONE _cairo_fixed_from_int (1) | ||
23 | |||
24 | -cairo_private cairo_fixed_t | ||
25 | -_cairo_fixed_from_double (double d); | ||
26 | +#define CAIRO_DOUBLE2FIX_MAGIC 103079215104.0 /* 2 ^ (52 - 16) * 1.5 */ | ||
27 | + | ||
28 | +#ifdef WORDS_BIGENDIAN | ||
29 | +#define iman 1 | ||
30 | +#else | ||
31 | +#define iman 0 | ||
32 | +#endif | ||
33 | + | ||
34 | +static inline cairo_fixed_t | ||
35 | +_cairo_fixed_from_double (double d) | ||
36 | +{ | ||
37 | + d = d + CAIRO_DOUBLE2FIX_MAGIC; | ||
38 | + | ||
39 | + return ((cairo_fixed_t *) &d)[iman]; | ||
40 | +} | ||
41 | |||
42 | cairo_private cairo_fixed_t | ||
43 | _cairo_fixed_from_26_6 (uint32_t i); | ||