aboutsummaryrefslogtreecommitdiff
path: root/sys/libmath/gen1.py
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libmath/gen1.py')
-rwxr-xr-xsys/libmath/gen1.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/libmath/gen1.py b/sys/libmath/gen1.py
index b0f9ecc..936bc50 100755
--- a/sys/libmath/gen1.py
+++ b/sys/libmath/gen1.py
@@ -1,3 +1,5 @@
+#!/bin/python
+
from C import *
NUNROLL = 16
@@ -12,7 +14,8 @@ def typeify(string, kind):
def fini(func, loop, strided, calls, ret=[]):
func.execute(*calls[:2])
- func = Strided(func, loop, NUNROLL//2, strided, *ret)
+ func, scall = Strided(func, loop, NUNROLL//2, strided, *ret)
+ calls[2] = scall[0]
func.execute(*calls[2:])
func.emit()