Yet Another eXchange Tool 0.11.2
Loading...
Searching...
No Matches
xt_arithmetic_long.h File Reference
#include <stdbool.h>
#include "xt/xt_core.h"
#include "xt_arithmetic_util.h"
Include dependency graph for xt_arithmetic_long.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Xt_long
 
struct  Xt_tword
 
struct  Xt_idiv
 
struct  Xt_ldiv
 

Macros

#define Xt_div(num, muldiv, den)
 

Typedefs

typedef Xt_long Xt_ulong
 
typedef XT_SHORT Xt_short
 
typedef unsigned XT_SHORT Xt_ushort
 

Enumerations

enum  { xt_hint_bits = xt_int_bits/2 }
 

Functions

static int xlsign (Xt_long x)
 
static Xt_long xi2l (Xt_int a)
 
static Xt_long xlabs (Xt_long a)
 
static Xt_uint xlhi (Xt_long x)
 
static Xt_uint xllo (Xt_long x)
 
static Xt_long xlnegate (Xt_long a, bool negate)
 
static bool xl_is_in_xt_int_range (Xt_long a)
 
static Xt_long xiiadd (Xt_int a, Xt_int b)
 
static Xt_long xliadd (Xt_long a, Xt_int b)
 
static Xt_long xlinc (Xt_long a, bool b)
 
static Xt_long xlladd (Xt_long a, Xt_long b)
 
static Xt_long xiisub (Xt_int a, Xt_int b)
 
static Xt_long xllsub (Xt_long a, Xt_long b)
 
static Xt_long xlisub (Xt_long a, Xt_int b)
 
static Xt_long xilsub (Xt_int a, Xt_long b)
 
static Xt_long xiimul (Xt_int a, Xt_int b)
 
static Xt_uint xthi (Xt_tword x)
 
static Xt_uint xtmid (Xt_tword x)
 
static Xt_uint xtlo (Xt_tword x)
 
static Xt_tword xlimul (Xt_long a, Xt_int b)
 
static Xt_idiv xlidivu (Xt_ulong a, Xt_uint b)
 
static void xdivmnu (Xt_ushort *restrict q, Xt_ushort *restrict r, const Xt_ushort *restrict u, const Xt_ushort *restrict v, int m, int n)
 
static void xl2a (Xt_ushort a[4], Xt_long u)
 
static Xt_long xa2l (Xt_ushort a[4])
 
static Xt_ldiv xlldivu (Xt_ulong u, Xt_ulong v)
 
static Xt_ldiv xtidiv (Xt_tword a, Xt_int b)
 
static Xt_ldiv xlldiv (Xt_long a, Xt_long b)
 
static int xlicmp_gt (Xt_long a, Xt_int b)
 
static int xlicmp_ge (Xt_long a, Xt_int b)
 
static int xlicmp_le (Xt_long a, Xt_int b)
 
static int xlicmp_lt (Xt_long a, Xt_int b)
 
static int xllcmp_eq (Xt_long a, Xt_long b)
 
static int xttcmp_eq (Xt_tword a, Xt_tword b)
 

Detailed Description

Macro Definition Documentation

◆ Xt_div

#define Xt_div ( num,
muldiv,
den )
Value:
XT_INT_DIV((num), (den))

Definition at line 872 of file xt_arithmetic_long.h.

Typedef Documentation

◆ Xt_short

typedef XT_SHORT Xt_short

Definition at line 561 of file xt_arithmetic_long.h.

◆ Xt_ulong

typedef Xt_long Xt_ulong

Definition at line 264 of file xt_arithmetic_long.h.

◆ Xt_ushort

typedef unsigned XT_SHORT Xt_ushort

Definition at line 562 of file xt_arithmetic_long.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
xt_hint_bits 

Definition at line 401 of file xt_arithmetic_long.h.

Function Documentation

◆ xa2l()

static Xt_long xa2l ( Xt_ushort a[4])
inlinestatic

Definition at line 678 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xdivmnu()

static void xdivmnu ( Xt_ushort *restrict q,
Xt_ushort *restrict r,
const Xt_ushort *restrict u,
const Xt_ushort *restrict v,
int m,
int n )
inlinestatic

Definition at line 588 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xi2l()

static Xt_long xi2l ( Xt_int a)
inlinestatic

Definition at line 277 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xiiadd()

static Xt_long xiiadd ( Xt_int a,
Xt_int b )
inlinestatic

Definition at line 323 of file xt_arithmetic_long.h.

Here is the call graph for this function:

◆ xiimul()

static Xt_long xiimul ( Xt_int a,
Xt_int b )
inlinestatic

Definition at line 407 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xiisub()

static Xt_long xiisub ( Xt_int a,
Xt_int b )
inlinestatic

Definition at line 362 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xilsub()

static Xt_long xilsub ( Xt_int a,
Xt_long b )
inlinestatic

Definition at line 392 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xl2a()

static void xl2a ( Xt_ushort a[4],
Xt_long u )
inlinestatic

Definition at line 669 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xl_is_in_xt_int_range()

static bool xl_is_in_xt_int_range ( Xt_long a)
inlinestatic

Definition at line 317 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xlabs()

static Xt_long xlabs ( Xt_long a)
inlinestatic

Definition at line 285 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xlhi()

static Xt_uint xlhi ( Xt_long x)
inlinestatic

Definition at line 295 of file xt_arithmetic_long.h.

◆ xliadd()

static Xt_long xliadd ( Xt_long a,
Xt_int b )
inlinestatic

Definition at line 333 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xlicmp_ge()

static int xlicmp_ge ( Xt_long a,
Xt_int b )
inlinestatic
Returns
1 if a >= b or 0 if a < b

Definition at line 828 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xlicmp_gt()

static int xlicmp_gt ( Xt_long a,
Xt_int b )
inlinestatic
Returns
1 if a > b or 0 if a <= b

Definition at line 816 of file xt_arithmetic_long.h.

Here is the call graph for this function:

◆ xlicmp_le()

static int xlicmp_le ( Xt_long a,
Xt_int b )
inlinestatic
Returns
1 if a <= b or 0 if a > b

Definition at line 840 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xlicmp_lt()

static int xlicmp_lt ( Xt_long a,
Xt_int b )
inlinestatic
Returns
1 if a < b or 0 if a >= b

Definition at line 852 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xlidivu()

static Xt_idiv xlidivu ( Xt_ulong a,
Xt_uint b )
inlinestatic

Definition at line 511 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xlimul()

static Xt_tword xlimul ( Xt_long a,
Xt_int b )
inlinestatic

Definition at line 445 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xlinc()

static Xt_long xlinc ( Xt_long a,
bool b )
inlinestatic

Definition at line 344 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xlisub()

static Xt_long xlisub ( Xt_long a,
Xt_int b )
inlinestatic

Definition at line 381 of file xt_arithmetic_long.h.

◆ xlladd()

static Xt_long xlladd ( Xt_long a,
Xt_long b )
inlinestatic

Definition at line 353 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xllcmp_eq()

static int xllcmp_eq ( Xt_long a,
Xt_long b )
inlinestatic

Definition at line 861 of file xt_arithmetic_long.h.

◆ xlldiv()

static Xt_ldiv xlldiv ( Xt_long a,
Xt_long b )
inlinestatic

Definition at line 802 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xlldivu()

static Xt_ldiv xlldivu ( Xt_ulong u,
Xt_ulong v )
inlinestatic

Definition at line 687 of file xt_arithmetic_long.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xllo()

static Xt_uint xllo ( Xt_long x)
inlinestatic

Definition at line 301 of file xt_arithmetic_long.h.

◆ xllsub()

static Xt_long xllsub ( Xt_long a,
Xt_long b )
inlinestatic

Definition at line 372 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xlnegate()

static Xt_long xlnegate ( Xt_long a,
bool negate )
inlinestatic

Definition at line 307 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xlsign()

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

Definition at line 270 of file xt_arithmetic_long.h.

Here is the caller graph for this function:

◆ xthi()

static Xt_uint xthi ( Xt_tword x)
inlinestatic

Definition at line 427 of file xt_arithmetic_long.h.

◆ xtidiv()

static Xt_ldiv xtidiv ( Xt_tword a,
Xt_int b )
inlinestatic

Definition at line 792 of file xt_arithmetic_long.h.

◆ xtlo()

static Xt_uint xtlo ( Xt_tword x)
inlinestatic

Definition at line 439 of file xt_arithmetic_long.h.

◆ xtmid()

static Xt_uint xtmid ( Xt_tword x)
inlinestatic

Definition at line 433 of file xt_arithmetic_long.h.

◆ xttcmp_eq()

static int xttcmp_eq ( Xt_tword a,
Xt_tword b )
inlinestatic

Definition at line 867 of file xt_arithmetic_long.h.