mirror of
https://github.com/google/liblc3.git
synced 2026-04-17 21:25:30 +00:00
test: Enable fast-math on tests, and increase tolerance with SNS checks
This commit is contained in:
@@ -37,7 +37,7 @@ depends = [ 'ctypes.h' ] + \
|
||||
includes = [ SRC_DIR, INC_DIR ]
|
||||
|
||||
extension = Extension('lc3',
|
||||
extra_compile_args = ['-std=c11'],
|
||||
extra_compile_args = [ '-std=c11', '-ffast-math' ],
|
||||
define_macros = [ ('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION') ],
|
||||
sources = sources,
|
||||
depends = depends,
|
||||
|
||||
@@ -506,7 +506,7 @@ def check_synthesis(rng, dt, sr):
|
||||
|
||||
y = synthesis.run(x)
|
||||
y_c = lc3.sns_synthesize(dt, sr, synthesis.get_data(), x)
|
||||
ok = ok and np.amax(np.abs(y - y_c)) < 1e0
|
||||
ok = ok and np.amax(np.abs(y - y_c)) < 2e0
|
||||
|
||||
return ok
|
||||
|
||||
|
||||
Reference in New Issue
Block a user