Update to wx3.0, add SSE optimizations based on target_cpu, fix compile warnings
[ctsim.git] / libctsim / backprojectors.cpp
index 5ea532721ccbe6ca25f9409761dd513b180ea3f6..49e3a217bc8a63cb4fd065fd96d22a224292d114 100644 (file)
@@ -6,9 +6,7 @@
 **   Date Started: June 2000
 **
 **  This is part of the CTSim program
-**  Copyright (c) 1983-2001 Kevin Rosenberg
-**
-**  $Id$
+**  Copyright (c) 1983-2009 Kevin Rosenberg
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -187,13 +185,13 @@ Backprojector::convertBackprojectNameToID (const char* const backprojName)
 {
   int backprojID = BPROJ_INVALID;
 
-  for (int i = 0; i < s_iBackprojectCount; i++)
+  for (int i = 0; i < s_iBackprojectCount; i++) {
     if (strcasecmp (backprojName, s_aszBackprojectName[i]) == 0) {
       backprojID = i;
       break;
     }
-
-    return (backprojID);
+  }
+  return (backprojID);
 }
 
 const char*
@@ -224,13 +222,13 @@ Backprojector::convertInterpNameToID (const char* const interpName)
 {
   int interpID = INTERP_INVALID;
 
-  for (int i = 0; i < s_iInterpCount; i++)
+  for (int i = 0; i < s_iInterpCount; i++) {
     if (strcasecmp (interpName, s_aszInterpName[i]) == 0) {
       interpID = i;
       break;
     }
-
-    return (interpID);
+  }
+  return (interpID);
 }
 
 const char*