File tree 2 files changed +10
-2
lines changed
system/lib/libc/musl/src/math
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4531,8 +4531,6 @@ LibraryManager.library = {
4531
4531
return divt ;
4532
4532
} ,
4533
4533
4534
- __fpclassifyd : '__fpclassify' , // Needed by tests/python/python.le32.bc
4535
-
4536
4534
// ==========================================================================
4537
4535
// sys/utsname.h
4538
4536
// ==========================================================================
Original file line number Diff line number Diff line change 1
1
#include <math.h>
2
2
#include <stdint.h>
3
3
4
+ #ifdef __EMSCRIPTEN__
5
+ // XXX Emscripten: for weak_alias.
6
+ #include "libc.h"
7
+ #endif
8
+
4
9
int __fpclassify (double x )
5
10
{
6
11
union {double f ; uint64_t i ;} u = {x };
@@ -9,3 +14,8 @@ int __fpclassify(double x)
9
14
if (e == 0x7ff ) return u .i <<12 ? FP_NAN : FP_INFINITE ;
10
15
return FP_NORMAL ;
11
16
}
17
+
18
+ #ifdef __EMSCRIPTEN__
19
+ // XXX Emscripten: Needed by tests/python/python.le32.bc
20
+ weak_alias (__fpclassify , __fpclassifyd );
21
+ #endif
You can’t perform that action at this time.
0 commit comments