Closed davidallenmann closed 11 months ago
Hi @davidallenmann , Yes, this is the problem with latest GCC. We will fix it soon.
Thanks, Dmitry
Hi @davidallenmann
The update will be soon.
Right now please change dsps_sqrtf_f32_ansi
to
inline float dsps_sqrtf_f32_ansi(float f)
{
int result;
int* f_ptr = (int*)&f;
result = 0x1fbb4000 + (*f_ptr >> 1);
const int *p = &result;
float* f_result = (float*)p;
return *f_result;
}
Regards, Dmitry
Environment
Problem Description
Build doesn't error if build with compiler debug mode, but when build with compiler optimization 'Optimize for performance (-O2)' get build error as below.
Should it be as follows to return a float instead of a pointer to a float?
Debug Logs