blob: ea59f0c52ee32d903048aeca5f5d849b3bb8dfbd (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* ISC license. */
#include <sys/types.h>
#include <skalibs/bitarray.h>
void bitarray_xor (unsigned char *c, unsigned char const *a, unsigned char const *b, size_t n)
{
size_t i = bitarray_div8(n) ;
while (i--) c[i] = a[i] ^ b[i] ;
}
|