aboutsummaryrefslogtreecommitdiff
path: root/sys/libmath/gen1.py
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-14 18:15:23 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-14 18:15:23 -0700
commit463ed852261da4d1dd1b859fa717a1d683306c9d (patch)
treed832d08663dcb53f86073d4fbb1609712fe5513f /sys/libmath/gen1.py
parentd982e7c2fdebf560ccce193cb98b85d4fac28a45 (diff)
feat: begun work on final blas level 2
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()