apple
This commit is contained in:
parent
aff1f05cfb
commit
54b59fd17c
3 changed files with 11 additions and 1 deletions
|
|
@ -116,8 +116,13 @@
|
||||||
.text
|
.text
|
||||||
|
|
||||||
.p2align 2,0x90
|
.p2align 2,0x90
|
||||||
|
#ifdef __Darwin__
|
||||||
|
.globl __md5block
|
||||||
|
__md5block:
|
||||||
|
#else
|
||||||
.globl _md5block
|
.globl _md5block
|
||||||
_md5block:
|
_md5block:
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Prelude */
|
/* Prelude */
|
||||||
pushl %ebp
|
pushl %ebp
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ UPDATE=mkfile\
|
||||||
%.s: %.spp
|
%.s: %.spp
|
||||||
if [ `uname` = OpenBSD ] || [ `uname` = Darwin ]
|
if [ `uname` = OpenBSD ] || [ `uname` = Darwin ]
|
||||||
then
|
then
|
||||||
gcc -xc -E $stem.spp >$stem.s
|
gcc -xc -D__`uname`__ -E $stem.spp >$stem.s
|
||||||
else
|
else
|
||||||
cpp $stem.spp >$stem.s
|
cpp $stem.spp >$stem.s
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
.text
|
.text
|
||||||
|
|
||||||
.p2align 2,0x90
|
.p2align 2,0x90
|
||||||
|
#ifdef __Darwin__
|
||||||
|
.globl __sha1block
|
||||||
|
__sha1block:
|
||||||
|
#else
|
||||||
.globl _sha1block
|
.globl _sha1block
|
||||||
_sha1block:
|
_sha1block:
|
||||||
|
#endif
|
||||||
|
|
||||||
/* x = (wp[off-f] ^ wp[off-8] ^ wp[off-14] ^ wp[off-16]) <<< 1;
|
/* x = (wp[off-f] ^ wp[off-8] ^ wp[off-14] ^ wp[off-16]) <<< 1;
|
||||||
* wp[off] = x;
|
* wp[off] = x;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue