Skip to content

Commit 2c6b796

Browse files
committed
Delay definition of signf2
1 parent fbe2dcf commit 2c6b796

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

numexpr/interpreter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ op_signature(int op, unsigned int n) {
130130
typedef float (*FuncFFPtr)(float);
131131

132132
#ifdef _WIN32
133+
inline float signf2(float x) { // needed to wait for bespoke_functions to be loaded
134+
return signf(x);
135+
}
133136
FuncFFPtr functions_ff[] = {
134137
#define FUNC_FF(fop, s, f, f_win32, ...) f_win32,
135138
#include "functions.hpp"

numexpr/msvc_function_stubs.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,4 @@ inline bool signbitf2(float x) {
216216
return signbitf(x);
217217
}
218218

219-
220-
221-
222219
#endif // NUMEXPR_MSVC_FUNCTION_STUBS_HPP

numexpr/numexpr_config.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,5 @@ inline bool isnand(double x) { return !!std::isnan(x); }
6060
inline bool isinff_(float x) { return !!std::isinf(x); }
6161
inline bool isinfd(double x) { return !!std::isinf(x); }
6262
#endif
63-
#include "bespoke_functions.hpp"
64-
#ifdef _WIN32 //need signf from bespoke_functions
65-
inline float signf2(float x) {
66-
return signf(x);
67-
}
68-
#endif
63+
6964
#endif // NUMEXPR_CONFIG_HPP

0 commit comments

Comments
 (0)