summaryrefslogtreecommitdiff
path: root/volk
diff options
context:
space:
mode:
authorNick Foster2011-02-15 22:25:54 -0800
committerNick Foster2011-02-15 22:25:54 -0800
commit88c389e1166cf5427cfabc012502337999c2b68f (patch)
tree24892d876cbd86689a11903455c22ff996f1b6d5 /volk
parentfd03c0ee7cb9af71a5e0292569b626ba3dabd885 (diff)
downloadgnuradio-88c389e1166cf5427cfabc012502337999c2b68f.tar.gz
gnuradio-88c389e1166cf5427cfabc012502337999c2b68f.tar.bz2
gnuradio-88c389e1166cf5427cfabc012502337999c2b68f.zip
Revert "Removed some mktables stuff since it's passe"
This reverts commit d364316fa2e047890af09c7bdeed776d6391b3db.
Diffstat (limited to 'volk')
-rw-r--r--volk/include/volk/make_mktables.py33
-rw-r--r--volk/lib/Makefile.am3
2 files changed, 36 insertions, 0 deletions
diff --git a/volk/include/volk/make_mktables.py b/volk/include/volk/make_mktables.py
new file mode 100644
index 000000000..25da086fa
--- /dev/null
+++ b/volk/include/volk/make_mktables.py
@@ -0,0 +1,33 @@
+
+
+def make_mktables(funclist) :
+ tempstring = "";
+ tempstring = tempstring + '/*this file is auto generated by volk_register.py*/\n';
+
+ tempstring = tempstring + '#include<stdio.h>\n';
+ tempstring = tempstring + '#include<volk/volk_registry.h>\n';
+ tempstring = tempstring + '#include<volk_rank_archs.h>\n';
+ tempstrgin = tempstring + '#include<volk/volk_cpu.h>\n';
+ tempstring = tempstring + "\n\n";
+
+ tempstring = tempstring + 'int main() {\n';
+ tempstring = tempstring + ' int i = 0;\n';
+ tempstring = tempstring + ' FILE* output;\n';
+ tempstring = tempstring + ' output = fopen("volk_tables.h", "w");\n';
+ tempstring = tempstring + ' fprintf(output, "#ifndef INCLUDED_VOLK_TABLES_H\\n");\n';
+ 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, "#endif /*INCLUDED_VOLK_TABLES_H*/\\n");\n';
+ tempstring = tempstring + ' fclose(output);\n'
+ tempstring = tempstring + '}\n';
+ return tempstring;
+
+
+
+
+
+
+
+
diff --git a/volk/lib/Makefile.am b/volk/lib/Makefile.am
index af655a1c5..4ffe97d7e 100644
--- a/volk/lib/Makefile.am
+++ b/volk/lib/Makefile.am
@@ -55,7 +55,9 @@ lib_LTLIBRARIES = \
libvolk_runtime.la
EXTRA_DIST = \
+ volk_mktables.c \
volk_rank_archs.h \
+ volk_proccpu_sim.c \
gcc_x86_cpuid.h
# ----------------------------------------------------------------
@@ -138,6 +140,7 @@ distclean-local:
rm -f volk_cpu_x86.c
rm -f volk_init.c
rm -f volk_init.h
+ rm -f volk_mktables.c
rm -f volk_proccpu_sim.c
rm -f volk_runtime.c
rm -f volk_tables.h