X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=verify.c;h=daa2f04a7419146dbf98b74b68fcf432860a0abe;hb=a8168a223c83362e377889779056a3d96b76a0f8;hp=c0485d55bf268563a5bc760bede3333f7a58e8e6;hpb=f00b210f73a8562c2cc64d73aee04875d25162b0;p=fio.git diff --git a/verify.c b/verify.c index c0485d55..daa2f04a 100644 --- a/verify.c +++ b/verify.c @@ -10,9 +10,9 @@ #include "fio.h" #include "verify.h" -#include "smalloc.h" #include "trim.h" #include "lib/rand.h" +#include "lib/hweight.h" #include "crc/md5.h" #include "crc/crc64.h" @@ -308,14 +308,6 @@ static inline void *io_u_verify_off(struct verify_header *hdr, struct vcont *vc) return vc->io_u->buf + vc->hdr_num * hdr->len + hdr_size(hdr); } -static unsigned int hweight8(unsigned int w) -{ - unsigned int res = w - ((w >> 1) & 0x55); - - res = (res & 0x33) + ((res >> 2) & 0x33); - return (res + (res >> 4)) & 0x0F; -} - static int verify_io_u_pattern(struct verify_header *hdr, struct vcont *vc) { struct thread_data *td = vc->td;