|
torque
2.5.12
|
00001 /* $Id: lookup3.h,v 1.2 2006/09/08 18:18:08 ciesnik Exp $ */ 00002 00011 #ifndef __LOOKUP3_H 00012 #define __LOOKUP3_H 00013 00014 #ifndef HAVE_CONFIG_H 00015 # include <pbs_config.h> 00016 #endif 00017 00018 #ifdef HAVE_STDINT_H 00019 # include <stdint.h> 00020 #else 00021 # ifdef HAVE_INTTYPES_H 00022 # include <inttypes.h> 00023 # endif 00024 #endif 00025 00026 uint32_t hashword(const uint32_t *k, size_t length, uint32_t initval); 00027 uint32_t hashlittle(const void *key, size_t length, uint32_t initval); 00028 uint32_t hashbig(const void *key, size_t length, uint32_t initval); 00029 00030 #if BYTEORDER == 1234 /* little endian */ 00031 # define hashstr hashlittle 00032 #endif 00033 00034 #if BYTEORDER == 4321 /* big endian */ 00035 # define hashstr hashbig 00036 #endif 00037 00038 #endif /* __LOOKUP3_H */ 00039
1.8.0