~ubuntu-branches/ubuntu/intrepid/cairo/intrepid-updates

« back to all changes in this revision

Viewing changes to src/cairo-atomic-private.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-09-25 16:22:33 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080925162233-btx61ymk181i7mcc
Tags: 1.7.6-0ubuntu1
* New upstream version. Most noticable changes are:
  - some API changes with especially the removal of
    cairo_font_options_set_lcd_filter and cairo_font_options_get_lcd_filter
  - xlib: Faster bookkeeping
  - PS: Fix gradients with non-constant alpha
  - Fix deadlock in user-font code
* debian/patches/00list: Remove 03_from_git_fix_lcd_filter_default.dpatch,
  add debian/patches/03_fix_ftbfs_withing_xcb.dpatch
* debian/libcairo2.symbols, debian/libcairo-directfb2.symbols: update
  list of symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include "config.h"
42
42
#endif
43
43
 
 
44
# include "cairo-compiler-private.h"
 
45
 
44
46
CAIRO_BEGIN_DECLS
45
47
 
 
48
#if HAVE_INTEL_ATOMIC_PRIMITIVES
 
49
 
46
50
#define CAIRO_HAS_ATOMIC_OPS 1
47
51
 
48
 
#if CAIRO_HAS_INTEL_ATOMIC_PRIMITIVES
49
 
 
50
52
typedef int cairo_atomic_int_t;
51
53
 
52
54
# define _cairo_atomic_int_inc(x) ((void) __sync_fetch_and_add(x, 1))
53
55
# define _cairo_atomic_int_dec_and_test(x) (__sync_fetch_and_add(x, -1) == 1)
54
56
# define _cairo_atomic_int_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (x, oldv, newv)
55
57
 
56
 
#else
57
 
 
58
 
# include "cairo-compiler-private.h"
59
 
 
60
 
# undef CAIRO_HAS_ATOMIC_OPS
 
58
#endif
 
59
 
 
60
 
 
61
#ifndef CAIRO_HAS_ATOMIC_OPS
61
62
 
62
63
typedef int cairo_atomic_int_t;
63
64
 
73
74
#endif
74
75
 
75
76
 
76
 
#ifdef CAIRO_ATOMIC_OP_NEEDS_MEMORY_BARRIER
 
77
#ifdef ATOMIC_OP_NEEDS_MEMORY_BARRIER
77
78
 
78
79
# include "cairo-compiler-private.h"
79
80