[decnum-dynpmcs] r150 committed - Delete some more files we don't need.

4 views
Skip to first unread message

codesite...@google.com

unread,
Aug 8, 2009, 11:13:01 PM8/8/09
to decnum-...@googlegroups.com
Revision: 150
Author: arbelo
Date: Sat Aug 8 20:12:17 2009
Log: Delete some more files we don't need.


http://code.google.com/p/decnum-dynpmcs/source/detail?r=150

Deleted:
/trunk/t/data/decQuad.decTest
/trunk/t/data/inexact.decTest
/trunk/t/data/scaleb.decTest
/trunk/t/data/trim.decTest

=======================================
--- /trunk/t/data/decQuad.decTest Wed May 27 17:08:43 2009
+++ /dev/null
@@ -1,65 +0,0 @@
-------------------------------------------------------------------------
--- decQuad.decTest -- run all decQuad decimal arithmetic tests --
--- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
-------------------------------------------------------------------------
--- Please see the document "General Decimal Arithmetic Testcases" --
--- at http://www2.hursley.ibm.com/decimal for the description of --
--- these testcases. --
--- --
--- These testcases are experimental ('beta' versions), and they --
--- may contain errors. They are offered on an as-is basis. In --
--- particular, achieving the same results as the tests here is not --
--- a guarantee that an implementation complies with any Standard --
--- or specification. The tests are not exhaustive. --
--- --
--- Please send comments, suggestions, and corrections to the author: --
--- Mike Cowlishaw, IBM Fellow --
--- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
--- m...@uk.ibm.com --
-------------------------------------------------------------------------
-version: 2.58
-
--- decQuad tests
-dectest: dqAbs
-dectest: dqAdd
-dectest: dqAnd
-dectest: dqBase
-dectest: dqCanonical
-dectest: dqClass
-dectest: dqCompare
-dectest: dqCompareSig
-dectest: dqCompareTotal
-dectest: dqCompareTotalMag
-dectest: dqCopy
-dectest: dqCopyAbs
-dectest: dqCopyNegate
-dectest: dqCopySign
-dectest: dqDivide
-dectest: dqDivideInt
-dectest: dqEncode
-dectest: dqFMA
-dectest: dqInvert
-dectest: dqLogB
-dectest: dqMax
-dectest: dqMaxMag
-dectest: dqMin
-dectest: dqMinMag
-dectest: dqMinus
-dectest: dqMultiply
-dectest: dqNextMinus
-dectest: dqNextPlus
-dectest: dqNextToward
-dectest: dqOr
-dectest: dqPlus
-dectest: dqQuantize
-dectest: dqReduce
-dectest: dqRemainder
-dectest: dqRemainderNear
-dectest: dqRotate
-dectest: dqSameQuantum
-dectest: dqScaleB
-dectest: dqShift
-dectest: dqSubtract
-dectest: dqToIntegral
-dectest: dqXor
-
=======================================
--- /trunk/t/data/inexact.decTest Wed May 27 17:08:43 2009
+++ /dev/null
@@ -1,215 +0,0 @@
-------------------------------------------------------------------------
--- inexact.decTest -- decimal inexact and rounded edge cases --
--- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
-------------------------------------------------------------------------
--- Please see the document "General Decimal Arithmetic Testcases" --
--- at http://www2.hursley.ibm.com/decimal for the description of --
--- these testcases. --
--- --
--- These testcases are experimental ('beta' versions), and they --
--- may contain errors. They are offered on an as-is basis. In --
--- particular, achieving the same results as the tests here is not --
--- a guarantee that an implementation complies with any Standard --
--- or specification. The tests are not exhaustive. --
--- --
--- Please send comments, suggestions, and corrections to the author: --
--- Mike Cowlishaw, IBM Fellow --
--- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
--- m...@uk.ibm.com --
-------------------------------------------------------------------------
-version: 2.58
-
-extended: 1
-precision: 9
-rounding: half_up
-maxExponent: 999
-minexponent: -999
-
-inx001 add 1 1 -> 2
-inx002 add 123456789 0 -> 123456789
-inx003 add 123456789 0.0 -> 123456789 Rounded
-inx004 add 123456789 0.00 -> 123456789 Rounded
-inx005 add 123456789 1 -> 123456790
-inx006 add 123456789 0.1 -> 123456789 Inexact Rounded
-inx007 add 123456789 0.01 -> 123456789 Inexact Rounded
-inx008 add 123456789 0.001 -> 123456789 Inexact Rounded
-inx009 add 123456789 0.000001 -> 123456789 Inexact Rounded
-inx010 add 123456789 0.000000001 -> 123456789 Inexact Rounded
-inx011 add 123456789 0.000000000001 -> 123456789 Inexact Rounded
-
-inx012 add 123456789 0.9 -> 123456790 Inexact Rounded
-inx013 add 123456789 0.09 -> 123456789 Inexact Rounded
-inx014 add 123456789 0.009 -> 123456789 Inexact Rounded
-inx015 add 123456789 0.000009 -> 123456789 Inexact Rounded
-inx016 add 123456789 0.000000009 -> 123456789 Inexact Rounded
-inx017 add 123456789 0.000000000009 -> 123456789 Inexact Rounded
-
-inx021 add 1 -1 -> 0
-inx022 add 123456789 -0 -> 123456789
-inx023 add 123456789 -0.0 -> 123456789 Rounded
-inx024 add 123456789 -0.00 -> 123456789 Rounded
-inx025 add 123456789 -1 -> 123456788
-inx026 add 123456789 -0.1 -> 123456789 Inexact Rounded
-inx027 add 123456789 -0.01 -> 123456789 Inexact Rounded
-inx028 add 123456789 -0.001 -> 123456789 Inexact Rounded
-inx029 add 123456789 -0.000001 -> 123456789 Inexact Rounded
-inx030 add 123456789 -0.000000001 -> 123456789 Inexact Rounded
-inx031 add 123456789 -0.000000000001 -> 123456789 Inexact Rounded
-inx032 add 123456789 -0.9 -> 123456788 Inexact Rounded
-inx033 add 123456789 -0.09 -> 123456789 Inexact Rounded
-inx034 add 123456789 -0.009 -> 123456789 Inexact Rounded
-inx035 add 123456789 -0.000009 -> 123456789 Inexact Rounded
-inx036 add 123456789 -0.000000009 -> 123456789 Inexact Rounded
-inx037 add 123456789 -0.000000000009 -> 123456789 Inexact Rounded
-
-inx042 add 0 123456789 -> 123456789
-inx043 add 0.0 123456789 -> 123456789 Rounded
-inx044 add 0.00 123456789 -> 123456789 Rounded
-inx045 add 1 123456789 -> 123456790
-inx046 add 0.1 123456789 -> 123456789 Inexact Rounded
-inx047 add 0.01 123456789 -> 123456789 Inexact Rounded
-inx048 add 0.001 123456789 -> 123456789 Inexact Rounded
-inx049 add 0.000001 123456789 -> 123456789 Inexact Rounded
-inx050 add 0.000000001 123456789 -> 123456789 Inexact Rounded
-inx051 add 0.000000000001 123456789 -> 123456789 Inexact Rounded
-inx052 add 0.9 123456789 -> 123456790 Inexact Rounded
-inx053 add 0.09 123456789 -> 123456789 Inexact Rounded
-inx054 add 0.009 123456789 -> 123456789 Inexact Rounded
-inx055 add 0.000009 123456789 -> 123456789 Inexact Rounded
-inx056 add 0.000000009 123456789 -> 123456789 Inexact Rounded
-inx057 add 0.000000000009 123456789 -> 123456789 Inexact Rounded
-
-inx062 add -0 123456789 -> 123456789
-inx063 add -0.0 123456789 -> 123456789 Rounded
-inx064 add -0.00 123456789 -> 123456789 Rounded
-inx065 add -1 123456789 -> 123456788
-inx066 add -0.1 123456789 -> 123456789 Inexact Rounded
-inx067 add -0.01 123456789 -> 123456789 Inexact Rounded
-inx068 add -0.001 123456789 -> 123456789 Inexact Rounded
-inx069 add -0.000001 123456789 -> 123456789 Inexact Rounded
-inx070 add -0.000000001 123456789 -> 123456789 Inexact Rounded
-inx071 add -0.000000000001 123456789 -> 123456789 Inexact Rounded
-inx072 add -0.9 123456789 -> 123456788 Inexact Rounded
-inx073 add -0.09 123456789 -> 123456789 Inexact Rounded
-inx074 add -0.009 123456789 -> 123456789 Inexact Rounded
-inx075 add -0.000009 123456789 -> 123456789 Inexact Rounded
-inx076 add -0.000000009 123456789 -> 123456789 Inexact Rounded
-inx077 add -0.000000000009 123456789 -> 123456789 Inexact Rounded
-
--- some boundaries
-inx081 add 999999999 0 -> 999999999
-inx082 add 0.999999999 0.000000000 -> 0.999999999
-inx083 add 999999999 1 -> 1.00000000E+9 Rounded
-inx084 add 0.999999999 0.000000001 -> 1.00000000 Rounded
-inx085 add 999999999 2 -> 1.00000000E+9 Inexact Rounded
-inx086 add 0.999999999 0.000000002 -> 1.00000000 Inexact Rounded
-inx087 add 999999999 3 -> 1.00000000E+9 Inexact Rounded
-inx089 add 0.999999999 0.000000003 -> 1.00000000 Inexact Rounded
-
--- minus, plus, and subtract all assumed to work like add.
-
--- multiply
-precision: 8
-inx101 multiply 1000 1000 -> 1000000
-inx102 multiply 9000 9000 -> 81000000
-inx103 multiply 9999 9999 -> 99980001
-inx104 multiply 1000 10000 -> 10000000
-inx105 multiply 10000 10000 -> 1.0000000E+8 Rounded
-inx106 multiply 10001 10000 -> 1.0001000E+8 Rounded
-inx107 multiply 10001 10001 -> 1.0002000E+8 Inexact Rounded
-inx108 multiply 10101 10001 -> 1.0102010E+8 Inexact Rounded
-inx109 multiply 10001 10101 -> 1.0102010E+8 Inexact Rounded
-
--- divide
-precision: 4
-inx201 divide 1000 1000 -> 1
-inx202 divide 1000 1 -> 1000
-inx203 divide 1000 2 -> 500
-inx204 divide 1000 3 -> 333.3 Inexact Rounded
-inx205 divide 1000 4 -> 250
-inx206 divide 1000 5 -> 200
-inx207 divide 1000 6 -> 166.7 Inexact Rounded
-inx208 divide 1000 7 -> 142.9 Inexact Rounded
-inx209 divide 1000 8 -> 125
-inx210 divide 1000 9 -> 111.1 Inexact Rounded
-inx211 divide 1000 10 -> 100
-
-inx220 divide 1 1 -> 1
-inx221 divide 1 2 -> 0.5
-inx222 divide 1 4 -> 0.25
-inx223 divide 1 8 -> 0.125
-inx224 divide 1 16 -> 0.0625
-inx225 divide 1 32 -> 0.03125
-inx226 divide 1 64 -> 0.01563 Inexact Rounded
-inx227 divide 1 128 -> 0.007813 Inexact Rounded
-
-precision: 5
-inx230 divide 1 1 -> 1
-inx231 divide 1 2 -> 0.5
-inx232 divide 1 4 -> 0.25
-inx233 divide 1 8 -> 0.125
-inx234 divide 1 16 -> 0.0625
-inx235 divide 1 32 -> 0.03125
-inx236 divide 1 64 -> 0.015625
-inx237 divide 1 128 -> 0.0078125
-
-precision: 3
-inx240 divide 1 1 -> 1
-inx241 divide 1 2 -> 0.5
-inx242 divide 1 4 -> 0.25
-inx243 divide 1 8 -> 0.125
-inx244 divide 1 16 -> 0.0625
-inx245 divide 1 32 -> 0.0313 Inexact Rounded
-inx246 divide 1 64 -> 0.0156 Inexact Rounded
-inx247 divide 1 128 -> 0.00781 Inexact Rounded
-
-precision: 2
-inx250 divide 1 1 -> 1
-inx251 divide 1 2 -> 0.5
-inx252 divide 1 4 -> 0.25
-inx253 divide 1 8 -> 0.13 Inexact Rounded
-inx254 divide 1 16 -> 0.063 Inexact Rounded
-inx255 divide 1 32 -> 0.031 Inexact Rounded
-inx256 divide 1 64 -> 0.016 Inexact Rounded
-inx257 divide 1 128 -> 0.0078 Inexact Rounded
-
-precision: 1
-inx260 divide 1 1 -> 1
-inx261 divide 1 2 -> 0.5
-inx262 divide 1 4 -> 0.3 Inexact Rounded
-inx263 divide 1 8 -> 0.1 Inexact Rounded
-inx264 divide 1 16 -> 0.06 Inexact Rounded
-inx265 divide 1 32 -> 0.03 Inexact Rounded
-inx266 divide 1 64 -> 0.02 Inexact Rounded
-inx267 divide 1 128 -> 0.008 Inexact Rounded
-
-
--- power
-precision: 4
-inx301 power 0.5 2 -> 0.25
-inx302 power 0.5 4 -> 0.0625
-inx303 power 0.5 8 -> 0.003906 Inexact Rounded
-inx304 power 0.5 16 -> 0.00001526 Inexact Rounded
-inx305 power 0.5 32 -> 2.328E-10 Inexact Rounded
-
--- compare, divideInteger, and remainder are always exact
-
--- rescale
-precision: 4
-inx401 rescale 0 0 -> 0
-inx402 rescale 1 0 -> 1
-inx403 rescale 0.1 +2 -> 0E+2 Inexact Rounded
-inx404 rescale 0.1 +1 -> 0E+1 Inexact Rounded
-inx405 rescale 0.1 0 -> 0 Inexact Rounded
-inx406 rescale 0.1 -1 -> 0.1
-inx407 rescale 0.1 -2 -> 0.10
-
--- long operands cause rounding too
-precision: 9
-inx801 plus 123456789 -> 123456789
-inx802 plus 1234567890 -> 1.23456789E+9 Rounded
-inx803 plus 1234567891 -> 1.23456789E+9 Inexact Rounded
-inx804 plus 1234567892 -> 1.23456789E+9 Inexact Rounded
-inx805 plus 1234567899 -> 1.23456790E+9 Inexact Rounded
-inx806 plus 1234567900 -> 1.23456790E+9 Rounded
-
=======================================
--- /trunk/t/data/scaleb.decTest Wed May 27 17:08:43 2009
+++ /dev/null
@@ -1,200 +0,0 @@
-------------------------------------------------------------------------
--- scaleb.decTest -- scale a number by powers of 10 --
--- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
-------------------------------------------------------------------------
--- Please see the document "General Decimal Arithmetic Testcases" --
--- at http://www2.hursley.ibm.com/decimal for the description of --
--- these testcases. --
--- --
--- These testcases are experimental ('beta' versions), and they --
--- may contain errors. They are offered on an as-is basis. In --
--- particular, achieving the same results as the tests here is not --
--- a guarantee that an implementation complies with any Standard --
--- or specification. The tests are not exhaustive. --
--- --
--- Please send comments, suggestions, and corrections to the author: --
--- Mike Cowlishaw, IBM Fellow --
--- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
--- m...@uk.ibm.com --
-------------------------------------------------------------------------
-version: 2.58
-
-extended: 1
-precision: 9
-rounding: half_up
-maxExponent: 999
-minExponent: -999
-
--- Max |rhs| is 2*(999+9) = 2016
-
--- Sanity checks
-scbx001 scaleb 7.50 10 -> 7.50E+10
-scbx002 scaleb 7.50 3 -> 7.50E+3
-scbx003 scaleb 7.50 2 -> 750
-scbx004 scaleb 7.50 1 -> 75.0
-scbx005 scaleb 7.50 0 -> 7.50
-scbx006 scaleb 7.50 -1 -> 0.750
-scbx007 scaleb 7.50 -2 -> 0.0750
-scbx008 scaleb 7.50 -10 -> 7.50E-10
-scbx009 scaleb -7.50 3 -> -7.50E+3
-scbx010 scaleb -7.50 2 -> -750
-scbx011 scaleb -7.50 1 -> -75.0
-scbx012 scaleb -7.50 0 -> -7.50
-scbx013 scaleb -7.50 -1 -> -0.750
-
--- Infinities
-scbx014 scaleb Infinity 1 -> Infinity
-scbx015 scaleb -Infinity 2 -> -Infinity
-scbx016 scaleb Infinity -1 -> Infinity
-scbx017 scaleb -Infinity -2 -> -Infinity
-
--- Next two are somewhat undefined in 754r; treat as non-integer
-scbx018 scaleb 10 Infinity -> NaN Invalid_operation
-scbx019 scaleb 10 -Infinity -> NaN Invalid_operation
-
--- NaNs are undefined in 754r; assume usual processing
--- NaNs, 0 payload
-scbx021 scaleb NaN 1 -> NaN
-scbx022 scaleb -NaN -1 -> -NaN
-scbx023 scaleb sNaN 1 -> NaN Invalid_operation
-scbx024 scaleb -sNaN 1 -> -NaN Invalid_operation
-scbx025 scaleb 4 NaN -> NaN
-scbx026 scaleb -Inf -NaN -> -NaN
-scbx027 scaleb 4 sNaN -> NaN Invalid_operation
-scbx028 scaleb Inf -sNaN -> -NaN Invalid_operation
-
--- non-integer RHS
-scbx030 scaleb 1.23 1 -> 12.3
-scbx031 scaleb 1.23 1.00 -> NaN Invalid_operation
-scbx032 scaleb 1.23 1.1 -> NaN Invalid_operation
-scbx033 scaleb 1.23 1.01 -> NaN Invalid_operation
-scbx034 scaleb 1.23 0.01 -> NaN Invalid_operation
-scbx035 scaleb 1.23 0.11 -> NaN Invalid_operation
-scbx036 scaleb 1.23 0.999999999 -> NaN Invalid_operation
-scbx037 scaleb 1.23 -1 -> 0.123
-scbx038 scaleb 1.23 -1.00 -> NaN Invalid_operation
-scbx039 scaleb 1.23 -1.1 -> NaN Invalid_operation
-scbx040 scaleb 1.23 -1.01 -> NaN Invalid_operation
-scbx041 scaleb 1.23 -0.01 -> NaN Invalid_operation
-scbx042 scaleb 1.23 -0.11 -> NaN Invalid_operation
-scbx043 scaleb 1.23 -0.999999999 -> NaN Invalid_operation
-scbx044 scaleb 1.23 0.1 -> NaN Invalid_operation
-scbx045 scaleb 1.23 1E+1 -> NaN Invalid_operation
-scbx046 scaleb 1.23 1.1234E+6 -> NaN Invalid_operation
-scbx047 scaleb 1.23 1.123E+4 -> NaN Invalid_operation
-
-
-scbx120 scaleb 1.23 2015 -> Infinity Overflow Inexact Rounded
-scbx121 scaleb 1.23 2016 -> Infinity Overflow Inexact Rounded
-scbx122 scaleb 1.23 2017 -> NaN Invalid_operation
-scbx123 scaleb 1.23 2018 -> NaN Invalid_operation
-scbx124 scaleb 1.23 -2015 -> 0E-1007 Underflow Subnormal
Inexact Rounded Clamped
-scbx125 scaleb 1.23 -2016 -> 0E-1007 Underflow Subnormal
Inexact Rounded Clamped
-scbx126 scaleb 1.23 -2017 -> NaN Invalid_operation
-scbx127 scaleb 1.23 -2018 -> NaN Invalid_operation
-
--- NaNs, non-0 payload
--- propagating NaNs
-scbx861 scaleb NaN01 -Inf -> NaN1
-scbx862 scaleb -NaN02 -1000 -> -NaN2
-scbx863 scaleb NaN03 1000 -> NaN3
-scbx864 scaleb NaN04 Inf -> NaN4
-scbx865 scaleb NaN05 NaN61 -> NaN5
-scbx866 scaleb -Inf -NaN71 -> -NaN71
-scbx867 scaleb -1000 NaN81 -> NaN81
-scbx868 scaleb 1000 NaN91 -> NaN91
-scbx869 scaleb Inf NaN101 -> NaN101
-scbx871 scaleb sNaN011 -Inf -> NaN11 Invalid_operation
-scbx872 scaleb sNaN012 -1000 -> NaN12 Invalid_operation
-scbx873 scaleb -sNaN013 1000 -> -NaN13 Invalid_operation
-scbx874 scaleb sNaN014 NaN171 -> NaN14 Invalid_operation
-scbx875 scaleb sNaN015 sNaN181 -> NaN15 Invalid_operation
-scbx876 scaleb NaN016 sNaN191 -> NaN191 Invalid_operation
-scbx877 scaleb -Inf sNaN201 -> NaN201 Invalid_operation
-scbx878 scaleb -1000 sNaN211 -> NaN211 Invalid_operation
-scbx879 scaleb 1000 -sNaN221 -> -NaN221 Invalid_operation
-scbx880 scaleb Inf sNaN231 -> NaN231 Invalid_operation
-scbx881 scaleb NaN025 sNaN241 -> NaN241 Invalid_operation
-
--- finites
-scbx051 scaleb 7 -2 -> 0.07
-scbx052 scaleb -7 -2 -> -0.07
-scbx053 scaleb 75 -2 -> 0.75
-scbx054 scaleb -75 -2 -> -0.75
-scbx055 scaleb 7.50 -2 -> 0.0750
-scbx056 scaleb -7.50 -2 -> -0.0750
-scbx057 scaleb 7.500 -2 -> 0.07500
-scbx058 scaleb -7.500 -2 -> -0.07500
-scbx061 scaleb 7 -1 -> 0.7
-scbx062 scaleb -7 -1 -> -0.7
-scbx063 scaleb 75 -1 -> 7.5
-scbx064 scaleb -75 -1 -> -7.5
-scbx065 scaleb 7.50 -1 -> 0.750
-scbx066 scaleb -7.50 -1 -> -0.750
-scbx067 scaleb 7.500 -1 -> 0.7500
-scbx068 scaleb -7.500 -1 -> -0.7500
-scbx071 scaleb 7 0 -> 7
-scbx072 scaleb -7 0 -> -7
-scbx073 scaleb 75 0 -> 75
-scbx074 scaleb -75 0 -> -75
-scbx075 scaleb 7.50 0 -> 7.50
-scbx076 scaleb -7.50 0 -> -7.50
-scbx077 scaleb 7.500 0 -> 7.500
-scbx078 scaleb -7.500 0 -> -7.500
-scbx081 scaleb 7 1 -> 7E+1
-scbx082 scaleb -7 1 -> -7E+1
-scbx083 scaleb 75 1 -> 7.5E+2
-scbx084 scaleb -75 1 -> -7.5E+2
-scbx085 scaleb 7.50 1 -> 75.0
-scbx086 scaleb -7.50 1 -> -75.0
-scbx087 scaleb 7.500 1 -> 75.00
-scbx088 scaleb -7.500 1 -> -75.00
-scbx091 scaleb 7 2 -> 7E+2
-scbx092 scaleb -7 2 -> -7E+2
-scbx093 scaleb 75 2 -> 7.5E+3
-scbx094 scaleb -75 2 -> -7.5E+3
-scbx095 scaleb 7.50 2 -> 750
-scbx096 scaleb -7.50 2 -> -750
-scbx097 scaleb 7.500 2 -> 750.0
-scbx098 scaleb -7.500 2 -> -750.0
-
--- zeros
-scbx111 scaleb 0 1 -> 0E+1
-scbx112 scaleb -0 2 -> -0E+2
-scbx113 scaleb 0E+4 3 -> 0E+7
-scbx114 scaleb -0E+4 4 -> -0E+8
-scbx115 scaleb 0.0000 5 -> 0E+1
-scbx116 scaleb -0.0000 6 -> -0E+2
-scbx117 scaleb 0E-141 7 -> 0E-134
-scbx118 scaleb -0E-141 8 -> -0E-133
-
--- Nmax, Nmin, Ntiny
-scbx132 scaleb 9.99999999E+999 +999 -> Infinity Overflow Inexact
Rounded
-scbx133 scaleb 9.99999999E+999 +10 -> Infinity Overflow Inexact
Rounded
-scbx134 scaleb 9.99999999E+999 +1 -> Infinity Overflow Inexact
Rounded
-scbx135 scaleb 9.99999999E+999 0 -> 9.99999999E+999
-scbx136 scaleb 9.99999999E+999 -1 -> 9.99999999E+998
-scbx137 scaleb 1E-999 +1 -> 1E-998
-scbx138 scaleb 1E-999 -0 -> 1E-999
-scbx139 scaleb 1E-999 -1 -> 1E-1000 Subnormal
-scbx140 scaleb 1.00000000E-999 +1 -> 1.00000000E-998
-scbx141 scaleb 1.00000000E-999 0 -> 1.00000000E-999
-scbx142 scaleb 1.00000000E-999 -1 -> 1.0000000E-1000 Subnormal Rounded
-scbx143 scaleb 1E-1007 +1 -> 1E-1006 Subnormal
-scbx144 scaleb 1E-1007 -0 -> 1E-1007 Subnormal
-scbx145 scaleb 1E-1007 -1 -> 0E-1007 Underflow
Subnormal Inexact Rounded Clamped
-
-scbx150 scaleb -1E-1007 +1 -> -1E-1006 Subnormal
-scbx151 scaleb -1E-1007 -0 -> -1E-1007 Subnormal
-scbx152 scaleb -1E-1007 -1 -> -0E-1007 Underflow
Subnormal Inexact Rounded Clamped
-scbx153 scaleb -1.00000000E-999 +1 -> -1.00000000E-998
-scbx154 scaleb -1.00000000E-999 +0 -> -1.00000000E-999
-scbx155 scaleb -1.00000000E-999 -1 -> -1.0000000E-1000 Subnormal Rounded
-scbx156 scaleb -1E-999 +1 -> -1E-998
-scbx157 scaleb -1E-999 -0 -> -1E-999
-scbx158 scaleb -1E-999 -1 -> -1E-1000 Subnormal
-scbx159 scaleb -9.99999999E+999 +1 -> -Infinity Overflow Inexact
Rounded
-scbx160 scaleb -9.99999999E+999 +0 -> -9.99999999E+999
-scbx161 scaleb -9.99999999E+999 -1 -> -9.99999999E+998
-scbx162 scaleb -9E+999 +1 -> -Infinity Overflow Inexact
Rounded
-scbx163 scaleb -1E+999 +1 -> -Infinity Overflow Inexact
Rounded
=======================================
--- /trunk/t/data/trim.decTest Wed May 27 17:08:43 2009
+++ /dev/null
@@ -1,152 +0,0 @@
-------------------------------------------------------------------------
--- trim.decTest -- remove insignificant trailing zeros --
--- Copyright (c) IBM Corporation, 2003, 2008. All rights reserved. --
-------------------------------------------------------------------------
--- Please see the document "General Decimal Arithmetic Testcases" --
--- at http://www2.hursley.ibm.com/decimal for the description of --
--- these testcases. --
--- --
--- These testcases are experimental ('beta' versions), and they --
--- may contain errors. They are offered on an as-is basis. In --
--- particular, achieving the same results as the tests here is not --
--- a guarantee that an implementation complies with any Standard --
--- or specification. The tests are not exhaustive. --
--- --
--- Please send comments, suggestions, and corrections to the author: --
--- Mike Cowlishaw, IBM Fellow --
--- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
--- m...@uk.ibm.com --
-------------------------------------------------------------------------
-version: 2.58
-
-extended: 1
-precision: 9
-rounding: half_up
-maxExponent: 999
-minexponent: -999
-
-trmx001 trim '1' -> '1'
-trmx002 trim '-1' -> '-1'
-trmx003 trim '1.00' -> '1'
-trmx004 trim '-1.00' -> '-1'
-trmx005 trim '0' -> '0'
-trmx006 trim '0.00' -> '0'
-trmx007 trim '00.0' -> '0'
-trmx008 trim '00.00' -> '0'
-trmx009 trim '00' -> '0'
-
-trmx010 trim '-2' -> '-2'
-trmx011 trim '2' -> '2'
-trmx012 trim '-2.00' -> '-2'
-trmx013 trim '2.00' -> '2'
-trmx014 trim '-0' -> '-0'
-trmx015 trim '-0.00' -> '-0'
-trmx016 trim '-00.0' -> '-0'
-trmx017 trim '-00.00' -> '-0'
-trmx018 trim '-00' -> '-0'
-trmx019 trim '0E+5' -> '0'
-trmx020 trim '-0E+1' -> '-0'
-
-trmx030 trim '+0.1' -> '0.1'
-trmx031 trim '-0.1' -> '-0.1'
-trmx032 trim '+0.01' -> '0.01'
-trmx033 trim '-0.01' -> '-0.01'
-trmx034 trim '+0.001' -> '0.001'
-trmx035 trim '-0.001' -> '-0.001'
-trmx036 trim '+0.000001' -> '0.000001'
-trmx037 trim '-0.000001' -> '-0.000001'
-trmx038 trim '+0.000000000001' -> '1E-12'
-trmx039 trim '-0.000000000001' -> '-1E-12'
-
-trmx041 trim 1.1 -> 1.1
-trmx042 trim 1.10 -> 1.1
-trmx043 trim 1.100 -> 1.1
-trmx044 trim 1.110 -> 1.11
-trmx045 trim -1.1 -> -1.1
-trmx046 trim -1.10 -> -1.1
-trmx047 trim -1.100 -> -1.1
-trmx048 trim -1.110 -> -1.11
-trmx049 trim 9.9 -> 9.9
-trmx050 trim 9.90 -> 9.9
-trmx051 trim 9.900 -> 9.9
-trmx052 trim 9.990 -> 9.99
-trmx053 trim -9.9 -> -9.9
-trmx054 trim -9.90 -> -9.9
-trmx055 trim -9.900 -> -9.9
-trmx056 trim -9.990 -> -9.99
-
--- some insignificant trailing fractional zeros
-trmx060 trim 10.0 -> 10
-trmx061 trim 10.00 -> 10
-trmx062 trim 100.0 -> 100
-trmx063 trim 100.00 -> 100
-trmx064 trim 1.1000E+3 -> 1100
-trmx065 trim 1.10000E+3 -> 1100
-trmx066 trim -10.0 -> -10
-trmx067 trim -10.00 -> -10
-trmx068 trim -100.0 -> -100
-trmx069 trim -100.00 -> -100
-trmx070 trim -1.1000E+3 -> -1100
-trmx071 trim -1.10000E+3 -> -1100
-
--- some insignificant trailing zeros with positive exponent
-trmx080 trim 10E+1 -> 1E+2
-trmx081 trim 100E+1 -> 1E+3
-trmx082 trim 1.0E+2 -> 1E+2
-trmx083 trim 1.0E+3 -> 1E+3
-trmx084 trim 1.1E+3 -> 1.1E+3
-trmx085 trim 1.00E+3 -> 1E+3
-trmx086 trim 1.10E+3 -> 1.1E+3
-trmx087 trim -10E+1 -> -1E+2
-trmx088 trim -100E+1 -> -1E+3
-trmx089 trim -1.0E+2 -> -1E+2
-trmx090 trim -1.0E+3 -> -1E+3
-trmx091 trim -1.1E+3 -> -1.1E+3
-trmx092 trim -1.00E+3 -> -1E+3
-trmx093 trim -1.10E+3 -> -1.1E+3
-
--- some significant trailing zeros
-trmx100 trim 11 -> 11
-trmx101 trim 10 -> 10
-trmx102 trim 10. -> 10
-trmx103 trim 1.1E+1 -> 11
-trmx104 trim 1.0E+1 -> 10
-trmx105 trim 1.10E+2 -> 110
-trmx106 trim 1.00E+2 -> 100
-trmx107 trim 1.100E+3 -> 1100
-trmx108 trim 1.000E+3 -> 1000
-trmx109 trim 1.000000E+6 -> 1000000
-trmx110 trim -11 -> -11
-trmx111 trim -10 -> -10
-trmx112 trim -10. -> -10
-trmx113 trim -1.1E+1 -> -11
-trmx114 trim -1.0E+1 -> -10
-trmx115 trim -1.10E+2 -> -110
-trmx116 trim -1.00E+2 -> -100
-trmx117 trim -1.100E+3 -> -1100
-trmx118 trim -1.000E+3 -> -1000
-trmx119 trim -1.00000E+5 -> -100000
-trmx120 trim -1.000000E+6 -> -1000000
-
--- examples from decArith
-trmx140 trim '2.1' -> '2.1'
-trmx141 trim '-2.0' -> '-2'
-trmx142 trim '1.200' -> '1.2'
-trmx143 trim '-120' -> '-120'
-trmx144 trim '120.00' -> '120'
-trmx145 trim '0.00' -> '0'
-
--- utilities pass through specials without raising exceptions
-trmx320 trim 'Inf' -> 'Infinity'
-trmx321 trim '-Inf' -> '-Infinity'
-trmx322 trim NaN -> NaN
-trmx323 trim sNaN -> sNaN
-trmx324 trim NaN999 -> NaN999
-trmx325 trim sNaN777 -> sNaN777
-trmx326 trim -NaN -> -NaN
-trmx327 trim -sNaN -> -sNaN
-trmx328 trim -NaN999 -> -NaN999
-trmx329 trim -sNaN777 -> -sNaN777
-
--- Null test
-trmx900 trim # -> NaN Invalid_operation

Reply all
Reply to author
Forward
0 new messages