source: trunk/drmaa_utils/drmaa_utils/lookup3.h @ 1

Revision 1, 574 bytes checked in by mmamonski, 13 years ago (diff)

Torque/PBS DRMAA initial commit

Line 
1/* $Id: lookup3.h 2 2009-10-12 09:51:22Z mamonski $ */
2
3#ifndef __LOOKUP3_H
4#define __LOOKUP3_H
5
6#ifdef HAVE_CONFIG_H
7#       include <config.h>
8#endif
9
10#include <drmaa_utils/compat.h>
11
12uint32_t hashword( const uint32_t *k, size_t length, uint32_t initval );
13uint32_t hashlittle( const void *key, size_t length, uint32_t initval );
14uint32_t hashbig( const void *key, size_t length, uint32_t initval );
15
16#if BYTEORDER == 1234 /* little endian */
17#       define hashstr hashlittle
18#endif
19
20#if BYTEORDER == 4321  /* big endian */
21#       define hashstr hashbig
22#endif
23
24#endif /* __LOOKUP3_H */
25
Note: See TracBrowser for help on using the repository browser.