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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // For an element-by-element multiply of two float vectors. | 47 // For an element-by-element multiply of two float vectors. |
48 PLATFORM_EXPORT void vmul(const float* source1P, int sourceStride1, const float*
source2P, int sourceStride2, float* destP, int destStride, size_t framesToProce
ss); | 48 PLATFORM_EXPORT void vmul(const float* source1P, int sourceStride1, const float*
source2P, int sourceStride2, float* destP, int destStride, size_t framesToProce
ss); |
49 | 49 |
50 // Multiplies two complex vectors. | 50 // Multiplies two complex vectors. |
51 PLATFORM_EXPORT void zvmul(const float* real1P, const float* imag1P, const float
* real2P, const float* imag2P, float* realDestP, float* imagDestP, size_t frames
ToProcess); | 51 PLATFORM_EXPORT void zvmul(const float* real1P, const float* imag1P, const float
* real2P, const float* imag2P, float* realDestP, float* imagDestP, size_t frames
ToProcess); |
52 | 52 |
53 // Copies elements while clipping values to the threshold inputs. | 53 // Copies elements while clipping values to the threshold inputs. |
54 PLATFORM_EXPORT void vclip(const float* sourceP, int sourceStride, const float*
lowThresholdP, const float* highThresholdP, float* destP, int destStride, size_t
framesToProcess); | 54 PLATFORM_EXPORT void vclip(const float* sourceP, int sourceStride, const float*
lowThresholdP, const float* highThresholdP, float* destP, int destStride, size_t
framesToProcess); |
55 | 55 |
| 56 #if HAVE(ARM_NEON_INTRINSICS) |
| 57 // Neon optimized math functions. |
| 58 void vsmaNEON(const float* sourceP, int sourceStride, const float* scale, float*
destP, int destStride, size_t framesToProcess); |
| 59 void vsmulNEON(const float* sourceP, int sourceStride, const float* scale, float
* destP, int destStride, size_t framesToProcess); |
| 60 void vaddNEON(const float* source1P, int sourceStride1, const float* source2P, i
nt sourceStride2, float* destP, int destStride, size_t framesToProcess); |
| 61 void vmaxmgvNEON(const float* sourceP, int sourceStride, float* maxP, size_t fra
mesToProcess); |
| 62 void vsvesqNEON(const float* sourceP, int sourceStride, float* sumP, size_t fram
esToProcess); |
| 63 void vmulNEON(const float* source1P, int sourceStride1, const float* source2P, i
nt sourceStride2, float* destP, int destStride, size_t framesToProcess); |
| 64 void zvmulNEON(const float* real1P, const float* imag1P, const float* real2P, co
nst float* imag2P, float* realDestP, float* imagDestP, size_t framesToProcess); |
| 65 void vclipNEON(const float* sourceP, int sourceStride, const float* lowThreshold
P, const float* highThresholdP, float* destP, int destStride, size_t framesToPro
cess); |
| 66 #endif |
| 67 |
56 } // namespace VectorMath | 68 } // namespace VectorMath |
57 } // namespace blink | 69 } // namespace blink |
58 | 70 |
59 #endif // VectorMath_h | 71 #endif // VectorMath_h |
OLD | NEW |