w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

asl.h File Reference
#include <iostream>
#include <cstdint>
#include <cstdlib>
Include dependency graph for asl.h:

Go to the source code of this file.

Classes

class  mp_limb_t
 

Macros

#define GMP_ASSERT_ALWAYS(cc)   do {if (!(cc)) abort();} while (0)
 
#define GMP_LIMB_BITS   4
 
#define GMP_NUMB_MASK   (2 * (1ul << (GMP_LIMB_BITS - 1)) - 1)
 
#define BINOP_MASK(op, type)
 
#define BINOP_NOMASK(op, type)
 
#define RELOP(op)
 
#define BINOP2(op, type)
 

Typedefs

typedef std::conditional<((2 *(1ul<<(4 - 1)) - 1)<=0xffff), uint16_t, uint32_t >::type type24
 
typedef std::conditional<((2 *(1ul<<(4 - 1)) - 1)<=0xff), uint8_t, type24 >::type mtype
 

Functions

mp_limb_t operator+ (mp_limb_t lhs, const mp_limb_t &rhs)
 
mp_limb_t operator- (mp_limb_t lhs, const mp_limb_t &rhs)
 
mp_limb_t operator* (mp_limb_t lhs, const mp_limb_t &rhs)
 
mp_limb_t operator/ (mp_limb_t lhs, const mp_limb_t &rhs)
 
mp_limb_t operator% (mp_limb_t lhs, const mp_limb_t &rhs)
 
mp_limb_t operator& (mp_limb_t lhs, const mp_limb_t &rhs)
 
mp_limb_t operator| (mp_limb_t lhs, const mp_limb_t &rhs)
 
mp_limb_t operator^ (mp_limb_t lhs, const mp_limb_t &rhs)
 
mp_limb_t operator<< (mp_limb_t lhs, const unsigned int &rhs)
 
mp_limb_t operator>> (mp_limb_t lhs, const unsigned int &rhs)
 

Macro Definition Documentation

◆ BINOP2

#define BINOP2 (   op,
  type 
)
Value:
inline mp_limb_t operator op(mp_limb_t lhs, const type& rhs) { \
lhs op##= rhs; \
return lhs; \
}
#define type(a)
Definition: aptex-macros.h:171
Definition: asl.h:63
Definition: sh.h:1226
op
Definition: tex4ht.c:3129

Definition at line 112 of file asl.h.

◆ BINOP_MASK

#define BINOP_MASK (   op,
  type 
)
Value:
mp_limb_t& operator op##=(const type& rhs) { \
limbo = (limbo op rhs.limbo) & GMP_NUMB_MASK; \
return *this; \
}
#define GMP_NUMB_MASK
Definition: asl.h:47

Definition at line 49 of file asl.h.

◆ BINOP_NOMASK

#define BINOP_NOMASK (   op,
  type 
)
Value:
mp_limb_t& operator op##=(const type& rhs) { \
limbo = limbo op rhs.limbo; \
return *this; \
}

Definition at line 54 of file asl.h.

◆ GMP_ASSERT_ALWAYS

#define GMP_ASSERT_ALWAYS (   cc)    do {if (!(cc)) abort();} while (0)

Definition at line 38 of file asl.h.

◆ GMP_LIMB_BITS

#define GMP_LIMB_BITS   4

Definition at line 44 of file asl.h.

◆ GMP_NUMB_MASK

#define GMP_NUMB_MASK   (2 * (1ul << (GMP_LIMB_BITS - 1)) - 1)

Definition at line 47 of file asl.h.

◆ RELOP

#define RELOP (   op)
Value:
inline bool operator op(const mp_limb_t rhs) { \
return limbo op rhs.limbo; \
}
mtype limbo
Definition: asl.h:109

Definition at line 97 of file asl.h.

Typedef Documentation

◆ mtype

typedef std::conditional<( (2 * (1ul << ( 4 - 1)) - 1) <= 0xff), uint8_t, type24>::type mtype

Definition at line 61 of file asl.h.

◆ type24

typedef std::conditional<( (2 * (1ul << ( 4 - 1)) - 1) <= 0xffff), uint16_t, uint32_t >::type type24

Definition at line 60 of file asl.h.

Function Documentation

◆ operator%()

mp_limb_t operator% ( mp_limb_t  lhs,
const mp_limb_t rhs 
)
inline

Definition at line 122 of file asl.h.

◆ operator&()

mp_limb_t operator& ( mp_limb_t  lhs,
const mp_limb_t rhs 
)
inline

Definition at line 123 of file asl.h.

◆ operator*()

mp_limb_t operator* ( mp_limb_t  lhs,
const mp_limb_t rhs 
)
inline

Definition at line 120 of file asl.h.

◆ operator+()

mp_limb_t operator+ ( mp_limb_t  lhs,
const mp_limb_t rhs 
)
inline

Definition at line 118 of file asl.h.

◆ operator-()

mp_limb_t operator- ( mp_limb_t  lhs,
const mp_limb_t rhs 
)
inline

Definition at line 119 of file asl.h.

◆ operator/()

mp_limb_t operator/ ( mp_limb_t  lhs,
const mp_limb_t rhs 
)
inline

Definition at line 121 of file asl.h.

◆ operator<<()

mp_limb_t operator<< ( mp_limb_t  lhs,
const unsigned int rhs 
)
inline

Definition at line 126 of file asl.h.

◆ operator>>()

mp_limb_t operator>> ( mp_limb_t  lhs,
const unsigned int rhs 
)
inline

Definition at line 127 of file asl.h.

◆ operator^()

mp_limb_t operator^ ( mp_limb_t  lhs,
const mp_limb_t rhs 
)
inline

Definition at line 125 of file asl.h.

◆ operator|()

mp_limb_t operator| ( mp_limb_t  lhs,
const mp_limb_t rhs 
)
inline

Definition at line 124 of file asl.h.