Changeset 380


Ignore:
Timestamp:
Dec 17, 2012 5:19:28 AM (7 years ago)
Author:
kulshres
Message:

only enable 64-bit locint on 64-bit systems

working with uint64_t on 32-bit systems is very inefficient and we may
run out of memory as size_t is only 32-bit long. All memory allocation
will only be done using size_t.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r379 r380  
    131131AC_MSG_CHECKING(whether to use 32-bit or 64-bit locations)
    132132AC_ARG_ENABLE(ulong,[AS_HELP_STRING([--enable-ulong],
    133   [enable 64-bit locations [default=32-bit]])],
     133  [enable 64-bit locations (only available on 64-bit systems) [default=32-bit]])],
    134134  [use_ulong=$enableval],[use_ulong=no])
    135135
    136 if test x$use_ulong = xyes ; then
     136if test x$use_ulong = xyes && x$ac_cv_sizeof_void_p = x8 ; then
    137137  UINT_TYPE=uint64_t
    138138  AC_MSG_RESULT(64-bit)
Note: See TracChangeset for help on using the changeset viewer.