[riot-notifications] [RIOT] Add POSIX compatible case insensitive compare (#290)

Martin Lenders notifications at github.com
Sat Nov 2 22:23:15 CET 2013


> +#include <sys/types.h>
> +
> +/**
> + * @brief   Returns the position of the first (least significant) bit set in
> + *          integer i, or 0 if no bits are set in i.
> + *
> + * @param[in] i    an integer number.
> + *
> + * @return  Position (1 for least significant bit) of the first bit set,
> + *          0 if no bits are set.
> + *
> + * @see <a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/ffs.html">
> + *          The Open Group Base Specification Issue 7, ffs
> + *      </a>
> + */
> +#define ffs(i) __builtin_ffs(i)

```number_of_lowest_bit()``` shows some very strange behaviour on native (v is not the given value but some random value) so I can't say if it would work or not.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/290/files#r7388830
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131102/1b5cfb9f/attachment.html>


More information about the notifications mailing list