bitarray_and.c (217B)
1 /* ISC license. */ 2 3 #include <skalibs/bitarray.h> 4 5 void bitarray_and (unsigned char *c, unsigned char const *a, unsigned char const *b, size_t n) 6 { 7 size_t i = bitarray_div8(n) ; 8 while (i--) c[i] = a[i] & b[i] ; 9 }