mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-30 18:07:01 +00:00
bf9710fd5a
This only affects build_android, if nacl-gcc-prep is run then build/`uname -s` will be created.
11 lines
271 B
C
11 lines
271 B
C
#include "byte.h"
|
|
|
|
int byte_isequal(const void *yv,long long ylen,const void *xv)
|
|
{
|
|
const unsigned char *y = yv;
|
|
const unsigned char *x = xv;
|
|
unsigned char diff = 0;
|
|
while (ylen > 0) { diff |= (*y++ ^ *x++); --ylen; }
|
|
return (256 - (unsigned int) diff) >> 8;
|
|
}
|