delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/27/17:23:20

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3EAC4337.838CE4B6@phekda.freeserve.co.uk>
Date: Sun, 27 Apr 2003 21:53:11 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: Bug 00314 -- div() still broken
References: <3e9c6920$0$21928$afc38c87@> <fA9pa.20115$1s1 DOT 299825 AT newsfeeds DOT bigpond DOT com> <3EA5477F DOT 2020901 AT cyberoptics DOT com> <SzSpa.21592$1s1 DOT 332473 AT newsfeeds DOT bigpond DOT com> <3ea85d95$0$12489$4c41069e AT reader1 DOT ash DOT ops DOT us DOT uu DOT net> <Ah9qa.22112$1s1 DOT 343387 AT newsfeeds DOT bigpond DOT com> <3ea97d4c$0$19415$4c41069e AT reader1 DOT ash DOT ops DOT us DOT uu DOT net> <lzLqa.23283$1s1 DOT 356122 AT newsfeeds DOT bigpond DOT com> <3EAB995F DOT 273750D6 AT phekda DOT freeserve DOT co DOT uk> <001701c30ca7$6a9c5d50$0100a8c0 AT acp42g> <3EABBB8A DOT B824DEF5 AT phekda DOT freeserve DOT co DOT uk> <3EABF6BE DOT C31A9BA4 AT yahoo DOT com>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

CBFalconer wrote:
[snip]
> WRT div/ldiv, I am morally certain that their original purpose was
> to avoid two executions of the divide instruction, which implies
> that they should really be provided as macros that create assembly
> language.  As now implemented they have grown to add the overhead
> of a call, and are fairly useless unless one operand is volatile.

Well, we can define macro versions of div, ldiv and lldiv. So you could submit
a patch to fix it. ;)

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019