This commit is contained in:
leitner 2004-05-07 00:12:30 +00:00
parent 4eb656485b
commit ed1558cd3d
2 changed files with 543 additions and 475 deletions

1008
Makefile

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,14 @@
#include "byte.h" #include "byte.h"
#include <write12.h> #include "errmsg.h"
int main() { int main() {
char buf[4096]; char buf[4096];
__write1("both aligned\n"); carp("both aligned");
byte_copy(buf,16,"this is a test!\n"); byte_copy(buf,16,"this is a test!\n");
__write1("destination aligned, source unaligned\n"); carp("destination aligned, source unaligned");
byte_copy(buf,1000,buf+1); byte_copy(buf,1000,buf+1);
__write1("destination unaligned, source aligned\n"); carp("destination unaligned, source aligned");
byte_copy(buf+1,1000,buf); byte_copy(buf+1,1000,buf);
__write1("both unaligned\n"); carp("both unaligned");
byte_copy(buf+1,1000,buf+3); byte_copy(buf+1,1000,buf+3);
} }