From c21132e07100c62182a27a8e282cb72463dd2963 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Thu, 12 May 2011 14:50:48 -0700 Subject: Volk: actually return the preferred arch --- volk/lib/volk_rank_archs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volk/lib/volk_rank_archs.c b/volk/lib/volk_rank_archs.c index 1b75af8f4..e10433fd0 100644 --- a/volk/lib/volk_rank_archs.c +++ b/volk/lib/volk_rank_archs.c @@ -30,7 +30,7 @@ unsigned int volk_rank_archs(const char *indices[], const int* arch_defs, unsign //now look for the function name in the prefs list for(i=0; i < n_arch_prefs; i++) { if(!strncmp(name, volk_arch_prefs[i].name, 128)) { //found it - best_val = get_index(indices, n_archs, volk_arch_prefs[i].arch); + return get_index(indices, n_archs, volk_arch_prefs[i].arch); } } -- cgit