This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Thoughts on CPU set manipulation functions


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]