#define __M_DEBUG_UTIL_H__
-#ifdef DEBUG /* This code only used for debugging */
+#ifdef DEBUG_MATH /* This code only used for debugging */
/* Comment this out to deactivate the cycle counter.
#endif
-#elif defined(__amd64__)
+#elif defined(__x86_64__)
#define rdtscll(val) do { \
unsigned int a,d; \
return 0;
}
- frexp( a, &a_ex );
- frexp( b, &b_ex );
- frexp( d, &d_ex );
+ FREXPF( a, &a_ex );
+ FREXPF( b, &b_ex );
+ FREXPF( d, &d_ex );
if ( a_ex < b_ex ) {
return a_ex - d_ex;
#endif
-#endif /* DEBUG */
+#endif /* DEBUG_MATH */
#endif /* __M_DEBUG_UTIL_H__ */