Commit 930b8e2b authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #326 from mdboom/cdecimal

Build the _decimal C module.
parents 8d61da94 1b031347
# setup: from decimal import Decimal ; A = [Decimal('2.1') for i in range(1000)] ; B = [Decimal('3.2') for i in range(1000)] # noqa
# run: large_decimal_list(A, B)
def large_decimal_list(A, B):
return [a * b for a, b in zip(A, B)]
......@@ -49,3 +49,5 @@ _codecs_kr cjkcodecs/_codecs_kr.c
_codecs_tw cjkcodecs/_codecs_tw.c
_lsprof _lsprof.c rotatingtree.c
_decimal _decimal/_decimal.c _decimal/libmpdec/basearith.c _decimal/libmpdec/constants.c _decimal/libmpdec/context.c _decimal/libmpdec/convolute.c _decimal/libmpdec/crt.c _decimal/libmpdec/difradix2.c _decimal/libmpdec/fnt.c _decimal/libmpdec/fourstep.c _decimal/libmpdec/io.c _decimal/libmpdec/memory.c _decimal/libmpdec/mpdecimal.c _decimal/libmpdec/numbertheory.c _decimal/libmpdec/sixstep.c _decimal/libmpdec/transpose.c -I$(srcdir)/Modules/_decimal/libmpdec
......@@ -29,3 +29,6 @@
/* Unsupported functionality */
#undef HAVE_PTHREAD_H
#define CONFIG_32
#define ANSI
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment