summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-14 20:49:20 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-14 20:49:20 +0200
commit5a2514f9e9b946ac8fff6c8fc80aec335c3e3454 (patch)
treeead5375a70175755add4551e0f19e6ad3972925b
parent27973ecf8605f17aab82d23aee57ea8219929fb8 (diff)
downloadcryptodev-linux-5a2514f9e9b946ac8fff6c8fc80aec335c3e3454.tar.gz
cryptodev-linux-5a2514f9e9b946ac8fff6c8fc80aec335c3e3454.tar.xz
cryptodev-linux-5a2514f9e9b946ac8fff6c8fc80aec335c3e3454.zip
Reduce stack usage.
-rw-r--r--libtommath/tommath.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtommath/tommath.h b/libtommath/tommath.h
index f9845d8..37fb23c 100644
--- a/libtommath/tommath.h
+++ b/libtommath/tommath.h
@@ -134,7 +134,8 @@ extern int KARATSUBA_MUL_CUTOFF,
TOOM_SQR_CUTOFF;
/* define this to use lower memory usage routines (exptmods mostly) */
-/* #define MP_LOW_MEM */
+/* We use this to reduce stack usage --nmav */
+#define MP_LOW_MEM
/* default precision */
#ifndef MP_PREC