summaryrefslogtreecommitdiff
path: root/volk/gen/make_machines_h.py
diff options
context:
space:
mode:
Diffstat (limited to 'volk/gen/make_machines_h.py')
-rw-r--r--volk/gen/make_machines_h.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/volk/gen/make_machines_h.py b/volk/gen/make_machines_h.py
index 082ca1488..aa6daa6cc 100644
--- a/volk/gen/make_machines_h.py
+++ b/volk/gen/make_machines_h.py
@@ -17,7 +17,7 @@
from volk_regexp import *
-def make_machines_h(functions, machines):
+def make_machines_h(functions, machines, archs):
tempstring = r"""
// This file is automatically generated by make_machines_h.py.
// Do not edit this file.
@@ -33,8 +33,10 @@ struct volk_machine {
const char *name;
"""
for function in functions:
- tempstring += "\n const struct volk_func_desc " + function + "_desc;\n"
- tempstring += " const " + replace_volk.sub("p", function) + " *" + function + "_archs;\n"
+ tempstring += " const char *%s_indices[%d];\n"%(function, len(archs))
+ tempstring += " const int %s_arch_defs[%d];\n"%(function, len(archs))
+ tempstring += " const %s %s_archs[%d];\n"%(replace_volk.sub("p", function), function, len(archs))
+ tempstring += " const int %s_n_archs;\n"%function
tempstring += r"""};