Go to the source code of this file.
|
#define | AcquireXLock(gLock, oldValue, newValue) |
|
#define | MOV_DD_SWP(a, b) |
|
#define | MOV_DW_SWP(a, b) |
|
#define | REVERSE_DD(a) |
|
#define | REVERSE_DW(a) |
|
#define | MOV_DW2DD_SWP(a, b) |
|
#define | MOV_MSF(a, b) |
|
#define | MOV_MSF_SWP(a, b) |
|
#define | XCHG_DD(a, b) |
|
#define | CONV_TO_LL(a) a.Byte0 | a.Byte1 << 8 | a.Byte2 << 16 | a.Byte3 << 8 |
|
#define | MSF_TO_LBA(Minutes, Seconds, Frames) (ULONG)((60 * 75 * (Minutes)) + (75 * (Seconds)) + ((Frames) - 150)) |
|
#define | PacketFixed2Variable(x, ps) ( ( ( (x) / (ps) ) * (ps+7) ) + ( (x) & (ps-1) ) ) |
|
#define | PacketVariable2Fixed(x, ps) ( ( ( (x) / (ps+7) ) * (ps) ) + ( (((x) % (ps+7)) < (ps)) ? ((x) % (ps+7)) : (ps-1) ) ) |
|
#define | WAIT_FOR_XXX_EMU_DELAY 1000LL |
|
#define | max(a, b) (((a) > (b)) ? (a) : (b)) |
|
#define | min(a, b) (((a) < (b)) ? (a) : (b)) |
|
#define | offsetof(type, field) (ULONG)&(((type *)0)->field) |
|
◆ AcquireXLock
#define AcquireXLock |
( |
|
gLock, |
|
|
|
oldValue, |
|
|
|
newValue |
|
) |
| |
Value:{ \
oldValue = gLock; \
gLock = newValue; \
}
Definition at line 185 of file tools.h.
◆ CONV_TO_LL
#define CONV_TO_LL |
( |
|
a | ) |
a.Byte0 | a.Byte1 << 8 | a.Byte2 << 16 | a.Byte3 << 8 |
◆ max
◆ min
◆ MOV_DD_SWP
Value:{ \
}
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
Definition at line 191 of file tools.h.
◆ MOV_DW2DD_SWP
Value:{ \
_to_->Byte3 = _from_->
Byte0; \
}
Definition at line 223 of file tools.h.
◆ MOV_DW_SWP
◆ MOV_MSF
◆ MOV_MSF_SWP
◆ MSF_TO_LBA
#define MSF_TO_LBA |
( |
|
Minutes, |
|
|
|
Seconds, |
|
|
|
Frames |
|
) |
| (ULONG)((60 * 75 * (Minutes)) + (75 * (Seconds)) + ((Frames) - 150)) |
◆ offsetof
◆ PacketFixed2Variable
#define PacketFixed2Variable |
( |
|
x, |
|
|
|
ps |
|
) |
| ( ( ( (x) / (ps) ) * (ps+7) ) + ( (x) & (ps-1) ) ) |
◆ PacketVariable2Fixed
#define PacketVariable2Fixed |
( |
|
x, |
|
|
|
ps |
|
) |
| ( ( ( (x) / (ps+7) ) * (ps) ) + ( (((x) % (ps+7)) < (ps)) ? ((x) % (ps+7)) : (ps-1) ) ) |
◆ REVERSE_DD
◆ REVERSE_DW
◆ WAIT_FOR_XXX_EMU_DELAY
#define WAIT_FOR_XXX_EMU_DELAY 1000LL |
◆ XCHG_DD
Value:{ \
_temp_ = *_from_; \
*_from_ = *_to_; \
*_to_ = _temp_; \
}
Definition at line 253 of file tools.h.
◆ FOUR_BYTE
◆ PFOUR_BYTE