File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,7 @@ static const int srcSigFracBits = 52;
38
38
static const int srcExpBits = 11 ;
39
39
40
40
static inline int src_rep_t_clz_impl (src_rep_t a ) {
41
- #if defined __LP64__
42
- return __builtin_clzl (a );
43
- #else
44
- if (a & REP_C (0xffffffff00000000 ))
45
- return clzsi (a >> 32 );
46
- else
47
- return 32 + clzsi (a & REP_C (0xffffffff ));
48
- #endif
41
+ return __builtin_clzll (a );
49
42
}
50
43
#define src_rep_t_clz src_rep_t_clz_impl
51
44
Original file line number Diff line number Diff line change @@ -58,15 +58,8 @@ typedef double fp_t;
58
58
#define REP_C UINT64_C
59
59
#define significandBits 52
60
60
61
- static __inline int rep_clz (rep_t a ) {
62
- #if defined __LP64__
63
- return __builtin_clzl (a );
64
- #else
65
- if (a & REP_C (0xffffffff00000000 ))
66
- return clzsi (a >> 32 );
67
- else
68
- return 32 + clzsi (a & REP_C (0xffffffff ));
69
- #endif
61
+ static inline int rep_clz (rep_t a ) {
62
+ return __builtin_clzll (a );
70
63
}
71
64
72
65
#define loWord (a ) (a & 0xffffffffU)
You can’t perform that action at this time.
0 commit comments