3 * File name: ir/adt/hashptr.h
4 * Purpose: Hash function for pointers
5 * Author: Michael Beck, Sebastian Hack
9 * Copyright: (C) 2004 University of Karlsruhe
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
16 * hash a pointer value: Pointer addresses are mostly aligned to 4
17 * or 8 bytes. So we remove the lowest 3 bits
19 #define HASH_PTR(ptr) (((char *)ptr - (char *)0) >> 3)
21 #endif /* __HASHPTR_H__ */