Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
int_t.h
Go to the documentation of this file.
1
#ifndef __compiler_rt_int_t_h__
2
#define __compiler_rt_int_t_h__
3
#include <
stdint.h
>
4
#include <limits.h>
5
6
typedef
union
7
{
8
__int128
all
;
9
struct
10
{
11
uint64_t
low
;
12
int64_t
high
;
13
}
s
;
14
}
twords
;
15
16
typedef
union
17
{
18
unsigned
__int128
all
;
19
struct
20
{
21
uint64_t
low
;
22
uint64_t
high
;
23
}
s
;
24
}
utwords
;
25
26
typedef
union
27
{
28
uint64_t
all
;
29
struct
30
{
31
uint32_t
low
;
32
uint32_t
high
;
33
}
s
;
34
}
udwords
;
35
36
typedef
union
37
{
38
udwords
u
;
39
double
f
;
40
}
double_bits
;
41
42
43
typedef
__int128
ti_int
;
44
typedef
unsigned
__int128
tu_int
;
45
inline
__int128
__clzti2
(__int128
a
)
46
{
47
twords
x;
48
x.
all
=
a
;
49
const
int64_t
f
= -(x.
s
.high == 0);
50
return
__builtin_clzll((x.
s
.high & ~
f
) | (x.
s
.low &
f
)) +
51
((
int32_t
)
f
& ((
int32_t
)(
sizeof
(
int64_t
) * CHAR_BIT)));
52
}
53
54
#endif
// __compiler_rt_int_t_h__
f
foo f
Definition
X02-DisabledMacros.cpp:25
tu_int
unsigned __int128 tu_int
Definition
fixunstfti.c:15
__clzti2
__int128 __clzti2(__int128 a)
Definition
int_t.h:45
ti_int
__int128 ti_int
Definition
int_t.h:43
a
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition
pointer.h:1181
stdint.h
int64_t
signed __int64 int64_t
Definition
stdint.h:135
uint32_t
unsigned int uint32_t
Definition
stdint.h:126
int32_t
signed int int32_t
Definition
stdint.h:123
uint64_t
unsigned __int64 uint64_t
Definition
stdint.h:136
double_bits
Definition
int_t.h:37
double_bits::f
double f
Definition
int_t.h:39
double_bits::u
udwords u
Definition
int_t.h:38
twords
Definition
int_t.h:7
twords::s
struct twords::@0 s
twords::low
uint64_t low
Definition
int_t.h:11
twords::all
__int128 all
Definition
int_t.h:8
twords::high
int64_t high
Definition
int_t.h:12
udwords
Definition
int_t.h:27
udwords::all
uint64_t all
Definition
int_t.h:28
udwords::low
uint32_t low
Definition
int_t.h:31
udwords::high
uint32_t high
Definition
int_t.h:32
utwords
Definition
int_t.h:17
utwords::all
unsigned __int128 all
Definition
int_t.h:18
utwords::high
uint64_t high
Definition
int_t.h:22
utwords::low
uint64_t low
Definition
int_t.h:21
s
char * s
Definition
yubihsm_pkcs11.c:524
libraries
builtins
int_t.h
Generated by
1.12.0