]> 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>
Tue, 9 Sep 2008 10:17:08 +0000 (14:17 +0400)
commit4a9f6c276daf54acbb2f5951f0435bfb6f014809
tree09645be5ad34a974833de2467a9e6d4575b12ef0
parentb21923803208edf7ec3b0bfaa51f813cb25a0d86
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