skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

bitarray_xor.c (217B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/bitarray.h>
      4 
      5 void bitarray_xor (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 }