mirror of https://github.com/wolfSSL/wolfssl.git
SP math: fix configure.ac to allow its use
Choosing SP and SP math was resulting in only integer.c being used. Fixed now. Reorder realloc calls for memory logging to ensure scripts can match allocate and free calls.pull/5332/head
parent
90c2f4ad00
commit
74baa0dafa
|
@ -603,7 +603,7 @@ then
|
|||
fi
|
||||
|
||||
# if sp-math-all is not set, then enable fast math
|
||||
if test "x$ENABLED_FASTMATH" = "xyes" && test "$enable_sp_math_all" = ""
|
||||
if test "x$ENABLED_FASTMATH" = "xyes" && test "$enable_sp_math_all" = "" && test "$enable_sp_math" = ""
|
||||
then
|
||||
# turn off fastmth if leanpsk on or asn off (w/o DH and ECC)
|
||||
if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_ASN" = "no"
|
||||
|
@ -640,7 +640,7 @@ AC_ARG_ENABLE([heapmath],
|
|||
[ ENABLED_HEAPMATH=$enableval ],
|
||||
[ ENABLED_HEAPMATH=no]
|
||||
)
|
||||
if test "x$ENABLED_HEAPMATH" = "xyes" || (test "x$ENABLED_SP_MATH_ALL" = "xno" && test "x$ENABLED_FASTMATH" = "xno")
|
||||
if test "x$ENABLED_HEAPMATH" = "xyes" || (test "x$ENABLED_SP_MATH_ALL" = "xno" && test "x$ENABLED_FASTMATH" = "xno" && test "x$ENABLED_SP_MATH" = "xno")
|
||||
then
|
||||
AM_CFLAGS="$AM_CFLAGS -DUSE_INTEGER_HEAP_MATH"
|
||||
ENABLED_HEAPMATH="yes"
|
||||
|
|
|
@ -1283,12 +1283,12 @@ void *xrealloc(void *p, size_t n, void* heap, int type, const char* func,
|
|||
p32[0] = (word32)n;
|
||||
newp = (void*)(p32 + 4);
|
||||
|
||||
fprintf(stderr, "Alloc: %p -> %u (%d) at %s:%s:%u\n", newp, (word32)n,
|
||||
type, func, file, line);
|
||||
if (p != NULL) {
|
||||
fprintf(stderr, "Free: %p -> %u (%d) at %s:%s:%u\n", p, oldLen,
|
||||
type, func, file, line);
|
||||
}
|
||||
fprintf(stderr, "Alloc: %p -> %u (%d) at %s:%s:%u\n", newp, (word32)n,
|
||||
type, func, file, line);
|
||||
}
|
||||
|
||||
(void)heap;
|
||||
|
|
Loading…
Reference in New Issue