summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Foster2011-02-16 17:30:16 -0800
committerNick Foster2011-02-16 17:30:16 -0800
commit26c81b79e28f3d4d9a5eb5b5a56338371ff118ce (patch)
tree47bdec8c812f5cb25929bd3caf1c748a7d415d05
parent0eeeb636a89c5086293bae31511316e4200ad2f9 (diff)
downloadgnuradio-26c81b79e28f3d4d9a5eb5b5a56338371ff118ce.tar.gz
gnuradio-26c81b79e28f3d4d9a5eb5b5a56338371ff118ce.tar.bz2
gnuradio-26c81b79e28f3d4d9a5eb5b5a56338371ff118ce.zip
Fixed mktables for the old non-runtime volk.
-rw-r--r--volk/include/volk/Makefile.am3
-rw-r--r--volk/include/volk/make_mktables.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/volk/include/volk/Makefile.am b/volk/include/volk/Makefile.am
index 7a5edd624..23822b229 100644
--- a/volk/include/volk/Makefile.am
+++ b/volk/include/volk/Makefile.am
@@ -133,7 +133,8 @@ volkinclude_HEADERS = \
VOLK_MKTABLES_SOURCES = \
$(platform_CODE) \
$(top_srcdir)/lib/volk_rank_archs.c \
- $(top_srcdir)/lib/volk_mktables.c
+ $(top_srcdir)/lib/volk_mktables.c \
+ $(top_srcdir)/lib/volk_cpu.c
volk_mktables$(EXEEXT): $(VOLK_MKTABLES_SOURCES)
diff --git a/volk/include/volk/make_mktables.py b/volk/include/volk/make_mktables.py
index 25da086fa..051ac268d 100644
--- a/volk/include/volk/make_mktables.py
+++ b/volk/include/volk/make_mktables.py
@@ -18,7 +18,7 @@ def make_mktables(funclist) :
tempstring = tempstring + ' fprintf(output, "#define INCLUDED_VOLK_TABLES_H\\n\\n");\n';
for func in funclist:
- tempstring = tempstring + ' fprintf(output, "static const ' + func + '_func_table = %u;\\n", 0);\n';
+ tempstring = tempstring + ' fprintf(output, "static const ' + func + '_func_table = %u;\\n", volk_rank_archs(' + func + '_arch_defs, volk_get_lvarch()));\n';
tempstring = tempstring + ' fprintf(output, "#endif /*INCLUDED_VOLK_TABLES_H*/\\n");\n';
tempstring = tempstring + ' fclose(output);\n'
tempstring = tempstring + '}\n';