~ubuntu-branches/ubuntu/lucid/libatomic-ops/lucid

« back to all changes in this revision

Viewing changes to src/atomic_ops/sysdeps/emul_cas.h

  • Committer: Bazaar Package Importer
  • Author(s): Ian Wienand
  • Date: 2006-10-16 09:45:29 UTC
  • mfrom: (2.1.4 dapper)
  • Revision ID: james.westby@ubuntu.com-20061016094529-r3bevpq5w6g3rv20
Tags: 1.1-4
* Closes: #322027, #338469 -- add 04_m68k.patch for M68K support, from
  Roman Zippel <zippel@linux-m68k.org>.  Add note in README.Debian about
  port.
* Change mainatiner address to my @debian.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#  error This file should not be included directly.
40
40
#endif
41
41
 
42
 
AO_t AO_compare_and_swap_emulation(volatile AO_t *addr, AO_t old,
43
 
                                   AO_t new_val);
 
42
#ifndef AO_HAVE_double_t
 
43
# include "standard_ao_double_t.h"
 
44
#endif
 
45
 
 
46
int AO_compare_and_swap_emulation(volatile AO_t *addr, AO_t old,
 
47
                                  AO_t new_val);
 
48
 
 
49
int AO_compare_double_and_swap_double_emulation(volatile AO_double_t *addr,
 
50
                                                AO_t old_val1, AO_t old_val2,
 
51
                                                AO_t new_val1, AO_t new_val2);
44
52
 
45
53
void AO_store_full_emulation(volatile AO_t *addr, AO_t val);
46
54
 
48
56
        AO_compare_and_swap_emulation(addr, old, newval)
49
57
#define AO_HAVE_compare_and_swap_full
50
58
 
 
59
#ifndef AO_HAVE_compare_double_and_swap_double
 
60
# define AO_compare_double_and_swap_double_full(addr, old1, old2, \
 
61
                                                newval1, newval2) \
 
62
         AO_compare_double_and_swap_double_emulation(addr, old1, old2, \
 
63
                                                     newval1, newval2)
 
64
# define AO_HAVE_compare_double_and_swap_double_full
 
65
#endif
 
66
 
51
67
#undef AO_store
52
68
#undef AO_HAVE_store
53
69
#undef AO_store_write