mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
Avoid endian.h include in MIPS string functions.
This commit is contained in:
parent
8dc2363998
commit
8b2b11271e
@ -1,5 +1,9 @@
|
||||
2012-04-26 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/mips/memcpy.S: Don't include <endian.h>. Test __MIPSEB
|
||||
instead of __BYTE_ORDER.
|
||||
* sysdeps/mips/memset.S: Likewise.
|
||||
|
||||
* sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h (struct
|
||||
kernel_rt_sigframe): Use siginfo_t instead of struct siginfo.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Hartvig Ekner <hartvige@mips.com>, 2002.
|
||||
|
||||
@ -17,12 +17,11 @@
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdep.h>
|
||||
#include <endian.h>
|
||||
|
||||
|
||||
/* void *memcpy(void *s1, const void *s2, size_t n); */
|
||||
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
#if __MIPSEB
|
||||
# define LWHI lwl /* high part is left in big-endian */
|
||||
# define SWHI swl /* high part is left in big-endian */
|
||||
# define LWLO lwr /* low part is right in big-endian */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Hartvig Ekner <hartvige@mips.com>, 2002.
|
||||
|
||||
@ -17,12 +17,11 @@
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdep.h>
|
||||
#include <endian.h>
|
||||
|
||||
|
||||
/* void *memset(void *s, int c, size_t n). */
|
||||
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
#if __MIPSEB
|
||||
# define SWHI swl /* high part is left in big-endian */
|
||||
#else
|
||||
# define SWHI swr /* high part is right in little-endian */
|
||||
|
Loading…
Reference in New Issue
Block a user