Missing Intrinsics for quads

3 views
Skip to first unread message

Hans Peschke

unread,
Nov 17, 2009, 5:15:01 AM11/17/09
to gg...@googlegroups.com
Hi,

I just want to note, that the Fortran intrinsic functions exponent() and
fraction() are missing in g95 for floating point numbers with quad precision.

Maybe there are some others missing too.


Best regards

Hans Peschke
Hans_Peschke_SEP.vcf

jfh

unread,
Nov 17, 2009, 8:27:17 PM11/17/09
to gg95
>  Hans_Peschke_SEP.vcf
> < 1KViewDownload
Lots of quad intrinsics are missing and some are there but bugged.
Fortunately the only time I had to use quad precision in a real-world
program (volcanology is certainly real-world!) I needed only *, /, +,
- and real sqrt, all of which were OK.

If z is complex quad and x is real quad, the following were also
missing the last time I looked: nearest, rrspacing, scale,
set_exponent, spacing of x, sqrt(z), log and exp of both z and x, tan
(x), atan(x). I haven't tested the other trig and hyperbolic
functions. Real(z) and aimag(z) are there but both gave wrong answers.
The attempt to print conjg(z) gave a run-time segmentation fault. The
g95 version I used was

G95 Fortran 95 version 4.0.3 (g95 0.92!) May 26 2009 (i686-pc-linux-
gnu)
compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.1 2.96-98).

John Harper
Reply all
Reply to author
Forward
0 new messages