From 3ce2865f93d42f4721d58088dd6ab1dac06ea85b Mon Sep 17 00:00:00 2001 From: Chung-Lin Tang Date: Tue, 24 Apr 2012 21:32:11 +0800 Subject: SH: Replace usage with pre-processor macros. Follow-up to f8887d0a5feda97244613135822b0439addc2b1f. --- sysdeps/sh/memcpy.S | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sysdeps/sh/memcpy.S') diff --git a/sysdeps/sh/memcpy.S b/sysdeps/sh/memcpy.S index 0b9ed6b..b4d90bb 100644 --- a/sysdeps/sh/memcpy.S +++ b/sysdeps/sh/memcpy.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1999-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Kazumoto Kojima Optimized by Toshiyasu Morita @@ -18,7 +18,6 @@ . */ #include -#include /* void *memcpy(void *dst, const void *src, size_t n); No overlap between the memory of DST and of SRC are assumed. */ @@ -49,7 +48,7 @@ L_wordalign: mov.w @r0+,r1 /* Copy one word. */ add #-2,r6 -#if __BYTE_ORDER == __BIG_ENDIAN +#ifdef __BIG_ENDIAN__ add #1,r4 mov.b r1,@r4 shlr8 r1 @@ -98,7 +97,7 @@ L_copydest1_or_3_loop: mov.l @r5+,r0 /* Read first longword. */ dt r7 mov.l @r5+,r1 /* Read second longword. */ -#if __BYTE_ORDER == __BIG_ENDIAN +#ifdef __BIG_ENDIAN__ /* Write first longword as byte, word, byte. */ mov.b r0,@(4,r4) shlr8 r0 @@ -140,7 +139,7 @@ L_copydest2_loop: mov.l @r5+,r0 dt r7 mov.l @r5+,r1 -#if __BYTE_ORDER == __BIG_ENDIAN +#ifdef __BIG_ENDIAN__ mov.w r0,@(2,r4) shlr16 r0 mov.w r0,@r4 -- cgit v1.1