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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dl/sp/src/arm/arm64/ComplexToRealFixup.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dl/sp/api/armSP.h
diff --git a/dl/sp/api/armSP.h b/dl/sp/api/armSP.h
index 2592679c759c2149120f83ec2668c04ede212a2b..8f804ac3aedfd7833ac27006b5f031adbe550ee1 100644
--- a/dl/sp/api/armSP.h
+++ b/dl/sp/api/armSP.h
@@ -93,8 +93,8 @@ typedef struct ARMsFFTSpec_FC32_Tag
/*
* Compute log2(x), where x must be a power of 2.
*/
-static inline OMX_U32 fastlog2(long x) {
- OMX_U32 out;
+static inline long fastlog2(long x) {
+ long out;
asm("clz %0,%1\n\t"
"sub %0, %0, #63\n\t"
"neg %0, %0\n\t"
« 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