diff options
| author | Andreas Schwab | 2010-08-09 21:25:41 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2010-08-09 21:25:41 +0200 |
| commit | 671d409f8b29dac2a8902e1932948404c0cfbc74 (patch) | |
| tree | 44d3cbd1c4f90309903bfac2bcca8308abac3f70 /src/md5.c | |
| parent | 148cef8e7a25f4d05d3b90c78fd8714f64048d24 (diff) | |
| download | emacs-671d409f8b29dac2a8902e1932948404c0cfbc74.tar.gz emacs-671d409f8b29dac2a8902e1932948404c0cfbc74.zip | |
Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition.
* m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
* m/amdx86-64.h: Likewise.
* m/arm.h: Likewise.
* m/hp800.h: Likewise.
* m/ia64.h: Likewise.
* m/ibmrs6000.h: Likewise.
* m/ibms390.h: Likewise.
* m/intel386.h: Likewise.
* m/iris4d.h: Likewise.
* m/m68k.h: Likewise.
* m/macppc.h: Likewise.
* m/mips.h: Likewise.
* m/sh3.h: Likewise.
* m/sparc.h: Likewise.
* m/template.h: Likewise.
* m/vax.h: Likewise.
* m/xtensa.h: Likewise.
* fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
WORDS_BIG_ENDIAN.
* lisp.h: Likewise.
* md5.c: Likewise.
* sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
* CPP-DEFINES (WORDS_BIG_ENDIAN): Remove.
* configure.in: Add AC_C_BIGENDIAN.
Diffstat (limited to 'src/md5.c')
| -rw-r--r-- | src/md5.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Functions to compute MD5 message digest of files or memory blocks. | 1 | /* Functions to compute MD5 message digest of files or memory blocks. |
| 2 | according to the definition of MD5 in RFC 1321 from April 1992. | 2 | according to the definition of MD5 in RFC 1321 from April 1992. |
| 3 | Copyright (C) 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | Copyright (C) 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | 2005, 2006, 2007, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of the GNU C Library. | 6 | This file is part of the GNU C Library. |
| 7 | 7 | ||
| @@ -40,7 +40,7 @@ | |||
| 40 | #ifdef _LIBC | 40 | #ifdef _LIBC |
| 41 | # include <endian.h> | 41 | # include <endian.h> |
| 42 | # if __BYTE_ORDER == __BIG_ENDIAN | 42 | # if __BYTE_ORDER == __BIG_ENDIAN |
| 43 | # define WORDS_BIG_ENDIAN 1 | 43 | # define WORDS_BIGENDIAN 1 |
| 44 | # endif | 44 | # endif |
| 45 | /* We need to keep the namespace clean so define the MD5 function | 45 | /* We need to keep the namespace clean so define the MD5 function |
| 46 | protected using leading __ . */ | 46 | protected using leading __ . */ |
| @@ -55,7 +55,7 @@ | |||
| 55 | 55 | ||
| 56 | #include "md5.h" | 56 | #include "md5.h" |
| 57 | 57 | ||
| 58 | #ifdef WORDS_BIG_ENDIAN | 58 | #ifdef WORDS_BIGENDIAN |
| 59 | # define SWAP(n) \ | 59 | # define SWAP(n) \ |
| 60 | (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24)) | 60 | (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24)) |
| 61 | #else | 61 | #else |