diff options
author | Harshavardhana <harsha@harshavardhana.net> | 2014-07-14 09:07:19 -0700 |
---|---|---|
committer | Harshavardhana <harsha@harshavardhana.net> | 2014-07-16 15:28:52 -0700 |
commit | e291ce0531f3be429f90fc3ba84fa33a2e17b0f6 (patch) | |
tree | 5564ceda688ae92dd6949a0388cb23aff8e593a5 /xlators/cluster/ec/src/ec-helpers.c | |
parent | 119109e95268061d9a68c09972302c35a1b22201 (diff) |
porting: use __builtin_ffsll() instead of ffsll()
- NetBSD/Darwin doesn't implement ffsll()
- use Compiler builtin
Change-Id: Iee78b4b81747b0bd3877fd2fcb98746f642ce080
BUG: 764655
Signed-off-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-on: http://review.gluster.org/8308
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Reviewed-by: Justin Clift <justin@gluster.org>
Diffstat (limited to 'xlators/cluster/ec/src/ec-helpers.c')
-rw-r--r-- | xlators/cluster/ec/src/ec-helpers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/cluster/ec/src/ec-helpers.c b/xlators/cluster/ec/src/ec-helpers.c index 771faf5b013..cd0ac41ebe7 100644 --- a/xlators/cluster/ec/src/ec-helpers.c +++ b/xlators/cluster/ec/src/ec-helpers.c @@ -37,6 +37,10 @@ #define TOP_BIT (ONE << (PRESENT_D_OFF_BITS - 1)) #define SHIFT_BITS (max(0, (BACKEND_D_OFF_BITS - PRESENT_D_OFF_BITS + 1))) +#ifndef ffsll +#define ffsll(x) __builtin_ffsll(x) +#endif + static const char * ec_fop_list[] = { [-EC_FOP_HEAL] = "HEAL" |