strtorx.c (174690) | strtorx.c (219557) |
---|---|
1/**************************************************************** 2 3The author of this software is David M. Gay. 4 5Copyright (C) 1998, 2000 by Lucent Technologies 6All Rights Reserved 7 8Permission to use, copy, modify, and distribute this software and --- 15 unchanged lines hidden (view full) --- 24ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 25THIS SOFTWARE. 26 27****************************************************************/ 28 29/* Please send bug reports to David M. Gay (dmg at acm dot org, 30 * with " at " changed at "@" and " dot " changed to "."). */ 31 | 1/**************************************************************** 2 3The author of this software is David M. Gay. 4 5Copyright (C) 1998, 2000 by Lucent Technologies 6All Rights Reserved 7 8Permission to use, copy, modify, and distribute this software and --- 15 unchanged lines hidden (view full) --- 24ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 25THIS SOFTWARE. 26 27****************************************************************/ 28 29/* Please send bug reports to David M. Gay (dmg at acm dot org, 30 * with " at " changed at "@" and " dot " changed to "."). */ 31 |
32/* $FreeBSD: head/contrib/gdtoa/strtorx.c 174690 2007-12-16 23:31:55Z das $ */ | 32/* $FreeBSD: head/contrib/gdtoa/strtorx.c 219557 2011-03-12 07:03:06Z das $ */ |
33 34#include "gdtoaimp.h" 35 36#undef _0 37#undef _1 38 39/* one or the other of IEEE_MC68k or IEEE_8087 should be #defined */ 40 --- 43 unchanged lines hidden (view full) --- 84 L[_4] = (UShort)bits[0]; 85 L[_3] = (UShort)(bits[0] >> 16); 86 L[_2] = (UShort)bits[1]; 87 L[_1] = (UShort)((bits[1] >> 16) | (3 << 14)); 88 break; 89 90 case STRTOG_Infinite: 91 L[_0] = 0x7fff; | 33 34#include "gdtoaimp.h" 35 36#undef _0 37#undef _1 38 39/* one or the other of IEEE_MC68k or IEEE_8087 should be #defined */ 40 --- 43 unchanged lines hidden (view full) --- 84 L[_4] = (UShort)bits[0]; 85 L[_3] = (UShort)(bits[0] >> 16); 86 L[_2] = (UShort)bits[1]; 87 L[_1] = (UShort)((bits[1] >> 16) | (3 << 14)); 88 break; 89 90 case STRTOG_Infinite: 91 L[_0] = 0x7fff; |
92 L[_1] = L[_2] = L[_3] = L[_4] = 0; | 92 L[_1] = 0x8000; 93 L[_2] = L[_3] = L[_4] = 0; |
93 break; 94 95 case STRTOG_NaN: 96 L[0] = ldus_QNAN0; 97 L[1] = ldus_QNAN1; 98 L[2] = ldus_QNAN2; 99 L[3] = ldus_QNAN3; 100 L[4] = ldus_QNAN4; --- 28 unchanged lines hidden --- | 94 break; 95 96 case STRTOG_NaN: 97 L[0] = ldus_QNAN0; 98 L[1] = ldus_QNAN1; 99 L[2] = ldus_QNAN2; 100 L[3] = ldus_QNAN3; 101 L[4] = ldus_QNAN4; --- 28 unchanged lines hidden --- |