summaryrefslogtreecommitdiff
path: root/volk
diff options
context:
space:
mode:
authorNick Foster2011-03-09 17:30:02 -0800
committerNick Foster2011-03-09 18:12:52 -0800
commitcef9e33e01e946d82564f517de501cafcb5b1f32 (patch)
tree61bce46d66121735c844faa3da84c7e4830e1242 /volk
parent26c81b79e28f3d4d9a5eb5b5a56338371ff118ce (diff)
downloadgnuradio-cef9e33e01e946d82564f517de501cafcb5b1f32.tar.gz
gnuradio-cef9e33e01e946d82564f517de501cafcb5b1f32.tar.bz2
gnuradio-cef9e33e01e946d82564f517de501cafcb5b1f32.zip
Volk: first steps to conditional compilation/multiple obj files.
Diffstat (limited to 'volk')
-rw-r--r--volk/Makefile.common2
-rw-r--r--volk/configure.ac1
-rw-r--r--volk/include/volk/Makefile.am6
-rw-r--r--volk/include/volk/archs.xml8
-rw-r--r--volk/include/volk/make_c.py6
-rw-r--r--volk/include/volk/make_environment_init_c.py5
-rw-r--r--volk/include/volk/make_h.py1
-rw-r--r--volk/include/volk/make_init_c.py4
-rw-r--r--volk/include/volk/make_registry.py15
-rw-r--r--volk/include/volk/make_runtime.py1
-rw-r--r--volk/include/volk/make_runtime_c.py7
-rw-r--r--volk/include/volk/make_set_simd.py18
-rw-r--r--volk/include/volk/volk_16i_branch_4_state_8_a16.h4
-rw-r--r--volk/include/volk/volk_16i_convert_8i_a16.h2
-rw-r--r--volk/include/volk/volk_16i_convert_8i_u.h2
-rw-r--r--volk/include/volk/volk_16i_max_star_16i_a16.h4
-rw-r--r--volk/include/volk/volk_16i_max_star_horizontal_16i_a16.h4
-rw-r--r--volk/include/volk/volk_16i_permute_and_scalar_add_a16.h4
-rw-r--r--volk/include/volk/volk_16i_s32f_convert_32f_a16.h6
-rw-r--r--volk/include/volk/volk_16i_s32f_convert_32f_u.h6
-rw-r--r--volk/include/volk/volk_16i_x4_quad_max_star_16i_a16.h4
-rw-r--r--volk/include/volk/volk_16i_x5_add_quad_16i_x4_a16.h4
-rw-r--r--volk/include/volk/volk_16ic_deinterleave_16i_x2_a16.h8
-rw-r--r--volk/include/volk/volk_16ic_deinterleave_real_16i_a16.h6
-rw-r--r--volk/include/volk/volk_16ic_deinterleave_real_8i_a16.h6
-rw-r--r--volk/include/volk/volk_16ic_magnitude_16i_a16.h8
-rw-r--r--volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a16.h6
-rw-r--r--volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a16.h6
-rw-r--r--volk/include/volk/volk_16ic_s32f_magnitude_32f_a16.h8
-rw-r--r--volk/include/volk/volk_16u_byteswap_a16.h6
-rw-r--r--volk/include/volk/volk_32f_accumulator_s32f_a16.h4
-rw-r--r--volk/include/volk/volk_32f_convert_64f_a16.h2
-rw-r--r--volk/include/volk/volk_32f_convert_64f_u.h2
-rw-r--r--volk/include/volk/volk_32f_index_max_16u_a16.h6
-rw-r--r--volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a16.h4
-rw-r--r--volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a16.h4
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_16i_a16.h4
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_16i_u.h4
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_32i_a16.h4
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_32i_u.h4
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_8i_a16.h4
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_8i_u.h4
-rw-r--r--volk/include/volk/volk_32f_s32f_normalize_a16.h6
-rw-r--r--volk/include/volk/volk_32f_s32f_power_32f_a16.h14
-rw-r--r--volk/include/volk/volk_32f_s32f_stddev_32f_a16.h6
-rw-r--r--volk/include/volk/volk_32f_sqrt_32f_a16.h6
-rw-r--r--volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a16.h6
-rw-r--r--volk/include/volk/volk_32f_x2_add_32f_a16.h6
-rw-r--r--volk/include/volk/volk_32f_x2_divide_32f_a16.h6
-rw-r--r--volk/include/volk/volk_32f_x2_dot_prod_32f_a16.h8
-rw-r--r--volk/include/volk/volk_32f_x2_dot_prod_32f_u.h8
-rw-r--r--volk/include/volk/volk_32f_x2_interleave_32fc_a16.h4
-rw-r--r--volk/include/volk/volk_32f_x2_max_32f_a16.h6
-rw-r--r--volk/include/volk/volk_32f_x2_min_32f_a16.h6
-rw-r--r--volk/include/volk/volk_32f_x2_multiply_32f_a16.h6
-rw-r--r--volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a16.h6
-rw-r--r--volk/include/volk/volk_32f_x2_subtract_32f_a16.h6
-rw-r--r--volk/include/volk/volk_32f_x3_sum_of_poly_32f_a16.h4
-rw-r--r--volk/include/volk/volk_32fc_32f_multiply_32fc_a16.h6
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_32f_x2_a16.h4
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_64f_x2_a16.h4
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_real_32f_a16.h4
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_real_64f_a16.h4
-rw-r--r--volk/include/volk/volk_32fc_index_max_16u_a16.h4
-rw-r--r--volk/include/volk/volk_32fc_magnitude_32f_a16.h8
-rw-r--r--volk/include/volk/volk_32fc_s32f_atan2_32f_a16.h14
-rw-r--r--volk/include/volk/volk_32fc_s32f_deinterleave_real_16i_a16.h4
-rw-r--r--volk/include/volk/volk_32fc_s32f_magnitude_16i_a16.h8
-rw-r--r--volk/include/volk/volk_32fc_s32f_power_32fc_a16.h8
-rw-r--r--volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a16.h8
-rw-r--r--volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a16.h8
-rw-r--r--volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a16.h6
-rw-r--r--volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h4
-rw-r--r--volk/include/volk/volk_32fc_x2_dot_prod_32fc_a16.h10
-rw-r--r--volk/include/volk/volk_32fc_x2_multiply_32fc_a16.h6
-rw-r--r--volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a16.h4
-rw-r--r--volk/include/volk/volk_32fc_x2_square_dist_32f_a16.h4
-rw-r--r--volk/include/volk/volk_32i_s32f_convert_32f_a16.h4
-rw-r--r--volk/include/volk/volk_32i_s32f_convert_32f_u.h4
-rw-r--r--volk/include/volk/volk_32i_x2_and_32i_a16.h6
-rw-r--r--volk/include/volk/volk_32i_x2_or_32i_a16.h6
-rw-r--r--volk/include/volk/volk_32u_byteswap_a16.h4
-rw-r--r--volk/include/volk/volk_32u_popcnt_a16.h4
-rw-r--r--volk/include/volk/volk_64f_convert_32f_a16.h2
-rw-r--r--volk/include/volk/volk_64f_convert_32f_u.h2
-rw-r--r--volk/include/volk/volk_64f_x2_max_64f_a16.h4
-rw-r--r--volk/include/volk/volk_64f_x2_min_64f_a16.h4
-rw-r--r--volk/include/volk/volk_64u_byteswap_a16.h4
-rw-r--r--volk/include/volk/volk_64u_popcnt_a16.h4
-rw-r--r--volk/include/volk/volk_8i_convert_16i_a16.h6
-rw-r--r--volk/include/volk/volk_8i_convert_16i_u.h4
-rw-r--r--volk/include/volk/volk_8i_s32f_convert_32f_a16.h6
-rw-r--r--volk/include/volk/volk_8i_s32f_convert_32f_u.h4
-rw-r--r--volk/include/volk/volk_8ic_deinterleave_16i_x2_a16.h4
-rw-r--r--volk/include/volk/volk_8ic_deinterleave_real_16i_a16.h4
-rw-r--r--volk/include/volk/volk_8ic_deinterleave_real_8i_a16.h4
-rw-r--r--volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a16.h6
-rw-r--r--volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a16.h6
-rw-r--r--volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a16.h4
-rw-r--r--volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a16.h4
-rw-r--r--volk/include/volk/volk_common.h2
-rwxr-xr-xvolk/include/volk/volk_register.py11
-rw-r--r--volk/lib/Makefile.am81
103 files changed, 287 insertions, 343 deletions
diff --git a/volk/Makefile.common b/volk/Makefile.common
index 1b7fb6831..c929fe579 100644
--- a/volk/Makefile.common
+++ b/volk/Makefile.common
@@ -39,7 +39,7 @@ SWIGPYTHONFLAGS = -fvirtual -python -modern
SWIGGRFLAGS = -I$(GNURADIO_CORE_INCLUDEDIR)/swig -I$(GNURADIO_CORE_INCLUDEDIR)
# standard defins and includes
-STD_DEFINES_AND_INCLUDES=-I$(top_srcdir)/include -I$(top_srcdir)/lib $(GNURADIO_CORE_CPPFLAGS)
+STD_DEFINES_AND_INCLUDES=-I$(top_srcdir)/include -I$(top_srcdir)/lib
# Don't assume that make predefines $(RM), because BSD make does
# not. We define it now in configure.ac using AM_PATH_PROG, but now
diff --git a/volk/configure.ac b/volk/configure.ac
index c493adad6..fa3a90c7f 100644
--- a/volk/configure.ac
+++ b/volk/configure.ac
@@ -59,7 +59,6 @@ dnl AX_BOOST_TEST_EXEC_MONITOR
AX_BOOST_UNIT_TEST_FRAMEWORK
dnl AX_BOOST_WSERIALIZATION
-AC_CONFIG_HEADERS([volk_config.h])
LV_SET_SIMD_FLAGS
AC_CONFIG_FILES([\
diff --git a/volk/include/volk/Makefile.am b/volk/include/volk/Makefile.am
index 23822b229..caf707138 100644
--- a/volk/include/volk/Makefile.am
+++ b/volk/include/volk/Makefile.am
@@ -26,7 +26,6 @@ AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_CPPFLAGS) \
volkincludedir = $(prefix)/include/volk
BUILT_SOURCES: \
- volk_config.h \
volk_tables.h
volkinclude_HEADERS = \
@@ -34,7 +33,6 @@ volkinclude_HEADERS = \
volk_common.h \
volk_config_fixed.h \
volk_runtime.h \
- volk_config.h \
volk_tables.h \
volk_typedefs.h \
volk_registry.h \
@@ -143,12 +141,8 @@ volk_mktables$(EXEEXT): $(VOLK_MKTABLES_SOURCES)
volk_tables.h: volk_mktables$(EXEEXT)
./volk_mktables$(EXEEXT)
-volk_config.h: $(top_builddir)/volk_config.h
- cp $^ $(top_builddir)/include/volk/$@
-
distclean-local:
rm -f volk_config_fixed.h
- rm -f volk_config.h
rm -f volk_cpu.h
rm -f volk.h
rm -f volk_registry.h
diff --git a/volk/include/volk/archs.xml b/volk/include/volk/archs.xml
index 70d55a8be..2547df590 100644
--- a/volk/include/volk/archs.xml
+++ b/volk/include/volk/archs.xml
@@ -126,4 +126,12 @@
<flag>msse4.2</flag>
</arch>
+<arch name="avx" type="x86">
+ <val>1</val>
+ <op>1</op>
+ <reg>c</reg>
+ <shift>28</shift>
+ <flag>mavx</flag>
+</arch>
+
</grammar>
diff --git a/volk/include/volk/make_c.py b/volk/include/volk/make_c.py
index f845ce7d4..89bf9ea1a 100644
--- a/volk/include/volk/make_c.py
+++ b/volk/include/volk/make_c.py
@@ -30,12 +30,12 @@ def make_c(funclist, taglist, arched_arglist, retlist, my_arglist, fcountlist) :
tags_counter = 0;
for arch_list in fcountlist[i]:
- tempstring = tempstring + "#if LV_HAVE_"
+ tempstring = tempstring + "#if defined(LV_HAVE_"
for ind in range(len(arch_list)):
- tempstring = tempstring + arch_list[ind];
+ tempstring = tempstring + arch_list[ind] + ")";
if ind < len(arch_list) - 1:
- tempstring = tempstring + " && LV_HAVE_";
+ tempstring = tempstring + " && defined(LV_HAVE_";
tempstring = tempstring + "\n " + funclist[i] + "_" + str(taglist[i][tags_counter]) + ",\n#endif\n";
tags_counter = tags_counter + 1;
diff --git a/volk/include/volk/make_environment_init_c.py b/volk/include/volk/make_environment_init_c.py
index e06c7f246..263d5bcd1 100644
--- a/volk/include/volk/make_environment_init_c.py
+++ b/volk/include/volk/make_environment_init_c.py
@@ -4,13 +4,12 @@ def make_environment_init_c(dom) :
tempstring = "";
tempstring = tempstring + "/*this file is auto_generated by volk_register.py*/\n\n";
tempstring = tempstring + "#include<volk/volk_environment_init.h>\n"
- tempstring = tempstring + "#include<volk/volk_config.h>\n"
for domarch in dom:
arch = str(domarch.attributes["name"].value);
incs = domarch.getElementsByTagName("include");
for inc in incs:
my_inc = str(inc.firstChild.data);
- tempstring = tempstring + "#if LV_HAVE_" + arch.swapcase() + "\n";
+ tempstring = tempstring + "#ifdef LV_HAVE_" + arch.swapcase() + "\n";
tempstring = tempstring + "#include<" + my_inc + ">\n";
tempstring = tempstring + "#endif\n"
tempstring = tempstring + '\n\n';
@@ -21,7 +20,7 @@ def make_environment_init_c(dom) :
envs = domarch.getElementsByTagName("environment");
for env in envs:
cmd = str(env.firstChild.data);
- tempstring = tempstring + "#if LV_HAVE_" + arch.swapcase() + "\n";
+ tempstring = tempstring + "#ifdef LV_HAVE_" + arch.swapcase() + "\n";
tempstring = tempstring + " " + cmd + "\n";
tempstring = tempstring + "#endif\n"
diff --git a/volk/include/volk/make_h.py b/volk/include/volk/make_h.py
index 81d9ad401..6aea441b7 100644
--- a/volk/include/volk/make_h.py
+++ b/volk/include/volk/make_h.py
@@ -11,7 +11,6 @@ def make_h(funclist, arched_arglist, retlist) :
tempstring = tempstring + '\n#define INCLUDED_VOLK_H';
tempstring = tempstring + '\n\n#include<inttypes.h>\n';
tempstring = tempstring + '#include<volk/volk_complex.h>\n';
- tempstring = tempstring + '#include<volk/volk_config.h>\n';
tempstring = tempstring + '#include<volk/volk_config_fixed.h>\n';
tempstring = tempstring + '#include<volk/volk_environment_init.h>\n'
tempstring = tempstring + emit_prolog()
diff --git a/volk/include/volk/make_init_c.py b/volk/include/volk/make_init_c.py
index 330e19592..0a7010cd6 100644
--- a/volk/include/volk/make_init_c.py
+++ b/volk/include/volk/make_init_c.py
@@ -12,7 +12,7 @@ def make_init_c(funclist, dom) :
incs = domarch.getElementsByTagName("include");
for inc in incs:
my_inc = str(inc.firstChild.data);
- tempstring = tempstring + "#if LV_HAVE_" + arch.swapcase() + "\n";
+ tempstring = tempstring + "#ifdef LV_HAVE_" + arch.swapcase() + "\n";
tempstring = tempstring + "#include<" + my_inc + ">\n";
tempstring = tempstring + "#endif\n"
tempstring = tempstring + '\n\n';
@@ -32,7 +32,7 @@ def make_init_c(funclist, dom) :
for env in envs:
cmd = str(env.firstChild.data);
tempstring = tempstring + " if(volk_cpu.has_" + arch + "()){\n";
- tempstring = tempstring + "#if LV_HAVE_" + arch.swapcase() + "\n";
+ tempstring = tempstring + "#ifdef LV_HAVE_" + arch.swapcase() + "\n";
tempstring = tempstring + " " + cmd + "\n";
tempstring = tempstring + "#endif\n"
tempstring = tempstring + " }\n";
diff --git a/volk/include/volk/make_registry.py b/volk/include/volk/make_registry.py
index 2bc8bda28..7fbe9a8b0 100644
--- a/volk/include/volk/make_registry.py
+++ b/volk/include/volk/make_registry.py
@@ -7,7 +7,6 @@ def make_registry(dom, funclist, fcountlist, taglist) :
tempstring = tempstring + "/*this file is auto_generated by volk_register.py*/\n\n";
tempstring = tempstring +'\n#ifndef INCLUDED_VOLK_REGISTRY_H';
tempstring = tempstring +'\n#define INCLUDED_VOLK_REGISTRY_H\n\n';
- tempstring = tempstring +'#include<volk/volk_config.h>\n';
tempstring = tempstring +'#include<volk/volk_config_fixed.h>\n';
tempstring = tempstring + emit_prolog();
tempstring = tempstring + '\n'
@@ -17,7 +16,7 @@ def make_registry(dom, funclist, fcountlist, taglist) :
for domarch in dom:
arch = str(domarch.attributes["name"].value);
- tempstring = tempstring +"#if LV_HAVE_" + arch.swapcase() + "\n";
+ tempstring = tempstring +"#ifdef LV_HAVE_" + arch.swapcase() + "\n";
tempstring = tempstring +"#define LV_" + arch.swapcase() + "_CNT 1\n";
tempstring = tempstring +"#else\n";
tempstring = tempstring +"#define LV_" + arch.swapcase() + "_CNT 0\n";
@@ -30,12 +29,12 @@ def make_registry(dom, funclist, fcountlist, taglist) :
tags_counter = 0;
for arch_list in fcountlist[i]:
- tempstring = tempstring + "#if LV_HAVE_"
+ tempstring = tempstring + "#if defined(LV_HAVE_"
for ind in range(len(arch_list)):
- tempstring = tempstring + arch_list[ind];
+ tempstring = tempstring + arch_list[ind] + ")";
if ind < len(arch_list) - 1:
- tempstring = tempstring + " && LV_HAVE_";
+ tempstring = tempstring + " && defined(LV_HAVE_";
tempstring = tempstring + "\n \"" + str(taglist[i][tags_counter]) + "\",\n#endif\n";
tags_counter = tags_counter + 1;
@@ -59,11 +58,11 @@ def make_registry(dom, funclist, fcountlist, taglist) :
tempstring = tempstring[0:lindex] + string.replace(tempstring[lindex:len(tempstring)], " + ", "");
tempstring = tempstring + ",\n"
for arch_list in fcount:
- tempstring = tempstring + "#if LV_HAVE_"
+ tempstring = tempstring + "#if defined(LV_HAVE_"
for ind in range(len(arch_list)):
- tempstring = tempstring + arch_list[ind];
+ tempstring = tempstring + arch_list[ind] + ")";
if ind < len(arch_list) - 1:
- tempstring = tempstring + " && LV_HAVE_";
+ tempstring = tempstring + " && defined(LV_HAVE_";
tempstring = tempstring + "\n"
tempstring = tempstring + " (1 << LV_"
for ind in range(len(arch_list)):
diff --git a/volk/include/volk/make_runtime.py b/volk/include/volk/make_runtime.py
index 91e703b24..d468487d7 100644
--- a/volk/include/volk/make_runtime.py
+++ b/volk/include/volk/make_runtime.py
@@ -11,7 +11,6 @@ def make_runtime(funclist, arglist) :
tempstring = tempstring + '\n#ifndef INCLUDED_VOLK_RUNTIME';
tempstring = tempstring + '\n#define INCLUDED_VOLK_RUNTIME';
tempstring = tempstring + '\n\n#include<volk/volk_typedefs.h>\n';
- tempstring = tempstring + '#include<volk/volk_config.h>\n';
tempstring = tempstring + '#include<volk/volk_config_fixed.h>\n';
tempstring = tempstring + '#include<volk/volk_complex.h>\n';
tempstring = tempstring + emit_prolog();
diff --git a/volk/include/volk/make_runtime_c.py b/volk/include/volk/make_runtime_c.py
index 0519dddf8..99cdf395f 100644
--- a/volk/include/volk/make_runtime_c.py
+++ b/volk/include/volk/make_runtime_c.py
@@ -9,7 +9,6 @@ def make_runtime_c(funclist, taglist, arched_arglist, retlist, my_arglist, fcoun
tempstring = tempstring + '\n\n#include<volk/volk_runtime.h>\n';
- tempstring = tempstring + '#include<volk/volk_config.h>\n';
tempstring = tempstring + "#include<volk/volk_config_fixed.h>\n";
tempstring = tempstring + '#include<volk/volk_cpu.h>\n';
tempstring = tempstring + '#include<volk_init.h>\n';
@@ -24,12 +23,12 @@ def make_runtime_c(funclist, taglist, arched_arglist, retlist, my_arglist, fcoun
tags_counter = 0;
for arch_list in fcountlist[i]:
- tempstring = tempstring + "#if LV_HAVE_"
+ tempstring = tempstring + "#if defined(LV_HAVE_"
for ind in range(len(arch_list)):
- tempstring = tempstring + arch_list[ind];
+ tempstring = tempstring + arch_list[ind] + ")";
if ind < len(arch_list) - 1:
- tempstring = tempstring + " && LV_HAVE_";
+ tempstring = tempstring + " && defined(LV_HAVE_";
tempstring = tempstring + "\n " + funclist[i] + "_" + str(taglist[i][tags_counter]) + ",\n#endif\n";
tags_counter = tags_counter + 1;
diff --git a/volk/include/volk/make_set_simd.py b/volk/include/volk/make_set_simd.py
index 08b0f0937..da631d217 100644
--- a/volk/include/volk/make_set_simd.py
+++ b/volk/include/volk/make_set_simd.py
@@ -54,7 +54,7 @@ def make_set_simd(dom) :
tempstring = tempstring + " [cf_with_lv_arch=\"\"])\n";
if str(domarch.attributes["type"].value) == "all":
arch = str(domarch.attributes["name"].value);
- tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [always set "+ arch + "!])\n";
+ tempstring = tempstring + " AC_DEFINE(LV_MAKE_" + arch.swapcase() + ", 1, [always set "+ arch + "!])\n";
tempstring = tempstring + " ADDONS=\"\"\n";
tempstring = tempstring + " BUILT_ARCHS=\"\"\n";
#tempstring = tempstring + " _MAKE_FAKE_PROCCPU\n";
@@ -68,11 +68,11 @@ def make_set_simd(dom) :
tempstring = tempstring + " OVERRULE_FLAG=\"yes\"\n";
tempstring = tempstring + " fi\n";
- tempstring = tempstring +'\ndnl init LV_HAVE_XXX and then try to add archs\n';
+ tempstring = tempstring +'\ndnl init LV_MAKE_XXX and then try to add archs\n';
for domarch in dom:
if str(domarch.attributes["type"].value) != "all":
arch = str(domarch.attributes["name"].value);
- tempstring = tempstring + " LV_HAVE_" + arch.swapcase() + "=no\n";
+ tempstring = tempstring + " LV_MAKE_" + arch.swapcase() + "=no\n";
for domarch in dom:
arch = str(domarch.attributes["name"].value);
@@ -121,10 +121,9 @@ def make_set_simd(dom) :
tempstring = tempstring + " if test \"$indCC\" == \"yes\" && test \"$indCXX\" == \"yes\" && test \"$indLV_ARCH\" == \"yes\"; then\n"
- tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [" + arch + " flag set])\n";
- tempstring = tempstring + " ADDONS=\"${ADDONS} -" + flag + "\"\n";
+ #tempstring = tempstring + " ADDONS=\"${ADDONS} -" + flag + "\"\n";
tempstring = tempstring + " BUILT_ARCHS=\"${BUILT_ARCHS} " + arch + "\"\n";
- tempstring = tempstring + " LV_HAVE_" + arch.swapcase() + "=yes\n";
+ tempstring = tempstring + " LV_MAKE_" + arch.swapcase() + "=yes\n";
tempstring = tempstring + " fi\n"
tempstring = tempstring + " indCC=no\n"
tempstring = tempstring + " indCXX=no\n"
@@ -140,13 +139,16 @@ def make_set_simd(dom) :
tempstring = tempstring + " indLV_ARCH=no\n"
tempstring = tempstring + " fi\n"
tempstring = tempstring + " if test \"$indLV_ARCH\" == \"yes\"; then\n"
- tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [" + arch + " flag set])\n";
- tempstring = tempstring + " LV_HAVE_" + arch.swapcase() + "=yes\n";
+ tempstring = tempstring + " LV_MAKE_" + arch.swapcase() + "=yes\n";
tempstring = tempstring + " BUILT_ARCHS=\"${BUILT_ARCHS} " + arch + "\"\n";
tempstring = tempstring + " fi\n"
tempstring = tempstring + " indLV_ARCH=no\n"
+ for domarch in dom:
+ arch = str(domarch.attributes["name"].value);
+ tempstring = tempstring + " AM_CONDITIONAL(LV_MAKE_" + arch.swapcase() + ", test \"$LV_MAKE_" + arch.swapcase() + "\" == \"yes\")\n";
+
tempstring = tempstring + " LV_CXXFLAGS=\"${LV_CXXFLAGS} ${ADDONS}\"\n"
tempstring = tempstring + "])\n"
diff --git a/volk/include/volk/volk_16i_branch_4_state_8_a16.h b/volk/include/volk/volk_16i_branch_4_state_8_a16.h
index 3437c1a6b..5eb03b346 100644
--- a/volk/include/volk/volk_16i_branch_4_state_8_a16.h
+++ b/volk/include/volk/volk_16i_branch_4_state_8_a16.h
@@ -8,7 +8,7 @@
-#if LV_HAVE_SSSE3
+#ifdef LV_HAVE_SSSE3
#include<xmmintrin.h>
#include<emmintrin.h>
@@ -137,7 +137,7 @@ static inline void volk_16i_branch_4_state_8_a16_ssse3(short* target, short* s
#endif /*LV_HAVE_SSEs*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_16i_branch_4_state_8_a16_generic(short* target, short* src0, char** permuters, short* cntl2, short* cntl3, short* scalars) {
int i = 0;
diff --git a/volk/include/volk/volk_16i_convert_8i_a16.h b/volk/include/volk/volk_16i_convert_8i_a16.h
index 73e45ad63..4d51e5903 100644
--- a/volk/include/volk/volk_16i_convert_8i_a16.h
+++ b/volk/include/volk/volk_16i_convert_8i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Converts the input 16 bit integer data into 8 bit integer data
diff --git a/volk/include/volk/volk_16i_convert_8i_u.h b/volk/include/volk/volk_16i_convert_8i_u.h
index 5fc792b56..df1084fe0 100644
--- a/volk/include/volk/volk_16i_convert_8i_u.h
+++ b/volk/include/volk/volk_16i_convert_8i_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Converts the input 16 bit integer data into 8 bit integer data
diff --git a/volk/include/volk/volk_16i_max_star_16i_a16.h b/volk/include/volk/volk_16i_max_star_16i_a16.h
index ff57bd2a1..063444279 100644
--- a/volk/include/volk/volk_16i_max_star_16i_a16.h
+++ b/volk/include/volk/volk_16i_max_star_16i_a16.h
@@ -6,7 +6,7 @@
#include<stdio.h>
-#if LV_HAVE_SSSE3
+#ifdef LV_HAVE_SSSE3
#include<xmmintrin.h>
#include<emmintrin.h>
@@ -85,7 +85,7 @@ static inline void volk_16i_max_star_16i_a16_ssse3(short* target, short* src0,
#endif /*LV_HAVE_SSSE3*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_16i_max_star_16i_a16_generic(short* target, short* src0, unsigned int num_bytes) {
diff --git a/volk/include/volk/volk_16i_max_star_horizontal_16i_a16.h b/volk/include/volk/volk_16i_max_star_horizontal_16i_a16.h
index 695e08dbf..ece6adb40 100644
--- a/volk/include/volk/volk_16i_max_star_horizontal_16i_a16.h
+++ b/volk/include/volk/volk_16i_max_star_horizontal_16i_a16.h
@@ -6,7 +6,7 @@
#include<stdio.h>
-#if LV_HAVE_SSSE3
+#ifdef LV_HAVE_SSSE3
#include<xmmintrin.h>
#include<emmintrin.h>
@@ -109,7 +109,7 @@ static inline void volk_16i_max_star_horizontal_16i_a16_ssse3(int16_t* target,
#endif /*LV_HAVE_SSSE3*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_16i_max_star_horizontal_16i_a16_generic(int16_t* target, int16_t* src0, unsigned int num_bytes) {
int i = 0;
diff --git a/volk/include/volk/volk_16i_permute_and_scalar_add_a16.h b/volk/include/volk/volk_16i_permute_and_scalar_add_a16.h
index e52a949fb..ae1a18157 100644
--- a/volk/include/volk/volk_16i_permute_and_scalar_add_a16.h
+++ b/volk/include/volk/volk_16i_permute_and_scalar_add_a16.h
@@ -8,7 +8,7 @@
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include<xmmintrin.h>
#include<emmintrin.h>
@@ -116,7 +116,7 @@ static inline void volk_16i_permute_and_scalar_add_a16_sse2(short* target, sho
#endif /*LV_HAVE_SSEs*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_16i_permute_and_scalar_add_a16_generic(short* target, short* src0, short* permute_indexes, short* cntl0, short* cntl1, short* cntl2, short* cntl3, short* scalars, unsigned int num_bytes) {
int i = 0;
diff --git a/volk/include/volk/volk_16i_s32f_convert_32f_a16.h b/volk/include/volk/volk_16i_s32f_convert_32f_a16.h
index 83fd26ff9..09bc252f0 100644
--- a/volk/include/volk/volk_16i_s32f_convert_32f_a16.h
+++ b/volk/include/volk/volk_16i_s32f_convert_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
@@ -58,7 +58,7 @@ static inline void volk_16i_s32f_convert_32f_a16_sse4_1(float* outputVector, con
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
@@ -94,7 +94,7 @@ static inline void volk_16i_s32f_convert_32f_a16_sse(float* outputVector, const
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the input 16 bit integer data into floating point data, and divides the each floating point output data point by the scalar value
\param inputVector The 16 bit input data buffer
diff --git a/volk/include/volk/volk_16i_s32f_convert_32f_u.h b/volk/include/volk/volk_16i_s32f_convert_32f_u.h
index 8f0dd0083..d34acc091 100644
--- a/volk/include/volk/volk_16i_s32f_convert_32f_u.h
+++ b/volk/include/volk/volk_16i_s32f_convert_32f_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
@@ -59,7 +59,7 @@ static inline void volk_16i_s32f_convert_32f_u_sse4_1(float* outputVector, const
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
@@ -96,7 +96,7 @@ static inline void volk_16i_s32f_convert_32f_u_sse(float* outputVector, const in
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the input 16 bit integer data into floating point data, and divides the each floating point output data point by the scalar value
\param inputVector The 16 bit input data buffer
diff --git a/volk/include/volk/volk_16i_x4_quad_max_star_16i_a16.h b/volk/include/volk/volk_16i_x4_quad_max_star_16i_a16.h
index e4ec5ab4e..94e5eb986 100644
--- a/volk/include/volk/volk_16i_x4_quad_max_star_16i_a16.h
+++ b/volk/include/volk/volk_16i_x4_quad_max_star_16i_a16.h
@@ -9,7 +9,7 @@
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include<emmintrin.h>
@@ -167,7 +167,7 @@ static inline void volk_16i_x4_quad_max_star_16i_a16_sse2(short* target, short*
#endif /*LV_HAVE_SSE2*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_16i_x4_quad_max_star_16i_a16_generic(short* target, short* src0, short* src1, short* src2, short* src3, unsigned int num_bytes) {
int i = 0;
diff --git a/volk/include/volk/volk_16i_x5_add_quad_16i_x4_a16.h b/volk/include/volk/volk_16i_x5_add_quad_16i_x4_a16.h
index 5744ca3a6..c157bf64a 100644
--- a/volk/include/volk/volk_16i_x5_add_quad_16i_x4_a16.h
+++ b/volk/include/volk/volk_16i_x5_add_quad_16i_x4_a16.h
@@ -9,7 +9,7 @@
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include<xmmintrin.h>
#include<emmintrin.h>
@@ -111,7 +111,7 @@ static inline void volk_16i_x5_add_quad_16i_x4_a16_sse2(short* target0, short*
#endif /*LV_HAVE_SSE2*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_16i_x5_add_quad_16i_x4_a16_generic(short* target0, short* target1, short* target2, short* target3, short* src0, short* src1, short* src2, short* src3, short* src4, unsigned int num_bytes) {
diff --git a/volk/include/volk/volk_16ic_deinterleave_16i_x2_a16.h b/volk/include/volk/volk_16ic_deinterleave_16i_x2_a16.h
index 7e08bf182..227a92303 100644
--- a/volk/include/volk/volk_16ic_deinterleave_16i_x2_a16.h
+++ b/volk/include/volk/volk_16ic_deinterleave_16i_x2_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSSE3
+#ifdef LV_HAVE_SSSE3
#include <tmmintrin.h>
/*!
\brief Deinterleaves the complex 16 bit vector into I & Q vector data
@@ -52,7 +52,7 @@ static inline void volk_16ic_deinterleave_16i_x2_a16_ssse3(int16_t* iBuffer, int
}
#endif /* LV_HAVE_SSSE3 */
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Deinterleaves the complex 16 bit vector into I & Q vector data
@@ -120,7 +120,7 @@ static inline void volk_16ic_deinterleave_16i_x2_a16_sse2(int16_t* iBuffer, int1
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 16 bit vector into I & Q vector data
\param complexVector The complex input vector
@@ -140,7 +140,7 @@ static inline void volk_16ic_deinterleave_16i_x2_a16_generic(int16_t* iBuffer, i
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Deinterleaves the complex 16 bit vector into I & Q vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_16ic_deinterleave_real_16i_a16.h b/volk/include/volk/volk_16ic_deinterleave_real_16i_a16.h
index 388c00592..35d0e8be2 100644
--- a/volk/include/volk/volk_16ic_deinterleave_real_16i_a16.h
+++ b/volk/include/volk/volk_16ic_deinterleave_real_16i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSSE3
+#ifdef LV_HAVE_SSSE3
#include <tmmintrin.h>
/*!
\brief Deinterleaves the complex 16 bit vector into I vector data
@@ -47,7 +47,7 @@ static inline void volk_16ic_deinterleave_real_16i_a16_ssse3(int16_t* iBuffer, c
#endif /* LV_HAVE_SSSE3 */
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Deinterleaves the complex 16 bit vector into I vector data
@@ -96,7 +96,7 @@ static inline void volk_16ic_deinterleave_real_16i_a16_sse2(int16_t* iBuffer, co
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 16 bit vector into I vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_16ic_deinterleave_real_8i_a16.h b/volk/include/volk/volk_16ic_deinterleave_real_8i_a16.h
index 55a25702e..bdf5fc162 100644
--- a/volk/include/volk/volk_16ic_deinterleave_real_8i_a16.h
+++ b/volk/include/volk/volk_16ic_deinterleave_real_8i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSSE3
+#ifdef LV_HAVE_SSSE3
#include <tmmintrin.h>
/*!
\brief Deinterleaves the complex 16 bit vector into 8 bit I vector data
@@ -59,7 +59,7 @@ static inline void volk_16ic_deinterleave_real_8i_a16_ssse3(int8_t* iBuffer, con
}
#endif /* LV_HAVE_SSSE3 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 16 bit vector into 8 bit I vector data
\param complexVector The complex input vector
@@ -77,7 +77,7 @@ static inline void volk_16ic_deinterleave_real_8i_a16_generic(int8_t* iBuffer, c
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Deinterleaves the complex 16 bit vector into 8 bit I vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_16ic_magnitude_16i_a16.h b/volk/include/volk/volk_16ic_magnitude_16i_a16.h
index bdcace750..e75d54ec4 100644
--- a/volk/include/volk/volk_16ic_magnitude_16i_a16.h
+++ b/volk/include/volk/volk_16ic_magnitude_16i_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
@@ -76,7 +76,7 @@ static inline void volk_16ic_magnitude_16i_a16_sse3(int16_t* magnitudeVector, co
}
#endif /* LV_HAVE_SSE3 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
@@ -153,7 +153,7 @@ static inline void volk_16ic_magnitude_16i_a16_sse(int16_t* magnitudeVector, con
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
\param complexVector The vector containing the complex input values
@@ -173,7 +173,7 @@ static inline void volk_16ic_magnitude_16i_a16_generic(int16_t* magnitudeVector,
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC_DISABLED
+#ifdef LV_HAVE_ORC_DISABLED
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
\param complexVector The vector containing the complex input values
diff --git a/volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a16.h b/volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a16.h
index 606de2fc5..dcb2499fa 100644
--- a/volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a16.h
+++ b/volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Converts the complex 16 bit vector into floats,scales each data point, and deinterleaves into I & Q vector data
@@ -68,7 +68,7 @@ static inline void volk_16ic_s32f_deinterleave_32f_x2_a16_sse(float* iBuffer, fl
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the complex 16 bit vector into floats,scales each data point, and deinterleaves into I & Q vector data
\param complexVector The complex input vector
@@ -89,7 +89,7 @@ static inline void volk_16ic_s32f_deinterleave_32f_x2_a16_generic(float* iBuffer
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Converts the complex 16 bit vector into floats,scales each data point, and deinterleaves into I & Q vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a16.h b/volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a16.h
index 62331e496..f21fe77f8 100644
--- a/volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a16.h
+++ b/volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Deinterleaves the complex 16 bit vector into I float vector data
@@ -52,7 +52,7 @@ static inline void volk_16ic_s32f_deinterleave_real_32f_a16_sse4_1(float* iBuffe
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Deinterleaves the complex 16 bit vector into I float vector data
@@ -99,7 +99,7 @@ static inline void volk_16ic_s32f_deinterleave_real_32f_a16_sse(float* iBuffer,
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 16 bit vector into I float vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_16ic_s32f_magnitude_32f_a16.h b/volk/include/volk/volk_16ic_s32f_magnitude_32f_a16.h
index ae64efbeb..388d2ebcd 100644
--- a/volk/include/volk/volk_16ic_s32f_magnitude_32f_a16.h
+++ b/volk/include/volk/volk_16ic_s32f_magnitude_32f_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
@@ -70,7 +70,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a16_sse3(float* magnitudeVector,
}
#endif /* LV_HAVE_SSE3 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
@@ -140,7 +140,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a16_sse(float* magnitudeVector,
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
\param complexVector The vector containing the complex input values
@@ -161,7 +161,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a16_generic(float* magnitudeVect
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC_DISABLED
+#ifdef LV_HAVE_ORC_DISABLED
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
\param complexVector The vector containing the complex input values
diff --git a/volk/include/volk/volk_16u_byteswap_a16.h b/volk/include/volk/volk_16u_byteswap_a16.h
index c8128dbab..f393c05c5 100644
--- a/volk/include/volk/volk_16u_byteswap_a16.h
+++ b/volk/include/volk/volk_16u_byteswap_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
@@ -43,7 +43,7 @@ static inline void volk_16u_byteswap_a16_sse2(uint16_t* intsToSwap, unsigned int
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Byteswaps (in-place) an aligned vector of int16_t's.
\param intsToSwap The vector of data to byte swap
@@ -61,7 +61,7 @@ static inline void volk_16u_byteswap_a16_generic(uint16_t* intsToSwap, unsigned
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Byteswaps (in-place) an aligned vector of int16_t's.
\param intsToSwap The vector of data to byte swap
diff --git a/volk/include/volk/volk_32f_accumulator_s32f_a16.h b/volk/include/volk/volk_32f_accumulator_s32f_a16.h
index 4a3588e6d..6a85e066e 100644
--- a/volk/include/volk/volk_32f_accumulator_s32f_a16.h
+++ b/volk/include/volk/volk_32f_accumulator_s32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Accumulates the values in the input buffer
@@ -42,7 +42,7 @@ static inline void volk_32f_accumulator_s32f_a16_sse(float* result, const float*
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Accumulates the values in the input buffer
\param result The accumulated result
diff --git a/volk/include/volk/volk_32f_convert_64f_a16.h b/volk/include/volk/volk_32f_convert_64f_a16.h
index c303dc118..8ca83220b 100644
--- a/volk/include/volk/volk_32f_convert_64f_a16.h
+++ b/volk/include/volk/volk_32f_convert_64f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Converts the float values into double values
diff --git a/volk/include/volk/volk_32f_convert_64f_u.h b/volk/include/volk/volk_32f_convert_64f_u.h
index a825767de..387baa3b9 100644
--- a/volk/include/volk/volk_32f_convert_64f_u.h
+++ b/volk/include/volk/volk_32f_convert_64f_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Converts the float values into double values
diff --git a/volk/include/volk/volk_32f_index_max_16u_a16.h b/volk/include/volk/volk_32f_index_max_16u_a16.h
index d070e17d5..3934d2db7 100644
--- a/volk/include/volk/volk_32f_index_max_16u_a16.h
+++ b/volk/include/volk/volk_32f_index_max_16u_a16.h
@@ -5,7 +5,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include<smmintrin.h>
static inline void volk_32f_index_max_16u_a16_sse4_1(unsigned int* target, const float* src0, unsigned int num_points) {
@@ -63,7 +63,7 @@ static inline void volk_32f_index_max_16u_a16_sse4_1(unsigned int* target, const
#endif /*LV_HAVE_SSE4_1*/
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include<xmmintrin.h>
static inline void volk_32f_index_max_16u_a16_sse(unsigned int* target, const float* src0, unsigned int num_points) {
@@ -122,7 +122,7 @@ static inline void volk_32f_index_max_16u_a16_sse(unsigned int* target, const fl
#endif /*LV_HAVE_SSE*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32f_index_max_16u_a16_generic(unsigned int* target, const float* src0, unsigned int num_points) {
if(num_points > 0){
float max = src0[0];
diff --git a/volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a16.h b/volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a16.h
index ff4d5b19c..6efd21a37 100644
--- a/volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a16.h
+++ b/volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief performs the FM-detect differentiation on the input vector and stores the results in the output vector.
@@ -78,7 +78,7 @@ static inline void volk_32f_s32f_32f_fm_detect_32f_a16_sse(float* outputVector,
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief performs the FM-detect differentiation on the input vector and stores the results in the output vector.
\param outputVector The byte-aligned vector where the results will be stored.
diff --git a/volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a16.h b/volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a16.h
index 168245d65..55d4e0319 100644
--- a/volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a16.h
+++ b/volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Calculates the spectral noise floor of an input power spectrum
@@ -116,7 +116,7 @@ static inline void volk_32f_s32f_calc_spectral_noise_floor_32f_a16_sse(float* no
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the spectral noise floor of an input power spectrum
diff --git a/volk/include/volk/volk_32f_s32f_convert_16i_a16.h b/volk/include/volk/volk_32f_s32f_convert_16i_a16.h
index d6b16e336..9d1d0ef4d 100644
--- a/volk/include/volk/volk_32f_s32f_convert_16i_a16.h
+++ b/volk/include/volk/volk_32f_s32f_convert_16i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 16 bit integer value
@@ -44,7 +44,7 @@ static inline void volk_32f_s32f_convert_16i_a16_sse2(int16_t* outputVector, con
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 16 bit integer value
diff --git a/volk/include/volk/volk_32f_s32f_convert_16i_u.h b/volk/include/volk/volk_32f_s32f_convert_16i_u.h
index 4d306e53c..06228ef7d 100644
--- a/volk/include/volk/volk_32f_s32f_convert_16i_u.h
+++ b/volk/include/volk/volk_32f_s32f_convert_16i_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 16 bit integer value
@@ -45,7 +45,7 @@ static inline void volk_32f_s32f_convert_16i_u_sse2(int16_t* outputVector, const
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 16 bit integer value
diff --git a/volk/include/volk/volk_32f_s32f_convert_32i_a16.h b/volk/include/volk/volk_32f_s32f_convert_32i_a16.h
index ae874fd7b..82c74bf44 100644
--- a/volk/include/volk/volk_32f_s32f_convert_32i_a16.h
+++ b/volk/include/volk/volk_32f_s32f_convert_32i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 32 bit integer value
@@ -40,7 +40,7 @@ static inline void volk_32f_s32f_convert_32i_a16_sse2(int32_t* outputVector, con
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 32 bit integer value
diff --git a/volk/include/volk/volk_32f_s32f_convert_32i_u.h b/volk/include/volk/volk_32f_s32f_convert_32i_u.h
index 561fcd800..253a48ae3 100644
--- a/volk/include/volk/volk_32f_s32f_convert_32i_u.h
+++ b/volk/include/volk/volk_32f_s32f_convert_32i_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 32 bit integer value
@@ -41,7 +41,7 @@ static inline void volk_32f_s32f_convert_32i_u_sse2(int32_t* outputVector, const
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 32 bit integer value
diff --git a/volk/include/volk/volk_32f_s32f_convert_8i_a16.h b/volk/include/volk/volk_32f_s32f_convert_8i_a16.h
index f64f2a213..8dab0cdf4 100644
--- a/volk/include/volk/volk_32f_s32f_convert_8i_a16.h
+++ b/volk/include/volk/volk_32f_s32f_convert_8i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 8 bit integer value
@@ -51,7 +51,7 @@ static inline void volk_32f_s32f_convert_8i_a16_sse2(int8_t* outputVector, const
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 8 bit integer value
diff --git a/volk/include/volk/volk_32f_s32f_convert_8i_u.h b/volk/include/volk/volk_32f_s32f_convert_8i_u.h
index 420693571..72b193c9d 100644
--- a/volk/include/volk/volk_32f_s32f_convert_8i_u.h
+++ b/volk/include/volk/volk_32f_s32f_convert_8i_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 8 bit integer value
@@ -52,7 +52,7 @@ static inline void volk_32f_s32f_convert_8i_u_sse2(int8_t* outputVector, const f
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Multiplies each point in the input buffer by the scalar value, then converts the result into a 8 bit integer value
diff --git a/volk/include/volk/volk_32f_s32f_normalize_a16.h b/volk/include/volk/volk_32f_s32f_normalize_a16.h
index 0850cddf7..e6195cd32 100644
--- a/volk/include/volk/volk_32f_s32f_normalize_a16.h
+++ b/volk/include/volk/volk_32f_s32f_normalize_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Normalizes all points in the buffer by the scalar value ( divides each data point by the scalar value )
@@ -41,7 +41,7 @@ static inline void volk_32f_s32f_normalize_a16_sse(float* vecBuffer, const float
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Normalizes the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
@@ -60,7 +60,7 @@ static inline void volk_32f_s32f_normalize_a16_generic(float* vecBuffer, const f
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Normalizes the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32f_s32f_power_32f_a16.h b/volk/include/volk/volk_32f_s32f_power_32f_a16.h
index 3ed594d9a..ecff901e1 100644
--- a/volk/include/volk/volk_32f_s32f_power_32f_a16.h
+++ b/volk/include/volk/volk_32f_s32f_power_32f_a16.h
@@ -5,10 +5,10 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <tmmintrin.h>
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
#include <simdmath.h>
#endif /* LV_HAVE_LIB_SIMDMATH */
@@ -26,7 +26,7 @@ static inline void volk_32f_s32f_power_32f_a16_sse4_1(float* cVector, const floa
float* cPtr = cVector;
const float* aPtr = aVector;
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
__m128 vPower = _mm_set_ps1(power);
__m128 zeroValue = _mm_setzero_ps();
__m128 signMask;
@@ -62,10 +62,10 @@ static inline void volk_32f_s32f_power_32f_a16_sse4_1(float* cVector, const floa
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
#include <simdmath.h>
#endif /* LV_HAVE_LIB_SIMDMATH */
@@ -83,7 +83,7 @@ static inline void volk_32f_s32f_power_32f_a16_sse(float* cVector, const float*
float* cPtr = cVector;
const float* aPtr = aVector;
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
__m128 vPower = _mm_set_ps1(power);
__m128 zeroValue = _mm_setzero_ps();
__m128 signMask;
@@ -119,7 +119,7 @@ static inline void volk_32f_s32f_power_32f_a16_sse(float* cVector, const float*
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Takes each the input vector value to the specified power and stores the results in the return vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32f_s32f_stddev_32f_a16.h b/volk/include/volk/volk_32f_s32f_stddev_32f_a16.h
index 32f4fa067..48d2fe1fe 100644
--- a/volk/include/volk/volk_32f_s32f_stddev_32f_a16.h
+++ b/volk/include/volk/volk_32f_s32f_stddev_32f_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Calculates the standard deviation of the input buffer using the supplied mean
@@ -65,7 +65,7 @@ static inline void volk_32f_s32f_stddev_32f_a16_sse4_1(float* stddev, const floa
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Calculates the standard deviation of the input buffer using the supplied mean
@@ -111,7 +111,7 @@ static inline void volk_32f_s32f_stddev_32f_a16_sse(float* stddev, const float*
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the standard deviation of the input buffer using the supplied mean
\param stddev The calculated standard deviation
diff --git a/volk/include/volk/volk_32f_sqrt_32f_a16.h b/volk/include/volk/volk_32f_sqrt_32f_a16.h
index 513c2cffe..a9ce76f88 100644
--- a/volk/include/volk/volk_32f_sqrt_32f_a16.h
+++ b/volk/include/volk/volk_32f_sqrt_32f_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Sqrts the two input vectors and store their results in the third vector
@@ -40,7 +40,7 @@ static inline void volk_32f_sqrt_32f_a16_sse(float* cVector, const float* aVecto
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Sqrts the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
@@ -58,7 +58,7 @@ static inline void volk_32f_sqrt_32f_a16_generic(float* cVector, const float* aV
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
extern void volk_32f_sqrt_32f_a16_orc_impl(float *, const float*, unsigned int);
/*!
\brief Sqrts the two input vectors and store their results in the third vector
diff --git a/volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a16.h b/volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a16.h
index 278089841..f1cb2ae0e 100644
--- a/volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a16.h
+++ b/volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Calculates the standard deviation and mean of the input buffer
@@ -78,7 +78,7 @@ static inline void volk_32f_stddev_and_mean_32f_x2_a16_sse4_1(float* stddev, flo
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Calculates the standard deviation and mean of the input buffer
@@ -134,7 +134,7 @@ static inline void volk_32f_stddev_and_mean_32f_x2_a16_sse(float* stddev, float*
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the standard deviation and mean of the input buffer
\param stddev The calculated standard deviation
diff --git a/volk/include/volk/volk_32f_x2_add_32f_a16.h b/volk/include/volk/volk_32f_x2_add_32f_a16.h
index d0d0e0a0e..2de6a6644 100644
--- a/volk/include/volk/volk_32f_x2_add_32f_a16.h
+++ b/volk/include/volk/volk_32f_x2_add_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Adds the two input vectors and store their results in the third vector
@@ -43,7 +43,7 @@ static inline void volk_32f_x2_add_32f_a16_sse(float* cVector, const float* aVec
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Adds the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
@@ -63,7 +63,7 @@ static inline void volk_32f_x2_add_32f_a16_generic(float* cVector, const float*
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Adds the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32f_x2_divide_32f_a16.h b/volk/include/volk/volk_32f_x2_divide_32f_a16.h
index d844e25b0..1603e78de 100644
--- a/volk/include/volk/volk_32f_x2_divide_32f_a16.h
+++ b/volk/include/volk/volk_32f_x2_divide_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Divides the two input vectors and store their results in the third vector
@@ -43,7 +43,7 @@ static inline void volk_32f_x2_divide_32f_a16_sse(float* cVector, const float* a
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Divides the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
@@ -63,7 +63,7 @@ static inline void volk_32f_x2_divide_32f_a16_generic(float* cVector, const floa
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Divides the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32f_x2_dot_prod_32f_a16.h b/volk/include/volk/volk_32f_x2_dot_prod_32f_a16.h
index 61aa56815..d13f12e51 100644
--- a/volk/include/volk/volk_32f_x2_dot_prod_32f_a16.h
+++ b/volk/include/volk/volk_32f_x2_dot_prod_32f_a16.h
@@ -4,7 +4,7 @@
#include<stdio.h>
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32f_x2_dot_prod_32f_a16_generic(float * result, const float * input, const float * taps, unsigned int num_points) {
@@ -24,7 +24,7 @@ static inline void volk_32f_x2_dot_prod_32f_a16_generic(float * result, const fl
#endif /*LV_HAVE_GENERIC*/
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
static inline void volk_32f_x2_dot_prod_32f_a16_sse( float* result, const float* input, const float* taps, unsigned int num_points) {
@@ -73,7 +73,7 @@ static inline void volk_32f_x2_dot_prod_32f_a16_sse( float* result, const float
#endif /*LV_HAVE_SSE*/
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
@@ -120,7 +120,7 @@ static inline void volk_32f_x2_dot_prod_32f_a16_sse3(float * result, const float
#endif /*LV_HAVE_SSE3*/
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
diff --git a/volk/include/volk/volk_32f_x2_dot_prod_32f_u.h b/volk/include/volk/volk_32f_x2_dot_prod_32f_u.h
index 8469a3cea..7c1136a67 100644
--- a/volk/include/volk/volk_32f_x2_dot_prod_32f_u.h
+++ b/volk/include/volk/volk_32f_x2_dot_prod_32f_u.h
@@ -4,7 +4,7 @@
#include<stdio.h>
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32f_x2_dot_prod_32f_u_generic(float * result, const float * input, const float * taps, unsigned int num_points) {
@@ -24,7 +24,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_generic(float * result, const floa
#endif /*LV_HAVE_GENERIC*/
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
static inline void volk_32f_x2_dot_prod_32f_u_sse( float* result, const float* input, const float* taps, unsigned int num_points) {
@@ -73,7 +73,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse( float* result, const float*
#endif /*LV_HAVE_SSE*/
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
@@ -120,7 +120,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse3(float * result, const float *
#endif /*LV_HAVE_SSE3*/
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
diff --git a/volk/include/volk/volk_32f_x2_interleave_32fc_a16.h b/volk/include/volk/volk_32f_x2_interleave_32fc_a16.h
index 29c9392df..f3731fa2a 100644
--- a/volk/include/volk/volk_32f_x2_interleave_32fc_a16.h
+++ b/volk/include/volk/volk_32f_x2_interleave_32fc_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Interleaves the I & Q vector data into the complex vector
@@ -48,7 +48,7 @@ static inline void volk_32f_x2_interleave_32fc_a16_sse(lv_32fc_t* complexVector,
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Interleaves the I & Q vector data into the complex vector.
\param iBuffer The I buffer data to be interleaved
diff --git a/volk/include/volk/volk_32f_x2_max_32f_a16.h b/volk/include/volk/volk_32f_x2_max_32f_a16.h
index 26e7f1246..60be6e36d 100644
--- a/volk/include/volk/volk_32f_x2_max_32f_a16.h
+++ b/volk/include/volk/volk_32f_x2_max_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Selects maximum value from each entry between bVector and aVector and store their results in the cVector
@@ -45,7 +45,7 @@ static inline void volk_32f_x2_max_32f_a16_sse(float* cVector, const float* aVec
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Selects maximum value from each entry between bVector and aVector and store their results in the cVector
\param cVector The vector where the results will be stored
@@ -67,7 +67,7 @@ static inline void volk_32f_x2_max_32f_a16_generic(float* cVector, const float*
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Selects maximum value from each entry between bVector and aVector and store their results in the cVector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32f_x2_min_32f_a16.h b/volk/include/volk/volk_32f_x2_min_32f_a16.h
index 23bae044c..3b8291531 100644
--- a/volk/include/volk/volk_32f_x2_min_32f_a16.h
+++ b/volk/include/volk/volk_32f_x2_min_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Selects minimum value from each entry between bVector and aVector and store their results in the cVector
@@ -45,7 +45,7 @@ static inline void volk_32f_x2_min_32f_a16_sse(float* cVector, const float* aVec
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Selects minimum value from each entry between bVector and aVector and store their results in the cVector
\param cVector The vector where the results will be stored
@@ -67,7 +67,7 @@ static inline void volk_32f_x2_min_32f_a16_generic(float* cVector, const float*
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Selects minimum value from each entry between bVector and aVector and store their results in the cVector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32f_x2_multiply_32f_a16.h b/volk/include/volk/volk_32f_x2_multiply_32f_a16.h
index a0dcfa86e..cef17f5a6 100644
--- a/volk/include/volk/volk_32f_x2_multiply_32f_a16.h
+++ b/volk/include/volk/volk_32f_x2_multiply_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Multiplys the two input vectors and store their results in the third vector
@@ -43,7 +43,7 @@ static inline void volk_32f_x2_multiply_32f_a16_sse(float* cVector, const float*
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Multiplys the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
@@ -63,7 +63,7 @@ static inline void volk_32f_x2_multiply_32f_a16_generic(float* cVector, const fl
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Multiplys the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a16.h b/volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a16.h
index 30306774d..e98735245 100644
--- a/volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a16.h
+++ b/volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Interleaves the I & Q vector data into the complex vector, scales the output values by the scalar, and converts to 16 bit data.
@@ -62,7 +62,7 @@ static inline void volk_32f_x2_s32f_interleave_16ic_a16_sse2(lv_16sc_t* complexV
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Interleaves the I & Q vector data into the complex vector, scales the output values by the scalar, and converts to 16 bit data.
@@ -127,7 +127,7 @@ static inline void volk_32f_x2_s32f_interleave_16ic_a16_sse(lv_16sc_t* complexVe
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Interleaves the I & Q vector data into the complex vector, scales the output values by the scalar, and converts to 16 bit data.
\param iBuffer The I buffer data to be interleaved
diff --git a/volk/include/volk/volk_32f_x2_subtract_32f_a16.h b/volk/include/volk/volk_32f_x2_subtract_32f_a16.h
index 7404bfe79..c01f2c1f3 100644
--- a/volk/include/volk/volk_32f_x2_subtract_32f_a16.h
+++ b/volk/include/volk/volk_32f_x2_subtract_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Subtracts bVector form aVector and store their results in the cVector
@@ -43,7 +43,7 @@ static inline void volk_32f_x2_subtract_32f_a16_sse(float* cVector, const float*
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Subtracts bVector form aVector and store their results in the cVector
\param cVector The vector where the results will be stored
@@ -63,7 +63,7 @@ static inline void volk_32f_x2_subtract_32f_a16_generic(float* cVector, const fl
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Subtracts bVector form aVector and store their results in the cVector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a16.h b/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a16.h
index af9e39537..6e446cbef 100644
--- a/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a16.h
+++ b/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a16.h
@@ -9,7 +9,7 @@
#define MAX(X,Y) ((X) > (Y)?(X):(Y))
#endif
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include<xmmintrin.h>
#include<pmmintrin.h>
@@ -98,7 +98,7 @@ static inline void volk_32f_x3_sum_of_poly_32f_a16_sse3(float* target, float* sr
#endif /*LV_HAVE_SSE3*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32f_x3_sum_of_poly_32f_a16_generic(float* target, float* src0, float* center_point_array, float* cutoff, unsigned int num_bytes) {
diff --git a/volk/include/volk/volk_32fc_32f_multiply_32fc_a16.h b/volk/include/volk/volk_32fc_32f_multiply_32fc_a16.h
index 514998800..846315a4a 100644
--- a/volk/include/volk/volk_32fc_32f_multiply_32fc_a16.h
+++ b/volk/include/volk/volk_32fc_32f_multiply_32fc_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Multiplies the input complex vector with the input float vector and store their results in the third vector
@@ -56,7 +56,7 @@ static inline void volk_32fc_32f_multiply_32fc_a16_sse(lv_32fc_t* cVector, const
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Multiplies the input complex vector with the input lv_32fc_t vector and store their results in the third vector
\param cVector The vector where the results will be stored
@@ -76,7 +76,7 @@ static inline void volk_32fc_32f_multiply_32fc_a16_generic(lv_32fc_t* cVector, c
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Multiplies the input complex vector with the input lv_32fc_t vector and store their results in the third vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32fc_deinterleave_32f_x2_a16.h b/volk/include/volk/volk_32fc_deinterleave_32f_x2_a16.h
index 84d2576ed..3e7c3fa28 100644
--- a/volk/include/volk/volk_32fc_deinterleave_32f_x2_a16.h
+++ b/volk/include/volk/volk_32fc_deinterleave_32f_x2_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Deinterleaves the complex vector into I & Q vector data
@@ -49,7 +49,7 @@ static inline void volk_32fc_deinterleave_32f_x2_a16_sse(float* iBuffer, float*
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex vector into I & Q vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_32fc_deinterleave_64f_x2_a16.h b/volk/include/volk/volk_32fc_deinterleave_64f_x2_a16.h
index 34262a7af..945a26742 100644
--- a/volk/include/volk/volk_32fc_deinterleave_64f_x2_a16.h
+++ b/volk/include/volk/volk_32fc_deinterleave_64f_x2_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Deinterleaves the lv_32fc_t vector into double I & Q vector data
@@ -51,7 +51,7 @@ static inline void volk_32fc_deinterleave_64f_x2_a16_sse2(double* iBuffer, doubl
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the lv_32fc_t vector into double I & Q vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_32fc_deinterleave_real_32f_a16.h b/volk/include/volk/volk_32fc_deinterleave_real_32f_a16.h
index 9838ec88b..3c3fb2583 100644
--- a/volk/include/volk/volk_32fc_deinterleave_real_32f_a16.h
+++ b/volk/include/volk/volk_32fc_deinterleave_real_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Deinterleaves the complex vector into I vector data
@@ -44,7 +44,7 @@ static inline void volk_32fc_deinterleave_real_32f_a16_sse(float* iBuffer, const
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex vector into I vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_32fc_deinterleave_real_64f_a16.h b/volk/include/volk/volk_32fc_deinterleave_real_64f_a16.h
index af392d074..40c1a7a46 100644
--- a/volk/include/volk/volk_32fc_deinterleave_real_64f_a16.h
+++ b/volk/include/volk/volk_32fc_deinterleave_real_64f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Deinterleaves the complex vector into I vector data
@@ -42,7 +42,7 @@ static inline void volk_32fc_deinterleave_real_64f_a16_sse2(double* iBuffer, con
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex vector into I vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_32fc_index_max_16u_a16.h b/volk/include/volk/volk_32fc_index_max_16u_a16.h
index 532ae4e7c..0ad1edbe9 100644
--- a/volk/include/volk/volk_32fc_index_max_16u_a16.h
+++ b/volk/include/volk/volk_32fc_index_max_16u_a16.h
@@ -6,7 +6,7 @@
#include<stdio.h>
#include<volk/volk_complex.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include<xmmintrin.h>
#include<pmmintrin.h>
@@ -188,7 +188,7 @@ static inline void volk_32fc_index_max_16u_a16_sse3(unsigned int* target, lv_32f
#endif /*LV_HAVE_SSE3*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32fc_index_max_16u_a16_generic(unsigned int* target, lv_32fc_t* src0, unsigned int num_bytes) {
float sq_dist = 0.0;
float max = 0.0;
diff --git a/volk/include/volk/volk_32fc_magnitude_32f_a16.h b/volk/include/volk/volk_32fc_magnitude_32f_a16.h
index be7216dce..946190e41 100644
--- a/volk/include/volk/volk_32fc_magnitude_32f_a16.h
+++ b/volk/include/volk/volk_32fc_magnitude_32f_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
@@ -48,7 +48,7 @@ static inline void volk_32fc_magnitude_32f_a16_sse3(float* magnitudeVector, cons
}
#endif /* LV_HAVE_SSE3 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
@@ -96,7 +96,7 @@ static inline void volk_32fc_magnitude_32f_a16_sse(float* magnitudeVector, const
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
\param complexVector The vector containing the complex input values
@@ -115,7 +115,7 @@ static inline void volk_32fc_magnitude_32f_a16_generic(float* magnitudeVector, c
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Calculates the magnitude of the complexVector and stores the results in the magnitudeVector
\param complexVector The vector containing the complex input values
diff --git a/volk/include/volk/volk_32fc_s32f_atan2_32f_a16.h b/volk/include/volk/volk_32fc_s32f_atan2_32f_a16.h
index e9f74438d..55b1b6c70 100644
--- a/volk/include/volk/volk_32fc_s32f_atan2_32f_a16.h
+++ b/volk/include/volk/volk_32fc_s32f_atan2_32f_a16.h
@@ -5,10 +5,10 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
#include <simdmath.h>
#endif /* LV_HAVE_LIB_SIMDMATH */
@@ -27,7 +27,7 @@ static inline void volk_32fc_s32f_atan2_32f_a16_sse4_1(float* outputVector, con
const unsigned int quarterPoints = num_points / 4;
const float invNormalizeFactor = 1.0 / normalizeFactor;
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
__m128 testVector = _mm_set_ps1(2*M_PI);
__m128 correctVector = _mm_set_ps1(M_PI);
__m128 vNormalizeFactor = _mm_set_ps1(invNormalizeFactor);
@@ -67,10 +67,10 @@ static inline void volk_32fc_s32f_atan2_32f_a16_sse4_1(float* outputVector, con
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
#include <simdmath.h>
#endif /* LV_HAVE_LIB_SIMDMATH */
@@ -89,7 +89,7 @@ static inline void volk_32fc_s32f_atan2_32f_a16_sse(float* outputVector, const
const unsigned int quarterPoints = num_points / 4;
const float invNormalizeFactor = 1.0 / normalizeFactor;
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
__m128 testVector = _mm_set_ps1(2*M_PI);
__m128 correctVector = _mm_set_ps1(M_PI);
__m128 vNormalizeFactor = _mm_set_ps1(invNormalizeFactor);
@@ -131,7 +131,7 @@ static inline void volk_32fc_s32f_atan2_32f_a16_sse(float* outputVector, const
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief performs the atan2 on the input vector and stores the results in the output vector.
\param outputVector The vector where the results will be stored.
diff --git a/volk/include/volk/volk_32fc_s32f_deinterleave_real_16i_a16.h b/volk/include/volk/volk_32fc_s32f_deinterleave_real_16i_a16.h
index 31465bff9..1e3e61e08 100644
--- a/volk/include/volk/volk_32fc_s32f_deinterleave_real_16i_a16.h
+++ b/volk/include/volk/volk_32fc_s32f_deinterleave_real_16i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Deinterleaves the complex vector, multiply the value by the scalar, convert to 16t, and in I vector data
@@ -54,7 +54,7 @@ static inline void volk_32fc_s32f_deinterleave_real_16i_a16_sse(int16_t* iBuffer
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex vector, multiply the value by the scalar, convert to 16t, and in I vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_32fc_s32f_magnitude_16i_a16.h b/volk/include/volk/volk_32fc_s32f_magnitude_16i_a16.h
index 530359600..14318ab01 100644
--- a/volk/include/volk/volk_32fc_s32f_magnitude_16i_a16.h
+++ b/volk/include/volk/volk_32fc_s32f_magnitude_16i_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
/*!
\brief Calculates the magnitude of the complexVector, scales the resulting value and stores the results in the magnitudeVector
@@ -60,7 +60,7 @@ static inline void volk_32fc_s32f_magnitude_16i_a16_sse3(int16_t* magnitudeVecto
}
#endif /* LV_HAVE_SSE3 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Calculates the magnitude of the complexVector, scales the resulting value and stores the results in the magnitudeVector
@@ -120,7 +120,7 @@ static inline void volk_32fc_s32f_magnitude_16i_a16_sse(int16_t* magnitudeVector
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the magnitude of the complexVector, scales the resulting value and stores the results in the magnitudeVector
\param complexVector The vector containing the complex input values
@@ -140,7 +140,7 @@ static inline void volk_32fc_s32f_magnitude_16i_a16_generic(int16_t* magnitudeVe
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Calculates the magnitude of the complexVector, scales the resulting value and stores the results in the magnitudeVector
\param complexVector The vector containing the complex input values
diff --git a/volk/include/volk/volk_32fc_s32f_power_32fc_a16.h b/volk/include/volk/volk_32fc_s32f_power_32fc_a16.h
index 3507fdb3c..90cc4f5e7 100644
--- a/volk/include/volk/volk_32fc_s32f_power_32fc_a16.h
+++ b/volk/include/volk/volk_32fc_s32f_power_32fc_a16.h
@@ -4,10 +4,10 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
#include <simdmath.h>
#endif /* LV_HAVE_LIB_SIMDMATH */
@@ -25,7 +25,7 @@ static inline void volk_32fc_s32f_power_32fc_a16_sse(lv_32fc_t* cVector, const l
lv_32fc_t* cPtr = cVector;
const lv_32fc_t* aPtr = aVector;
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
__m128 vPower = _mm_set_ps1(power);
__m128 cplxValue1, cplxValue2, magnitude, phase, iValue, qValue;
@@ -81,7 +81,7 @@ static inline void volk_32fc_s32f_power_32fc_a16_sse(lv_32fc_t* cVector, const l
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Takes each the input complex vector value to the specified power and stores the results in the return vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a16.h b/volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a16.h
index 39d8f7aa2..03da069c2 100644
--- a/volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a16.h
+++ b/volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a16.h
@@ -5,10 +5,10 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
#include <simdmath.h>
#endif /* LV_HAVE_LIB_SIMDMATH */
@@ -24,7 +24,7 @@ static inline void volk_32fc_s32f_power_spectrum_32f_a16_sse3(float* logPowerOut
float* destPtr = logPowerOutput;
uint64_t number = 0;
const float iNormalizationFactor = 1.0 / normalizationFactor;
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
__m128 magScalar = _mm_set_ps1(10.0);
magScalar = _mm_div_ps(magScalar, logf4(magScalar));
@@ -88,7 +88,7 @@ static inline void volk_32fc_s32f_power_spectrum_32f_a16_sse3(float* logPowerOut
}
#endif /* LV_HAVE_SSE3 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the log10 power value for each input point
\param logPowerOutput The 10.0 * log10(r*r + i*i) for each data point
diff --git a/volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a16.h b/volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a16.h
index 0120b5307..5bcd7f7c4 100644
--- a/volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a16.h
+++ b/volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a16.h
@@ -5,10 +5,10 @@
#include <stdio.h>
#include <math.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
#include <simdmath.h>
#endif /* LV_HAVE_LIB_SIMDMATH */
@@ -27,7 +27,7 @@ static inline void volk_32fc_s32f_x2_power_spectral_density_32f_a16_sse3(float*
const float iRBW = 1.0 / rbw;
const float iNormalizationFactor = 1.0 / normalizationFactor;
-#if LV_HAVE_LIB_SIMDMATH
+#ifdef LV_HAVE_LIB_SIMDMATH
__m128 magScalar = _mm_set_ps1(10.0);
magScalar = _mm_div_ps(magScalar, logf4(magScalar));
@@ -94,7 +94,7 @@ static inline void volk_32fc_s32f_x2_power_spectral_density_32f_a16_sse3(float*
}
#endif /* LV_HAVE_SSE3 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Calculates the log10 power value divided by the RBW for each input point
\param logPowerOutput The 10.0 * log10((r*r + i*i)/RBW) for each data point
diff --git a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a16.h b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a16.h
index a01971df3..2e5036f69 100644
--- a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a16.h
+++ b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a16.h
@@ -5,7 +5,7 @@
#include<stdio.h>
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a16_generic(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
@@ -59,7 +59,7 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a16_generic(lv_32fc_t* r
#endif /*LV_HAVE_GENERIC*/
-#if LV_HAVE_SSE && LV_HAVE_64
+#if defined(LV_HAVE_SSE) && defined(LV_HAVE_64)
static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a16_sse(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
@@ -202,7 +202,7 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a16_sse(lv_32fc_t* resul
}
#endif
-#if LV_HAVE_SSE && LV_HAVE_32
+#if defined(LV_HAVE_SSE) && defined(LV_HAVE_32)
static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a16_sse_32(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
static const uint32_t conjugator[4] __attribute__((aligned(16)))= {0x00000000, 0x80000000, 0x00000000, 0x80000000};
diff --git a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h
index 2fa5918cc..69781f0fb 100644
--- a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h
+++ b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h
@@ -5,7 +5,7 @@
#include<volk/volk_complex.h>
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32fc_x2_conjugate_dot_prod_32fc_u_generic(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
@@ -57,7 +57,7 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_u_generic(lv_32fc_t* res
#endif /*LV_HAVE_GENERIC*/
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <xmmintrin.h>
#include <pmmintrin.h>
diff --git a/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a16.h b/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a16.h
index 9a7b65ab4..9bfb88934 100644
--- a/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a16.h
+++ b/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a16.h
@@ -6,7 +6,7 @@
#include <string.h>
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32fc_x2_dot_prod_32fc_a16_generic(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
@@ -56,7 +56,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a16_generic(lv_32fc_t* result, con
#endif /*LV_HAVE_GENERIC*/
-#if LV_HAVE_SSE && LV_HAVE_64
+#if defined(LV_HAVE_SSE) && defined(LV_HAVE_64)
static inline void volk_32fc_x2_dot_prod_32fc_a16_sse_64(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
@@ -192,7 +192,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a16_sse_64(lv_32fc_t* result, cons
#endif
-#if LV_HAVE_SSE && LV_HAVE_32
+#if defined(LV_HAVE_SSE) && defined(LV_HAVE_32)
static inline void volk_32fc_x2_dot_prod_32fc_a16_sse_32(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
@@ -316,7 +316,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a16_sse_32(lv_32fc_t* result, cons
#endif /*LV_HAVE_SSE*/
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
@@ -373,7 +373,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a16_sse3(lv_32fc_t* result, const
#endif /*LV_HAVE_SSE3*/
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
diff --git a/volk/include/volk/volk_32fc_x2_multiply_32fc_a16.h b/volk/include/volk/volk_32fc_x2_multiply_32fc_a16.h
index b4214f5d2..72010b855 100644
--- a/volk/include/volk/volk_32fc_x2_multiply_32fc_a16.h
+++ b/volk/include/volk/volk_32fc_x2_multiply_32fc_a16.h
@@ -6,7 +6,7 @@
#include <volk/volk_complex.h>
#include <float.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
/*!
\brief Multiplies the two input complex vectors and stores their results in the third vector
@@ -53,7 +53,7 @@ static inline void volk_32fc_x2_multiply_32fc_a16_sse3(lv_32fc_t* cVector, const
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Multiplies the two input complex vectors and stores their results in the third vector
\param cVector The vector where the results will be stored
@@ -73,7 +73,7 @@ static inline void volk_32fc_x2_multiply_32fc_a16_generic(lv_32fc_t* cVector, co
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Multiplies the two input complex vectors and stores their results in the third vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a16.h b/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a16.h
index 6a863b16d..910f51679 100644
--- a/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a16.h
+++ b/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a16.h
@@ -6,7 +6,7 @@
#include<volk/volk_complex.h>
#include <string.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include<xmmintrin.h>
#include<pmmintrin.h>
@@ -105,7 +105,7 @@ static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a16_sse3(float*
#endif /*LV_HAVE_SSE3*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a16_generic(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_bytes) {
lv_32fc_t diff;
float sq_dist;
diff --git a/volk/include/volk/volk_32fc_x2_square_dist_32f_a16.h b/volk/include/volk/volk_32fc_x2_square_dist_32f_a16.h
index 406097fc8..551f3cb53 100644
--- a/volk/include/volk/volk_32fc_x2_square_dist_32f_a16.h
+++ b/volk/include/volk/volk_32fc_x2_square_dist_32f_a16.h
@@ -5,7 +5,7 @@
#include<stdio.h>
#include<volk/volk_complex.h>
-#if LV_HAVE_SSE3
+#ifdef LV_HAVE_SSE3
#include<xmmintrin.h>
#include<pmmintrin.h>
@@ -91,7 +91,7 @@ static inline void volk_32fc_x2_square_dist_32f_a16_sse3(float* target, lv_32fc_
#endif /*LV_HAVE_SSE3*/
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32fc_x2_square_dist_32f_a16_generic(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_bytes) {
lv_32fc_t diff;
float sq_dist;
diff --git a/volk/include/volk/volk_32i_s32f_convert_32f_a16.h b/volk/include/volk/volk_32i_s32f_convert_32f_a16.h
index 0fcadd9cb..b744c7197 100644
--- a/volk/include/volk/volk_32i_s32f_convert_32f_a16.h
+++ b/volk/include/volk/volk_32i_s32f_convert_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
@@ -47,7 +47,7 @@ static inline void volk_32i_s32f_convert_32f_a16_sse2(float* outputVector, const
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the input 32 bit integer data into floating point data, and divides the each floating point output data point by the scalar value
\param inputVector The 32 bit input data buffer
diff --git a/volk/include/volk/volk_32i_s32f_convert_32f_u.h b/volk/include/volk/volk_32i_s32f_convert_32f_u.h
index 1dd6422f8..d8afd218c 100644
--- a/volk/include/volk/volk_32i_s32f_convert_32f_u.h
+++ b/volk/include/volk/volk_32i_s32f_convert_32f_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
@@ -48,7 +48,7 @@ static inline void volk_32i_s32f_convert_32f_u_sse2(float* outputVector, const i
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the input 32 bit integer data into floating point data, and divides the each floating point output data point by the scalar value
\param inputVector The 32 bit input data buffer
diff --git a/volk/include/volk/volk_32i_x2_and_32i_a16.h b/volk/include/volk/volk_32i_x2_and_32i_a16.h
index 3baa1d856..4d50efd32 100644
--- a/volk/include/volk/volk_32i_x2_and_32i_a16.h
+++ b/volk/include/volk/volk_32i_x2_and_32i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Ands the two input vectors and store their results in the third vector
@@ -43,7 +43,7 @@ static inline void volk_32i_x2_and_32i_a16_sse(int32_t* cVector, const int32_t*
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Ands the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
@@ -63,7 +63,7 @@ static inline void volk_32i_x2_and_32i_a16_generic(int32_t* cVector, const int32
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Ands the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32i_x2_or_32i_a16.h b/volk/include/volk/volk_32i_x2_or_32i_a16.h
index 0be22f00a..9edbdbafd 100644
--- a/volk/include/volk/volk_32i_x2_or_32i_a16.h
+++ b/volk/include/volk/volk_32i_x2_or_32i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Ors the two input vectors and store their results in the third vector
@@ -43,7 +43,7 @@ static inline void volk_32i_x2_or_32i_a16_sse(int32_t* cVector, const int32_t* a
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Ors the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
@@ -63,7 +63,7 @@ static inline void volk_32i_x2_or_32i_a16_generic(int32_t* cVector, const int32_
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Ors the two input vectors and store their results in the third vector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_32u_byteswap_a16.h b/volk/include/volk/volk_32u_byteswap_a16.h
index 7556ec7b1..dc5cedab9 100644
--- a/volk/include/volk/volk_32u_byteswap_a16.h
+++ b/volk/include/volk/volk_32u_byteswap_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
@@ -51,7 +51,7 @@ static inline void volk_32u_byteswap_a16_sse2(uint32_t* intsToSwap, unsigned int
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Byteswaps (in-place) an aligned vector of int32_t's.
\param intsToSwap The vector of data to byte swap
diff --git a/volk/include/volk/volk_32u_popcnt_a16.h b/volk/include/volk/volk_32u_popcnt_a16.h
index f6e25e4e8..0d8b48fd5 100644
--- a/volk/include/volk/volk_32u_popcnt_a16.h
+++ b/volk/include/volk/volk_32u_popcnt_a16.h
@@ -5,7 +5,7 @@
#include <inttypes.h>
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32u_popcnt_a16_generic(uint32_t* ret, const uint32_t value) {
@@ -23,7 +23,7 @@ static inline void volk_32u_popcnt_a16_generic(uint32_t* ret, const uint32_t val
#endif /*LV_HAVE_GENERIC*/
-#if LV_HAVE_SSE4_2
+#ifdef LV_HAVE_SSE4_2
#include <nmmintrin.h>
diff --git a/volk/include/volk/volk_64f_convert_32f_a16.h b/volk/include/volk/volk_64f_convert_32f_a16.h
index 7dca065f0..cfcdbdc3a 100644
--- a/volk/include/volk/volk_64f_convert_32f_a16.h
+++ b/volk/include/volk/volk_64f_convert_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Converts the double values into float values
diff --git a/volk/include/volk/volk_64f_convert_32f_u.h b/volk/include/volk/volk_64f_convert_32f_u.h
index 6338c1433..5c323230a 100644
--- a/volk/include/volk/volk_64f_convert_32f_u.h
+++ b/volk/include/volk/volk_64f_convert_32f_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Converts the double values into float values
diff --git a/volk/include/volk/volk_64f_x2_max_64f_a16.h b/volk/include/volk/volk_64f_x2_max_64f_a16.h
index 4b0c1f5f1..21f488bf7 100644
--- a/volk/include/volk/volk_64f_x2_max_64f_a16.h
+++ b/volk/include/volk/volk_64f_x2_max_64f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Selects maximum value from each entry between bVector and aVector and store their results in the cVector
@@ -45,7 +45,7 @@ static inline void volk_64f_x2_max_64f_a16_sse2(double* cVector, const double* a
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Selects maximum value from each entry between bVector and aVector and store their results in the cVector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_64f_x2_min_64f_a16.h b/volk/include/volk/volk_64f_x2_min_64f_a16.h
index aa961e384..8711a0eae 100644
--- a/volk/include/volk/volk_64f_x2_min_64f_a16.h
+++ b/volk/include/volk/volk_64f_x2_min_64f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
\brief Selects minimum value from each entry between bVector and aVector and store their results in the cVector
@@ -45,7 +45,7 @@ static inline void volk_64f_x2_min_64f_a16_sse2(double* cVector, const double* a
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Selects minimum value from each entry between bVector and aVector and store their results in the cVector
\param cVector The vector where the results will be stored
diff --git a/volk/include/volk/volk_64u_byteswap_a16.h b/volk/include/volk/volk_64u_byteswap_a16.h
index 0eefe0138..b4bed8451 100644
--- a/volk/include/volk/volk_64u_byteswap_a16.h
+++ b/volk/include/volk/volk_64u_byteswap_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE2
+#ifdef LV_HAVE_SSE2
#include <emmintrin.h>
/*!
@@ -59,7 +59,7 @@ static inline void volk_64u_byteswap_a16_sse2(uint64_t* intsToSwap, unsigned int
}
#endif /* LV_HAVE_SSE2 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Byteswaps (in-place) an aligned vector of int64_t's.
\param intsToSwap The vector of data to byte swap
diff --git a/volk/include/volk/volk_64u_popcnt_a16.h b/volk/include/volk/volk_64u_popcnt_a16.h
index 59511dc29..b416d052e 100644
--- a/volk/include/volk/volk_64u_popcnt_a16.h
+++ b/volk/include/volk/volk_64u_popcnt_a16.h
@@ -5,7 +5,7 @@
#include <inttypes.h>
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_64u_popcnt_a16_generic(uint64_t* ret, const uint64_t value) {
@@ -36,7 +36,7 @@ static inline void volk_64u_popcnt_a16_generic(uint64_t* ret, const uint64_t val
#endif /*LV_HAVE_GENERIC*/
-#if LV_HAVE_SSE4_2 && LV_HAVE_64
+#if defined(LV_HAVE_SSE4_2) && defined(LV_HAVE_64)
#include <nmmintrin.h>
diff --git a/volk/include/volk/volk_8i_convert_16i_a16.h b/volk/include/volk/volk_8i_convert_16i_a16.h
index 3d7045753..260ac40a1 100644
--- a/volk/include/volk/volk_8i_convert_16i_a16.h
+++ b/volk/include/volk/volk_8i_convert_16i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
@@ -47,7 +47,7 @@ static inline void volk_8i_convert_16i_a16_sse4_1(int16_t* outputVector, const i
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the input 8 bit integer data into 16 bit integer data
\param inputVector The 8 bit input data buffer
@@ -65,7 +65,7 @@ static inline void volk_8i_convert_16i_a16_generic(int16_t* outputVector, const
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Converts the input 8 bit integer data into 16 bit integer data
\param inputVector The 8 bit input data buffer
diff --git a/volk/include/volk/volk_8i_convert_16i_u.h b/volk/include/volk/volk_8i_convert_16i_u.h
index bcff13406..7d7104f52 100644
--- a/volk/include/volk/volk_8i_convert_16i_u.h
+++ b/volk/include/volk/volk_8i_convert_16i_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
@@ -48,7 +48,7 @@ static inline void volk_8i_convert_16i_u_sse4_1(int16_t* outputVector, const int
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the input 8 bit integer data into 16 bit integer data
\param inputVector The 8 bit input data buffer
diff --git a/volk/include/volk/volk_8i_s32f_convert_32f_a16.h b/volk/include/volk/volk_8i_s32f_convert_32f_a16.h
index 99a24ec10..9991b150e 100644
--- a/volk/include/volk/volk_8i_s32f_convert_32f_a16.h
+++ b/volk/include/volk/volk_8i_s32f_convert_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
@@ -66,7 +66,7 @@ static inline void volk_8i_s32f_convert_32f_a16_sse4_1(float* outputVector, cons
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the input 8 bit integer data into floating point data, and divides the each floating point output data point by the scalar value
\param inputVector The 8 bit input data buffer
@@ -86,7 +86,7 @@ static inline void volk_8i_s32f_convert_32f_a16_generic(float* outputVector, con
}
#endif /* LV_HAVE_GENERIC */
-#if LV_HAVE_ORC
+#ifdef LV_HAVE_ORC
/*!
\brief Converts the input 8 bit integer data into floating point data, and divides the each floating point output data point by the scalar value
\param inputVector The 8 bit input data buffer
diff --git a/volk/include/volk/volk_8i_s32f_convert_32f_u.h b/volk/include/volk/volk_8i_s32f_convert_32f_u.h
index 1e30957e8..3cd6bb67c 100644
--- a/volk/include/volk/volk_8i_s32f_convert_32f_u.h
+++ b/volk/include/volk/volk_8i_s32f_convert_32f_u.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
@@ -67,7 +67,7 @@ static inline void volk_8i_s32f_convert_32f_u_sse4_1(float* outputVector, const
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Converts the input 8 bit integer data into floating point data, and divides the each floating point output data point by the scalar value
\param inputVector The 8 bit input data buffer
diff --git a/volk/include/volk/volk_8ic_deinterleave_16i_x2_a16.h b/volk/include/volk/volk_8ic_deinterleave_16i_x2_a16.h
index 91c9b2c58..249acab49 100644
--- a/volk/include/volk/volk_8ic_deinterleave_16i_x2_a16.h
+++ b/volk/include/volk/volk_8ic_deinterleave_16i_x2_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Deinterleaves the complex 8 bit vector into I & Q 16 bit vector data
@@ -51,7 +51,7 @@ static inline void volk_8ic_deinterleave_16i_x2_a16_sse4_1(int16_t* iBuffer, int
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 8 bit vector into I & Q 16 bit vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_8ic_deinterleave_real_16i_a16.h b/volk/include/volk/volk_8ic_deinterleave_real_16i_a16.h
index bf3dc20dd..7b64b37c5 100644
--- a/volk/include/volk/volk_8ic_deinterleave_real_16i_a16.h
+++ b/volk/include/volk/volk_8ic_deinterleave_real_16i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Deinterleaves the complex 8 bit vector into I 16 bit vector data
@@ -42,7 +42,7 @@ static inline void volk_8ic_deinterleave_real_16i_a16_sse4_1(int16_t* iBuffer, c
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 8 bit vector into I 16 bit vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_8ic_deinterleave_real_8i_a16.h b/volk/include/volk/volk_8ic_deinterleave_real_8i_a16.h
index 13de79423..a1abad487 100644
--- a/volk/include/volk/volk_8ic_deinterleave_real_8i_a16.h
+++ b/volk/include/volk/volk_8ic_deinterleave_real_8i_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSSE3
+#ifdef LV_HAVE_SSSE3
#include <tmmintrin.h>
/*!
\brief Deinterleaves the complex 8 bit vector into I vector data
@@ -43,7 +43,7 @@ static inline void volk_8ic_deinterleave_real_8i_a16_ssse3(int8_t* iBuffer, cons
}
#endif /* LV_HAVE_SSSE3 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 8 bit vector into I vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a16.h b/volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a16.h
index 22c3ebb23..80032d2fe 100644
--- a/volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a16.h
+++ b/volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Deinterleaves the complex 8 bit vector into I & Q floating point vector data
@@ -74,7 +74,7 @@ static inline void volk_8ic_s32f_deinterleave_32f_x2_a16_sse4_1(float* iBuffer,
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Deinterleaves the complex 8 bit vector into I & Q floating point vector data
@@ -136,7 +136,7 @@ static inline void volk_8ic_s32f_deinterleave_32f_x2_a16_sse(float* iBuffer, flo
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 8 bit vector into I & Q floating point vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a16.h b/volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a16.h
index 5f1430394..47a968ac1 100644
--- a/volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a16.h
+++ b/volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a16.h
@@ -4,7 +4,7 @@
#include <inttypes.h>
#include <stdio.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Deinterleaves the complex 8 bit vector into I float vector data
@@ -61,7 +61,7 @@ static inline void volk_8ic_s32f_deinterleave_real_32f_a16_sse4_1(float* iBuffer
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_SSE
+#ifdef LV_HAVE_SSE
#include <xmmintrin.h>
/*!
\brief Deinterleaves the complex 8 bit vector into I float vector data
@@ -107,7 +107,7 @@ static inline void volk_8ic_s32f_deinterleave_real_32f_a16_sse(float* iBuffer, c
}
#endif /* LV_HAVE_SSE */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Deinterleaves the complex 8 bit vector into I float vector data
\param complexVector The complex input vector
diff --git a/volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a16.h b/volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a16.h
index d9cacbf46..014f662a3 100644
--- a/volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a16.h
+++ b/volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <volk/volk_complex.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Multiplys the one complex vector with the complex conjugate of the second complex vector and stores their results in the third vector
@@ -68,7 +68,7 @@ static inline void volk_8ic_x2_multiply_conjugate_16ic_a16_sse4_1(lv_16sc_t* cVe
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Multiplys the one complex vector with the complex conjugate of the second complex vector and stores their results in the third vector
\param cVector The complex vector where the results will be stored
diff --git a/volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a16.h b/volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a16.h
index 6ec923a4f..ccf5eaa9d 100644
--- a/volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a16.h
+++ b/volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a16.h
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <volk/volk_complex.h>
-#if LV_HAVE_SSE4_1
+#ifdef LV_HAVE_SSE4_1
#include <smmintrin.h>
/*!
\brief Multiplys the one complex vector with the complex conjugate of the second complex vector and stores their results in the third vector
@@ -87,7 +87,7 @@ static inline void volk_8ic_x2_s32f_multiply_conjugate_32fc_a16_sse4_1(lv_32fc_t
}
#endif /* LV_HAVE_SSE4_1 */
-#if LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
/*!
\brief Multiplys the one complex vector with the complex conjugate of the second complex vector and stores their results in the third vector
\param cVector The complex vector where the results will be stored
diff --git a/volk/include/volk/volk_common.h b/volk/include/volk/volk_common.h
index 6f444ad89..0218e668c 100644
--- a/volk/include/volk/volk_common.h
+++ b/volk/include/volk/volk_common.h
@@ -2,7 +2,7 @@
#define INCLUDED_LIBVECTOR_COMMON_H
#include<inttypes.h>
-#if LV_HAVE_MMX
+#ifdef LV_HAVE_MMX
#include<xmmintrin.h>
union bit128{
uint16_t i16[8];
diff --git a/volk/include/volk/volk_register.py b/volk/include/volk/volk_register.py
index b719042df..20b77da6c 100755
--- a/volk/include/volk/volk_register.py
+++ b/volk/include/volk/volk_register.py
@@ -21,6 +21,7 @@ from make_typedefs import make_typedefs
from make_environment_init_c import make_environment_init_c
from make_environment_init_h import make_environment_init_h
from make_mktables import make_mktables
+from make_makefile_am import make_makefile_am
outfile_set_simd = open("../../config/lv_set_simd_flags.m4", "w");
outfile_reg = open("volk_registry.h", "w");
@@ -33,11 +34,12 @@ outfile_init_h = open("../../lib/volk_init.h", "w");
outfile_init_c = open("../../lib/volk_init.c", "w");
outfile_cpu_h = open("volk_cpu.h", "w");
outfile_cpu_c = open("../../lib/volk_cpu.c", "w");
-outfile_config_in = open("../../volk_config.h.in", "w");
+#outfile_config_in = open("../../volk_config.h.in", "w");
outfile_config_fixed = open("volk_config_fixed.h", "w");
outfile_mktables = open("../../lib/volk_mktables.c", "w");
outfile_environment_c = open("../../lib/volk_environment_init.c", "w");
outfile_environment_h = open("volk_environment_init.h", "w");
+outfile_makefile_am = open("../../lib/Makefile.am", "w");
infile = open("Makefile.am", "r");
@@ -223,8 +225,8 @@ outfile_cpu_c.close();
outfile_set_simd.write(make_set_simd(filearchs));
outfile_set_simd.close();
-outfile_config_in.write(make_config_in(filearchs));
-outfile_config_in.close();
+#outfile_config_in.write(make_config_in(filearchs));
+#outfile_config_in.close();
outfile_reg.write(make_registry(filearchs, functions, fcountlist, taglist));
outfile_reg.close();
@@ -261,3 +263,6 @@ outfile_environment_h.close();
outfile_mktables.write(make_mktables(functions));
outfile_mktables.close();
+
+outfile_makefile_am.write(make_makefile_am(filearchs))
+outfile_makefile_am.close()
diff --git a/volk/lib/Makefile.am b/volk/lib/Makefile.am
index cf8c4f407..298895e2a 100644
--- a/volk/lib/Makefile.am
+++ b/volk/lib/Makefile.am
@@ -1,23 +1,7 @@
-#
-# Copyright 2010,2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
+# This file is automatically generated by make_makefile_am.py.
+# Do not edit this file.
+
include $(top_srcdir)/Makefile.common
#FIXME: forcing the top_builddir for distcheck seems like a bit
@@ -26,34 +10,11 @@ include $(top_srcdir)/Makefile.common
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) \
-I$(top_builddir)/include \
- $(LV_CXXFLAGS) $(WITH_INCLUDES)
-
-
-# We build 1 library and 1 executable here. The library contains
-# everything except the QA code. The C++ QA code is especially recommended
-# when you have general purpose C or C++ code that may not get
-# thoroughly exercised by building and running a GR block. The
-# executable runs the QA code at "make check" time.
-#
-#
-#
-# N.B., If there's a SWIG generated shared library and associated
-# python code, it will be contained in ../python, not here. (That
-# code is conditionally built depending on the state of the
-# --without-python configure option.) However, the .i should be here
-# next to the .h that it's based on.
-
-
-# list of programs run by "make check" and "make distcheck"
-#TESTS = testqa
-#orc stuff gets built in the ORC directory conditional to ORC being enabled.
-#it gets linked in during the build of libvolk as an added library.
-#there might be a better way to do this.
+ $(WITH_INCLUDES)
lib_LTLIBRARIES = \
libvolk.la \
libvolk_runtime.la
- libvolk_orc.la
EXTRA_DIST = \
volk_mktables.c \
@@ -82,6 +43,7 @@ volk_orc_LDFLAGS = \
volk_orc_LIBADD = \
../orc/libvolk_orc.la
+
if LV_HAVE_ORC
libvolk_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 $(volk_orc_LDFLAGS)
@@ -97,39 +59,29 @@ endif
# ----------------------------------------------------------------
# The QA library. Note libvolk.la in LIBADD
# ----------------------------------------------------------------
-#libvolk_qa_la_SOURCES = \
-# qa_utils.cc
+#libvolk_qa_la_SOURCES = # qa_utils.cc
#libvolk_qa_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 -lboost
-#libvolk_qa_la_LIBADD = \
-# libvolk.la \
-# libvolk_runtime.la
+#libvolk_qa_la_LIBADD = # libvolk.la # libvolk_runtime.la
# ----------------------------------------------------------------
# headers that don't get installed
# ----------------------------------------------------------------
-noinst_HEADERS = \
- volk_init.h \
- qa_utils.h
+noinst_HEADERS = volk_init.h qa_utils.h
# ----------------------------------------------------------------
# Our test program
# ----------------------------------------------------------------
-noinst_PROGRAMS = \
- testqa
+noinst_PROGRAMS = testqa
testqa_SOURCES = testqa.cc qa_utils.cc
testqa_CPPFLAGS = -DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN $(AM_CPPFLAGS)
testqa_LDFLAGS = $(BOOST_UNIT_TEST_FRAMEWORK_LIB)
if LV_HAVE_ORC
-testqa_LDADD = \
- libvolk.la \
- libvolk_runtime.la \
- ../orc/libvolk_orc.la
+testqa_LDADD = libvolk.la libvolk_runtime.la ../orc/libvolk_orc.la
else
-testqa_LDADD = \
- libvolk.la
+testqa_LDADD = libvolk.la
endif
distclean-local:
@@ -144,14 +96,3 @@ distclean-local:
rm -f volk_runtime.c
rm -f volk_tables.h
rm -f volk_environment_init.c
-#SUBDIRS =
-
-#ifdef BUILD_SSE
-#SUBDIRS += sse
-#elif BUILD_SPU
-#SUBDIRS += spu
-#else
-#SUBDIRS += port
-#endif
-
-