Sync with trunk (r48008)
[reactos.git] / drivers / storage / ide / uniata / inc / misc.h
1 #ifndef __CROSSNT_MISC__H__
2 #define __CROSSNT_MISC__H__
3
4 /* The definitions look so crappy, because the code doesn't care
5 whether the source is an array or an integer */
6 #define MOV_DD_SWP(a,b) ((a) = RtlUlongByteSwap(*(PULONG)&(b)))
7 #define MOV_DW_SWP(a,b) ((a) = RtlUshortByteSwap(*(PUSHORT)&(b)))
8 #define MOV_SWP_DW2DD(a,b) ((a) = RtlUshortByteSwap(*(PUSHORT)&(b)))
9
10 #endif // __CROSSNT_MISC__H__