summaryrefslogtreecommitdiff
path: root/volk/tmpl
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-08-31 18:38:05 -0700
committerJosh Blum <josh@joshknows.com>2012-08-31 18:38:05 -0700
commit18f94d0cc22bfe1fc8c1f6893fb8266f8ead6a59 (patch)
tree622c00e56bc9e9fe6e7641b97550b192b2af2e02 /volk/tmpl
parent68828bef94ffa018807ab1a1178895336cdc3fee (diff)
volk: remove the generation of _g variant
Diffstat (limited to 'volk/tmpl')
-rw-r--r--volk/tmpl/volk.tmpl.c15
-rw-r--r--volk/tmpl/volk.tmpl.h3
2 files changed, 0 insertions, 18 deletions
diff --git a/volk/tmpl/volk.tmpl.c b/volk/tmpl/volk.tmpl.c
index 0e17940568..0c3a574f04 100644
--- a/volk/tmpl/volk.tmpl.c
+++ b/volk/tmpl/volk.tmpl.c
@@ -111,16 +111,8 @@ static inline void __init_$(kern.name)(void)
$(kern.name)_a = get_machine()->$(kern.name)_impls[index_a];
$(kern.name)_u = get_machine()->$(kern.name)_impls[index_u];
- size_t i;
- for (i = 0; i < n_impls; i++){
- if (strcmp("generic", impl_names[i]) == 0){
- $(kern.name)_g = get_machine()->$(kern.name)_impls[i];
- }
- }
-
assert($(kern.name)_a);
assert($(kern.name)_u);
- assert($(kern.name)_g);
$(kern.name) = &__$(kern.name)_d;
}
@@ -137,12 +129,6 @@ static inline void __$(kern.name)_u($kern.arglist_full)
$(kern.name)_u($kern.arglist_names);
}
-static inline void __$(kern.name)_g($kern.arglist_full)
-{
- __init_$(kern.name)();
- $(kern.name)_g($kern.arglist_names);
-}
-
static inline void __$(kern.name)($kern.arglist_full)
{
__init_$(kern.name)();
@@ -151,7 +137,6 @@ static inline void __$(kern.name)($kern.arglist_full)
$kern.pname $(kern.name)_a = &__$(kern.name)_a;
$kern.pname $(kern.name)_u = &__$(kern.name)_u;
-$kern.pname $(kern.name)_g = &__$(kern.name)_g;
$kern.pname $(kern.name) = &__$(kern.name);
void $(kern.name)_manual($kern.arglist_full, const char* impl_name)
diff --git a/volk/tmpl/volk.tmpl.h b/volk/tmpl/volk.tmpl.h
index 9fc6dd080f..464b65598a 100644
--- a/volk/tmpl/volk.tmpl.h
+++ b/volk/tmpl/volk.tmpl.h
@@ -75,9 +75,6 @@ extern VOLK_API $kern.pname $(kern.name)_a;
//! A function pointer to the fastest unaligned implementation
extern VOLK_API $kern.pname $(kern.name)_u;
-//! A function pointer to the generic implementation
-extern VOLK_API $kern.pname $(kern.name)_g;
-
//! Call into a specific implementation given by name
extern VOLK_API void $(kern.name)_manual($kern.arglist_full, const char* impl_name);