Native SQRTF on Cortex-M4 FPU using inline assembler
attribute( ( alwaysinline ) ) static _INLINE float _VSQRTF(float op1)
{
float result;
_ASM volatile (“vsqrt.f32 %0, %1″ : “=w” (result) : “w” (op1) );
return(result);
}
Written by sebseb7
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Arm
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#