Compare commits
1 commit
dev
...
lmdb_18_re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7017ddb6b3 |
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#include "support/attributes.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <bitset>
|
||||
//#include <bitset>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
@ -40,7 +40,7 @@ static inline uint32_t clz32(uint32_t x)
|
|||
|
||||
static inline uint32_t popcount32(uint32_t x)
|
||||
{
|
||||
return std::bitset<32>(x).count();
|
||||
return (uint32_t)__builtin_popcount(x);
|
||||
}
|
||||
|
||||
static inline uint32_t mul_hi32(uint32_t x, uint32_t y)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue