diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
commit | defc1ea34074e7882724c460260d307cdf981a70 (patch) | |
tree | fca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/md5.c | |
parent | 26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff) | |
download | busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.gz busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.bz2 busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.zip |
*: 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 @@ | |||
24 | /* Initialize structure containing state of computation. | 24 | /* Initialize structure containing state of computation. |
25 | * (RFC 1321, 3.3: Step 3) | 25 | * (RFC 1321, 3.3: Step 3) |
26 | */ | 26 | */ |
27 | void md5_begin(md5_ctx_t *ctx) | 27 | void FAST_FUNC md5_begin(md5_ctx_t *ctx) |
28 | { | 28 | { |
29 | ctx->A = 0x67452301; | 29 | ctx->A = 0x67452301; |
30 | ctx->B = 0xefcdab89; | 30 | ctx->B = 0xefcdab89; |
@@ -371,7 +371,7 @@ static void md5_hash_block(const void *buffer, md5_ctx_t *ctx) | |||
371 | * This function's internal buffer remembers previous data until it has 64 | 371 | * This function's internal buffer remembers previous data until it has 64 |
372 | * bytes worth to pass on. Call md5_end() to flush this buffer. */ | 372 | * bytes worth to pass on. Call md5_end() to flush this buffer. */ |
373 | 373 | ||
374 | void md5_hash(const void *buffer, size_t len, md5_ctx_t *ctx) | 374 | void FAST_FUNC md5_hash(const void *buffer, size_t len, md5_ctx_t *ctx) |
375 | { | 375 | { |
376 | char *buf=(char *)buffer; | 376 | char *buf=(char *)buffer; |
377 | 377 | ||
@@ -410,7 +410,7 @@ void md5_hash(const void *buffer, size_t len, md5_ctx_t *ctx) | |||
410 | * IMPORTANT: On some systems it is required that RESBUF is correctly | 410 | * IMPORTANT: On some systems it is required that RESBUF is correctly |
411 | * aligned for a 32 bits value. | 411 | * aligned for a 32 bits value. |
412 | */ | 412 | */ |
413 | void *md5_end(void *resbuf, md5_ctx_t *ctx) | 413 | void* FAST_FUNC md5_end(void *resbuf, md5_ctx_t *ctx) |
414 | { | 414 | { |
415 | char *buf = ctx->buffer; | 415 | char *buf = ctx->buffer; |
416 | int i; | 416 | int i; |