Page MenuHomeFreeBSD

D23926.diff
No OneTemporary

D23926.diff

Index: head/lib/msun/src/s_nan.c
===================================================================
--- head/lib/msun/src/s_nan.c
+++ head/lib/msun/src/s_nan.c
@@ -66,14 +66,15 @@
;
/* Scan backwards, filling in the bits in words[] as we go. */
-#if _BYTE_ORDER == _LITTLE_ENDIAN
for (bitpos = 0; bitpos < 32 * num_words; bitpos += 4) {
-#else
- for (bitpos = 32 * num_words - 4; bitpos >= 0; bitpos -= 4) {
-#endif
if (--si < 0)
break;
+#if _BYTE_ORDER == _LITTLE_ENDIAN
words[bitpos / 32] |= digittoint(s[si]) << (bitpos % 32);
+#else
+ words[num_words - 1 - bitpos / 32] |=
+ digittoint(s[si]) << (bitpos % 32);
+#endif
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 15, 6:51 PM (12 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16663286
Default Alt Text
D23926.diff (658 B)

Event Timeline