[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: P.S. to previous message
- To: DLA at MIT-EECS
- Subject: Re: P.S. to previous message
- From: Alan Bawden <ALAN at MIT-MC>
- Date: Sat ,14 Mar 81 01:36:00 EDT
- Cc: INFO-LISPM at MIT-MC
Date: 14 Mar 1981 0007-EST
From: David L. Andre <DLA at MIT-EECS>
Is it possible to get, in a single operation, both the quotient and
remainder in a fixnum division? I have often wanted to do something
like:
(MULTIPLE-VALUE (QUO REM)
(FLOOR A B))
So have I. Unfortunately it is rather difficult to get this to work
since arithmetic is performed in microcode, and it is difficult to get
multiple values out from microcode. The loss in calling the divide
code twice is not great unless you are doing very many bignum divides
of very large bignums very often.