Re: Integer Overflow



On 2010-12-30, jacob navia <jacob@xxxxxxxxxxxx> wrote:
I demonstrated that
you can detect the overflow, the central point we are discussing about.
If it is a hardware flag or a software combination of flags is
completely irrelevant. Some processors give the same effect of the
overflow flag by using other flags, this is just irrelevant, we are
discussing that _overflow() can be implemented in any
processor including the now dead dec alpha.

FYI, the DEC Alpha is not dead.
In fact, I'm using one to send this post!
.



Relevant Pages

  • Re: Infinity + Infinity (or NegInfinity - NegInfinity)
    ... (trap overflow flag set). ... It doesn't have a VAX style global trap enable flag so one has ... Add and AddTrapOverflow instructions, ... The exception to this is when the operation is ADC/SBB, because it is impossible to determine what the previous content of the carry flag was. ...
    (comp.arch)
  • Re: Integer Overflow
    ... you can detect the overflow, the central point we are discussing about. ... If it is a hardware flag or a software combination of flags is ... processor including the now dead dec alpha. ... The CPU itself is no longer built. ...
    (comp.lang.c)
  • Re: Problem using Ada.Text_IO.Modular_IO
    ... build-in CPU Carry flag to detect a Overflow/Underflow condition for those types that are define in the Standard/System packages. ... Assuming you get an advantage from using hardware overflow ... What routines does the compiler generate for mod 2**5? ...
    (comp.lang.ada)
  • Re: Kann Java nicht mit Byte-Zahlen rechnen?
    ... Ingo Menger wrote: ... ich auch nicht wie das bei modernen Prozessoren ist, aber mein 68000er Handbook von Gerry Kane, sagt mir dass der Prozessor schon vor 26 Jahren die Ergebnisse von Lade- und Rechen-Operationen mit *vier* Statusflags bewertet hat: ... Bit#0 CF Carry Flag ... Bit#11 OF Overflow Flag ...
    (de.comp.lang.java)
  • Re: Integer Overflow
    ... always test for overflow as stated in the FAQ... ... I am not referring to the DeathStar 9000. ... flags behave the same way as the x86 overflow flag? ... machines, but it could be implemented differently in other machines. ...
    (comp.lang.c)