GNU bug report logs - #70898
switching to <stdbit.h> for Emacs bit ops

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Sun, 12 May 2024 22:10:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 70898 <at> debbugs.gnu.org
Subject: bug#70898: switching to <stdbit.h> for Emacs bit ops
Date: Mon, 13 May 2024 16:34:48 +0200
Has C23 been frozen yet? The most recent accessible draft I could find was N3096.

Overall happy with the changes but haven't read them in detail.
Minor things I stumbled upon:

> @@ -4269,7 +4263,9 @@ endif
>  ## begin gnulib module verify
>  ifeq (,$(OMIT_GNULIB_MODULE_verify))
>  
> +ifneq (,$(gl_GNULIB_ENABLED_verify_CONDITION))
>  
> +endif

Unfinished work?

> +/* 1 if supported, -1 if not, 0 if unknown.  */
> +extern signed char __gl_stdint_popcount_support;

`__gl_stdbit_popcount_support`, maybe?


(By the way, in case you are on the WG: the N3096 draft has

> 7.18.8 First Leading One
...
> Returns the most significant index of the first 1 bit in value, plus 1.

Someone jumbled that sentence. Something like "the index of the most significant 1 bit" was probably intended.





This bug report was last modified 1 year and 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.