Removed unused session_control.cc.
[ardour.git] / libs / ardour / globals.cc
index 3f47b30c1f8ca1333205648557be4b8e0df2dec8..05b7f3e8f03c212f5e41b62da0923ee9f9da9c6d 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: globals.cc 935 2006-09-29 21:39:39Z paul $
 */
 
 #include <cstdio> // Needed so that libraptor (included in lrdf) won't complain
@@ -196,6 +195,7 @@ setup_hardware_optimization (bool try_optimization)
 {
         bool generic_mix_functions = true;
 
+
        if (try_optimization) {
 
 #if defined (ARCH_X86) && defined (BUILD_SSE_OPTIMIZATIONS)
@@ -209,21 +209,21 @@ setup_hardware_optimization (bool try_optimization)
                                 "cpuid\n"
                                 "movl %%edx, %0\n"
                                 "popl %%ebx\n"
-                            : "=l" (use_sse)
+                            : "=r" (use_sse)
                             : 
                         : "%eax", "%ecx", "%edx", "memory");
 
 #else
 
                asm (
-                                "movq $1, %%rax\n"
                                 "pushq %%rbx\n"
+                                "movq $1, %%rax\n"
                                 "cpuid\n"
                                 "movq %%rdx, %0\n"
                                 "popq %%rbx\n"
-                            : "=l" (use_sse)
+                            : "=r" (use_sse)
                             : 
-                        : "%rax", "%rcx", "%rdx", "memory");
+                        : "%rax", "%rcx", "%rdx", "memory");
 
 #endif /* USE_X86_64_ASM */
                use_sse &= (1 << 25); // bit 25 = SSE support
@@ -278,8 +278,6 @@ ARDOUR::init (bool use_vst, bool try_optimization)
 
        (void) bindtextdomain(PACKAGE, LOCALEDIR);
 
-       PBD::ID::init ();
-
        setup_enum_writer ();
 
        lrdf_init();
@@ -615,6 +613,7 @@ std::istream& operator>>(std::istream& o, HeaderFormat& var) { return int_to_typ
 std::istream& operator>>(std::istream& o, SampleFormat& var) { return int_to_type<SampleFormat> (o, var); }
 std::istream& operator>>(std::istream& o, AutoConnectOption& var) { return int_to_type<AutoConnectOption> (o, var); }
 std::istream& operator>>(std::istream& o, MonitorModel& var) { return int_to_type<MonitorModel> (o, var); }
+std::istream& operator>>(std::istream& o, RemoteModel& var) { return int_to_type<RemoteModel> (o, var); }
 std::istream& operator>>(std::istream& o, EditMode& var) { return int_to_type<EditMode> (o, var); }
 std::istream& operator>>(std::istream& o, SoloModel& var) { return int_to_type<SoloModel> (o, var); }
 std::istream& operator>>(std::istream& o, LayerModel& var) { return int_to_type<LayerModel> (o, var); }