[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (OT) Defining Variables in C with Bases other than 2 or 16



also sprach martin f krafft <madduck@debian.org> [2005.02.16.0134 +0100]:
> In any case, if you are out for performance, avoid the modulo. If
> you want a fixed limit, I suggest providing a typedef to an int, and
> an add and get function. Use the fact that 2^18 % 12 == 0 and work
> with bits 18, 19, and 20 to make automatic use of the integer limit
> for rollover.

Actually, I am not sure this is going to help. Sorry for babbling.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature


Reply to: