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

From: martin f krafft (madduck_at_debian.org)
Date: 02/16/05

  • Next message: Russell Steicke: "Re: dovecot-imapd Update Fails"
    Date: Wed, 16 Feb 2005 01:47:51 +0100
    To: debian-user@lists.debian.org
    
    
    

    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!
    
    

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    


  • Next message: Russell Steicke: "Re: dovecot-imapd Update Fails"

    Relevant Pages

    • Re: (OT) Defining Variables in C with Bases other than 2 or 16
      ... > I have written code that does this sort of modulo arithmetic ... you want a fixed limit, I suggest providing a typedef to an int, and ... Please do not send copies of list mail to me; ... ::': proud Debian developer, admin, user, and author ...
      (Debian-User)
    • Re: Announcing a new book: The Debian System -- Concepts and Techniques
      ... Don't worry, we did. ... as well as other parts of the globe. ... Please do not send copies of list mail to me; ... ::': proud Debian developer, admin, user, and author ...
      (Debian-User)
    • Re: xen, raid and initramfs failure
      ... one uses the level= option in mdadm.conf that the 'raid' is not ... in mdadm.conf as a way to determine the required modules for the ... Please do not send copies of list mail to me; ... ::': proud Debian developer, author, administrator, and user ...
      (Debian-User)
    • Re: Nvidia Kernel Drivers ( Sarge )
      ... They are well-made and you can compile drivers with one command: ... Please do not send copies of list mail to me; ... ::': proud Debian developer, admin, user, and author ...
      (Debian-User)
    • Re: unicode troubÃle
      ... > mutt on the other hand replaces every special character with a dotted ... Please do not send copies of list mail to me; ... ::': proud Debian developer, admin, user, and author ... a spade should be compelled to use one. ...
      (Debian-User)