File: endian.h

package info (click to toggle)
dcd 0.99-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 296 kB
  • ctags: 627
  • sloc: ansic: 4,137; makefile: 91
file content (28 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* This file is licensed under the GPL v2	*/
/* (c) Othmar Pasteka <othmar@debian.org>, 2000	*/
/* David E. Smith 2000 -- a few simple changes  */

#include <endian.h>

#ifndef __BYTE_ORDER
#error Unable to automatically determine byte order; check endian.h

/* This is the default -- Linux on x86 machines. */
/* #define SHA_BYTE_ORDER 1234 */
/* A few other options - but if you're here you */
/* probably know what you're doing. */
/* #define SHA_BYTE_ORDER 4321 */
/* #define SHA_BYTE_ORDER 12345678 */
/* #define SHA_BYTE_ORDER 87654321 */

#endif


/*
	This version uses the libc macro __BYTE_ORDER
	to determine the endianess of the architecture
*/ 

#define SHA_BYTE_ORDER __BYTE_ORDER

#define SHA_VERSION 1