This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

soft-fp: Correct _FP_TO_INT formatting


This patch corrects some soft-fp formatting that failed to follow the
GNU Coding Standards.

Tested for powerpc-nofpu that the disassembly of installed shared
libraries is unchanged by this patch.

Committed as obvious.

2014-09-17  Joseph Myers  <joseph@codesourcery.com>

	* soft-fp/op-common.h (_FP_TO_INT): Correct formatting.

diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h
index 5f37a32..5852a86 100644
--- a/soft-fp/op-common.h
+++ b/soft-fp/op-common.h
@@ -1373,11 +1373,13 @@
 	      r = 1;							\
 	      r <<= rsize - 1;						\
 	      r -= 1 - X##_s;						\
-	    } else {							\
-	    r = 0;							\
-	    if (!X##_s)							\
-	      r = ~r;							\
-	  }								\
+	    }								\
+	  else								\
+	    {								\
+	      r = 0;							\
+	      if (!X##_s)						\
+		r = ~r;							\
+	    }								\
 									\
 	  if (rsigned && X##_s && X##_e == _FP_EXPBIAS_##fs + rsize - 1) \
 	    {								\

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]