/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal
NameSizeModeActions
class/-0755rm
datatype/-0755rm
dss/-0755rm
mca/-0755rm
memoryhooks/-0755rm
runtime/-0755rm
sys/-0755rm
threads/-0755rm
util/-0755rm
align.h12860644editdlrm
constants.h62650644editdlrm
frameworks.h21470644editdlrm
hash_string.h24100644editdlrm
opal_portable_platform.h160570644editdlrm
opal_socket_errno.h9000644editdlrm
prefetch.h14420644editdlrm
types.h48400644editdlrm
version.h25620644editdlrm
Edit: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/hash_string.h (2410B)
/* * Copyright (c) 2004-2007 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ /** @file * * Simple macros to quickly compute a hash value from a string. * */ #ifndef OPAL_HASH_STRING_H #define OPAL_HASH_STRING_H /** * Compute the hash value and the string length simultaneously * * @param str (IN) The string which will be parsed (char*) * @param hash (OUT) Where the hash value will be stored (uint32_t) * @param length (OUT) The computed length of the string (uint32_t) */ #define OPAL_HASH_STRLEN( str, hash, length ) \ do { \ register const char *_str = (str); \ register uint32_t _hash = 0; \ register uint32_t _len = 0; \ \ while( *_str ) { \ _len++; \ _hash += *_str++; \ _hash += (_hash << 10); \ _hash ^= (_hash >> 6); \ } \ \ _hash += (_hash << 3); \ _hash ^= (_hash >> 11); \ (hash) = (_hash + (_hash << 15)); \ (length) = _len; \ } while(0) /** * Compute the hash value * * @param str (IN) The string which will be parsed (char*) * @param hash (OUT) Where the hash value will be stored (uint32_t) */ #define OPAL_HASH_STR( str, hash ) \ do { \ register const char *_str = (str); \ register uint32_t _hash = 0; \ \ while( *_str ) { \ _hash += *_str++; \ _hash += (_hash << 10); \ _hash ^= (_hash >> 6); \ } \ \ _hash += (_hash << 3); \ _hash ^= (_hash >> 11); \ (hash) = (_hash + (_hash << 15)); \ } while(0) #endif /* OPAL_HASH_STRING_H */