about summary refs log tree commit diff
path: root/sysdeps/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/fenvbits.h2
-rw-r--r--sysdeps/powerpc/fraiseexcpt.c4
-rw-r--r--sysdeps/powerpc/strlen.s10
3 files changed, 8 insertions, 8 deletions
diff --git a/sysdeps/powerpc/fenvbits.h b/sysdeps/powerpc/fenvbits.h
index 867ea5f5b4..8acd0ab8a4 100644
--- a/sysdeps/powerpc/fenvbits.h
+++ b/sysdeps/powerpc/fenvbits.h
@@ -85,7 +85,7 @@ enum
     FE_INVALID_INTEGER_CONVERSION = 1 << 31-23,
 #define FE_INVALID_INTEGER_CONVERSION	FE_INVALID_INTEGER_CONVERSION
 
-#define __FE_ALL_INVALID \
+#define FE_ALL_INVALID \
         (FE_INVALID_SNAN | FE_INVALID_ISI | FE_INVALID_IDI | FE_INVALID_ZDZ \
 	 | FE_INVALID_IMZ | FE_INVALID_COMPARE | FE_INVALID_SOFTWARE \
 	 | FE_INVALID_SQRT | FE_INVALID_INTEGER_CONVERSION)
diff --git a/sysdeps/powerpc/fraiseexcpt.c b/sysdeps/powerpc/fraiseexcpt.c
index aa8f1fcdc6..4305c3dcd2 100644
--- a/sysdeps/powerpc/fraiseexcpt.c
+++ b/sysdeps/powerpc/fraiseexcpt.c
@@ -34,9 +34,9 @@ feraiseexcept (int excepts)
 
   /* Add the exceptions */
   u.l[1] = (u.l[1]
-	    | excepts & __FPSCR_STICKY_BITS
+	    | excepts & FPSCR_STICKY_BITS
 	    /* Turn FE_INVALID into FE_INVALID_SOFTWARE.  */
-	    | excepts << (31 - 21) - (31 - 24)  &  __FE_INVALID_SOFTWARE);
+	    | excepts << (31 - 21) - (31 - 24) & FE_INVALID_SOFTWARE);
 
   /* Store the new status word (along with the rest of the environment),
      triggering any appropriate exceptions.  */
diff --git a/sysdeps/powerpc/strlen.s b/sysdeps/powerpc/strlen.s
index fa1c670912..9d671cabc3 100644
--- a/sysdeps/powerpc/strlen.s
+++ b/sysdeps/powerpc/strlen.s
@@ -100,8 +100,8 @@ strlen:
 	bne   done0
  # Handle second word of pair. Put addi between branches to avoid hurting
  # branch prediction.
-	addi  %r6,%r6,0xfffffeff
-	
+	addi  %r6,%r6,-0x101
+
 	bne   %cr1,loop
 	lwzu  %r8,4(%r4)
 	and   %r0,%r7,%r8
@@ -111,7 +111,7 @@ strlen:
 	bne   done0
 
  # The loop.
-	
+
 loop:	lwz   %r8,4(%r4)
 	lwzu  %r9,8(%r4)
 	add   %r0,%r6,%r8
@@ -127,12 +127,12 @@ loop:	lwz   %r8,4(%r4)
 	add   %r0,%r0,%r7
 	andc  %r8,%r12,%r0
 	b     done0
-	
+
 done1:	and   %r0,%r7,%r8
 	subi  %r4,%r4,4
 	add   %r0,%r0,%r7
 	andc  %r8,%r10,%r0
-	
+
  # When we get to here, r4 points to the first word in the string that
  # contains a zero byte, and the most significant set bit in r8 is in that
  # byte.