Sha256: 5350ef42f235b9542e8d5d150d14263bf9564d7dd8c73d712f35693bc9f3039e

Contents?: true

Size: 271 Bytes

Versions: 3

Compression:

Stored size: 271 Bytes

Contents

#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;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/curvecp/byte_isequal.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/curvecp/byte_isequal.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/curvecp/byte_isequal.c