named-data-iot / ndn-lite

A lightweight NDN protocol stack with high-level application support including security bootstrapping, access control, trust management, etc.
https://ndn-lite.named-data.net
GNU Lesser General Public License v3.0
44 stars 16 forks source link

bitset_log2: not standard C11 #53

Closed yoursunny closed 5 years ago

yoursunny commented 5 years ago

The codebase claims to conform to standard C11. However, bitset_log2 is calling __builtin_ctz that is not part of C11 standard. It's necessary to provide an implementation that conforms to the standard, and only use __builtin_ctz inside feature test macros.

yoursunny commented 5 years ago

fixed in https://github.com/named-data-iot/ndn-lite/commit/c3a66cc3e6db14e4d08b8fc26115dd014cfb63da