mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-07-30 22:57:53 +00:00
ext/libsamplerate: compile using single precision floating point numbers
Compile using floats instead of doubles, so the FPUs that don't support double-precision arithmetic can be used.
This commit is contained in:
committed by
Krzysztof Kopyściński
parent
2c1b130cf0
commit
61021c1575
@@ -26,9 +26,12 @@ pkg.keywords:
|
||||
|
||||
pkg.type: sdk
|
||||
|
||||
pkg.cflags: -DHAVE_STDBOOL_H -fsingle-precision-constant -DHAVE_CONFIG_H -DNDEBUG
|
||||
pkg.cflags: -O3 -DHAVE_STDBOOL_H -fsingle-precision-constant -DHAVE_CONFIG_H -DNDEBUG -DLIBSAMPLERATE_SINGLE_PRECISION
|
||||
pkg.lflags: -lm
|
||||
|
||||
app.cflags:
|
||||
- -DLIBSAMPLERATE_SINGLE_PRECISION
|
||||
|
||||
pkg.src_dirs:
|
||||
- "@libsamplerate/src"
|
||||
|
||||
|
||||
@@ -34,10 +34,6 @@
|
||||
#define ENABLE_SINC_FAST_CONVERTER 1
|
||||
#endif
|
||||
|
||||
#if MYNEWT_VAL(LIBSAMPLERATE_LIBSAMPLER_NDEBUG)
|
||||
#define LIBSAMPLER_NDEBUG 1
|
||||
#endif
|
||||
|
||||
#define PACKAGE "libsamplerate"
|
||||
#define VERSION "0.2.2"
|
||||
|
||||
|
||||
@@ -25,6 +25,3 @@ syscfg.defs:
|
||||
LIBSAMPLERATE_ENABLE_SINC_FAST_CONVERTER:
|
||||
description: Enable SINC fastest converter
|
||||
value: 1
|
||||
LIBSAMPLERATE_LIBSAMPLER_NDEBUG:
|
||||
description: Define NDEBUG for resampler code (turns off asserts)
|
||||
value: 0
|
||||
|
||||
Reference in New Issue
Block a user