[m-dev.] For review: bitmap module.

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Feb 12 17:15:43 AEDT 2001


On 02-Feb-2001, Ralph Becket <rbeck at microsoft.com> wrote:
> [Fergus wrote:]
> > I suggest defining int__rem_bits_per_int,
> > similar to the int__quot_bits_per_int used by sparse_bitset.m.
...
>     % XXX To go in int.m
>     %
>     % int_rem_bits_per_int(I) = I `rem` int__bits_per_int.
>     %
>     % XXX This assumes that int__bits_per_int is a power of two.
>     %
> :- func int_rem_bits_per_int(int) = int.
> 
> int_rem_bits_per_int(I) =
>     I /\ (int__bits_per_int - 1).

That's not quite the same style as int__quot_bits_per_int.

I've just posted a diff which fixes that XXX, by using the
same style as int__quot_bits_per_int.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list