This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Thoughts on CPU set manipulation functions
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Bert Wesarg <bert dot wesarg at googlemail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 24 Mar 2008 09:33:14 -0700
- Subject: Re: Thoughts on CPU set manipulation functions
- References: <36ca99e90803180521l66ea9987t5892fc58bcd3a65c@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bert Wesarg wrote:
> * a copy function (which is faster than CPU_OR(dest, src, src))
memcpy is available.
> * the 'd = s1 & ~s2' operator
Justification needed.
> As a second point I want to suggest to include some kind of iterator
> functionality for the API, either as a complete opaque for loop, or a
> iterator function pair first_bit_set/next_bit_set.
That's not easy to do cleanly in a form which is widely applicable.
Make a suggestion.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkfn18oACgkQ2ijCOnn/RHR+/ACggVCJpUzb/7ATJhAb4f8XGiFe
lN4AnR3azfvZrGkYeoFTipXTc58A246N
=/09+
-----END PGP SIGNATURE-----