[En-Nut-Discussion] Do we need something like sbv/sbi to complement sbi/cbi?

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Jan 2 10:36:20 CET 2012


>>>>> "Uwe" == Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> writes:

Just for reference:
The _BI macros should read
#define  _BI2(arg) (((arg) & 0x00000002) ? 2: 1)
#define  _BI4(arg) (((arg) & 0x0000000c) ? (_BI2(arg>> 2) +  2) :  _BI2(arg))
#define  _BI8(arg) (((arg) & 0x000000f0) ? (_BI4(arg>> 4) +  4) :  _BI4(arg))
#define _BI16(arg) (((arg) & 0x0000ff00) ? (_BI8(arg>> 8) +  8) :  _BI8(arg))
#define _BI24(arg) (((arg) & 0x00ff0000) ? (_BI8(arg>>16) + 16) : _BI16(arg))
#define _BI32(arg) (((arg) & 0xff000000) ? (_BI8(arg>>24) + 24) : _BI24(arg))
 

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the En-Nut-Discussion mailing list