We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Interpolation functions take as an input an interp_instance struct. As an example,
interp_instance
CMSIS-DSP/Source/InterpolationFunctions/arm_linear_interp_f32.c
Lines 79 to 81 in 99e15d3
As far as I understand, this interp_instance is not modified by the function, and so the pointer can be declared as pointer to const.
pointer to const
float32_t arm_linear_interp_f32( const arm_linear_interp_instance_f32 * S, float32_t x)
In this way the code is more expressive, and a const struct can be passed as an input without any warning about casting-away its const-ness.
const
The text was updated successfully, but these errors were encountered:
Corrected issue #133 : missing const qualifier
91e83cb
Corrected in latest commit
Sorry, something went wrong.
No branches or pull requests
Interpolation functions take as an input an
interp_instance
struct.As an example,
CMSIS-DSP/Source/InterpolationFunctions/arm_linear_interp_f32.c
Lines 79 to 81 in 99e15d3
As far as I understand, this
interp_instance
is not modified by the function, and so the pointer can be declared aspointer to const
.In this way the code is more expressive, and a
const
struct can be passed as an input without any warning about casting-away its const-ness.The text was updated successfully, but these errors were encountered: