Merged revisions 59107-59186 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

(Note: some conflicts in the PCbuild9 directory reverted.  Sorry Christian!)

........
  r59120 | christian.heimes | 2007-11-22 03:21:16 -0800 (Thu, 22 Nov 2007) | 3 lines

  Backport of the PCbuild9 directory from the py3k branch.
  I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k.
  Have fun! :)
........
  r59126 | brett.cannon | 2007-11-22 16:06:51 -0800 (Thu, 22 Nov 2007) | 2 lines

  Fix a bug in the test for using __loader__.get_data().
........
  r59131 | christian.heimes | 2007-11-22 23:05:03 -0800 (Thu, 22 Nov 2007) | 1 line

  Backport of PCbuild9 fixes from py3k r59130
........
  r59132 | christian.heimes | 2007-11-23 01:10:36 -0800 (Fri, 23 Nov 2007) | 2 lines

  Applied patch #1754273 and #1754271 from Thomas Glee
  The patches are adding deprecation warnings for back ticks and <>
........
  r59133 | christian.heimes | 2007-11-23 04:12:02 -0800 (Fri, 23 Nov 2007) | 2 lines

  Fixed problems in the last commit. Filenames and line numbers weren't reported correctly.
  Backquotes still don't report the correct file. The AST nodes only contain the line number but not the file name.
........
  r59134 | christian.heimes | 2007-11-23 04:16:35 -0800 (Fri, 23 Nov 2007) | 1 line

  How did the comment get there?
........
  r59135 | christian.heimes | 2007-11-23 05:25:31 -0800 (Fri, 23 Nov 2007) | 1 line

  And yet another fix for the patch. Paul Moore has send me a note that I've missed a declaration. The additional code has moved the declaration in the middle of the block.
........
  r59136 | andrew.kuchling | 2007-11-23 05:37:39 -0800 (Fri, 23 Nov 2007) | 1 line

  Add item
........
  r59137 | skip.montanaro | 2007-11-23 09:08:35 -0800 (Fri, 23 Nov 2007) | 2 lines

  Make trace and doctest play nice together (issue 1429818).  Will backport.
........
  r59139 | skip.montanaro | 2007-11-23 09:12:47 -0800 (Fri, 23 Nov 2007) | 1 line

  issue 1429818
........
  r59144 | facundo.batista | 2007-11-23 09:59:00 -0800 (Fri, 23 Nov 2007) | 10 lines


  Major change in the internal structure of the Decimal
  number: now it does not store the mantissa as a tuple
  of numbers, but as a string.

  This avoids a lot of conversions, and achieves a
  speedup of 40%. The API remains intact.

  Thanks Mark Dickinson.
........
  r59146 | facundo.batista | 2007-11-23 10:14:50 -0800 (Fri, 23 Nov 2007) | 3 lines


  Test cases from Cowlishaw, v2.57. All are pased cleanly.
........
  r59156 | christian.heimes | 2007-11-23 17:36:02 -0800 (Fri, 23 Nov 2007) | 2 lines

  Added filename to compiling struct based on Martin's suggestion.
  I'm wonder why I was trying to add the filename to the node all the time. The compiling struct is more obvious.
........
  r59158 | christian.heimes | 2007-11-23 17:53:59 -0800 (Fri, 23 Nov 2007) | 2 lines

  Backport of fixes from py3k branch
  svn merge -r59131:HEAD ../../py3k/PCbuild9/ .
........
  r59159 | skip.montanaro | 2007-11-23 20:29:08 -0800 (Fri, 23 Nov 2007) | 1 line

  revert change that breaks test_doctest (which I forgot to run - sorry)
........
  r59162 | skip.montanaro | 2007-11-23 20:31:15 -0800 (Fri, 23 Nov 2007) | 1 line

  revert
........
  r59164 | georg.brandl | 2007-11-24 03:31:46 -0800 (Sat, 24 Nov 2007) | 3 lines

  #1344: document that you need to open std{in,out,err} with PIPE if you want
  communicate() to work as described.
........
  r59165 | georg.brandl | 2007-11-24 03:39:13 -0800 (Sat, 24 Nov 2007) | 2 lines

  #1467: fix documentation for TestResult.add{Error,Failure}.
........
  r59166 | georg.brandl | 2007-11-24 03:42:14 -0800 (Sat, 24 Nov 2007) | 2 lines

  #1355: remove mention of PyXML from xml.dom docs.
........
  r59169 | amaury.forgeotdarc | 2007-11-24 05:20:22 -0800 (Sat, 24 Nov 2007) | 2 lines

  Warning "<> not supported in 3.x" should be enabled only when the -3 option is set.
........
  r59170 | amaury.forgeotdarc | 2007-11-24 05:44:17 -0800 (Sat, 24 Nov 2007) | 3 lines

  Issue #1445: Fix a SystemError when accessing the ``cell_contents``
  attribute of an empty cell object.  Now a ValueError is raised.
........
  r59172 | georg.brandl | 2007-11-24 05:56:09 -0800 (Sat, 24 Nov 2007) | 3 lines

  #1735632: add O_NOATIME constant to os module.
  Also document a few other O_ constants that were missing from documentation.
........
  r59173 | skip.montanaro | 2007-11-24 06:30:47 -0800 (Sat, 24 Nov 2007) | 1 line

  back in these go - thanks to Titus Brown for the fix
........
  r59176 | martin.v.loewis | 2007-11-24 10:33:40 -0800 (Sat, 24 Nov 2007) | 2 lines

  Bug #1494: Document that appendChild removes first.
........
  r59186 | guido.van.rossum | 2007-11-26 14:16:49 -0800 (Mon, 26 Nov 2007) | 2 lines

  A thread-less variant of brownian.py, submitted by Michele Simoniato.
........
This commit is contained in:
Guido van Rossum 2007-11-26 23:23:18 +00:00
parent 4975a1f3f3
commit 0d3fb8a944
157 changed files with 865 additions and 494 deletions

View File

@ -0,0 +1,55 @@
# Brownian motion -- an example of a NON multi-threaded Tkinter program ;)
# By Michele Simoniato, inspired by brownian.py
from Tkinter import *
import random
import sys
WIDTH = 400
HEIGHT = 300
SIGMA = 10
BUZZ = 2
RADIUS = 2
LAMBDA = 10
FILL = 'red'
stop = 0 # Set when main loop exits
root = None # main window
def particle(canvas): # particle = iterator over the moves
r = RADIUS
x = random.gauss(WIDTH/2.0, SIGMA)
y = random.gauss(HEIGHT/2.0, SIGMA)
p = canvas.create_oval(x-r, y-r, x+r, y+r, fill=FILL)
while not stop:
dx = random.gauss(0, BUZZ)
dy = random.gauss(0, BUZZ)
try:
canvas.move(p, dx, dy)
except TclError:
break
else:
yield None
def move(particle): # move the particle at random time
particle.next()
dt = random.expovariate(LAMBDA)
root.after(int(dt*1000), move, particle)
def main():
global root, stop
root = Tk()
canvas = Canvas(root, width=WIDTH, height=HEIGHT)
canvas.pack(fill='both', expand=1)
np = 30
if sys.argv[1:]:
np = int(sys.argv[1])
for i in range(np): # start the dance
move(particle(canvas))
try:
root.mainloop()
finally:
stop = 1
if __name__ == '__main__':
main()

View File

@ -597,14 +597,7 @@ platforms. For descriptions of their availability and use, consult
.. data:: O_BINARY
Option for the *flag* argument to the :func:`open` function. This can be
bit-wise OR'd together with those listed above. Availability: Windows.
.. % XXX need to check on the availability of this one.
.. data:: O_NOINHERIT
O_NOINHERIT
O_SHORT_LIVED
O_TEMPORARY
O_RANDOM
@ -615,6 +608,15 @@ platforms. For descriptions of their availability and use, consult
bit-wise OR'd together. Availability: Windows.
.. data:: O_DIRECT
O_DIRECTORY
O_NOFOLLOW
O_NOATIME
Options for the *flag* argument to the :func:`open` function. These are
GNU extensions and not present if they are not defined by the C library.
.. data:: SEEK_SET
SEEK_CUR
SEEK_END

View File

@ -189,7 +189,12 @@ Instances of the :class:`Popen` class have the following methods:
communicate() returns a tuple (stdout, stderr).
.. note::
Note that if you want to send data to the process's stdin, you need to create
the Popen object with ``stdin=PIPE``. Similarly, to get anything other than
``None`` in the result tuple, you need to give ``stdout=PIPE`` and/or
``stderr=PIPE`` too.
.. note::
The data read is buffered in memory, so do not use this method if the data size
is large or unlimited.

View File

@ -804,8 +804,9 @@ tools which support interactive reporting while tests are being run.
Called when the test case *test* raises an unexpected exception *err* is a tuple
of the form returned by :func:`sys.exc_info`: ``(type, value, traceback)``.
The default implementation appends ``(test, err)`` to the instance's ``errors``
attribute.
The default implementation appends a tuple ``(test, formatted_err)`` to the
instance's ``errors`` attribute, where *formatted_err* is a formatted
traceback derived from *err*.
.. method:: TestResult.addFailure(test, err)
@ -813,8 +814,9 @@ tools which support interactive reporting while tests are being run.
Called when the test case *test* signals a failure. *err* is a tuple of the form
returned by :func:`sys.exc_info`: ``(type, value, traceback)``.
The default implementation appends ``(test, err)`` to the instance's
``failures`` attribute.
The default implementation appends a tuple ``(test, formatted_err)`` to the
instance's ``failures`` attribute, where *formatted_err* is a formatted
traceback derived from *err*.
.. method:: TestResult.addSuccess(test)

View File

@ -29,11 +29,14 @@ representation for XML data.
The Document Object Model is being defined by the W3C in stages, or "levels" in
their terminology. The Python mapping of the API is substantially based on the
DOM Level 2 recommendation. The mapping of the Level 3 specification, currently
only available in draft form, is being developed by the `Python XML Special
Interest Group <http://www.python.org/sigs/xml-sig/>`_ as part of the `PyXML
package <http://pyxml.sourceforge.net/>`_. Refer to the documentation bundled
with that package for information on the current state of DOM Level 3 support.
DOM Level 2 recommendation.
.. XXX PyXML is dead...
.. The mapping of the Level 3 specification, currently
only available in draft form, is being developed by the `Python XML Special
Interest Group <http://www.python.org/sigs/xml-sig/>`_ as part of the `PyXML
package <http://pyxml.sourceforge.net/>`_. Refer to the documentation bundled
with that package for information on the current state of DOM Level 3 support.
.. % What if your needs are somewhere between SAX and the DOM? Perhaps
.. % you cannot afford to load the entire tree in memory but you find the
@ -74,10 +77,6 @@ implementations are free to support the strict mapping from IDL). See section
`Document Object Model (DOM) Level 1 Specification <http://www.w3.org/TR/REC-DOM-Level-1/>`_
The W3C recommendation for the DOM supported by :mod:`xml.dom.minidom`.
`PyXML <http://pyxml.sourceforge.net>`_
Users that require a full-featured implementation of DOM should use the PyXML
package.
`Python Language Mapping Specification <http://www.omg.org/docs/formal/02-11-05.pdf>`_
This specifies the mapping from OMG IDL to Python.
@ -364,8 +363,9 @@ All of the components of an XML document are subclasses of :class:`Node`.
.. method:: Node.appendChild(newChild)
Add a new child node to this node at the end of the list of children, returning
*newChild*.
Add a new child node to this node at the end of the list of
children, returning *newChild*. If the node was already in
in the tree, it is removed first.
.. method:: Node.insertBefore(newChild, refChild)

