From cd0cc571d90fd2e0b8c9376ce07150db5f405fb7 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Sat, 16 Apr 2011 15:38:57 -0700 Subject: Volk: Compiles and runs with or without Orc installed. --- volk/include/volk/machines.xml | 16 ++++++++-------- volk/include/volk/make_each_machine_c.py | 10 +++++----- volk/include/volk/make_makefile_am.py | 7 ------- 3 files changed, 13 insertions(+), 20 deletions(-) (limited to 'volk/include') diff --git a/volk/include/volk/machines.xml b/volk/include/volk/machines.xml index 9bf838527..ad71da177 100644 --- a/volk/include/volk/machines.xml +++ b/volk/include/volk/machines.xml @@ -15,35 +15,35 @@ --> -generic orc 32|64 mmx sse sse2 +generic 32|64 mmx sse sse2 -generic orc 32|64 mmx sse sse2 sse3 +generic 32|64 mmx sse sse2 sse3 -generic orc 32|64 mmx sse sse2 sse3 ssse3 +generic 32|64 mmx sse sse2 sse3 ssse3 -generic orc 32|64 mmx sse sse2 sse3 sse4_a popcount +generic 32|64 mmx sse sse2 sse3 sse4_a popcount -generic orc 32|64 mmx sse sse2 sse3 ssse3 sse4_1 +generic 32|64 mmx sse sse2 sse3 ssse3 sse4_1 -generic orc 32|64 mmx sse sse2 sse3 ssse3 sse4_2 popcount +generic 32|64 mmx sse sse2 sse3 ssse3 sse4_2 popcount -generic orc 32|64 mmx sse sse2 sse3 ssse3 sse4_2 popcount avx +generic 32|64 mmx sse sse2 sse3 ssse3 sse4_2 popcount avx -generic orc altivec +generic altivec diff --git a/volk/include/volk/make_each_machine_c.py b/volk/include/volk/make_each_machine_c.py index 4efbe9e8c..94d6d7789 100644 --- a/volk/include/volk/make_each_machine_c.py +++ b/volk/include/volk/make_each_machine_c.py @@ -46,12 +46,12 @@ def make_each_machine_c(machine_name, archs, functions, fcountlist, taglist): tags_counter = 0 for arch_list in fcountlist[i]: - ok = True + tempstring += "#if " for arch in arch_list: - if arch.swapcase() not in archs: - ok = False - if ok: - tempstring += " " + functions[i] + "_" + str(taglist[i][tags_counter]) + ",\n" + tempstring += "defined(LV_HAVE_" + arch + ") && " + tempstring = strip_trailing(tempstring, " && ") + tempstring += "\n " + functions[i] + "_" + str(taglist[i][tags_counter]) + ",\n" + tempstring += "#endif\n" tags_counter += 1 tempstring = strip_trailing(tempstring, ",") diff --git a/volk/include/volk/make_makefile_am.py b/volk/include/volk/make_makefile_am.py index eaff7f3c8..c73730859 100644 --- a/volk/include/volk/make_makefile_am.py +++ b/volk/include/volk/make_makefile_am.py @@ -82,13 +82,6 @@ noinst_LTLIBRARIES = tempstring += "\nnoinst_LTLIBRARIES += libvolk_" + machine_name + ".la " tempstring += "\nlibvolk_la_LIBADD += libvolk_" + machine_name + ".la\n" tempstring += "libvolk_la_CPPFLAGS += -DLV_MACHINE_" + machine_name.swapcase() + " \n" - #tempstring += "if LV_HAVE_ORC\n" - #tempstring += "libvolk_" + machine_name + "_la_LIBADD = $(volk_orc_LIBADD)\n" - #tempstring += "libvolk_" + machine_name + "_la_LDFLAGS = $(volk_orc_LDFLAGS)\n" - #tempstring += "else\n" - #tempstring += "libvolk_" + machine_name + "_la_LIBADD = \n" - #tempstring += "libvolk_" + machine_name + "_la_LDFLAGS = \n" - #tempstring += "endif\n" tempstring += "endif\n" -- cgit