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

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

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

revision 1314 by schoenebeck, Fri Aug 31 10:29:13 2007 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 - 2007 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 46  void Features::detect() { Line 46  void Features::detect() {
46  void Features::detect() {}  void Features::detect() {}
47  #endif // CONFIG_ASM && ARCH_X86  #endif // CONFIG_ASM && ARCH_X86
48    
49  void Features::enableDenormalsAreZeroMode() {  bool Features::enableDenormalsAreZeroMode() {
50      #if CONFIG_ASM && ARCH_X86      #if CONFIG_ASM && ARCH_X86
51      if (supportsSSE2()) {      if (supportsSSE2()) {
52          int x;          int x;
# Line 59  void Features::enableDenormalsAreZeroMod Line 59  void Features::enableDenormalsAreZeroMod
59              :: "m" (x)              :: "m" (x)
60              : "%eax"              : "%eax"
61          );          );
62            return true;
63      }      }
64        return false;
65      #endif // CONFIG_ASM && ARCH_X86      #endif // CONFIG_ASM && ARCH_X86
66  }  }
67    

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

  ViewVC Help
Powered by ViewVC