Yet Another eXchange Tool  0.9.0
Functions
xt_arithmetic_util.h File Reference
#include <limits.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.

Functions

static Xt_int Xt_isign (Xt_int x)
 
static int isign (int x)
 
static int isign_mask (int 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)
 

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.

Function Documentation

◆ imin()

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

Definition at line 147 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 76 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 90 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 119 of file xt_arithmetic_util.h.

◆ llsign_mask()

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

Definition at line 133 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 157 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 62 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 105 of file xt_arithmetic_util.h.

Here is the caller graph for this function: