From: Andy Polyakov Date: Wed, 20 Jul 2005 12:24:04 +0000 (+0000) Subject: Pedantic polish to md5-ia64.S. X-Git-Tag: OpenSSL_0_9_8k^2~1916 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=165a28abae3a9f52b74636f2c1384396b4968656;p=oweals%2Fopenssl.git Pedantic polish to md5-ia64.S. --- diff --git a/crypto/md5/asm/md5-ia64.S b/crypto/md5/asm/md5-ia64.S index 73273fa828..f6bb6aa9d1 100644 --- a/crypto/md5/asm/md5-ia64.S +++ b/crypto/md5/asm/md5-ia64.S @@ -168,6 +168,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #define ADDP add #endif +#if defined(_HPUX_SOURCE) || defined(B_ENDIAN) +#define HOST_IS_BIG_ENDIAN +#endif + // Macros for getting the left and right portions of little-endian words #define GETLW(dst, src, align) dep.z dst = src, 32 - 8 * align, 8 * align @@ -312,7 +316,7 @@ md5_block_asm_host_order: ld4 AccumD = [CtxPtr1] dep DPtr_ = 0, DPtrIn, 0, 2 } ;; -#if defined(_HPUX_SOURCE) || defined(B_ENDIAN) +#ifdef HOST_IS_BIG_ENDIAN (pDataOrder) rum psr.be;; // switch to little-endian #endif { .mmb @@ -361,7 +365,7 @@ md5_block_asm_host_order: } ;; .md5_exit: -#if defined(_HPUX_SOURCE) || defined(B_ENDIAN) +#ifdef HOST_IS_BIG_ENDIAN (pDataOrder) sum psr.be;; // switch back to big-endian mode #endif { .mmi