File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,7 @@ static const int srcSigFracBits = 52;
37
37
// srcBits - srcSigFracBits - 1
38
38
static const int srcExpBits = 11 ;
39
39
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
49
- }
40
+ static inline int src_rep_t_clz_impl (src_rep_t a ) { return __builtin_clzll (a ); }
50
41
#define src_rep_t_clz src_rep_t_clz_impl
51
42
52
43
#elif defined SRC_80
Original file line number Diff line number Diff line change @@ -58,16 +58,7 @@ 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
70
- }
61
+ static inline int rep_clz (rep_t a ) { return __builtin_clzll (a ); }
71
62
72
63
#define loWord (a ) (a & 0xffffffffU)
73
64
#define hiWord (a ) (a >> 32)
You can’t perform that action at this time.
0 commit comments