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 * |
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; |
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 |
|
|