Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Side by Side Diff: dl/sp/api/armSP.h

Issue 1420973006: arm64: clang assembler compatability (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/deps/third_party/openmax@master
Patch Set: arm64: clang assembler compatibility Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | dl/sp/src/arm/arm64/ComplexToRealFixup.S » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 * 9 *
10 * This file was originally licensed as follows. It has been 10 * This file was originally licensed as follows. It has been
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 { 86 {
87 OMX_U32 N; 87 OMX_U32 N;
88 OMX_U16* pBitRev; 88 OMX_U16* pBitRev;
89 OMX_FC32* pTwiddle; 89 OMX_FC32* pTwiddle;
90 OMX_FC32* pBuf; 90 OMX_FC32* pBuf;
91 } ARMsFFTSpec_FC32; 91 } ARMsFFTSpec_FC32;
92 92
93 /* 93 /*
94 * Compute log2(x), where x must be a power of 2. 94 * Compute log2(x), where x must be a power of 2.
95 */ 95 */
96 static inline OMX_U32 fastlog2(long x) { 96 static inline long fastlog2(long x) {
97 OMX_U32 out; 97 long out;
98 asm("clz %0,%1\n\t" 98 asm("clz %0,%1\n\t"
99 "sub %0, %0, #63\n\t" 99 "sub %0, %0, #63\n\t"
100 "neg %0, %0\n\t" 100 "neg %0, %0\n\t"
101 : "=r"(out) 101 : "=r"(out)
102 : "r"(x) 102 : "r"(x)
103 :); 103 :);
104 return out; 104 return out;
105 } 105 }
106 106
107 /* 107 /*
(...skipping 21 matching lines...) Expand all
129 #ifdef __cplusplus 129 #ifdef __cplusplus
130 } 130 }
131 #endif 131 #endif
132 132
133 #endif 133 #endif
134 134
135 /*End of File*/ 135 /*End of File*/
136 136
137 137
138 138
OLDNEW
« no previous file with comments | « no previous file | dl/sp/src/arm/arm64/ComplexToRealFixup.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698