home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
stg_v4.lzh
/
memmacro.h
< prev
next >
Wrap
Text File
|
1994-11-11
|
483b
|
14 lines
/*
memory handling functions
PD 1990 by StG
last revisions: 91/05/30
*/
#define _rgc register char
#define _rgi register int
#define _pc (char*)
#define MCPY(a,b,c) {_rgc *x=_pc(a);_rgc *y=_pc(b);int z=(c);while (z--) *x++=*y++;}
#define MINS(a,b,c) {_rgc *x=_pc(a);_rgc *y=_pc(b);int z=(c);x+=z;y+=z;while (z--) *--x=*--y;}
#define MSET(a,b,c) {_rgc *x=_pc(a);_rgi z=(c);while (z--) *x++=(b);}
#define MCLR(a) {_rgc *x=_pc(a);_rgi z=sizeof(*a);while (z--) *x++=0;}