Go to the SVN repository for this file.
27 #include <freetds/sysdep_private.h> 29 #define SMP_NUM_COMPONENTS \ 30 (sizeof(((smp*)0)->comp) / sizeof(((smp*)0)->comp[0])) 33{ 0, 0, 0, 0, 0, 0, 0, 0 },
37{ 1, 0, 0, 0, 0, 0, 0, 0 },
62res.
comp[
i] =
a.comp[
i] ^ 0xffffu;
127 n+=
b.comp[
i] * mult;
128mult = mult * 65536.0;
153 uint32_tcomp = remainder * 0x10000u +
n->comp[
i];
154remainder = comp % div;
164 char*p =
buf+
sizeof(
buf);
186 n->comp[
i] = (
uint16_t) (comp & 0xffffu);
207 if(*s ==
'x'|| *s ==
'X') {
217 if(*s >=
'0'&& *s <=
'9')
219 else if(*s >=
'a'&& *s <=
'z')
220digit = *s -
'a'+ 10;
221 else if(*s >=
'A'&& *s <=
'Z')
222digit = *s -
'A'+ 10;
224 assert(!!
"Invalid digit entered");
static SLJIT_INLINE sljit_ins or(sljit_gpr dst, sljit_gpr src)
smp smp_negate(smp a)
returns opposite of a
double smp_to_double(smp a)
converts to double
bool smp_is_negative(smp a)
checks if number is negative
int smp_cmp(smp a, smp b)
compare a and b, returns >0 if a > b, <0 if a < b, 0 if a == b
smp smp_add(smp a, smp b)
sum a and b
char * smp_to_string(smp a)
converts to strings, must be freed with free()
smp smp_not(smp a)
bitwise not
bool smp_is_zero(smp a)
checks if number is zero
#define SMP_NUM_COMPONENTS
smp smp_from_string(const char *s)
converts a string to a number
static void mul_small(smp *n, uint16_t factor)
smp smp_from_int(int64_t n)
convert int64 to multiple precision
static uint16_t div_small(smp *n, uint16_t div)
smp smp_sub(smp a, smp b)
subtract a and b
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4