diff options
Diffstat (limited to 'libglusterfs/src/common-utils.h')
| -rw-r--r-- | libglusterfs/src/common-utils.h | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index f1c26a2d0c5..93dee58b079 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -25,6 +25,10 @@  #include <limits.h>  #include <fnmatch.h> +#ifndef ffsll +#define ffsll(x) __builtin_ffsll(x) +#endif +  void trap (void);  #define GF_UNIVERSAL_ANSWER 42    /* :O */ @@ -835,4 +839,11 @@ is_virtual_xattr (const char *k);  const char *  gf_inode_type_to_str (ia_type_t type); + +int32_t +gf_bits_count (uint64_t n); + +int32_t +gf_bits_index (uint64_t n); +  #endif /* _COMMON_UTILS_H */  | 
