ReactOS 0.4.16-dev-91-g764881a
bytesex.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef _PPC_
4#define SWAPD(x) ((((x)&0xff)<<24)|(((x)&0xff00)<<8)|(((x)>>8)&0xff00)|(((x)>>24)&0xff))
5#define SWAPW(x) ((((x)&0xff)<<8)|(((x)>>8)&0xff))
6#else
7#define SWAPD(x) x
8#define SWAPW(x) x
9#endif
10#define SD(Object,Field) Object->Field = SWAPD(Object->Field)
11#define SW(Object,Field) Object->Field = SWAPW(Object->Field)