annotate Lib/test/decimaltestdata/dsEncode.decTest @ 87690:66c1c9f32567 default tip

Add use_weakref option to functools.lru_cache The use_weakref option makes lru_cache create weak references to the function arguments when creating the cache key, which prevents them from staying in the memory forever even after all other references to them are gone. This is a proof of concept for http://bugs.python.org/issue19859
author Radomir Dopieralski <devel@sheep.art.pl>
date Tue, 03 Dec 2013 16:02:48 +0100
parents 3c9232a684ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68257
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
1 ------------------------------------------------------------------------
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
2 -- dsEncode.decTest -- decimal four-byte format testcases --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
3 -- Copyright (c) IBM Corporation, 2000, 2008. All rights reserved. --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
4 ------------------------------------------------------------------------
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
5 -- Please see the document "General Decimal Arithmetic Testcases" --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
6 -- at http://www2.hursley.ibm.com/decimal for the description of --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
7 -- these testcases. --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
8 -- --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
9 -- These testcases are experimental ('beta' versions), and they --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
10 -- may contain errors. They are offered on an as-is basis. In --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
11 -- particular, achieving the same results as the tests here is not --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
12 -- a guarantee that an implementation complies with any Standard --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
13 -- or specification. The tests are not exhaustive. --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
14 -- --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
15 -- Please send comments, suggestions, and corrections to the author: --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
16 -- Mike Cowlishaw, IBM Fellow --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
17 -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
18 -- mfc@uk.ibm.com --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
19 ------------------------------------------------------------------------
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
20 -- [Previously called decimal32.decTest]
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
21 version: 2.59
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
22
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
23 -- This set of tests is for the four-byte concrete representation.
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
24 -- Its characteristics are:
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
25 --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
26 -- 1 bit sign
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
27 -- 5 bits combination field
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
28 -- 6 bits exponent continuation
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
29 -- 20 bits coefficient continuation
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
30 --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
31 -- Total exponent length 8 bits
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
32 -- Total coefficient length 24 bits (7 digits)
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
33 --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
34 -- Elimit = 191 (maximum encoded exponent)
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
35 -- Emax = 96 (largest exponent value)
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
36 -- Emin = -95 (smallest exponent value)
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
37 -- bias = 101 (subtracted from encoded exponent) = -Etiny
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
38
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
39 -- The testcases here have only exactly representable data on the
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
40 -- 'left-hand-side'; rounding from strings is tested in 'base'
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
41 -- testcase groups.
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
42
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
43 extended: 1
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
44 clamp: 1
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
45 precision: 7
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
46 rounding: half_up
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
47 maxExponent: 96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
48 minExponent: -95
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
49
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
50 -- General testcases
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
51 -- (mostly derived from the Strawman 4 document and examples)
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
52 decs001 apply #A23003D0 -> -7.50
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
53 decs002 apply -7.50 -> #A23003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
54 -- derivative canonical plain strings
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
55 decs003 apply #A26003D0 -> -7.50E+3
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
56 decs004 apply -7.50E+3 -> #A26003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
57 decs005 apply #A25003D0 -> -750
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
58 decs006 apply -750 -> #A25003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
59 decs007 apply #A24003D0 -> -75.0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
60 decs008 apply -75.0 -> #A24003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
61 decs009 apply #A22003D0 -> -0.750
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
62 decs010 apply -0.750 -> #A22003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
63 decs011 apply #A21003D0 -> -0.0750
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
64 decs012 apply -0.0750 -> #A21003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
65 decs013 apply #A1f003D0 -> -0.000750
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
66 decs014 apply -0.000750 -> #A1f003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
67 decs015 apply #A1d003D0 -> -0.00000750
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
68 decs016 apply -0.00000750 -> #A1d003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
69 decs017 apply #A1c003D0 -> -7.50E-7
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
70 decs018 apply -7.50E-7 -> #A1c003D0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
71
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
72 -- Normality
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
73 decs020 apply 1234567 -> #2654d2e7
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
74 decs021 apply -1234567 -> #a654d2e7
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
75 decs022 apply 1111111 -> #26524491
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
76
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
77 -- Nmax and similar
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
78 decs031 apply 9.999999E+96 -> #77f3fcff
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
79 decs032 apply #77f3fcff -> 9.999999E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
80 decs033 apply 1.234567E+96 -> #47f4d2e7
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
81 decs034 apply #47f4d2e7 -> 1.234567E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
82 -- fold-downs (more below)
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
83 decs035 apply 1.23E+96 -> #47f4c000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
84 decs036 apply #47f4c000 -> 1.230000E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
85 decs037 apply 1E+96 -> #47f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
86 decs038 apply #47f00000 -> 1.000000E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
87
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
88 decs051 apply 12345 -> #225049c5
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
89 decs052 apply #225049c5 -> 12345
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
90 decs053 apply 1234 -> #22500534
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
91 decs054 apply #22500534 -> 1234
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
92 decs055 apply 123 -> #225000a3
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
93 decs056 apply #225000a3 -> 123
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
94 decs057 apply 12 -> #22500012
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
95 decs058 apply #22500012 -> 12
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
96 decs059 apply 1 -> #22500001
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
97 decs060 apply #22500001 -> 1
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
98 decs061 apply 1.23 -> #223000a3
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
99 decs062 apply #223000a3 -> 1.23
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
100 decs063 apply 123.45 -> #223049c5
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
101 decs064 apply #223049c5 -> 123.45
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
102
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
103 -- Nmin and below
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
104 decs071 apply 1E-95 -> #00600001
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
105 decs072 apply #00600001 -> 1E-95
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
106 decs073 apply 1.000000E-95 -> #04000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
107 decs074 apply #04000000 -> 1.000000E-95
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
108 decs075 apply 1.000001E-95 -> #04000001
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
109 decs076 apply #04000001 -> 1.000001E-95
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
110
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
111 decs077 apply 0.100000E-95 -> #00020000 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
112 decs07x apply 1.00000E-96 -> 1.00000E-96 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
113 decs078 apply #00020000 -> 1.00000E-96 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
114 decs079 apply 0.000010E-95 -> #00000010 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
115 decs080 apply #00000010 -> 1.0E-100 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
116 decs081 apply 0.000001E-95 -> #00000001 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
117 decs082 apply #00000001 -> 1E-101 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
118 decs083 apply 1e-101 -> #00000001 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
119 decs084 apply #00000001 -> 1E-101 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
120 decs08x apply 1e-101 -> 1E-101 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
121
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
122 -- underflows cannot be tested; just check edge case
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
123 decs090 apply 1e-101 -> #00000001 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
124
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
125 -- same again, negatives --
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
126
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
127 -- Nmax and similar
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
128 decs122 apply -9.999999E+96 -> #f7f3fcff
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
129 decs123 apply #f7f3fcff -> -9.999999E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
130 decs124 apply -1.234567E+96 -> #c7f4d2e7
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
131 decs125 apply #c7f4d2e7 -> -1.234567E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
132 -- fold-downs (more below)
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
133 decs130 apply -1.23E+96 -> #c7f4c000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
134 decs131 apply #c7f4c000 -> -1.230000E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
135 decs132 apply -1E+96 -> #c7f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
136 decs133 apply #c7f00000 -> -1.000000E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
137
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
138 decs151 apply -12345 -> #a25049c5
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
139 decs152 apply #a25049c5 -> -12345
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
140 decs153 apply -1234 -> #a2500534
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
141 decs154 apply #a2500534 -> -1234
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
142 decs155 apply -123 -> #a25000a3
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
143 decs156 apply #a25000a3 -> -123
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
144 decs157 apply -12 -> #a2500012
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
145 decs158 apply #a2500012 -> -12
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
146 decs159 apply -1 -> #a2500001
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
147 decs160 apply #a2500001 -> -1
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
148 decs161 apply -1.23 -> #a23000a3
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
149 decs162 apply #a23000a3 -> -1.23
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
150 decs163 apply -123.45 -> #a23049c5
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
151 decs164 apply #a23049c5 -> -123.45
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
152
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
153 -- Nmin and below
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
154 decs171 apply -1E-95 -> #80600001
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
155 decs172 apply #80600001 -> -1E-95
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
156 decs173 apply -1.000000E-95 -> #84000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
157 decs174 apply #84000000 -> -1.000000E-95
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
158 decs175 apply -1.000001E-95 -> #84000001
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
159 decs176 apply #84000001 -> -1.000001E-95
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
160
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
161 decs177 apply -0.100000E-95 -> #80020000 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
162 decs178 apply #80020000 -> -1.00000E-96 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
163 decs179 apply -0.000010E-95 -> #80000010 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
164 decs180 apply #80000010 -> -1.0E-100 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
165 decs181 apply -0.000001E-95 -> #80000001 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
166 decs182 apply #80000001 -> -1E-101 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
167 decs183 apply -1e-101 -> #80000001 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
168 decs184 apply #80000001 -> -1E-101 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
169
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
170 -- underflow edge case
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
171 decs190 apply -1e-101 -> #80000001 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
172
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
173 -- zeros
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
174 decs400 apply 0E-400 -> #00000000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
175 decs401 apply 0E-101 -> #00000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
176 decs402 apply #00000000 -> 0E-101
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
177 decs403 apply 0.000000E-95 -> #00000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
178 decs404 apply #00000000 -> 0E-101
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
179 decs405 apply 0E-2 -> #22300000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
180 decs406 apply #22300000 -> 0.00
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
181 decs407 apply 0 -> #22500000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
182 decs408 apply #22500000 -> 0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
183 decs409 apply 0E+3 -> #22800000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
184 decs410 apply #22800000 -> 0E+3
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
185 decs411 apply 0E+90 -> #43f00000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
186 decs412 apply #43f00000 -> 0E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
187 -- clamped zeros...
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
188 decs413 apply 0E+91 -> #43f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
189 decs414 apply #43f00000 -> 0E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
190 decs415 apply 0E+96 -> #43f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
191 decs416 apply #43f00000 -> 0E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
192 decs417 apply 0E+400 -> #43f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
193 decs418 apply #43f00000 -> 0E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
194
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
195 -- negative zeros
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
196 decs420 apply -0E-400 -> #80000000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
197 decs421 apply -0E-101 -> #80000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
198 decs422 apply #80000000 -> -0E-101
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
199 decs423 apply -0.000000E-95 -> #80000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
200 decs424 apply #80000000 -> -0E-101
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
201 decs425 apply -0E-2 -> #a2300000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
202 decs426 apply #a2300000 -> -0.00
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
203 decs427 apply -0 -> #a2500000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
204 decs428 apply #a2500000 -> -0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
205 decs429 apply -0E+3 -> #a2800000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
206 decs430 apply #a2800000 -> -0E+3
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
207 decs431 apply -0E+90 -> #c3f00000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
208 decs432 apply #c3f00000 -> -0E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
209 -- clamped zeros...
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
210 decs433 apply -0E+91 -> #c3f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
211 decs434 apply #c3f00000 -> -0E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
212 decs435 apply -0E+96 -> #c3f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
213 decs436 apply #c3f00000 -> -0E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
214 decs437 apply -0E+400 -> #c3f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
215 decs438 apply #c3f00000 -> -0E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
216
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
217 -- Specials
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
218 decs500 apply Infinity -> #78000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
219 decs501 apply #78787878 -> #78000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
220 decs502 apply #78000000 -> Infinity
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
221 decs503 apply #79797979 -> #78000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
222 decs504 apply #79000000 -> Infinity
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
223 decs505 apply #7a7a7a7a -> #78000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
224 decs506 apply #7a000000 -> Infinity
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
225 decs507 apply #7b7b7b7b -> #78000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
226 decs508 apply #7b000000 -> Infinity
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
227 decs509 apply #7c7c7c7c -> #7c0c7c7c
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
228
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
229 decs510 apply NaN -> #7c000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
230 decs511 apply #7c000000 -> NaN
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
231 decs512 apply #7d7d7d7d -> #7c0d7d7d
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
232 decs513 apply #7d000000 -> NaN
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
233 decs514 apply #7e7e7e7e -> #7e0e7c7e
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
234 decs515 apply #7e000000 -> sNaN
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
235 decs516 apply #7f7f7f7f -> #7e0f7c7f
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
236 decs517 apply #7f000000 -> sNaN
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
237 decs518 apply #7fffffff -> sNaN999999
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
238 decs519 apply #7fffffff -> #7e03fcff
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
239
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
240 decs520 apply -Infinity -> #f8000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
241 decs521 apply #f8787878 -> #f8000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
242 decs522 apply #f8000000 -> -Infinity
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
243 decs523 apply #f9797979 -> #f8000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
244 decs524 apply #f9000000 -> -Infinity
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
245 decs525 apply #fa7a7a7a -> #f8000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
246 decs526 apply #fa000000 -> -Infinity
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
247 decs527 apply #fb7b7b7b -> #f8000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
248 decs528 apply #fb000000 -> -Infinity
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
249
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
250 decs529 apply -NaN -> #fc000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
251 decs530 apply #fc7c7c7c -> #fc0c7c7c
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
252 decs531 apply #fc000000 -> -NaN
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
253 decs532 apply #fd7d7d7d -> #fc0d7d7d
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
254 decs533 apply #fd000000 -> -NaN
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
255 decs534 apply #fe7e7e7e -> #fe0e7c7e
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
256 decs535 apply #fe000000 -> -sNaN
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
257 decs536 apply #ff7f7f7f -> #fe0f7c7f
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
258 decs537 apply #ff000000 -> -sNaN
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
259 decs538 apply #ffffffff -> -sNaN999999
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
260 decs539 apply #ffffffff -> #fe03fcff
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
261
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
262 -- diagnostic NaNs
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
263 decs540 apply NaN -> #7c000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
264 decs541 apply NaN0 -> #7c000000
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
265 decs542 apply NaN1 -> #7c000001
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
266 decs543 apply NaN12 -> #7c000012
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
267 decs544 apply NaN79 -> #7c000079
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
268 decs545 apply NaN12345 -> #7c0049c5
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
269 decs546 apply NaN123456 -> #7c028e56
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
270 decs547 apply NaN799799 -> #7c0f7fdf
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
271 decs548 apply NaN999999 -> #7c03fcff
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
272
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
273
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
274 -- fold-down full sequence
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
275 decs601 apply 1E+96 -> #47f00000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
276 decs602 apply #47f00000 -> 1.000000E+96
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
277 decs603 apply 1E+95 -> #43f20000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
278 decs604 apply #43f20000 -> 1.00000E+95
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
279 decs605 apply 1E+94 -> #43f04000 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
280 decs606 apply #43f04000 -> 1.0000E+94
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
281 decs607 apply 1E+93 -> #43f00400 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
282 decs608 apply #43f00400 -> 1.000E+93
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
283 decs609 apply 1E+92 -> #43f00080 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
284 decs610 apply #43f00080 -> 1.00E+92
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
285 decs611 apply 1E+91 -> #43f00010 Clamped
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
286 decs612 apply #43f00010 -> 1.0E+91
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
287 decs613 apply 1E+90 -> #43f00001
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
288 decs614 apply #43f00001 -> 1E+90
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
289
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
290
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
291 -- Selected DPD codes
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
292 decs700 apply #22500000 -> 0
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
293 decs701 apply #22500009 -> 9
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
294 decs702 apply #22500010 -> 10
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
295 decs703 apply #22500019 -> 19
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
296 decs704 apply #22500020 -> 20
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
297 decs705 apply #22500029 -> 29
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
298 decs706 apply #22500030 -> 30
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
299 decs707 apply #22500039 -> 39
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
300 decs708 apply #22500040 -> 40
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
301 decs709 apply #22500049 -> 49
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
302 decs710 apply #22500050 -> 50
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
303 decs711 apply #22500059 -> 59
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
304 decs712 apply #22500060 -> 60
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
305 decs713 apply #22500069 -> 69
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
306 decs714 apply #22500070 -> 70
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
307 decs715 apply #22500071 -> 71
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
308 decs716 apply #22500072 -> 72
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
309 decs717 apply #22500073 -> 73
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
310 decs718 apply #22500074 -> 74
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
311 decs719 apply #22500075 -> 75
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
312 decs720 apply #22500076 -> 76
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
313 decs721 apply #22500077 -> 77
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
314 decs722 apply #22500078 -> 78
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
315 decs723 apply #22500079 -> 79
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
316
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
317 decs730 apply #2250029e -> 994
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
318 decs731 apply #2250029f -> 995
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
319 decs732 apply #225002a0 -> 520
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
320 decs733 apply #225002a1 -> 521
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
321
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
322 -- DPD: one of each of the huffman groups
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
323 decs740 apply #225003f7 -> 777
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
324 decs741 apply #225003f8 -> 778
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
325 decs742 apply #225003eb -> 787
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
326 decs743 apply #2250037d -> 877
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
327 decs744 apply #2250039f -> 997
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
328 decs745 apply #225003bf -> 979
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
329 decs746 apply #225003df -> 799
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
330 decs747 apply #2250006e -> 888
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
331
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
332
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
333 -- DPD all-highs cases (includes the 24 redundant codes)
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
334 decs750 apply #2250006e -> 888
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
335 decs751 apply #2250016e -> 888
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
336 decs752 apply #2250026e -> 888
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
337 decs753 apply #2250036e -> 888
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
338 decs754 apply #2250006f -> 889
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
339 decs755 apply #2250016f -> 889
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
340 decs756 apply #2250026f -> 889
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
341 decs757 apply #2250036f -> 889
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
342
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
343 decs760 apply #2250007e -> 898
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
344 decs761 apply #2250017e -> 898
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
345 decs762 apply #2250027e -> 898
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
346 decs763 apply #2250037e -> 898
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
347 decs764 apply #2250007f -> 899
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
348 decs765 apply #2250017f -> 899
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
349 decs766 apply #2250027f -> 899
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
350 decs767 apply #2250037f -> 899
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
351
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
352 decs770 apply #225000ee -> 988
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
353 decs771 apply #225001ee -> 988
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
354 decs772 apply #225002ee -> 988
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
355 decs773 apply #225003ee -> 988
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
356 decs774 apply #225000ef -> 989
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
357 decs775 apply #225001ef -> 989
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
358 decs776 apply #225002ef -> 989
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
359 decs777 apply #225003ef -> 989
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
360
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
361 decs780 apply #225000fe -> 998
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
362 decs781 apply #225001fe -> 998
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
363 decs782 apply #225002fe -> 998
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
364 decs783 apply #225003fe -> 998
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
365 decs784 apply #225000ff -> 999
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
366 decs785 apply #225001ff -> 999
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
367 decs786 apply #225002ff -> 999
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
368 decs787 apply #225003ff -> 999
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
369
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
370 -- narrowing case
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
371 decs790 apply 2.00E-99 -> #00000100 Subnormal
3c9232a684ae Dummy-merge 3.1 branch into 3.2 branch.
Georg Brandl <georg@python.org>
parents: 68251
diff changeset
372 decs791 apply #00000100 -> 2.00E-99 Subnormal