Changeset 9128d20 in rtems-libbsd


Ignore:
Timestamp:
May 10, 2017, 12:39:19 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
378b5c2
Parents:
127296c
git-author:
Sebastian Huber <sebastian.huber@…> (05/10/17 12:39:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/10/17 06:33:15)
Message:

libkern.h: Add ffsll()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/sys/libkern.h

    r127296c r9128d20  
    161161#endif
    162162#else /* __rtems__ */
    163 #define ffs(_x) __builtin_ffs((unsigned int)(_x))
    164 #define ffsl(_x) __builtin_ffsl((unsigned long)(_x))
    165 
    166163static inline int
    167164builtin_fls(int x)
     
    185182}
    186183
     184#define ffs(_x)         __builtin_ffs((unsigned int)(_x))
     185#define ffsl(_x)        __builtin_ffsl((unsigned long)(_x))
     186#define ffsll(_x)       __builtin_ffsll((unsigned long long)(_x))
    187187#define fls(_x)         builtin_fls(_x)
    188188#define flsl(_x)        builtin_flsl(_x)
Note: See TracChangeset for help on using the changeset viewer.