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;
3838static const int srcExpBits = 11 ;
3939
4040static 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 );
4942}
5043#define src_rep_t_clz src_rep_t_clz_impl
5144
Original file line number Diff line number Diff line change @@ -58,15 +58,8 @@ typedef double fp_t;
5858#define REP_C UINT64_C
5959#define significandBits 52
6060
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 );
7063}
7164
7265#define loWord (a ) (a & 0xffffffffU)
You can’t perform that action at this time.
0 commit comments