/[svn]/linuxsampler/trunk/src/common/Features.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Features.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 579 by schoenebeck, Tue May 24 19:20:20 2005 UTC revision 1723 by schoenebeck, Sun Apr 20 08:53:39 2008 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 Christian Schoenebeck                              *   *   Copyright (C) 2005 - 2008 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 24  Line 24 
24  #ifndef __FEATURES_H__  #ifndef __FEATURES_H__
25  #define __FEATURES_H__  #define __FEATURES_H__
26    
27  #include "global.h"  #include "global_private.h"
28    
29  /**  /**
30   * Detects system / CPU specific features at runtime.   * Detects system / CPU specific features at runtime.
# Line 32  Line 32 
32  class Features {  class Features {
33      public:      public:
34          static void   detect();          static void   detect();
35          static void   enableDenormalsAreZeroMode();          static bool   enableDenormalsAreZeroMode();
36          static String featuresAsString();          static String featuresAsString();
37    
38          #if ARCH_X86          #if CONFIG_ASM && ARCH_X86
39          inline static bool supportsMMX() { return bMMX; }          inline static bool supportsMMX() { return bMMX; }
40          inline static bool supportsSSE() { return bSSE; }          inline static bool supportsSSE() { return bSSE; }
41          inline static bool supportsSSE2() { return bSSE2; }          inline static bool supportsSSE2() { return bSSE2; }
42          #endif // ARCH_X86          #endif // CONFIG_ASM && ARCH_X86
43      private:      private:
44          #if ARCH_X86          #if CONFIG_ASM && ARCH_X86
45          static bool bMMX;          static bool bMMX;
46          static bool bSSE;          static bool bSSE;
47          static bool bSSE2;          static bool bSSE2;
48          #endif // ARCH_X86          #endif // CONFIG_ASM && ARCH_X86
49  };  };
50    
51  #endif // __FEATURES_H__  #endif // __FEATURES_H__

Legend:
Removed from v.579  
changed lines
  Added in v.1723

  ViewVC Help
Powered by ViewVC