Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python,comp.lang.c,sci.math Subject: Re: myrkraverk.c Followup-To: comp.lang.python,comp.lang.c Date: 20 Sep 2026 12:25:03 GMT Organization: Stefan Ram Lines: 18 Expires: 1 Sep 2027 11:59:58 GMT Message-ID: References: <118mo9b$2i0j0$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de cLx3khtbsji3VicVglKrggnBL4NeU8+LhLw4raJhP3so1+ Cancel-Lock: sha1:h3YjgF0XEdvbkR3L34X/2GiSLUA= sha256:uV8XuJ7cNot+evJefOGohMKMs7RgNtBG6MKnPJFa+P8= X-Copyright: (C) Copyright 2026 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en Xref: csiph.com comp.lang.python:198035 comp.lang.c:402297 sci.math:647534 "Johann \"Myrkraverk\" Oskarsson" 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