mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-06 15:58:25 +08:00
2015-02-13 Steve Ellcey <sellcey@imgtec.com>
* sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if. * sysdeps/mips/memcpy.S (__MIPSEB): Ditto. * sysdeps/mips/memset.S (__MIPSEB): Ditto.
This commit is contained in:
parent
4ab770b7b1
commit
e525154e84
@ -1,3 +1,9 @@
|
|||||||
|
2015-02-13 Steve Ellcey <sellcey@imgtec.com>
|
||||||
|
|
||||||
|
* sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
|
||||||
|
* sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
|
||||||
|
* sysdeps/mips/memset.S (__MIPSEB): Ditto.
|
||||||
|
|
||||||
2015-02-13 Roland McGrath <roland@hack.frob.com>
|
2015-02-13 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
* sysdeps/generic/c++-types.data: New file.
|
* sysdeps/generic/c++-types.data: New file.
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
|
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __MIPSEB
|
#ifdef __MIPSEB
|
||||||
# define __BYTE_ORDER __BIG_ENDIAN
|
# define __BYTE_ORDER __BIG_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
#if __MIPSEL
|
#if __MIPSEL
|
||||||
|
@ -225,7 +225,7 @@
|
|||||||
#ifdef USE_DOUBLE
|
#ifdef USE_DOUBLE
|
||||||
# define C_ST sd
|
# define C_ST sd
|
||||||
# define C_LD ld
|
# define C_LD ld
|
||||||
# if __MIPSEB
|
# ifdef __MIPSEB
|
||||||
# define C_LDHI ldl /* high part is left in big-endian */
|
# define C_LDHI ldl /* high part is left in big-endian */
|
||||||
# define C_STHI sdl /* high part is left in big-endian */
|
# define C_STHI sdl /* high part is left in big-endian */
|
||||||
# define C_LDLO ldr /* low part is right in big-endian */
|
# define C_LDLO ldr /* low part is right in big-endian */
|
||||||
@ -240,7 +240,7 @@
|
|||||||
#else
|
#else
|
||||||
# define C_ST sw
|
# define C_ST sw
|
||||||
# define C_LD lw
|
# define C_LD lw
|
||||||
# if __MIPSEB
|
# ifdef __MIPSEB
|
||||||
# define C_LDHI lwl /* high part is left in big-endian */
|
# define C_LDHI lwl /* high part is left in big-endian */
|
||||||
# define C_STHI swl /* high part is left in big-endian */
|
# define C_STHI swl /* high part is left in big-endian */
|
||||||
# define C_LDLO lwr /* low part is right in big-endian */
|
# define C_LDLO lwr /* low part is right in big-endian */
|
||||||
@ -767,7 +767,7 @@ L(ua_smallCopy_loop):
|
|||||||
|
|
||||||
#else /* R6_CODE */
|
#else /* R6_CODE */
|
||||||
|
|
||||||
# if __MIPSEB
|
# ifdef __MIPSEB
|
||||||
# define SWAP_REGS(X,Y) X, Y
|
# define SWAP_REGS(X,Y) X, Y
|
||||||
# define ALIGN_OFFSET(N) (N)
|
# define ALIGN_OFFSET(N) (N)
|
||||||
# else
|
# else
|
||||||
|
@ -170,14 +170,14 @@
|
|||||||
|
|
||||||
#ifdef USE_DOUBLE
|
#ifdef USE_DOUBLE
|
||||||
# define C_ST sd
|
# define C_ST sd
|
||||||
# if __MIPSEB
|
# ifdef __MIPSEB
|
||||||
# define C_STHI sdl /* high part is left in big-endian */
|
# define C_STHI sdl /* high part is left in big-endian */
|
||||||
# else
|
# else
|
||||||
# define C_STHI sdr /* high part is right in little-endian */
|
# define C_STHI sdr /* high part is right in little-endian */
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define C_ST sw
|
# define C_ST sw
|
||||||
# if __MIPSEB
|
# ifdef __MIPSEB
|
||||||
# define C_STHI swl /* high part is left in big-endian */
|
# define C_STHI swl /* high part is left in big-endian */
|
||||||
# else
|
# else
|
||||||
# define C_STHI swr /* high part is right in little-endian */
|
# define C_STHI swr /* high part is right in little-endian */
|
||||||
|
Loading…
Reference in New Issue
Block a user