🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #1648

Re: Making Rounding Modes Usable

#1648
From: Keith Bierman - SPD Languages Ma...
Date: Tue, 25 Jul 1989 01:50
34 lines
2265 bytes
In article <1989Jul21.035825.27704@cs.rochester.edu> crowl@cs.rochester.edu (Lawrence Crowl) writes:
>
>We can break the cycle and provide good access to faster, more robust floating
>point programs with the following efforts.
>
>- Specify the rounding mode as part of the operation.  In essence, I am saying
>  that rounding MODES are a self-defeating way of looking at the capability.
>  We should have ADD-ROUNDING-UP and ADD-ROUNDING-DOWN, etc.
>- Make these operations available in a programming language.
>- Make these operations convenient in a programming language, e.g. operator
>  overloading in Ada and C++.
>
>The most difficult effort is the first, since it involves new hardware design.
>The second two efforts would be fairly easy to implement under GNU's C++
>compiler.

I don't see why this requires new hardware (hence the comp.arch follow
up). Consider a f88 module which define new operators +up +down etc.
Now one could write

		result = a +up b

and get the obvious result. The fact that +up actually uses some macro
(or system call) to condition the floating point mode shouldn't matter
(performance aside).

Any language which supports operator definitions and overloading (e.g.
Ada) should suffice.

If someone can explain why the hardware MUST be different, please do.
Keith H. Bierman      |*My thoughts are my own. Only my work belongs to Sun*
It's Not My Fault     |	Marketing Technical Specialist    ! kbierman@sun.com
I Voted for Bill &    |   Languages and Performance Tools. 
Opus  (* strange as it may seem, I do more engineering now     *)
Technical Details
Message-ID: <117496@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!amdcad!sun!chiba!khb
References: <753@bnr-fos.UUCP> <1989Jul17.035238.6497@utzoo.uucp> <756@bnr-fos.UUCP> <2203@taux01.UUCP> <42942@bbn.COM> <23659@winchester.mips.COM> <43004@bbn.COM> <1989Jul21.035825.27704@cs.rochester.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!amdcad!sun!chiba!khb
From: khb%chiba@Sun.COM (Keith Bierman - SPD Languages Marketing -- MTS)
Newsgroups: comp.arch
Subject: Re: Making Rounding Modes Usable
Message-ID: <117496@sun.Eng.Sun.COM>
Date: 25 Jul 89 01:50:22 GMT
References: <753@bnr-fos.UUCP> <1989Jul17.035238.6497@utzoo.uucp> <756@bnr-fos.UUCP> <2203@taux01.UUCP> <42942@bbn.COM> <23659@winchester.mips.COM> <43004@bbn.COM> <1989Jul21.035825.27704@cs.rochester.edu>
Sender: news@sun.Eng.Sun.COM
Reply-To: khb@sun.UUCP (Keith Bierman - SPD Languages Marketing -- MTS)
Organization: Sun Microsystems, Mountain View
Lines: 34