]> www.ginac.de Git - ginac.git/commit
utils.h: use <stdint.h> (if available) instead of reinventing it.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Sun, 7 Sep 2008 18:17:55 +0000 (22:17 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 6 Nov 2008 14:02:59 +0000 (17:02 +0300)
commit208454aa4bd38d88d8bb324d634300466382335a
treefc0ab4aa8ddd96780880af186524bf8dd6e1076c
parent8f7fd49ceb1edd962897ce55a79fdc87feaf1196
utils.h: use <stdint.h> (if available) instead of reinventing it.

The argument of golden_ratio_hash() is as an integer of the same size as
a void* pointer. Unfortunately ISO C++ 98 does not provide suitable typedef.
Hence

* use <stdint.h> if available and define p_int to uintptr_t. Note: AC_PROG_CC
  already checks for this header, so no extra checks are necessary.
* as a fallback define p_int to be unsigned long, this works on most systems
  I know of (the only exception is woe64).

While at it, stop including "config.h" unconditionally.
ginac/utils.h