27 return ((
bit2>>i)&1) ? -1: ((
bit1>>i) & 1) ;
62 }
while (carry && i<32) ;
70 void set(
int i,
int v)
88 printf(
"ERR a number needs to be positive or negative or zero ... \n") ;
121 char buf[33] ; buf[32]=0 ;
122 for (
int i=31 ; i>=0 ; i--)
void operator++(int a[[maybe_unused]])
Definition: ternary.h:30
uint8_t special_quat_bit
Definition: ternary.h:151
void reset_quat_bit()
Definition: ternary.h:92
void clear()
Definition: ternary.h:94
friend std::ostream & operator<<(std::ostream &stream, ternary &t)
Definition: ternary.h:120
uint32_t bit1
Definition: ternary.h:149
void set_quat_bit(int n)
Definition: ternary.h:91
uint64_t to_integer()
Definition: ternary.h:99
const uint32_t one
Definition: ternary.h:150
uint32_t bit2
Definition: ternary.h:149
void set(int i, int v)
Definition: ternary.h:70
int operator[](int i)
Definition: ternary.h:7
bool operator<(unsigned int n)
Definition: ternary.h:65
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1181
unsigned int uint32_t
Definition: stdint.h:126
unsigned char uint8_t
Definition: stdint.h:124
unsigned __int64 uint64_t
Definition: stdint.h:136