Re: Rounding with Div and Mod operators

Barton <r_barton1@hotmail.com>
22 May 1999 03:02:38 -0400

          From comp.compilers

Related articles
[11 earlier articles]
Re: Rounding with Div and Mod operators drh@microsoft.com (Dave Hanson) (1999-05-20)
Re: Rounding with Div and Mod operators anton@mips.complang.tuwien.ac.at (1999-05-20)
Re: Rounding with Div and Mod operators peter.r.wilson@boeing.com (Peter Wilson) (1999-05-20)
Re: Rounding with Div and Mod operators mfinney@lynchburg.net (1999-05-21)
Re: Rounding with Div and Mod operators jmoore@softmoore.com (John I. Moore, Jr.) (1999-05-22)
Re: Rounding with Div and Mod operators lassehp@imv.au.dk (1999-05-22)
Re: Rounding with Div and Mod operators r_barton1@hotmail.com (Barton) (1999-05-22)
Re: Rounding with Div and Mod operators r_barton1@hotmail.com (Barton) (1999-05-27)
Re: Rounding with Div and Mod operators ucapjab@ucl.ac.uk (Jonathan Barker) (1999-05-27)
| List of all articles for this month |
From: Barton <r_barton1@hotmail.com>
Newsgroups: comp.compilers
Date: 22 May 1999 03:02:38 -0400
Organization: Compilers Central
References: 99-05-039 99-05-050
Keywords: arithmetic

    Laurent Guerby <guerby@acm.org> wrote:
>
> They talk about a "Language-Compatible Arithmetic Standard (LCAS)",
> I don't know what happened to this beast.


    The name was changed to Language Independent Arithmetic (LIA).
Part 1 (ISO 10967-1) covers integer and floating point arithmetic.
It defines two integer division operations, divf (flooring) and
divt (truncating), with corresponding remainder operations for each.
The ISO standard for Modula-2 implemented this by retaining the DIV
and MOD operations (inherited from Pascal) as flooring operations
with their traditional semantics, and introducing / and REM integer
operations with truncating (symmetric) semantics.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.