Skip to content

Commit e3825af

Browse files
Move scalbn to libc to fix broken functionality. Disable test on x86.
1 parent 3b62c65 commit e3825af

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

emcc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,7 @@ try:
14561456
'shgetc.c',
14571457
]],
14581458
['math', [
1459+
'scalbn.c',
14591460
'scalbnl.c',
14601461
]],
14611462
['stdio', [
@@ -1556,7 +1557,6 @@ try:
15561557
'lgammaf.c',
15571558
'lgammaf_r.c',
15581559
'lgammal.c',
1559-
'scalbn.c',
15601560
'scalbnf.c',
15611561
'signgam.c',
15621562
'tgamma.c',

system/lib/libc.symbols

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
W pvalloc
9090
W realloc
9191
W realloc_in_place
92+
T scalbn
9293
T scalbnl
9394
T strtod
9495
W strtod_l

system/lib/libcextra.symbols

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
T regerror
8282
T regexec
8383
T regfree
84-
T scalbn
8584
T scalbnf
8685
D signgam
8786
T strcasecmp_l

tests/test_core.py

+1
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ def test_sha1(self):
510510

511511
def test_cube2md5(self):
512512
if self.emcc_args == None: return self.skip('needs emcc')
513+
if not self.is_le32(): return self.skip('le32 needed for accurate math')
513514
self.emcc_args += ['--embed-file', 'cube2md5.txt']
514515
shutil.copyfile(path_from_root('tests', 'cube2md5.txt'), os.path.join(self.get_dir(), 'cube2md5.txt'))
515516
self.do_run(open(path_from_root('tests', 'cube2md5.cpp')).read(), open(path_from_root('tests', 'cube2md5.ok')).read())

0 commit comments

Comments
 (0)