Hello syphilis,
Just a quick update. I went to this site and downloaded the code and successfully compiled using 'make -f Makefile.Linux' on a AMD server running Debian with gcc 4.4.5. It seems to contain the missing functions that you mentioned.
I ran the sample, and it seems to work?????
~/dfpal# ./dfpsample 1.000001 60000
Version of DFPAL: 2.20
DFPAL is operating in software
value of n4 = 9.000000000000000E+384
9E+384 * 9E+384 = Infinity
9E+384 * 9E+384 => Overflow
DFPAL_TRP_INVALID is enabled!
DFPAL_TRP_OVERFLOW is not enabled!
DFPAL_TRP_INVALID is enabled!
sign of n1 0
Zero value = 0
n1 is less than n2
n1 - n2 = -59998.999999
N1 - N2 = -59998.999999
original decimal64 n1=1.000001
minus n1 = -1.000001
It is still Overflow
Now, it is not Overflow
~/dfpal#
Don't know what the sample is supposed to do, so your knowledge of the subject would be greatly appreciated to show some light. At least it's a start!
Regards...Ed
"Well done is better than well said." - Benjamin Franklin
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|