This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] soft-fp: Correct comment typo
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 24 Apr 2013 18:48:54 +0100
- Subject: [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); \