Re: NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- From: "Kristofer Skaug" <nospam@xxxxxxxxx>
- Date: Wed, 27 Jul 2005 17:23:30 +0200
Lord Crc wrote:
>
> Here's a version that should work, at least it did for the few tests I
> performed :)
Looks much better! (Mange takk!)
> I'm still not sure how you want signes to be handled. So far it
> performs Abs() on both Dividend and Divisor, but this can be changed
> to mimic div / mod behaviour.
Dare I ask how? :-)
Yes, I would like signs to be handled like div and mod would handle it.
i.e. the function should have identical output to
Result := Dividend div Divisor;
Remainder := Dividend mod Divisor;
is it hard to do? Thanks!
--
Kristofer
.
- Follow-Ups:
- Re: NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- From: Lord Crc
- Re: NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- References:
- NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- From: Kristofer Skaug
- Re: NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- From: Lord Crc
- Re: NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- From: Kristofer Skaug
- Re: NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- From: Lord Crc
- NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- Prev by Date: Fragmenting memory
- Next by Date: Re: Fragmenting memory
- Previous by thread: Re: NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- Next by thread: Re: NAFCQY [Not A FastCode Question, Yay!]: Int64 DivMod
- Index(es):
Relevant Pages
|