projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cleanup: Unnecessary bit shift
[lttng-ust.git]
/
libringbuffer
/
backend_internal.h
diff --git
a/libringbuffer/backend_internal.h
b/libringbuffer/backend_internal.h
index 344784feccde9e5cb042175216840c46ba1aa57d..79f8bdeaea9ad933f4956f6eaf641be8416b092c 100644
(file)
--- a/
libringbuffer/backend_internal.h
+++ b/
libringbuffer/backend_internal.h
@@
-485,7
+485,7
@@
static inline int lttng_ust_fls(unsigned int x)
r -= 2;
}
if (!(x & 0x80000000U)) {
- x <<= 1;
+ /* No need to bit shift on last operation */
r -= 1;
}
return r;
This page took
0.023486 seconds
and
4
git commands to generate.