View File

@ -872,6 +872,10 @@ Build and C API Changes
Changes to Python's build process and to the C API include:
* Python 2.6 can be built with Microsoft Visual Studio 2008.
See the :file:`PCbuild9` directory for the build files.
(Implemented by Christian Heimes.)
* The BerkeleyDB module now has a C API object, available as
``bsddb.db.api``. This object can be used by other C extensions
that wish to use the :mod:`bsddb` module for their own purposes.

File diff suppressed because it is too large Load Diff

View File

@ -315,8 +315,21 @@ class _OutputRedirectingPdb(pdb.Pdb):
"""
def __init__(self, out):
self.__out = out
self.__debugger_used = False
pdb.Pdb.__init__(self, stdout=out)
def set_trace(self, frame=None):
self.__debugger_used = True
if frame is None:
frame = sys._getframe().f_back
pdb.Pdb.set_trace(self, frame)
def set_continue(self):
# Calling set_continue unconditionally would break unit test
# coverage reporting, as Bdb.set_continue calls sys.settrace(None).
if self.__debugger_used:
pdb.Pdb.set_continue(self)
def trace_dispatch(self, *args):
# Redirect stdout to the given stream.
save_stdout = sys.stdout

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This set of tests primarily tests the existence of the operator.
-- Additon, subtraction, rounding, and more overflows are tested

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 9
rounding: half_up
@ -1122,6 +1122,15 @@ addx1116 add -1e-3 +1e-383 -> -0.0009999999999999999 Rounded Inexact
addx1117 add -1e-4 +1e-383 -> -0.00009999999999999999 Rounded Inexact
addx1118 add -1e-5 +1e-383 -> -0.000009999999999999999 Rounded Inexact
addx1119 add -1e-6 +1e-383 -> -9.999999999999999E-7 Rounded Inexact
addx1120 add +1e-383 -1e+2 -> -99.99999999999999 Rounded Inexact
addx1121 add +1e-383 -1e+1 -> -9.999999999999999 Rounded Inexact
addx1123 add +1e-383 -1 -> -0.9999999999999999 Rounded Inexact
addx1124 add +1e-383 -1e-1 -> -0.09999999999999999 Rounded Inexact
addx1125 add +1e-383 -1e-2 -> -0.009999999999999999 Rounded Inexact
addx1126 add +1e-383 -1e-3 -> -0.0009999999999999999 Rounded Inexact
addx1127 add +1e-383 -1e-4 -> -0.00009999999999999999 Rounded Inexact
addx1128 add +1e-383 -1e-5 -> -0.000009999999999999999 Rounded Inexact
addx1129 add +1e-383 -1e-6 -> -9.999999999999999E-7 Rounded Inexact
rounding: down
precision: 7
@ -1658,17 +1667,19 @@ addx6056 add '1.3' '-2.07' -> '-0.77'
addx6057 add '1E+2' '1E+4' -> '1.01E+4'
-- from above
addx6061 add 1 '0.1' -> '1.1'
addx6062 add 1 '0.01' -> '1.01'
addx6063 add 1 '0.001' -> '1.001'
addx6064 add 1 '0.0001' -> '1.0001'
addx6065 add 1 '0.00001' -> '1.00001'
addx6066 add 1 '0.000001' -> '1.000001'
addx6067 add 1 '0.0000001' -> '1.0000001'
addx6068 add 1 '0.00000001' -> '1.00000001'
addx6060 add 1 '0.1' -> '1.1'
addx6061 add 1 '0.01' -> '1.01'
addx6062 add 1 '0.001' -> '1.001'
addx6063 add 1 '0.0001' -> '1.0001'
addx6064 add 1 '0.00001' -> '1.00001'
addx6065 add 1 '0.000001' -> '1.000001'
addx6066 add 1 '0.0000001' -> '1.0000001'
addx6067 add 1 '0.00000001' -> '1.00000001'
-- cancellation to integer
addx6069 add 99999999999999123456789 -99999999999999E+9 -> 123456789
addx6068 add 99999999999999123456789 -99999999999999E+9 -> 123456789
-- similar from FMA fun
addx6069 add "-1234567890123455.234567890123454" "1234567890123456" -> 0.765432109876546
-- some funny zeros [in case of bad signum]
addx6070 add 1 0 -> 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
-- This file tests base conversions from string to a decimal number

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This set of tests uses the same limits as the 8-byte concrete
-- representation, but applies clamping without using format-specific

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- [New 2006.11.27]

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that it cannot be assumed that add/subtract tests cover paths
-- for this operation adequately, here, because the code might be

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This set of tests are for decDoubles only; all arguments are
-- representable in a decDouble
@ -1029,6 +1029,16 @@ ddadd71706 add 130E-2 -12E-1 -> 0.10
ddadd71707 add 130E-2 -1E0 -> 0.30
ddadd71708 add 1E2 -1E4 -> -9.9E+3
-- query from Vincent Kulandaisamy
rounding: ceiling
ddadd71801 add 7.8822773805862E+277 -5.1757503820663E-21 -> 7.882277380586200E+277 Inexact Rounded
ddadd71802 add 7.882277380586200E+277 12.341 -> 7.882277380586201E+277 Inexact Rounded
ddadd71803 add 7.882277380586201E+277 2.7270545046613E-31 -> 7.882277380586202E+277 Inexact Rounded
ddadd71811 add 12.341 -5.1757503820663E-21 -> 12.34100000000000 Inexact Rounded
ddadd71812 add 12.34100000000000 2.7270545046613E-31 -> 12.34100000000001 Inexact Rounded
ddadd71813 add 12.34100000000001 7.8822773805862E+277 -> 7.882277380586201E+277 Inexact Rounded
-- Gappy coefficients; check residue handling even with full coefficient gap
rounding: half_even

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This file tests base conversions from string to a decimal number
-- and back to a string (in Scientific form)

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This file tests that copy operations leave uncanonical operands
-- unchanged, and vice versa

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- [New 2006.11.27]
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -18,7 +18,7 @@
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-- [Previously called decimal64.decTest]
version: 2.56
version: 2.57
-- This set of tests is for the eight-byte concrete representation.
-- Its characteristics are:
@ -485,3 +485,6 @@ decd828 apply #2238000115afb55a -> 4294967294
decd829 apply #2238000115afb55b -> 4294967295
decd830 apply #2238000115afb57a -> 4294967296
decd831 apply #2238000115afb57b -> 4294967297
-- for narrowing
decd840 apply #2870000000000000 -> 2.000000000000000E-99

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384
@ -1663,6 +1663,34 @@ ddfma375087 fma 1 12345678 1E-33 -> 12345678.00000001 Inexac
ddfma375088 fma 1 12345678 1E-34 -> 12345678.00000001 Inexact Rounded
ddfma375089 fma 1 12345678 1E-35 -> 12345678.00000001 Inexact Rounded
-- desctructive subtraction (from remainder tests)
-- +++ some of these will be off-by-one remainder vs remainderNear
ddfma4000 fma -1234567890123454 1.000000000000001 1234567890123456 -> 0.765432109876546
ddfma4001 fma -1234567890123443 1.00000000000001 1234567890123456 -> 0.65432109876557
ddfma4002 fma -1234567890123332 1.0000000000001 1234567890123456 -> 0.5432109876668
ddfma4003 fma -308641972530863 4.000000000000001 1234567890123455 -> 2.691358027469137
ddfma4004 fma -308641972530863 4.000000000000001 1234567890123456 -> 3.691358027469137
ddfma4005 fma -246913578024696 4.9999999999999 1234567890123456 -> 0.6913578024696
ddfma4006 fma -246913578024691 4.99999999999999 1234567890123456 -> 3.46913578024691
ddfma4007 fma -246913578024691 4.999999999999999 1234567890123456 -> 1.246913578024691
ddfma4008 fma -246913578024691 5.000000000000001 1234567890123456 -> 0.753086421975309
ddfma4009 fma -246913578024690 5.00000000000001 1234567890123456 -> 3.53086421975310
ddfma4010 fma -246913578024686 5.0000000000001 1234567890123456 -> 1.3086421975314
ddfma4011 fma -1234567890123455 1.000000000000001 1234567890123456 -> -0.234567890123455
ddfma4012 fma -1234567890123444 1.00000000000001 1234567890123456 -> -0.34567890123444
ddfma4013 fma -1234567890123333 1.0000000000001 1234567890123456 -> -0.4567890123333
ddfma4014 fma -308641972530864 4.000000000000001 1234567890123455 -> -1.308641972530864
ddfma4015 fma -308641972530864 4.000000000000001 1234567890123456 -> -0.308641972530864
ddfma4016 fma -246913578024696 4.9999999999999 1234567890123456 -> 0.6913578024696
ddfma4017 fma -246913578024692 4.99999999999999 1234567890123456 -> -1.53086421975308
ddfma4018 fma -246913578024691 4.999999999999999 1234567890123456 -> 1.246913578024691
ddfma4019 fma -246913578024691 5.000000000000001 1234567890123456 -> 0.753086421975309
ddfma4020 fma -246913578024691 5.00000000000001 1234567890123456 -> -1.46913578024691
ddfma4021 fma -246913578024686 5.0000000000001 1234567890123456 -> 1.3086421975314
-- Null tests
ddfma39990 fma 1 10 # -> NaN Invalid_operation
ddfma39991 fma 1 # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This set of tests are for decDoubles only; all arguments are
-- representable in a decDouble
@ -454,9 +454,92 @@ ddmul908 multiply 9.999999999999999E-383 0.09999999999999999 -> 1.00000000
-- hugest
ddmul909 multiply 9999999999999999 9999999999999999 -> 9.999999999999998E+31 Inexact Rounded
-- power-of-ten edge cases
ddmul1001 multiply 1 10 -> 10
ddmul1002 multiply 1 100 -> 100
ddmul1003 multiply 1 1000 -> 1000
ddmul1004 multiply 1 10000 -> 10000
ddmul1005 multiply 1 100000 -> 100000
ddmul1006 multiply 1 1000000 -> 1000000
ddmul1007 multiply 1 10000000 -> 10000000
ddmul1008 multiply 1 100000000 -> 100000000
ddmul1009 multiply 1 1000000000 -> 1000000000
ddmul1010 multiply 1 10000000000 -> 10000000000
ddmul1011 multiply 1 100000000000 -> 100000000000
ddmul1012 multiply 1 1000000000000 -> 1000000000000
ddmul1013 multiply 1 10000000000000 -> 10000000000000
ddmul1014 multiply 1 100000000000000 -> 100000000000000
ddmul1015 multiply 1 1000000000000000 -> 1000000000000000
ddmul1021 multiply 10 1 -> 10
ddmul1022 multiply 10 10 -> 100
ddmul1023 multiply 10 100 -> 1000
ddmul1024 multiply 10 1000 -> 10000
ddmul1025 multiply 10 10000 -> 100000
ddmul1026 multiply 10 100000 -> 1000000
ddmul1027 multiply 10 1000000 -> 10000000
ddmul1028 multiply 10 10000000 -> 100000000
ddmul1029 multiply 10 100000000 -> 1000000000
ddmul1030 multiply 10 1000000000 -> 10000000000
ddmul1031 multiply 10 10000000000 -> 100000000000
ddmul1032 multiply 10 100000000000 -> 1000000000000
ddmul1033 multiply 10 1000000000000 -> 10000000000000
ddmul1034 multiply 10 10000000000000 -> 100000000000000
ddmul1035 multiply 10 100000000000000 -> 1000000000000000
ddmul1041 multiply 100 0.1 -> 10.0
ddmul1042 multiply 100 1 -> 100
ddmul1043 multiply 100 10 -> 1000
ddmul1044 multiply 100 100 -> 10000
ddmul1045 multiply 100 1000 -> 100000
ddmul1046 multiply 100 10000 -> 1000000
ddmul1047 multiply 100 100000 -> 10000000
ddmul1048 multiply 100 1000000 -> 100000000
ddmul1049 multiply 100 10000000 -> 1000000000
ddmul1050 multiply 100 100000000 -> 10000000000
ddmul1051 multiply 100 1000000000 -> 100000000000
ddmul1052 multiply 100 10000000000 -> 1000000000000
ddmul1053 multiply 100 100000000000 -> 10000000000000
ddmul1054 multiply 100 1000000000000 -> 100000000000000
ddmul1055 multiply 100 10000000000000 -> 1000000000000000
ddmul1061 multiply 1000 0.01 -> 10.00
ddmul1062 multiply 1000 0.1 -> 100.0
ddmul1063 multiply 1000 1 -> 1000
ddmul1064 multiply 1000 10 -> 10000
ddmul1065 multiply 1000 100 -> 100000
ddmul1066 multiply 1000 1000 -> 1000000
ddmul1067 multiply 1000 10000 -> 10000000
ddmul1068 multiply 1000 100000 -> 100000000
ddmul1069 multiply 1000 1000000 -> 1000000000
ddmul1070 multiply 1000 10000000 -> 10000000000
ddmul1071 multiply 1000 100000000 -> 100000000000
ddmul1072 multiply 1000 1000000000 -> 1000000000000
ddmul1073 multiply 1000 10000000000 -> 10000000000000
ddmul1074 multiply 1000 100000000000 -> 100000000000000
ddmul1075 multiply 1000 1000000000000 -> 1000000000000000
ddmul1081 multiply 10000 0.001 -> 10.000
ddmul1082 multiply 10000 0.01 -> 100.00
ddmul1083 multiply 10000 0.1 -> 1000.0
ddmul1084 multiply 10000 1 -> 10000
ddmul1085 multiply 10000 10 -> 100000
ddmul1086 multiply 10000 100 -> 1000000
ddmul1087 multiply 10000 1000 -> 10000000
ddmul1088 multiply 10000 10000 -> 100000000
ddmul1089 multiply 10000 100000 -> 1000000000
ddmul1090 multiply 10000 1000000 -> 10000000000
ddmul1091 multiply 10000 10000000 -> 100000000000
ddmul1092 multiply 10000 100000000 -> 1000000000000
ddmul1093 multiply 10000 1000000000 -> 10000000000000
ddmul1094 multiply 10000 10000000000 -> 100000000000000
ddmul1095 multiply 10000 100000000000 -> 1000000000000000
ddmul1097 multiply 10000 99999999999 -> 999999999990000
ddmul1098 multiply 10000 99999999999 -> 999999999990000
-- Null tests
ddmul990 multiply 10 # -> NaN Invalid_operation
ddmul991 multiply # 10 -> NaN Invalid_operation
ddmul9990 multiply 10 # -> NaN Invalid_operation
ddmul9991 multiply # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Most of the tests here assume a "regular pattern", where the
-- sign and coefficient are +1.

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384
@ -581,6 +581,19 @@ ddrem1056 remainder 1e-277 -1e+311 -> 1E-277
ddrem1057 remainder -1e-277 1e+311 -> -1E-277
ddrem1058 remainder -1e-277 -1e+311 -> -1E-277
-- destructive subtract
ddrem1101 remainder 1234567890123456 1.000000000000001 -> 0.765432109876546
ddrem1102 remainder 1234567890123456 1.00000000000001 -> 0.65432109876557
ddrem1103 remainder 1234567890123456 1.0000000000001 -> 0.5432109876668
ddrem1104 remainder 1234567890123455 4.000000000000001 -> 2.691358027469137
ddrem1105 remainder 1234567890123456 4.000000000000001 -> 3.691358027469137
ddrem1106 remainder 1234567890123456 4.9999999999999 -> 0.6913578024696
ddrem1107 remainder 1234567890123456 4.99999999999999 -> 3.46913578024691
ddrem1108 remainder 1234567890123456 4.999999999999999 -> 1.246913578024691
ddrem1109 remainder 1234567890123456 5.000000000000001 -> 0.753086421975309
ddrem1110 remainder 1234567890123456 5.00000000000001 -> 3.53086421975310
ddrem1111 remainder 1234567890123456 5.0000000000001 -> 1.3086421975314
-- Null tests
ddrem1000 remainder 10 # -> NaN Invalid_operation
ddrem1001 remainder # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384
@ -599,6 +599,7 @@ ddrmn969 remaindernear 123e1 9876543210987654 -> 1230
ddrmn980 remaindernear 123e1 1000E299 -> 1.23E+3 -- 123E+1 internally
-- overflow and underflow tests [from divide]
ddrmn1051 remaindernear 1e+277 1e-311 -> NaN Division_impossible
ddrmn1052 remaindernear 1e+277 -1e-311 -> NaN Division_impossible
@ -609,6 +610,19 @@ ddrmn1056 remaindernear 1e-277 -1e+311 -> 1E-277
ddrmn1057 remaindernear -1e-277 1e+311 -> -1E-277
ddrmn1058 remaindernear -1e-277 -1e+311 -> -1E-277
-- destructive subtract
ddrmn1100 remainderNear 1234567890123456 1.000000000000001 -> -0.234567890123455
ddrmn1101 remainderNear 1234567890123456 1.00000000000001 -> -0.34567890123444
ddrmn1102 remainderNear 1234567890123456 1.0000000000001 -> -0.4567890123333
ddrmn1103 remainderNear 1234567890123455 4.000000000000001 -> -1.308641972530864
ddrmn1104 remainderNear 1234567890123456 4.000000000000001 -> -0.308641972530864
ddrmn1115 remainderNear 1234567890123456 4.9999999999999 -> 0.6913578024696
ddrmn1116 remainderNear 1234567890123456 4.99999999999999 -> -1.53086421975308
ddrmn1117 remainderNear 1234567890123456 4.999999999999999 -> 1.246913578024691
ddrmn1118 remainderNear 1234567890123456 5.000000000000001 -> 0.753086421975309
ddrmn1119 remainderNear 1234567890123456 5.00000000000001 -> -1.46913578024691
ddrmn1110 remainderNear 1234567890123456 5.0000000000001 -> 1.3086421975314
-- Null tests
ddrmn1000 remaindernear 10 # -> NaN Invalid_operation
ddrmn1001 remaindernear # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decDoubles.
precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This set of tests are for decDoubles only; all arguments are
-- representable in a decDouble

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This set of tests tests the extended specification 'round-to-integral
-- value-exact' operations (from IEEE 854, later modified in 754r).

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
precision: 16
maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- decDouble tests
dectest: ddAbs

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- decQuad tests
dectest: dqAbs

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- decSingle tests
dectest: dsBase

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This set of tests are for decQuads only; all arguments are
-- representable in a decQuad

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This file tests base conversions from string to a decimal number
-- and back to a string (in Scientific form)

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This file tests that copy operations leave uncanonical operands
-- unchanged, and vice versa

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- [New 2006.11.27]

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
clamp: 1

View File

@ -18,7 +18,7 @@
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-- [Previously called decimal128.decTest]
version: 2.56
version: 2.57
-- This set of tests is for the sixteen-byte concrete representation.
-- Its characteristics are:
@ -468,3 +468,10 @@ decq828 apply #22080000000000000000000115afb55a -> 4294967294
decq829 apply #22080000000000000000000115afb55b -> 4294967295
decq830 apply #22080000000000000000000115afb57a -> 4294967296
decq831 apply #22080000000000000000000115afb57b -> 4294967297
-- VG testcase
decq840 apply #2080000000000000F294000000172636 -> 8.81125000000001349436E-1548
decq841 apply #20800000000000008000000000000000 -> 8.000000000000000000E-1550
decq842 apply #1EF98490000000010F6E4E0000000000 -> 7.049000000000010795488000000000000E-3097
decq843 multiply #20800000000000008000000000000000 #2080000000000000F294000000172636 -> #1EF98490000000010F6E4E0000000000 Rounded

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
clamp: 1
@ -1754,6 +1754,31 @@ dqadd375087 fma 1 12398765432112345678945678 1E-33 -> 123987
dqadd375088 fma 1 12398765432112345678945678 1E-34 -> 12398765432112345678945678.00000001 Inexact Rounded
dqadd375089 fma 1 12398765432112345678945678 1E-35 -> 12398765432112345678945678.00000001 Inexact Rounded
-- Destructive subtract (from remainder tests)
-- +++ some of these will be off-by-one remainder vs remainderNear
dqfma4000 fma -1234567890123456789012345678901233 1.000000000000000000000000000000001 1234567890123456789012345678901234 -> -0.234567890123456789012345678901233
dqfma4001 fma -1234567890123456789012345678901222 1.00000000000000000000000000000001 1234567890123456789012345678901234 -> -0.34567890123456789012345678901222
dqfma4002 fma -1234567890123456789012345678901111 1.0000000000000000000000000000001 1234567890123456789012345678901234 -> -0.4567890123456789012345678901111
dqfma4003 fma -308641972530864197253086419725314 4.000000000000000000000000000000001 1234567890123456789012345678901255 -> -1.308641972530864197253086419725314
dqfma4004 fma -308641972530864197253086419725308 4.000000000000000000000000000000001 1234567890123456789012345678901234 -> 1.691358027469135802746913580274692
dqfma4005 fma -246913578024691357802469135780252 4.9999999999999999999999999999999 1234567890123456789012345678901234 -> -1.3086421975308642197530864219748
dqfma4006 fma -246913578024691357802469135780247 4.99999999999999999999999999999999 1234567890123456789012345678901234 -> 1.46913578024691357802469135780247
dqfma4007 fma -246913578024691357802469135780247 4.999999999999999999999999999999999 1234567890123456789012345678901234 -> -0.753086421975308642197530864219753
dqfma4008 fma -246913578024691357802469135780247 5.000000000000000000000000000000001 1234567890123456789012345678901234 -> -1.246913578024691357802469135780247
dqfma4009 fma -246913578024691357802469135780246 5.00000000000000000000000000000001 1234567890123456789012345678901234 -> 1.53086421975308642197530864219754
dqfma4010 fma -246913578024691357802469135780242 5.0000000000000000000000000000001 1234567890123456789012345678901234 -> -0.6913578024691357802469135780242
dqfma4011 fma -1234567890123456789012345678901232 1.000000000000000000000000000000001 1234567890123456789012345678901234 -> 0.765432109876543210987654321098768
dqfma4012 fma -1234567890123456789012345678901221 1.00000000000000000000000000000001 1234567890123456789012345678901234 -> 0.65432109876543210987654321098779
dqfma4013 fma -1234567890123456789012345678901110 1.0000000000000000000000000000001 1234567890123456789012345678901234 -> 0.5432109876543210987654321098890
dqfma4014 fma -308641972530864197253086419725313 4.000000000000000000000000000000001 1234567890123456789012345678901255 -> 2.691358027469135802746913580274687
dqfma4015 fma -308641972530864197253086419725308 4.000000000000000000000000000000001 1234567890123456789012345678901234 -> 1.691358027469135802746913580274692
dqfma4016 fma -246913578024691357802469135780251 4.9999999999999999999999999999999 1234567890123456789012345678901234 -> 3.6913578024691357802469135780251
dqfma4017 fma -246913578024691357802469135780247 4.99999999999999999999999999999999 1234567890123456789012345678901234 -> 1.46913578024691357802469135780247
dqfma4018 fma -246913578024691357802469135780246 4.999999999999999999999999999999999 1234567890123456789012345678901234 -> 4.246913578024691357802469135780246
dqfma4019 fma -246913578024691357802469135780241 5.0000000000000000000000000000001 1234567890123456789012345678901234 -> 4.3086421975308642197530864219759
-- Null tests
dqadd39990 fma 1 10 # -> NaN Invalid_operation
dqadd39991 fma 1 # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- This set of tests are for decQuads only; all arguments are
-- representable in a decQuad
@ -456,18 +456,134 @@ dqmul908 multiply 9.999999999999999999999999999999999E-6143 0.0999999999999999
-- hugest
dqmul909 multiply 9999999999999999999999999999999999 9999999999999999999999999999999999 -> 9.999999999999999999999999999999998E+67 Inexact Rounded
-- VG case
dqmul910 multiply 8.81125000000001349436E-1548 8.000000000000000000E-1550 -> 7.049000000000010795488000000000000E-3097 Rounded
-- Examples from SQL proposal (Krishna Kulkarni)
precision: 34
rounding: half_up
maxExponent: 6144
minExponent: -6143
dqmul1001 multiply 130E-2 120E-2 -> 1.5600
dqmul1002 multiply 130E-2 12E-1 -> 1.560
dqmul1003 multiply 130E-2 1E0 -> 1.30
dqmul1004 multiply 1E2 1E4 -> 1E+6
dqmul911 multiply 130E-2 120E-2 -> 1.5600
dqmul912 multiply 130E-2 12E-1 -> 1.560
dqmul913 multiply 130E-2 1E0 -> 1.30
dqmul914 multiply 1E2 1E4 -> 1E+6
-- power-of-ten edge cases
dqmul1001 multiply 1 10 -> 10
dqmul1002 multiply 1 100 -> 100
dqmul1003 multiply 1 1000 -> 1000
dqmul1004 multiply 1 10000 -> 10000
dqmul1005 multiply 1 100000 -> 100000
dqmul1006 multiply 1 1000000 -> 1000000
dqmul1007 multiply 1 10000000 -> 10000000
dqmul1008 multiply 1 100000000 -> 100000000
dqmul1009 multiply 1 1000000000 -> 1000000000
dqmul1010 multiply 1 10000000000 -> 10000000000
dqmul1011 multiply 1 100000000000 -> 100000000000
dqmul1012 multiply 1 1000000000000 -> 1000000000000
dqmul1013 multiply 1 10000000000000 -> 10000000000000
dqmul1014 multiply 1 100000000000000 -> 100000000000000
dqmul1015 multiply 1 1000000000000000 -> 1000000000000000
dqmul1016 multiply 1 1000000000000000000 -> 1000000000000000000
dqmul1017 multiply 1 100000000000000000000000000 -> 100000000000000000000000000
dqmul1018 multiply 1 1000000000000000000000000000 -> 1000000000000000000000000000
dqmul1019 multiply 1 10000000000000000000000000000 -> 10000000000000000000000000000
dqmul1020 multiply 1 1000000000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1021 multiply 10 1 -> 10
dqmul1022 multiply 10 10 -> 100
dqmul1023 multiply 10 100 -> 1000
dqmul1024 multiply 10 1000 -> 10000
dqmul1025 multiply 10 10000 -> 100000
dqmul1026 multiply 10 100000 -> 1000000
dqmul1027 multiply 10 1000000 -> 10000000
dqmul1028 multiply 10 10000000 -> 100000000
dqmul1029 multiply 10 100000000 -> 1000000000
dqmul1030 multiply 10 1000000000 -> 10000000000
dqmul1031 multiply 10 10000000000 -> 100000000000
dqmul1032 multiply 10 100000000000 -> 1000000000000
dqmul1033 multiply 10 1000000000000 -> 10000000000000
dqmul1034 multiply 10 10000000000000 -> 100000000000000
dqmul1035 multiply 10 100000000000000 -> 1000000000000000
dqmul1036 multiply 10 100000000000000000 -> 1000000000000000000
dqmul1037 multiply 10 10000000000000000000000000 -> 100000000000000000000000000
dqmul1038 multiply 10 100000000000000000000000000 -> 1000000000000000000000000000
dqmul1039 multiply 10 1000000000000000000000000000 -> 10000000000000000000000000000
dqmul1040 multiply 10 100000000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1041 multiply 100 0.1 -> 10.0
dqmul1042 multiply 100 1 -> 100
dqmul1043 multiply 100 10 -> 1000
dqmul1044 multiply 100 100 -> 10000
dqmul1045 multiply 100 1000 -> 100000
dqmul1046 multiply 100 10000 -> 1000000
dqmul1047 multiply 100 100000 -> 10000000
dqmul1048 multiply 100 1000000 -> 100000000
dqmul1049 multiply 100 10000000 -> 1000000000
dqmul1050 multiply 100 100000000 -> 10000000000
dqmul1051 multiply 100 1000000000 -> 100000000000
dqmul1052 multiply 100 10000000000 -> 1000000000000
dqmul1053 multiply 100 100000000000 -> 10000000000000
dqmul1054 multiply 100 1000000000000 -> 100000000000000
dqmul1055 multiply 100 10000000000000 -> 1000000000000000
dqmul1056 multiply 100 10000000000000000 -> 1000000000000000000
dqmul1057 multiply 100 1000000000000000000000000 -> 100000000000000000000000000
dqmul1058 multiply 100 10000000000000000000000000 -> 1000000000000000000000000000
dqmul1059 multiply 100 100000000000000000000000000 -> 10000000000000000000000000000
dqmul1060 multiply 100 10000000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1061 multiply 1000 0.01 -> 10.00
dqmul1062 multiply 1000 0.1 -> 100.0
dqmul1063 multiply 1000 1 -> 1000
dqmul1064 multiply 1000 10 -> 10000
dqmul1065 multiply 1000 100 -> 100000
dqmul1066 multiply 1000 1000 -> 1000000
dqmul1067 multiply 1000 10000 -> 10000000
dqmul1068 multiply 1000 100000 -> 100000000
dqmul1069 multiply 1000 1000000 -> 1000000000
dqmul1070 multiply 1000 10000000 -> 10000000000
dqmul1071 multiply 1000 100000000 -> 100000000000
dqmul1072 multiply 1000 1000000000 -> 1000000000000
dqmul1073 multiply 1000 10000000000 -> 10000000000000
dqmul1074 multiply 1000 100000000000 -> 100000000000000
dqmul1075 multiply 1000 1000000000000 -> 1000000000000000
dqmul1076 multiply 1000 1000000000000000 -> 1000000000000000000
dqmul1077 multiply 1000 100000000000000000000000 -> 100000000000000000000000000
dqmul1078 multiply 1000 1000000000000000000000000 -> 1000000000000000000000000000
dqmul1079 multiply 1000 10000000000000000000000000 -> 10000000000000000000000000000
dqmul1080 multiply 1000 1000000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1081 multiply 10000 0.001 -> 10.000
dqmul1082 multiply 10000 0.01 -> 100.00
dqmul1083 multiply 10000 0.1 -> 1000.0
dqmul1084 multiply 10000 1 -> 10000
dqmul1085 multiply 10000 10 -> 100000
dqmul1086 multiply 10000 100 -> 1000000
dqmul1087 multiply 10000 1000 -> 10000000
dqmul1088 multiply 10000 10000 -> 100000000
dqmul1089 multiply 10000 100000 -> 1000000000
dqmul1090 multiply 10000 1000000 -> 10000000000
dqmul1091 multiply 10000 10000000 -> 100000000000
dqmul1092 multiply 10000 100000000 -> 1000000000000
dqmul1093 multiply 10000 1000000000 -> 10000000000000
dqmul1094 multiply 10000 10000000000 -> 100000000000000
dqmul1095 multiply 10000 100000000000 -> 1000000000000000
dqmul1096 multiply 10000 100000000000000 -> 1000000000000000000
dqmul1097 multiply 10000 10000000000000000000000 -> 100000000000000000000000000
dqmul1098 multiply 10000 100000000000000000000000 -> 1000000000000000000000000000
dqmul1099 multiply 10000 1000000000000000000000000 -> 10000000000000000000000000000
dqmul1100 multiply 10000 100000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1107 multiply 10000 99999999999 -> 999999999990000
dqmul1108 multiply 10000 99999999999 -> 999999999990000
-- Null tests
dqmul990 multiply 10 # -> NaN Invalid_operation
dqmul991 multiply # 10 -> NaN Invalid_operation
dqmul9990 multiply 10 # -> NaN Invalid_operation
dqmul9991 multiply # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
extended: 1
clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- All operands and results are decQuads.
extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.56
version: 2.57
-- Most of the tests here assume a "regular pattern", where the
-- sign and coefficient are +1.

Some files were not shown because too many files have changed in this diff Show More