I am trying to change the precision of the abs
and sign
with gfortran (gcc version 5.3.1 and x86_64-linux-gnu).
I know I can change to dabs
and dsign
to have double precision but what about quad precision, is it possible?
For sqrt(x)
for instance, I simply change to x**(0.5q0) with the arg defined as a real(16)
. I read that some compilers do not have the intrinsic routines implemented in quad or extended precision, see e.g. here.