@@ -953,7 +953,7 @@ INTERCEPTOR(double, frexp, double x, int *exp) {
953
953
#define INIT_FREXP
954
954
#endif // SANITIZER_INTERCEPT_FREXP
955
955
956
- #if SANITIZER_INTERCEPT_FREXPF_FREXPL
956
+ #if SANITIZER_INTERCEPT_FREXPF
957
957
INTERCEPTOR(float, frexpf, float x, int *exp) {
958
958
void *ctx;
959
959
COMMON_INTERCEPTOR_ENTER(ctx, frexpf, x, exp);
@@ -963,6 +963,12 @@ INTERCEPTOR(float, frexpf, float x, int *exp) {
963
963
return res;
964
964
}
965
965
966
+ # define INIT_FREXPF COMMON_INTERCEPT_FUNCTION(frexpf);
967
+ #else
968
+ # define INIT_FREXPF
969
+ #endif
970
+
971
+ #if SANITIZER_INTERCEPT_FREXPL
966
972
INTERCEPTOR(long double, frexpl, long double x, int *exp) {
967
973
void *ctx;
968
974
COMMON_INTERCEPTOR_ENTER(ctx, frexpl, x, exp);
@@ -972,12 +978,10 @@ INTERCEPTOR(long double, frexpl, long double x, int *exp) {
972
978
return res;
973
979
}
974
980
975
- #define INIT_FREXPF_FREXPL \
976
- COMMON_INTERCEPT_FUNCTION (frexpf); \
977
- COMMON_INTERCEPT_FUNCTION_LDBL (frexpl)
981
+ # define INIT_FREXPL COMMON_INTERCEPT_FUNCTION_LDBL(frexpl)
978
982
#else
979
- #define INIT_FREXPF_FREXPL
980
- #endif // SANITIZER_INTERCEPT_FREXPF_FREXPL
983
+ # define INIT_FREXPL
984
+ #endif
981
985
982
986
#if SI_POSIX
983
987
static void write_iovec(void *ctx, struct __sanitizer_iovec *iovec,
@@ -10411,7 +10415,8 @@ static void InitializeCommonInterceptors() {
10411
10415
INIT_ISOC99_PRINTF;
10412
10416
INIT_SETPROCTITLE;
10413
10417
INIT_FREXP;
10414
- INIT_FREXPF_FREXPL;
10418
+ INIT_FREXPF;
10419
+ INIT_FREXPL;
10415
10420
INIT_GETPWNAM_AND_FRIENDS;
10416
10421
INIT_GETPWNAM_R_AND_FRIENDS;
10417
10422
INIT_GETPWENT;
0 commit comments