Skip to content

Commit 694e65c

Browse files
committed
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.
1 parent 95ea348 commit 694e65c

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

ext/libsamplerate/pkg.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ pkg.keywords:
2626

2727
pkg.type: sdk
2828

29-
pkg.cflags: -DHAVE_STDBOOL_H -fsingle-precision-constant -DHAVE_CONFIG_H -DNDEBUG
29+
pkg.cflags: -O3 -DHAVE_STDBOOL_H -fsingle-precision-constant -DHAVE_CONFIG_H -DNDEBUG -DLIBSAMPLERATE_SINGLE_PRECISION
3030
pkg.lflags: -lm
3131

32+
app.cflags:
33+
- -DLIBSAMPLERATE_SINGLE_PRECISION
34+
3235
pkg.src_dirs:
3336
- "@libsamplerate/src"
3437

ext/libsamplerate/src/config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
#define ENABLE_SINC_FAST_CONVERTER 1
3535
#endif
3636

37-
#if MYNEWT_VAL(LIBSAMPLERATE_LIBSAMPLER_NDEBUG)
38-
#define LIBSAMPLER_NDEBUG 1
39-
#endif
40-
4137
#define PACKAGE "libsamplerate"
4238
#define VERSION "0.2.2"
4339

ext/libsamplerate/syscfg.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,3 @@ syscfg.defs:
2525
LIBSAMPLERATE_ENABLE_SINC_FAST_CONVERTER:
2626
description: Enable SINC fastest converter
2727
value: 1
28-
LIBSAMPLERATE_LIBSAMPLER_NDEBUG:
29-
description: Define NDEBUG for resampler code (turns off asserts)
30-
value: 0

0 commit comments

Comments
 (0)