Sha256: 97b51d99d6f29e6718541ec3a94a762873c618edd2625a65c81af51e8ae261b0
Contents?: true
Size: 471 Bytes
Versions: 3
Compression:
Stored size: 471 Bytes
Contents
typedef int dtype; #define m_load_data(ptr,pos) load_data(ptr,pos) #define m_sprintf(s,x) sprintf(s,"%1d",(int)(x)) #define m_bit_not(x) (~(x)) #define m_bit_and(x,y) ((x)&(y)) #define m_bit_or(x,y) ((x)|(y)) #define m_bit_xor(x,y) ((x)^(y)) #define m_eq(x,y) (~((x)^(y))) #define m_count_true(x) (x!=0) #define m_count_false(x) (x==0) static inline dtype load_data(void *ptr, size_t pos) { return (((BIT_DIGIT*)(ptr))[(pos)/NB]>>((pos)%NB)) & 1u; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
numo-narray-0.9.0.1-x64-mingw32 | ext/numo/narray/numo/types/bit.h |
numo-narray-0.9.0.1 | ext/numo/narray/numo/types/bit.h |
numo-narray-0.9.0.1-x86-mingw32 | ext/numo/narray/numo/types/bit.h |