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

« back to all changes in this revision

Viewing changes to tests/test_atomic.c

  • Committer: Bazaar Package Importer
  • Author(s): Ian Wienand
  • Date: 2007-05-25 11:29:30 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070525112930-vc6ra67kku3ba366
Tags: 1.2-1
* New upstream
* Remove 00_x86_intrin.patch, fixed upstream (with "=q")x

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
# define NITERS 10000000
28
28
#endif
29
29
 
 
30
void * add1sub1_thr(void * id);
 
31
int add1sub1_test(void);
 
32
void * acqrel_thr(void *id);
 
33
int acqrel_test(void);
 
34
void * test_and_set_thr(void * id);
 
35
int test_and_set_test(void);
 
36
 
30
37
#if defined(AO_HAVE_fetch_and_add1) && defined(AO_HAVE_fetch_and_sub1)
31
38
 
32
39
AO_t counter = 0;