an oldie but a goodie .. ISO C90 does not support 'long long'

Steffen Nurpmeso steffen at sdaoden.eu
Fri Nov 11 19:09:03 UTC 2022


Jakob Bohm wrote in
 <5257e6e7-94e3-896d-73c8-9c17b29b8784 at wisemo.com>:
 |On 2022-11-06 23:14, raf via openssl-users wrote:
 |> On Sat, Nov 05, 2022 at 02:22:55PM +0000, Michael Wojcik <Michael.Wojcik\
 |> atmicrofocus.com> wrote:
 ...
 |Regarding C90 compilers, it is important to realize that some system
 |vendors kept providing (arbitrarily extended) C90 compiler long after
 |1999.  Microsoft is one example, with many of their system compilers
 |for "older" OS versions being based on Microsoft's C90 compilers.
 |  These compilers did not provide a good stdint.h, but might be coached
 |to load a porter provided stdint.h that maps int64_t and uint64_t to
 |their vendor specific C90 extensions (named __int64 and unsigned __int64).

  #ifdef _MSC_VER

maybe, otherwise __extension__ long long int.  This definetely
worked from pre-Y2K until 2003 with freely available compilers.
'Do not know about __INTEL_COMPILER / icc, iirc came to Linux by
then, no?  Benchmarked great, and big software needs that help.



--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


More information about the openssl-users mailing list