mirror of
https://github.com/google/liblc3.git
synced 2026-04-18 05:35:31 +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 ]
|
includes = [ SRC_DIR, INC_DIR ]
|
||||||
|
|
||||||
extension = Extension('lc3',
|
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') ],
|
define_macros = [ ('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION') ],
|
||||||
sources = sources,
|
sources = sources,
|
||||||
depends = depends,
|
depends = depends,
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ def check_synthesis(rng, dt, sr):
|
|||||||
|
|
||||||
y = synthesis.run(x)
|
y = synthesis.run(x)
|
||||||
y_c = lc3.sns_synthesize(dt, sr, synthesis.get_data(), 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
|
return ok
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user