[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: integer overflow in muli instruction
From: |
Bruno Haible |
Subject: |
Re: integer overflow in muli instruction |
Date: |
Sat, 20 Feb 2021 14:21:50 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-201-generic; KDE/5.18.0; x86_64; ; ) |
> But then, at this point we have to decide what semantics to implement in
> Poke when signed overflow happens (in multiplication, division, etc).
>
> Adopting C semantics, and raising a Poke exception seems to be the most
> obvious choice...
Yes, this seems the right thing to do. The programmer can then decide
whether they want to use a 64-bit type or an unsigned type as a workaround.
Bruno
- integer overflow in muli instruction, Bruno Haible, 2021/02/19
- Re: integer overflow in muli instruction, Jose E. Marchesi, 2021/02/20
- Re: integer overflow in muli instruction,
Bruno Haible <=
- Re: integer overflow in muli instruction, Jose E. Marchesi, 2021/02/23
- Re: integer overflow in muli instruction, Jose E. Marchesi, 2021/02/23
- Re: integer overflow in muli instruction, Bruno Haible, 2021/02/23
- Re: integer overflow in muli instruction, Bruno Haible, 2021/02/23
- Re: integer overflow in muli instruction, Jose E. Marchesi, 2021/02/23