Revision 77,
576 bytes
checked in by mmamonski, 12 years ago
(diff) |
DRMAA 2.0 utils - first skeleton
|
Line | |
---|
1 | /* $Id: lookup3.h 13 2011-04-20 15:41:43Z mmamonski $ */ |
---|
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 | |
---|
12 | uint32_t hashword( const uint32_t *k, size_t length, uint32_t initval ); |
---|
13 | uint32_t hashlittle( const void *key, size_t length, uint32_t initval ); |
---|
14 | uint32_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.