summaryrefslogtreecommitdiff
path: root/src/libstddjb/bitarray_or.c
blob: d05b619798a7599cbbb2c20d9157a6cdf3c60114 (plain)
1
2
3
4
5
6
7
8
9
/* ISC license. */

#include <skalibs/bitarray.h>

void bitarray_or (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] ;
}