This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] Handle POW/CPOW builtins for all floating-point types
- From: Tobias Burnus <burnus at net-b dot de>
- To: FX <fxcoudert at gmail dot com>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 01 Sep 2010 10:53:23 +0200
- Subject: Re: [fortran, patch] Handle POW/CPOW builtins for all floating-point types
- References: <550FFCCF-E4EB-4731-8683-B03BF3E71539@gmail.com> <4C7E05D7.9060004@net-b.de> <75D25071-F1F3-498B-A1AE-F1A23C028A37@gmail.com>
FX wrote:
I'll have to check... in your idea, would a real(kind=16) descriptor have only GFC_DTYPE_FLOAT128 set, or (GFC_DTYPE_FLOAT128 | GFC_DTYPE_REAL)?
Well, I think both will be the same: All 3 bits will be set to 1. You
can only store 8 = 2^3 states in 3 bits, 7 states are currently in use ...
My idea was to use GFC_DTYPE_FLOAT128 for software REAL values. For
backward compatibility, we still use GFC_DTYPE_REAL for REAL(10) and
hardware REAL(16). All conditions in libgfortran have to use "==" as OR
and AND will not work.
Tobias