Yet Another eXchange Tool 0.11.1
Loading...
Searching...
No Matches
Macros | Enumerations | Functions
xt_arithmetic_util.h File Reference
#include <assert.h>
#include <limits.h>
#include <stddef.h>
#include "xt/xt_core.h"
Include dependency graph for xt_arithmetic_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define is_divisible(divisor, coeff, dividend)   (divisor==0 || (dividend)%(divisor)==0)
 

Enumerations

enum  { xt_int_bits = sizeof (Xt_int) * CHAR_BIT }
 

Functions

static Xt_int Xt_isign (Xt_int x)
 
static int isign (int x)
 
static int isign_mask (int x)
 
static MPI_Aint asign_mask (MPI_Aint x)
 
static Xt_int Xt_isign_mask (Xt_int x)
 
static long long llsign (long long x)
 
static long long llsign_mask (long long x)
 
static int imin (int a, int b)
 
static int xinlz (Xt_uint v)
 
static int xintz (Xt_uint v)
 
static size_t next_2_pow (size_t v)
 
static Xt_int Xt_doz (Xt_int a, Xt_int b)
 

Detailed Description

Author
Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file xt_arithmetic_util.h.

Macro Definition Documentation

◆ is_divisible

#define is_divisible (   divisor,
  coeff,
  dividend 
)    (divisor==0 || (dividend)%(divisor)==0)

Definition at line 403 of file xt_arithmetic_util.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
xt_int_bits 

Definition at line 63 of file xt_arithmetic_util.h.

Function Documentation

◆ asign_mask()

static MPI_Aint asign_mask ( MPI_Aint  x)
inlinestatic
Returns
~0 if x < 0, 0 otherwise

Definition at line 114 of file xt_arithmetic_util.h.

◆ imin()

static int imin ( int  a,
int  b 
)
inlinestatic
Returns
MIN(a, b)

Definition at line 171 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ isign()

static int isign ( int  x)
inlinestatic
Returns
-1 if x < 0, 1 otherwise

Definition at line 86 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ isign_mask()

static int isign_mask ( int  x)
inlinestatic
Returns
~0 if x < 0, 0 otherwise

Definition at line 100 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ llsign()

static long long llsign ( long long  x)
inlinestatic
Returns
-1 if x < 0, 1 otherwise

Definition at line 143 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ llsign_mask()

static long long llsign_mask ( long long  x)
inlinestatic
Returns
~(long long)0 if x < 0, 0 otherwise

Definition at line 157 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ next_2_pow()

static size_t next_2_pow ( size_t  v)
inlinestatic

Definition at line 252 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ xinlz()

static int xinlz ( Xt_uint  v)
inlinestatic

Definition at line 181 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ xintz()

static int xintz ( Xt_uint  v)
inlinestatic

Definition at line 214 of file xt_arithmetic_util.h.

Here is the call graph for this function:

◆ Xt_doz()

static Xt_int Xt_doz ( Xt_int  a,
Xt_int  b 
)
inlinestatic

Definition at line 286 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ Xt_isign()

static Xt_int Xt_isign ( Xt_int  x)
inlinestatic
Returns
-1 if x < 0, 1 otherwise

Definition at line 72 of file xt_arithmetic_util.h.

Here is the caller graph for this function:

◆ Xt_isign_mask()

static Xt_int Xt_isign_mask ( Xt_int  x)
inlinestatic
Returns
~(Xt_int)0 if x < 0, 0 otherwise

Definition at line 129 of file xt_arithmetic_util.h.

Here is the caller graph for this function: