summaryrefslogtreecommitdiffstats
path: root/sbin/geom/class/raid3/geom_raid3.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/geom/class/raid3/geom_raid3.c')
-rw-r--r--sbin/geom/class/raid3/geom_raid3.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/geom/class/raid3/geom_raid3.c b/sbin/geom/class/raid3/geom_raid3.c
index bef8424..7a8527f 100644
--- a/sbin/geom/class/raid3/geom_raid3.c
+++ b/sbin/geom/class/raid3/geom_raid3.c
@@ -155,12 +155,7 @@ raid3_label(struct gctl_req *req)
gctl_error(req, "Too few arguments.");
return;
}
-#ifndef BITCOUNT
-#define BITCOUNT(x) (((BX_(x) + (BX_(x) >> 4)) & 0x0F0F0F0F) % 255)
-#define BX_(x) ((x) - (((x) >> 1) & 0x77777777) - \
- (((x) >> 2) & 0x33333333) - (((x) >> 3) & 0x11111111))
-#endif
- if (BITCOUNT(*nargs - 2) != 1) {
+ if (bitcount32(*nargs - 2) != 1) {
gctl_error(req, "Invalid number of components.");
return;
}
OpenPOWER on IntegriCloud