Sha256: 4bcfb22665ea38304bf425839cd24aabbe82a6f08df863f83a8a2223325f1d94

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 Bytes

Contents

#ifndef SIPHASH_INCLUDED
#  define SIPHASH_INCLUDED

#include "ruby.h"

#ifndef LITTLE_ENDIAN
/* NO-OP for little-endian platforms */
#  if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__)
#    if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#      define LITTLE_ENDIAN 1
#    endif
/* if __BYTE_ORDER__ is not predefined (like FreeBSD), use arch */
#  elif defined(__i386)  || defined(__x86_64) ||  defined(__alpha) || defined(__vax)
#    define LITTLE_ENDIAN 1
#  endif
#endif

/* last resort (big-endian w/o __builtin_bswap64) */
#ifndef LITTLE_ENDIAN
#  define LITTLE_ENDIAN 0
#endif

#endif /* ifndef SIPHASH_INCLUDED */

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
digest-siphash-1.0.1 ext/digest/siphash/siphash.h
digest-siphash-1.0.0 ext/digest/siphash/siphash.h