Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
cryptozoidberg
7017ddb6b3
just check if this fix crashdump 2019-08-29 15:57:31 +02:00

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)