1 Feb 14:25
Re: bignum for gfortran
Toon Moene <toon <at> moene.indiv.nluug.nl>
2008-02-01 13:25:00 GMT
2008-02-01 13:25:00 GMT
Tobias Burnus wrote:
> And note that gfortran also supports 16-byte-wide integer types, i.e.
> INTEGER(16).
Exactly. This "Just Works" on my x86_64-unknown-linux-gnu system:
integer*16 i, n
character*80 arg
call getarg(1,arg)
read(arg,'(i20)') i
n = 1
do i = 1, i
n = n * i
enddo
print*,n
end
./a.out 32
263130836933693530167218012160000000
--
--
Toon Moene - e-mail: toon <at> moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.indiv.nluug.nl/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/ml/gcc/2008-01/msg00009.html
RSS Feed