COMBINATORIAL_BLAS 1.6
Loading...
Searching...
No Matches
utils Namespace Reference

Classes

struct  identityF
struct  addF
struct  absF
struct  zeroF
struct  maxF
struct  minF
struct  firstF
struct  secondF

Functions

unsigned int hash (unsigned int a)
int hashInt (unsigned int a)
unsigned int hash2 (unsigned int a)
bool LCAS (long *ptr, long oldv, long newv)
bool SCAS (int *ptr, int oldv, int newv)
template<class ET>
bool CAS (ET *ptr, ET oldv, ET newv)
template<class ET>
bool CAS_GCC (ET *ptr, ET oldv, ET newv)
template<class ET>
ET fetchAndAdd (ET *a, ET b)
template<class ET>
void writeAdd (ET *a, ET b)
template<class ET>
bool writeMax (ET *a, ET b)
template<class ET>
bool writeMin (ET *a, ET b)
template<class ET>
bool writeMin (ET **a, ET *b)

Function Documentation

◆ CAS()

template<class ET>
bool utils::CAS ( ET * ptr,
ET oldv,
ET newv )
inline

Definition at line 131 of file utils.h.

◆ CAS_GCC()

template<class ET>
bool utils::CAS_GCC ( ET * ptr,
ET oldv,
ET newv )
inline

Definition at line 143 of file utils.h.

◆ fetchAndAdd()

template<class ET>
ET utils::fetchAndAdd ( ET * a,
ET b )
inline

Definition at line 148 of file utils.h.

◆ hash()

unsigned int utils::hash ( unsigned int a)
inline

Definition at line 79 of file utils.h.

◆ hash2()

unsigned int utils::hash2 ( unsigned int a)
inline

Definition at line 94 of file utils.h.

◆ hashInt()

int utils::hashInt ( unsigned int a)
inline

Definition at line 90 of file utils.h.

◆ LCAS()

bool utils::LCAS ( long * ptr,
long oldv,
long newv )
inline

Definition at line 101 of file utils.h.

◆ SCAS()

bool utils::SCAS ( int * ptr,
int oldv,
int newv )
inline

Definition at line 115 of file utils.h.

◆ writeAdd()

template<class ET>
void utils::writeAdd ( ET * a,
ET b )
inline

Definition at line 157 of file utils.h.

◆ writeMax()

template<class ET>
bool utils::writeMax ( ET * a,
ET b )
inline

Definition at line 164 of file utils.h.

◆ writeMin() [1/2]

template<class ET>
bool utils::writeMin ( ET ** a,
ET * b )
inline

Definition at line 181 of file utils.h.

◆ writeMin() [2/2]

template<class ET>
bool utils::writeMin ( ET * a,
ET b )
inline

Definition at line 172 of file utils.h.