Updates for 386 OS X, add native OS X graphics from Paul Lalonde

This commit is contained in:
Russ Cox
2007-01-09 22:17:21 +00:00
parent 416371c2d3
commit c50e30b59e
16 changed files with 1020 additions and 11 deletions

View File

@@ -20,10 +20,8 @@ $(LIB): $(OFILES)
$(AS) -o $*.$O $*.s
md5block.s: md5block.spp
cpp md5block.spp >md5block.s
gcc -E md5block.spp >md5block.s
sha1block.s: sha1block.spp
cpp sha1block.spp >sha1block.s
gcc -E sha1block.spp >sha1block.s

View File

@@ -43,7 +43,7 @@
#define S43 15
#define S44 21
#define PAYME(x) $ ## x
#define PAYME(x) $##x
/*
* SI is data
@@ -116,9 +116,13 @@
.text
.p2align 2,0x90
#ifdef __Darwin__
.globl __md5block
__md5block:
#else
.globl _md5block
.type _md5block, @function
_md5block:
#endif
/* Prelude */
pushl %ebp

View File

@@ -1,9 +1,13 @@
.text
.p2align 2,0x90
#ifdef __Darwin__
.globl __sha1block
__sha1block:
#else
.globl _sha1block
.type _sha1block, @function
_sha1block:
#endif
/* x = (wp[off-f] ^ wp[off-8] ^ wp[off-14] ^ wp[off-16]) <<< 1;
* wp[off] = x;