Skip to content

Performance improvements and CMSIS-DSP upgrade to v1.18.0 - #133

Closed
pingdynasty wants to merge 2 commits into
developfrom
feature/cmsis-dsp-1.18
Closed

pingdynasty wants to merge 2 commits into
developfrom
feature/cmsis-dsp-1.18

Conversation

@pingdynasty

Copy link
Copy Markdown
Collaborator
  • CMSIS-DSP built with ARM_MATH_LOOPUNROLL: biquad and vector functions up to 30% faster
  • Updated CMSIS-DSP to v1.18.0
  • Patches built without -fno-builtin and -mtune=cortex-m4: fminf, fmaxf, fabsf, sqrtf and friends compile to FPU instructions
  • Added AdsrEnvelope block generate() and process(), up to 33% faster than per-sample
  • Faster block processing (state kept in registers) in StateVariableFilter, SmoothingFilter, DcBlockingFilter, EnvelopeFollower, InterpolatingSignalGenerator and Sine, AntialiasedRamp, AntialiasedSquareWave and Vosim oscillators
  • Added GenParameterMap.h: optional map of gen~ parameter names to OWL parameters, with scale and steps
  • Added Gen stepped (GEN_SCALE_INT) and exponential (GEN_SCALE_LOG) parameters
  • Added Faust [scale:log] exponential widget response
  • Added Gen output map (GEN_OUTPUT_MAP) with optional bipolar outputs
  • Added genlib spline6_interp
  • Fixed Gen parameter defaults set in gen~ units instead of 0..1
  • Fixed Faust patches mapping only the first 20 widgets (now 48)
  • Fixed PatchMetadata limited to 20 parameters (now 40)
  • Fixed Gen output parameters registered twice with OWL_METADATA and GEN_OUTPUT_MAP
  • Fixed web build fast pow/exp/log lookup tables left empty
  • Faust floorf, ceilf, sqrtf, rintf and roundf use FPU instructions on Cortex-M7

From ARM-software/CMSIS-DSP v1.18.0 (was V1.10.0, CMSIS 5): Include,
PrivateInclude, Source, README.md, LICENSE. The sources now need
DSP/PrivateInclude on the include path. arm_bitreversal2.S is gone upstream;
build arm_bitreversal2.c instead.

All 120 test patches build as before on OWL2 and OWL3 (same 4 known
failures). Genius, cycles per block, 12 CMSIS-heavy patches (FFT, vocoder,
biquad, Faust, sine): unchanged within 0.06%.
Without it CMSIS takes its one-sample-per-iteration loops on Cortex-M.
Genius, cycles per block: ZoelzerMultiFilter -31%, PolySub -15%, CMSIS
benchmark (biquads, vector ops, FFT) -9%, LorenzFM -5%, DubDelay -4%;
FFT / spectral patches +0.3 to +3.9% (FFTShift, ChannelVocoder,
SpectralFreeze).
@pingdynasty
pingdynasty deleted the feature/cmsis-dsp-1.18 branch November 28, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant