Commit 1364c5c3 authored by claes's avatar claes

*** empty log message ***

parent 2fbf2c86
......@@ -49,6 +49,12 @@ typedef enum {
#define cdh_CidToVid(cid) ((cid) >> 16)
#define cdh_TidToVid(tid) ((tid) >> 16)
#define cdh_cixToCid( Vid, Cix) (0 + (Vid << 16) + (Cix << 3))
#define cdh_tixToTid( Vid, Tyg, Tix) (0 + (Vid << 16) + (1 << 15) + (Tyg << 11) + Tix)
#define cdh_cixToOix( Cix, Bix, Aix) (0 + (1 << 31) + (Cix << 18) + (Bix << 15) + Aix)
#define cdh_tixToOix( Tyg, Tix) (0 + (1 << 31) + (1 << 30) + (Tyg << 26) + (Tix << 15))
#define cdh_oixToBix( Oix) ((Oix >> 15) & 5)
#define cdh_oixToCix( Oix) ((Oix >> 18) & 0xfff)
typedef struct {
unsigned int oix : 32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment