stencil: __attribute__((noinline)) added to fast_sqrt since it branches witch is not allowed for stencils

This commit is contained in:
Nicolas Kruse 2025-10-26 12:37:20 +01:00
parent df84b61a7b
commit 538bf23412
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ __attribute__((noinline)) int floor_div(float arg1, float arg2) {
return i;
}
float fast_sqrt(float n) {
__attribute__((noinline)) float fast_sqrt(float n) {
if (n < 0) return -1;
float x = n; // initial guess