This commit is contained in:
rsc 2006-04-21 03:55:13 +00:00
parent aff1f05cfb
commit 54b59fd17c
3 changed files with 11 additions and 1 deletions

View file

@ -116,8 +116,13 @@
.text
.p2align 2,0x90
#ifdef __Darwin__
.globl __md5block
__md5block:
#else
.globl _md5block
_md5block:
#endif
/* Prelude */
pushl %ebp

View file

@ -18,7 +18,7 @@ UPDATE=mkfile\
%.s: %.spp
if [ `uname` = OpenBSD ] || [ `uname` = Darwin ]
then
gcc -xc -E $stem.spp >$stem.s
gcc -xc -D__`uname`__ -E $stem.spp >$stem.s
else
cpp $stem.spp >$stem.s
fi

View file

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