mirror of https://github.com/Nonannet/copapy.git
stencil: __attribute__((noinline)) added to fast_sqrt since it branches witch is not allowed for stencils
This commit is contained in:
parent
df84b61a7b
commit
538bf23412
|
|
@ -12,7 +12,7 @@ __attribute__((noinline)) int floor_div(float arg1, float arg2) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
float fast_sqrt(float n) {
|
__attribute__((noinline)) float fast_sqrt(float n) {
|
||||||
if (n < 0) return -1;
|
if (n < 0) return -1;
|
||||||
|
|
||||||
float x = n; // initial guess
|
float x = n; // initial guess
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue