Blame SOURCES/glibc-ppc64le-17.patch

147e83
# commit 7b88401f3b25325b1381798a0eccb3efe7751fec
147e83
# Author: Alan Modra <amodra@gmail.com>
147e83
# Date:   Sat Aug 17 18:31:45 2013 +0930
147e83
# 
147e83
#     PowerPC floating point little-endian [12 of 15]
147e83
#     http://sourceware.org/ml/libc-alpha/2013-08/msg00087.html
147e83
#     
147e83
#     Fixes for little-endian in 32-bit assembly.
147e83
#     
147e83
#         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
147e83
#         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
147e83
#         words of double from correct stack offsets.
147e83
#         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
147e83
#         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
147e83
#         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
147e83
# 
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_copysign.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_copysign.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_copysign.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_copysign.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -29,7 +29,7 @@
147e83
 	stwu	r1,-16(r1)
147e83
 	cfi_adjust_cfa_offset (16)
147e83
 	stfd	fp2,8(r1)
147e83
-	lwz	r3,8(r1)
147e83
+	lwz	r3,8+HIWORD(r1)
147e83
 	cmpwi   r3,0
147e83
 	addi    r1,r1,16
147e83
 	cfi_adjust_cfa_offset (-16)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_copysignl.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_copysignl.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_copysignl.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_copysignl.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -30,7 +30,7 @@
147e83
 	fmr	fp0,fp1
147e83
 	fabs	fp1,fp1
147e83
 	fcmpu	cr7,fp0,fp1
147e83
-	lwz	r3,8(r1)
147e83
+	lwz	r3,8+HIWORD(r1)
147e83
 	cmpwi	cr6,r3,0
147e83
 	addi	r1,r1,16
147e83
 	cfi_adjust_cfa_offset (-16)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_lrint.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_lrint.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_lrint.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_lrint.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -24,10 +24,10 @@
147e83
 	stwu	r1,-16(r1)
147e83
 	fctiw	fp13,fp1
147e83
 	stfd	fp13,8(r1)
147e83
-	nop	/* Insure the following load is in a different dispatch group */
147e83
+	nop	/* Ensure the following load is in a different dispatch group */
147e83
 	nop	/* to avoid pipe stall on POWER4&5.  */
147e83
 	nop
147e83
-	lwz	r3,12(r1)
147e83
+	lwz	r3,8+LOWORD(r1)
147e83
 	addi	r1,r1,16
147e83
 	blr
147e83
 	END (__lrint)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_lround.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_lround.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_lround.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/fpu/s_lround.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -67,7 +67,7 @@
147e83
 	nop	/* Ensure the following load is in a different dispatch  */
147e83
 	nop	/* group to avoid pipe stall on POWER4&5.  */
147e83
 	nop
147e83
-	lwz	r3,12(r1)	/* Load return as integer.  */
147e83
+	lwz	r3,8+LOWORD(r1)	/* Load return as integer.  */
147e83
 .Lout:
147e83
 	addi	r1,r1,16
147e83
 	blr
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S	2014-05-27 22:48:09.000000000 -0500
147e83
@@ -29,8 +29,8 @@
147e83
 	nop	/* Insure the following load is in a different dispatch group */
147e83
 	nop	/* to avoid pipe stall on POWER4&5.  */
147e83
 	nop
147e83
-	lwz	r3,8(r1)
147e83
-	lwz	r4,12(r1)
147e83
+	lwz	r3,8+HIWORD(r1)
147e83
+	lwz	r4,8+LOWORD(r1)
147e83
 	addi	r1,r1,16	
147e83
 	blr
147e83
 	END (__llrint)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S	2014-05-27 22:48:44.000000000 -0500
147e83
@@ -28,8 +28,8 @@
147e83
 	nop	/* Insure the following load is in a different dispatch group */
147e83
 	nop	/* to avoid pipe stall on POWER4&5.  */
147e83
 	nop
147e83
-	lwz	r3,8(r1)
147e83
-	lwz	r4,12(r1)
147e83
+	lwz	r3,8+HIWORD(r1)
147e83
+	lwz	r4,8+LOWORD(r1)
147e83
 	addi	r1,r1,16	
147e83
 	blr
147e83
 	END (__llrintf)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -27,8 +27,8 @@
147e83
 	ori	r1,r1,0
147e83
 	stfd	fp1,24(r1)	/* copy FPR to GPR */
147e83
 	ori	r1,r1,0
147e83
-	lwz	r4,24(r1)
147e83
-	lwz	r5,28(r1)
147e83
+	lwz	r4,24+HIWORD(r1)
147e83
+	lwz	r5,24+LOWORD(r1)
147e83
 	lis	r0,0x7ff0	/* const long r0 0x7ff00000 00000000 */
147e83
 	clrlwi	r4,r4,1		/* x = fabs(x) */
147e83
 	cmpw	cr7,r4,r0	/* if (fabs(x) =< inf) */
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -39,8 +39,8 @@
147e83
 	nop	/* Ensure the following load is in a different dispatch  */
147e83
 	nop	/* group to avoid pipe stall on POWER4&5.  */
147e83
 	nop
147e83
-	lwz	r4,12(r1)
147e83
-	lwz	r3,8(r1)
147e83
+	lwz	r3,8+HIWORD(r1)
147e83
+	lwz	r4,8+LOWORD(r1)
147e83
 	addi	r1,r1,16
147e83
 	blr
147e83
 	END (__llround)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -38,7 +38,7 @@
147e83
 	nop	/* Ensure the following load is in a different dispatch  */
147e83
 	nop	/* group to avoid pipe stall on POWER4&5.  */
147e83
 	nop
147e83
-	lwz	r3,12(r1)
147e83
+	lwz	r3,8+LOWORD(r1)
147e83
 	addi	r1,r1,16
147e83
 	blr
147e83
 	END (__lround)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -27,8 +27,8 @@
147e83
 	ori	r1,r1,0
147e83
 	stfd	fp1,24(r1)	/* copy FPR to GPR */
147e83
 	ori	r1,r1,0
147e83
-	lwz	r4,24(r1)
147e83
-	lwz	r5,28(r1)
147e83
+	lwz	r4,24+HIWORD(r1)
147e83
+	lwz	r5,24+LOWORD(r1)
147e83
 	lis	r0,0x7ff0	/* const long r0 0x7ff00000 00000000 */
147e83
 	clrlwi	r4,r4,1		/* x = fabs(x) */
147e83
 	cmpw	cr7,r4,r0	/* if (fabs(x) =< inf) */
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S	2014-05-27 22:46:52.000000000 -0500
147e83
@@ -29,8 +29,8 @@
147e83
 /* Insure the following load is in a different dispatch group by
147e83
    inserting "group ending nop".  */
147e83
 	ori	r1,r1,0
147e83
-	lwz	r3,8(r1)
147e83
-	lwz	r4,12(r1)
147e83
+	lwz	r3,8+HIWORD(r1)
147e83
+	lwz	r4,8+LOWORD(r1)
147e83
 	addi	r1,r1,16	
147e83
 	blr
147e83
 	END (__llrint)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S	2014-05-27 22:47:29.000000000 -0500
147e83
@@ -28,8 +28,8 @@
147e83
 /* Insure the following load is in a different dispatch group by
147e83
    inserting "group ending nop".  */
147e83
 	ori	r1,r1,0
147e83
-	lwz	r3,8(r1)
147e83
-	lwz	r4,12(r1)
147e83
+	lwz	r3,8+HIWORD(r1)
147e83
+	lwz	r4,8+LOWORD(r1)
147e83
 	addi	r1,r1,16	
147e83
 	blr
147e83
 	END (__llrintf)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -39,8 +39,8 @@
147e83
 /* Insure the following load is in a different dispatch group by
147e83
    inserting "group ending nop".  */
147e83
 	ori	r1,r1,0
147e83
-	lwz	r4,12(r1)
147e83
-	lwz	r3,8(r1)
147e83
+	lwz	r3,8+HIWORD(r1)
147e83
+	lwz	r4,8+LOWORD(r1)
147e83
 	addi	r1,r1,16
147e83
 	blr
147e83
 	END (__llround)
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -54,9 +54,8 @@
147e83
 	stfd    fp1,8(r1)     /* Transfer FP to GPR's.  */
147e83
 
147e83
 	ori	2,2,0	      /* Force a new dispatch group.  */
147e83
-	lhz     r0,8(r1)      /* Fetch the upper portion of the high word of
147e83
-			      the FP value (where the exponent and sign bits
147e83
-			      are).  */
147e83
+	lhz	r0,8+HISHORT(r1) /* Fetch the upper 16 bits of the FP value
147e83
+				    (biased exponent and sign bit).  */
147e83
 	clrlwi	r0,r0,17      /* r0 = abs(r0).  */
147e83
 	addi	r1,r1,16      /* Reset the stack pointer.  */
147e83
 	cmpwi	cr7,r0,0x7ff0 /* r4 == 0x7ff0?.  */
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -48,14 +48,13 @@
147e83
 	li	r3,0
147e83
 	bflr    29	      /* If not INF, return.  */
147e83
 
147e83
-	/* Either we have -INF/+INF or a denormal.  */
147e83
+	/* Either we have +INF or -INF.  */
147e83
 
147e83
 	stwu    r1,-16(r1)    /* Allocate stack space.  */
147e83
 	stfd    fp1,8(r1)     /* Transfer FP to GPR's.  */
147e83
 	ori	2,2,0	      /* Force a new dispatch group.  */
147e83
-	lhz	r4,8(r1)      /* Fetch the upper portion of the high word of
147e83
-			      the FP value (where the exponent and sign bits
147e83
-			      are).  */
147e83
+	lhz	r4,8+HISHORT(r1) /* Fetch the upper 16 bits of the FP value
147e83
+				    (biased exponent and sign bit).  */
147e83
 	addi	r1,r1,16      /* Reset the stack pointer.  */
147e83
 	cmpwi	cr7,r4,0x7ff0 /* r4 == 0x7ff0?  */
147e83
 	li	r3,1
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -53,8 +53,8 @@
147e83
 	stwu	r1,-16(r1)    /* Allocate stack space.  */
147e83
 	stfd	fp1,8(r1)     /* Transfer FP to GPR's.  */
147e83
 	ori	2,2,0	      /* Force a new dispatch group.  */
147e83
-	lwz     r4,8(r1)      /* Load the upper half of the FP value.  */
147e83
-	lwz     r5,12(r1)     /* Load the lower half of the FP value.  */
147e83
+	lwz     r4,8+HIWORD(r1) /* Load the upper half of the FP value.  */
147e83
+	lwz     r5,8+LOWORD(r1) /* Load the lower half of the FP value.  */
147e83
 	addi	r1,r1,16      /* Reset the stack pointer.  */
147e83
 	lis     r0,0x7ff0     /* Load the upper portion for an INF/NaN.  */
147e83
 	clrlwi  r4,r4,1	      /* r4 = abs(r4).  */
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -39,10 +39,8 @@
147e83
 
147e83
 	stfd    fp1,-16(r1)   /* Transfer FP to GPR's.  */
147e83
 	ori	2,2,0	      /* Force a new dispatch group.  */
147e83
-
147e83
-	lhz     r4,-16(r1)    /* Fetch the upper portion of the high word of
147e83
-			      the FP value (where the exponent and sign bits
147e83
-			      are).  */
147e83
+	lhz     r4,-16+HISHORT(r1)  /* Fetch the upper 16 bits of the FP value
147e83
+				    (biased exponent and sign bit).  */
147e83
 	clrlwi  r4,r4,17      /* r4 = abs(r4).  */
147e83
 	cmpwi   cr7,r4,0x7ff0 /* r4 == 0x7ff0?  */
147e83
 	bltlr   cr7	      /* LT means finite, other non-finite.  */
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -38,9 +38,8 @@
147e83
 
147e83
 	stfd    fp1,-16(r1)   /* Transfer FP to GPR's.  */
147e83
 	ori	2,2,0	      /* Force a new dispatch group.  */
147e83
-	lhz	r4,-16(r1)    /* Fetch the upper portion of the high word of
147e83
-			      the FP value (where the exponent and sign bits
147e83
-			      are).  */
147e83
+	lhz	r4,-16+HISHORT(r1)  /* Fetch the upper 16 bits of the FP value
147e83
+				    (biased exponent and sign bit).  */
147e83
 	cmpwi	cr7,r4,0x7ff0 /* r4 == 0x7ff0?  */
147e83
 	li	r3,1
147e83
 	beqlr   cr7	      /* EQ means INF, otherwise -INF.  */
147e83
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/sysdep.h glibc-2.17-c758a686/sysdeps/powerpc/sysdep.h
147e83
--- glibc-2.17-c758a686/sysdeps/powerpc/sysdep.h	2014-05-27 22:45:44.000000000 -0500
147e83
+++ glibc-2.17-c758a686/sysdeps/powerpc/sysdep.h	2014-05-27 22:45:46.000000000 -0500
147e83
@@ -144,6 +144,21 @@
147e83
 
147e83
 #define VRSAVE	256
147e83
 
147e83
+/* The 32-bit words of a 64-bit dword are at these offsets in memory.  */
147e83
+#if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
147e83
+# define LOWORD 0
147e83
+# define HIWORD 4
147e83
+#else
147e83
+# define LOWORD 4
147e83
+# define HIWORD 0
147e83
+#endif
147e83
+
147e83
+/* The high 16-bit word of a 64-bit dword is at this offset in memory.  */
147e83
+#if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
147e83
+# define HISHORT 6
147e83
+#else
147e83
+# define HISHORT 0
147e83
+#endif
147e83
 
147e83
 /* This seems to always be the case on PPC.  */
147e83
 #define ALIGNARG(log2) log2