projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b2940b
)
Reverting back to the fallback instead of using popcnt; this instruction doesn't...
author
Aaron Ballman
<aaron@aaronballman.com>
Thu, 17 Jan 2013 18:27:30 +0000
(18:27 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Thu, 17 Jan 2013 18:27:30 +0000
(18:27 +0000)
llvm-svn: 172734
llvm/include/llvm/Support/MathExtras.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/MathExtras.h
b/llvm/include/llvm/Support/MathExtras.h
index
b8631a5
..
340b774
100644
(file)
--- a/
llvm/include/llvm/Support/MathExtras.h
+++ b/
llvm/include/llvm/Support/MathExtras.h
@@
-303,8
+303,6
@@
inline unsigned CountTrailingOnes_64(uint64_t Value) {
inline unsigned CountPopulation_32(uint32_t Value) {
#if __GNUC__ >= 4
return __builtin_popcount(Value);
-#elif defined(_MSC_VER)
- return __popcnt(Value);
#else
uint32_t v = Value - ((Value >> 1) & 0x55555555);
v = (v & 0x33333333) + ((v >> 2) & 0x33333333);