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]

[PATCH] soft-fp: Correct comment typo


Hi,

 I've noticed this typo while making the soft-fp qNaN encoding corrections 
for the MIPS target: _FP_SQRT does not produce an sNaN for negative input 
-- just as any other operation implemented by soft-fp it produces a qNaN 
for invalid input.  Here's an obvious fix.

 OK to apply?

2013-04-24  Maciej W. Rozycki  <macro@codesourcery.com>

	* soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.

  Maciej

glibc-soft-fp-qnan-comment.diff
Index: glibc-fsf-trunk-quilt/soft-fp/op-common.h
===================================================================
--- glibc-fsf-trunk-quilt.orig/soft-fp/op-common.h	2013-04-23 00:28:50.598144385 +0100
+++ glibc-fsf-trunk-quilt/soft-fp/op-common.h	2013-04-24 18:27:44.098243082 +0100
@@ -973,7 +973,7 @@ do {									\
     	R##_s = 0;							\
         if (X##_s)							\
           {								\
-	    R##_c = FP_CLS_NAN; /* sNAN */				\
+	    R##_c = FP_CLS_NAN; /* NAN */				\
 	    R##_s = _FP_NANSIGN_##fs;					\
 	    _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs);			\
 	    FP_SET_EXCEPTION(FP_EX_INVALID);				\


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