/* * Copyright 2003, Ingo Weinhold, ingo_weinhold@gmx.de. * All rights reserved. Distributed under the terms of the MIT license. */ #ifndef MISC_H #define MISC_H #include #include // min and max // We don't want to include otherwise we also get // and other undesired things. template static inline C min(const C &a, const C &b) { return (a < b ? a : b); } template static inline C max(const C &a, const C &b) { return (a > b ? a : b); } // node_child_hash static inline uint32 node_child_hash(uint64 id, const char *name) { return uint32(id & 0xffffffff) ^ hash_hash_string(name); } #endif // MISC_H