1
0
Fork 0
forked from lthn/blockchain

just check if this fix crashdump

This commit is contained in:
cryptozoidberg 2019-08-29 15:57:31 +02:00
parent b7ad2b21b9
commit 7017ddb6b3
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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)