Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize on 32bit machines using 32-bit float as default type #33

Open
qywx opened this issue Mar 9, 2017 · 1 comment
Open

Optimize on 32bit machines using 32-bit float as default type #33

qywx opened this issue Mar 9, 2017 · 1 comment

Comments

@qywx
Copy link

qywx commented Mar 9, 2017

For example ARM Cortex-M4 is 32-bit core. It has 32-bit FPU and can multiply and divide float values in one instruction. But operating with double values is much less efficient. So let's discuss and decide what should be changed to make float default type for the DspFilters library. Please help. Thank you.

@galchinsky
Copy link
Collaborator

  1. Templates in templates like in this PR https://github.com/vinniefalco/DSPFilters/pull/22/files
  2. Preprocessor macro #define FLOATTYPE float

The second one is easier to implement. You should check for numerical issues though.

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

No branches or pull requests

2 participants