[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fts: expose dirent.d_type data when possible
From: |
Eric Blake |
Subject: |
Re: fts: expose dirent.d_type data when possible |
Date: |
Sat, 06 Dec 2008 07:59:28 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bruno Haible on 12/6/2008 5:43 AM:
>> + return MultiplyDeBruijnBitPosition[(uint32_t) (p * 0x077CB531UL) >> 27];
>
> Why is this done at runtime? Is S_IFMT not guaranteed to be a compile-time
> constant?
Jim's later patches removed s_ifmt_shift_bits altogether, anyways, for a
more efficient direct use of S_IF* values.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkk6k1AACgkQ84KuGfSFAYAuMACfdSqD3KLy3Y2EM6zKDZo0xkh1
ddAAn16oUhwmOTJ8+fVJhqG4hPAR2yBG
=lhK0
-----END PGP SIGNATURE-----