[decnum-dynpmcs] r163 committed - Add a new decTest.originated file, this one tests the suitability of '...

0 views
Skip to first unread message

codesite...@google.com

unread,
Aug 11, 2009, 7:43:08 PM8/11/09
to decnum-...@googlegroups.com
Revision: 163
Author: arbelo
Date: Tue Aug 11 16:42:01 2009
Log: Add a new decTest.originated file, this one tests the suitability
of 'pow'(0.5) as a substitute for the 'sqrt'() METHOD.


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

Added:
/trunk/t/powersqrt.t
Modified:
/trunk/aux/decTest/src/inc/procs.pir
/trunk/aux/decTest/src/pct/grammar.pg

=======================================
--- /dev/null
+++ /trunk/t/powersqrt.t Tue Aug 11 16:42:01 2009
File is too large to display a diff.
=======================================
--- /trunk/aux/decTest/src/inc/procs.pir Mon Aug 10 15:45:19 2009
+++ /trunk/aux/decTest/src/inc/procs.pir Tue Aug 11 16:42:01 2009
@@ -67,6 +67,14 @@
.return ( a )
.end

+.sub exp
+ .param pmc x
+ .param pmc y
+ .local pmc z
+ z = x.'exp'( y )
+ .return ( z )
+.end
+
.sub power
.param pmc x
.param pmc y
@@ -88,3 +96,10 @@
z = x.'ln'()
.return ( z )
.end
+
+.sub squareroot
+ .param pmc x
+ .local pmc z
+ z = x.'sqrt'()
+ .return ( z )
+.end
=======================================
--- /trunk/aux/decTest/src/pct/grammar.pg Mon Aug 10 15:45:19 2009
+++ /trunk/aux/decTest/src/pct/grammar.pg Tue Aug 11 16:42:01 2009
@@ -28,7 +28,7 @@
token operation {
[ 'fma' | 'multiply' | 'subtract' | 'divideint' | 'divide'
| 'remainder' | 'minus' | 'apply' | 'exp' | 'add' | 'ln'
- | 'log10' | 'power' | 'abs' ]
+ | 'log10' | 'power' | 'abs' | 'squareroot' ]
}

token decnumber {

Reply all
Reply to author
Forward
0 new messages