Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110184271
D23926.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
658 B
Referenced Files
None
Subscribers
None
D23926.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D23926: Swap words order instead of bits order on BIG ENDIAN
Attached
Detach File
Event Timeline
Log In to Comment