Re: Is there a way in Fortran to designate an integer value as integer*8 ?

Liste des GroupesRevenir à cl fortran 
Sujet : Re: Is there a way in Fortran to designate an integer value as integer*8 ?
De : Danny (at) *nospam* hyperspace.vogon.gov (R Daneel Olivaw)
Groupes : comp.lang.fortran
Date : 03. Oct 2024, 18:02:23
Autres entêtes
Organisation : To protect and to server
Message-ID : <vdmimv$1c18c$1@paganini.bofh.team>
References : 1 2 3
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 SeaMonkey/2.53.18.2
Steven G. Kargl wrote:
On Thu, 03 Oct 2024 14:45:31 +0200, R Daneel Olivaw wrote:
 
Lynn McGuire wrote:
I need many of my integers to be integer*8 in my port to 64 bit.  In
C/C++ code, I can say 123456L to mean a long long value, generally 64
bit.  Is there a corresponding way to do this in Fortran or am I stuck
with:
>
      call xyz (1)
>
      subroutine xyz (ivalue)
      integer*8 ivalue
      ...
      return end
>
must be:
>
      integer*8 ivalue
      ...
      ivalue = 1
      call xyz (ivalue)
>
>
This is not actually a Fortran issue as such, it's all about a specific
compiler (GNU Fortran).
 If we overlook the nonstandard type in the declaration, and agree
that the compiler will accept 'integer*8', then the program is
still invalid Fortran.  It's technically not a Fortran issue.  It
is a programmer issue.
 
Take a pragmatic approach, if that's the way the compiler wants you to do it then do it that way.
Years ago I was converting a suite of programs from one OS/hardware platform to another.  One program had serious problems because type "real" had insufficient precision on the new machine, that machine offered a compile option which meant "real" automatically meant "double precision" and - after checking for "equivalence" and common" statements - that's the way I went.  Problem solved.  This was back in the days of Fortran IV but I don't think I've ever seen anyone assigning Hollerith values to Real numbers so that was not a problem either.

Date Sujet#  Auteur
2 Oct 24 * Is there a way in Fortran to designate an integer value as integer*8 ?88Lynn McGuire
2 Oct 24 +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?66Lawrence D'Oliveiro
2 Oct 24 i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?65Lynn McGuire
3 Oct 24 i +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lawrence D'Oliveiro
3 Oct 24 i i`- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
3 Oct 24 i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?62Steven G. Kargl
3 Oct 24 i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?61Lynn McGuire
3 Oct 24 i   `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?60Steven G. Kargl
3 Oct 24 i    `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?59Lynn McGuire
3 Oct 24 i     +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Steven G. Kargl
3 Oct 24 i     i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Clive Page
4 Oct 24 i     i `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Steven G. Kargl
4 Oct 24 i     +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?37Lawrence D'Oliveiro
4 Oct 24 i     i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?36Lynn McGuire
4 Oct 24 i     i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?35Lawrence D'Oliveiro
4 Oct 24 i     i  +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?33Lynn McGuire
4 Oct 24 i     i  i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?32Lawrence D'Oliveiro
5 Oct 24 i     i  i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?31Lynn McGuire
5 Oct 24 i     i  i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?30Lawrence D'Oliveiro
5 Oct 24 i     i  i   `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?29Lynn McGuire
20 Oct 24 i     i  i    `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?28Lawrence D'Oliveiro
21 Oct 24 i     i  i     `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?27Lynn McGuire
21 Oct 24 i     i  i      `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?26Thomas Koenig
22 Oct 24 i     i  i       `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?25Lynn McGuire
23 Oct 24 i     i  i        `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?24Lawrence D'Oliveiro
23 Oct 24 i     i  i         +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lynn McGuire
23 Oct 24 i     i  i         i`- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
23 Oct 24 i     i  i         `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?21Lynn McGuire
23 Oct 24 i     i  i          `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?20Lawrence D'Oliveiro
23 Oct 24 i     i  i           `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?19Lynn McGuire
24 Oct 24 i     i  i            +- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
24 Oct 24 i     i  i            `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?17Thomas Koenig
26 Oct 24 i     i  i             `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?16Lynn McGuire
26 Oct 24 i     i  i              +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lawrence D'Oliveiro
26 Oct 24 i     i  i              i`- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
26 Oct 24 i     i  i              `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?13Thomas Koenig
26 Oct 24 i     i  i               +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?9Lawrence D'Oliveiro
26 Oct 24 i     i  i               i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?8Thomas Koenig
27 Oct 24 i     i  i               i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?7Lawrence D'Oliveiro
27 Oct 24 i     i  i               i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?6Thomas Koenig
27 Oct 24 i     i  i               i   +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?4Lawrence D'Oliveiro
29 Oct 24 i     i  i               i   i+- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
29 Oct 24 i     i  i               i   i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2James Kuyper
29 Oct 24 i     i  i               i   i `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Waldek Hebisch
29 Oct 24 i     i  i               i   `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
26 Oct 24 i     i  i               `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Lynn McGuire
26 Oct 24 i     i  i                `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Thomas Koenig
29 Oct 24 i     i  i                 `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
4 Oct 24 i     i  `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
13 Oct 24 i     `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?18Thomas Koenig
13 Oct 24 i      +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?5R Daneel Olivaw
13 Oct 24 i      i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?4Thomas Koenig
13 Oct 24 i      i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3R Daneel Olivaw
13 Oct 24 i      i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lawrence D'Oliveiro
17 Oct 24 i      i   `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
13 Oct 24 i      +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Gary Scott
13 Oct 24 i      i`- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
14 Oct 24 i      +- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
14 Oct 24 i      `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?9Lynn McGuire
15 Oct 24 i       `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?8Thomas Koenig
15 Oct 24 i        +- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1R Daneel Olivaw
16 Oct 24 i        +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?4Lynn McGuire
16 Oct 24 i        i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Lawrence D'Oliveiro
17 Oct 24 i        i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lynn McGuire
17 Oct 24 i        i  `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
16 Oct 24 i        `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lawrence D'Oliveiro
16 Oct 24 i         `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
3 Oct 24 +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?20R Daneel Olivaw
3 Oct 24 i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?19Steven G. Kargl
3 Oct 24 i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?18R Daneel Olivaw
3 Oct 24 i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?17Lynn McGuire
4 Oct 24 i   `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?16Lawrence D'Oliveiro
4 Oct 24 i    `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?15R Daneel Olivaw
4 Oct 24 i     `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?14Lawrence D'Oliveiro
4 Oct 24 i      +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Steven G. Kargl
5 Oct 24 i      i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2R Daneel Olivaw
5 Oct 24 i      i `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Steven G. Kargl
4 Oct 24 i      `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?10Gary Scott
5 Oct 24 i       `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?9Clive Page
5 Oct 24 i        `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?8Gary Scott
6 Oct 24 i         `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?7Lawrence D'Oliveiro
6 Oct 24 i          `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?6Gary Scott
6 Oct 24 i           `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?5Lawrence D'Oliveiro
6 Oct 24 i            `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?4Gary Scott
6 Oct 24 i             `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Lawrence D'Oliveiro
6 Oct 24 i              `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Gary Scott
6 Oct 24 i               `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Gary Scott
5 Oct 24 `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal