From 538bf23412e2ac6ae61e99311efda6a2d04c1d64 Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Sun, 26 Oct 2025 12:37:20 +0100 Subject: [PATCH] stencil: __attribute__((noinline)) added to fast_sqrt since it branches witch is not allowed for stencils --- stencils/aux_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stencils/aux_functions.c b/stencils/aux_functions.c index fc4ff55..0cd5cb6 100644 --- a/stencils/aux_functions.c +++ b/stencils/aux_functions.c @@ -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