bitarray_or.c (216B)
1 /* ISC license. */ 2 3 #include <skalibs/bitarray.h> 4 5 void bitarray_or (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 }
skalibsMirror/fork of https://skarnet.org/software/skalibs/ | |
git clone https://ccx.te2000.cz/git/skalibs | |
Log | Files | Refs | README | LICENSE |