From owner-cvs-all Sat Jun 22 5:54:15 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E1B4F37B404; Sat, 22 Jun 2002 05:54:11 -0700 (PDT) Received: (from phk@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5MCsBt36492; Sat, 22 Jun 2002 05:54:11 -0700 (PDT) (envelope-from phk) Message-Id: <200206221254.g5MCsBt36492@freefall.freebsd.org> From: Poul-Henning Kamp Date: Sat, 22 Jun 2002 05:54:11 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libmd md5c.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2002/06/22 05:54:11 PDT Modified files: lib/libmd md5c.c Log: Improve the handling of Encode and Decode operations in MD5. Use memcpy for all little-endian architectures, sys/kern/md5c.c indicates this should be safe for all currently supported LE archs. Change the Encode and Decode functions for other archs to use le32toh() and htole32() functions instead of explicit byte shuffling. On sparc64 this gives md5(1) about 8% speed increase. Revision Changes Path 1.14 +15 -22 src/lib/libmd/md5c.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message