Chameleon

Chameleon Commit Details

Date:2011-07-15 03:04:10 (12 years 9 months ago)
Author:Evan Lojewski
Commit:1160
Parents: 1159
Message:Enable using bitfield on bits above 31
Changes:
M/trunk/i386/libsaio/cpu.h

File differences

trunk/i386/libsaio/cpu.h
1010
1111
1212
13
13
1414
1515
1616
extern void scan_cpu(PlatformInfo_t *);
#define bit(n)(1UL << (n))
#define bit(n)(1ULL << (n))
#define bitmask(h,l)((bit(h)|(bit(h)-1)) & ~(bit(l)-1))
#define bitfield(x,h,l)(((x) & bitmask(h,l)) >> l)

Archive Download the corresponding diff file

Revision: 1160