home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume14
/
sharedmem
/
part01
/
src
/
cm_bytestuff.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
C/C++ Source or Header
|
1988-05-17
|
372 b
|
10 lines
/* cm_bytestuff.h - byte stuffing aids */
/* #byteadd is used to add offsets to structures */
/*#define byteadd(a,b) (((int)a) + ((int)b) + (((int)a) + (int)b) % 2)*/
#define byteadd(a,b) (align(((int)(a)) + ((int)(b))))
/* align converts rounds up addresses if they are odd */
/* if this is not done, longword stores fail on the 68000 */
#define align(x) ((x) + (x)%2)