test/alloc/lockfree/randalloc.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/time.h>

Classes

struct  lran2_st
struct  thread_data

Defines

#define ASSERT(x)   assert(x)
#define LL(ret, addr)   LL64(ret,addr)
#define SC(ret, addr, newval)   SC64(ret,addr,newval)
#define CAS(ret, addr, expval, newval)   CAS64(ret,addr,expval,newval)
#define ptrsize_t   unsigned long long
#define LRAN2_MAX   714025l
#define IA   1366l
#define IC   150889l

Functions

void randalloc_parse_args (int argc, char **argv)
void randalloc_print_args ()
void randalloc_init (unsigned procs, unsigned multi)
void randalloc (unsigned procs, unsigned multi, unsigned tid)

Variables

struct lran2_st rgen

Define Documentation

#define ASSERT (  )     assert(x)

#define CAS ( ret,
addr,
expval,
newval   )     CAS64(ret,addr,expval,newval)

#define IA   1366l

#define IC   150889l

#define LL ( ret,
addr   )     LL64(ret,addr)

#define LRAN2_MAX   714025l

#define ptrsize_t   unsigned long long

#define SC ( ret,
addr,
newval   )     SC64(ret,addr,newval)


Function Documentation

void randalloc ( unsigned  procs,
unsigned  multi,
unsigned  tid 
)

void randalloc_init ( unsigned  procs,
unsigned  multi 
)

void randalloc_parse_args ( int  argc,
char **  argv 
)

void randalloc_print_args (  ) 


Variable Documentation

struct lran2_st rgen


Generated on Tue Dec 9 13:39:39 2008 for Amino by  doxygen 1.5.6