commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 03/06: volk: follow-up to commit cb4142d45


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/06: volk: follow-up to commit cb4142d45 for added volk_get_machine function on master.
Date: Wed, 29 Jan 2014 00:04:26 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit 13a535d0d2329e9de64dde8bbc2634e5f07b94e3
Author: Roy Thompson <address@hidden>
Date:   Tue Jan 28 17:57:43 2014 -0500

    volk: follow-up to commit cb4142d45 for added volk_get_machine function on 
master.
---
 volk/tmpl/volk.tmpl.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/volk/tmpl/volk.tmpl.c b/volk/tmpl/volk.tmpl.c
index df37247..2f54bbc 100644
--- a/volk/tmpl/volk.tmpl.c
+++ b/volk/tmpl/volk.tmpl.c
@@ -85,14 +85,16 @@ const char* volk_get_machine(void)
   else {
     unsigned int max_score = 0;
     unsigned int i;
+    struct volk_machine *max_machine = NULL;
     for(i=0; i<n_volk_machines; i++) {
       if(!(volk_machines[i]->caps & (~volk_get_lvarch()))) {
         if(volk_machines[i]->caps > max_score) {
           max_score = volk_machines[i]->caps;
-          machine = volk_machines[i];
+          max_machine = volk_machines[i];
         }
       }
     }
+    machine = max_machine;
     return machine->name;
   }
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]