bug-gnulib
[Top][All Lists]
Advanced

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

Reducing duplication of bit operation code.


From: Collin Funk
Subject: Reducing duplication of bit operation code.
Date: Tue, 17 Dec 2024 12:44:36 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Hi,

Now that we have stdbit.h I think that it would be nice to reduce the
duplication in all the bit operation modules.

Is there any reason not to use stdbit.h for ffs, ffsl, ffsll,
count-leading-zeros, count-one-bits, count-trailing-zeros?

I've attached an unpushed patch for count-one-bits and can do the rest
if there isn't any disagreement.

Collin

Attachment: 0001-count-one-bits-Implement-using-stdbit.h.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]