Re: myrkraverk.c

Liste des GroupesRevenir à cl python 
Sujet : Re: myrkraverk.c
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.python comp.lang.c sci.math
Suivi-à : comp.lang.python comp.lang.c
Date : 20. Sep 2026, 13:25:03
Autres entêtes
Organisation : Stefan Ram
Message-ID : <bits-20260920132258@ram.dialup.fu-berlin.de>
References : 1 2 3 4 5 6 7
"Johann \"Myrkraverk\" Oskarsson" <johann@myrkraverk.invalid> wrote or quoted:
      _BitScanForward( &index, *digits ) ;

  From the documentation:

|If no bit is found, the function returns 0 and the value
|written to the address in the first parameter is undefined.

  . However, if there are 32 0s before a 1 is found, this
  might be intended to add "32" to the total zero count.

  (GCC's and Clang's "__builtin_ctz" can also count bits and
  might be more portable.)

Newsgroups: comp.lang.python,comp.lang.c,sci.math
Followup-To: comp.lang.python,comp.lang.c



Date Sujet#  Auteur
19 Sep 26 * Re: ( n & -n ).bit_length() - 1 ## Really?5Stefan Ram
19 Sep 26 `* Re: ( n & -n ).bit_length() - 1 ## Really?4Lane W
19 Sep 26  `* Re: ( n & -n ).bit_length() - 1 ## Really?3Stefan Ram
20 Sep 26   `* Re: myrkraverk.c2Stefan Ram
20 Sep 26    `- Re: myrkraverk.c1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal