2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
10 /*****************************************************************************
23 Fill the memory at dest with count times c.
26 dest - The first byte of the destination area in memory
27 c - The byte to fill memory with
28 count - How many bytes to write
44 ******************************************************************************/
48 while (((IPTR
)ptr
)&(AROS_LONGALIGN
-1) && count
)
54 if (count
> sizeof(ULONG
))
56 ULONG
* ulptr
= (ULONG
*)ptr
;
59 fill
= (ULONG
)(c
& 0xFF);
60 fill
= (fill
<< 8) | fill
;
61 fill
= (fill
<< 16) | fill
;
63 while (count
> sizeof(ULONG
))
66 count
-= sizeof(ULONG
);