| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // FFTFrame implementation using Intel's Math Kernel Library (MKL), | 26 // FFTFrame implementation using Intel's Math Kernel Library (MKL), |
| 27 // suitable for use on Windows and Linux. | 27 // suitable for use on Windows and Linux. |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 | 30 |
| 31 #if ENABLE(WEB_AUDIO) | 31 #if ENABLE(WEB_AUDIO) |
| 32 | 32 |
| 33 #if !OS(DARWIN) && USE(WEBAUDIO_MKL) | 33 #if !OS(DARWIN) && USE(WEBAUDIO_MKL) |
| 34 | 34 |
| 35 #include "FFTFrame.h" | 35 #include "core/platform/audio/FFTFrame.h" |
| 36 | 36 |
| 37 #include "mkl_vml.h" | 37 #include "mkl_vml.h" |
| 38 #include <wtf/MathExtras.h> | 38 #include <wtf/MathExtras.h> |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 DFTI_DESCRIPTOR_HANDLE createDescriptorHandle(int fftSize) | 42 DFTI_DESCRIPTOR_HANDLE createDescriptorHandle(int fftSize) |
| 43 { | 43 { |
| 44 DFTI_DESCRIPTOR_HANDLE handle = 0; | 44 DFTI_DESCRIPTOR_HANDLE handle = 0; |
| 45 | 45 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 if (!descriptorHandles[pow2size]) | 259 if (!descriptorHandles[pow2size]) |
| 260 descriptorHandles[pow2size] = createDescriptorHandle(fftSize); | 260 descriptorHandles[pow2size] = createDescriptorHandle(fftSize); |
| 261 return descriptorHandles[pow2size]; | 261 return descriptorHandles[pow2size]; |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace WebCore | 264 } // namespace WebCore |
| 265 | 265 |
| 266 #endif // !OS(DARWIN) && USE(WEBAUDIO_MKL) | 266 #endif // !OS(DARWIN) && USE(WEBAUDIO_MKL) |
| 267 | 267 |
| 268 #endif // ENABLE(WEB_AUDIO) | 268 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |