diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 06:52:20 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 06:52:20 +0400 |
commit | defc1ea34074e7882724c460260d307cdf981a70 (patch) | |
tree | fca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/md5.c | |
parent | 26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff) |
*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
text data bss dec hex filename
808035 611 6868 815514 c719a busybox_old
804472 611 6868 811951 c63af busybox_unstripped
Diffstat (limited to 'libbb/md5.c')
-rw-r--r-- | libbb/md5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/md5.c b/libbb/md5.c index 8d4b9fe52..4ab06eb17 100644 --- a/libbb/md5.c +++ b/libbb/md5.c @@ -24,7 +24,7 @@ /* Initialize structure containing state of computation. * (RFC 1321, 3.3: Step 3) */ -void md5_begin(md5_ctx_t *ctx) +void FAST_FUNC md5_begin(md5_ctx_t *ctx) { ctx->A = 0x67452301; ctx->B = 0xefcdab89; @@ -371,7 +371,7 @@ static void md5_hash_block(const void *buffer, md5_ctx_t *ctx) * This function's internal buffer remembers previous data until it has 64 * bytes worth to pass on. Call md5_end() to flush this buffer. */ -void md5_hash(const void *buffer, size_t len, md5_ctx_t *ctx) +void FAST_FUNC md5_hash(const void *buffer, size_t len, md5_ctx_t *ctx) { char *buf=(char *)buffer; @@ -410,7 +410,7 @@ void md5_hash(const void *buffer, size_t len, md5_ctx_t *ctx) * IMPORTANT: On some systems it is required that RESBUF is correctly * aligned for a 32 bits value. */ -void *md5_end(void *resbuf, md5_ctx_t *ctx) +void* FAST_FUNC md5_end(void *resbuf, md5_ctx_t *ctx) { char *buf = ctx->buffer; int i; |