Re: Max integer in an 8 byte COMP field?



RES1=0000000000000000000
RES1=0000000000000000000

What is correct I will leave the Gurus to work out :-)

Doesn't take a 'guru' at all.

compute rc2 = 2 ** 63.
...
compute rc2 = 2 ** 64 - 1.

Both these computations create intermediate overflow. See the ON SIZE
ERROR option for COMPUTE in your manual for handling of same.

--
Michael C. Mattias
Tal Systems Inc.
Racine WI
mmattias@xxxxxxxxxxxxxx


.



Relevant Pages

  • [tip:perfcounters/core] perf_counter: Add event overlow handling
    ... Alternative method of mmapdata output handling that provides ... better overflow management and a more reliable data stream. ... * Generic counter overflow handling, ...
    (Linux-Kernel)
  • Lcc win overflow handling
    ... There was a recent thread about overflow handling. ... is the responsability of the compiler to figure out how to do that. ... the first solution "is not portable" without ever mentionig the second ...
    (comp.lang.c)
  • Re: Lcc win overflow handling
    ... Direct handling of the overflow flag. ... the first solution "is not portable" without ever mentionig the second ...
    (comp.lang.c)
  • Re: Erradicating a Buffer Overflow
    ... # after the time section of the string, and overflow the program. ... what is the proper way of handling this? ...
    (comp.lang.c)