summaryrefslogtreecommitdiffstats
path: root/Modules/mpzmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug reported to Gregor Hoffleit:Andrew M. Kuchling1998-12-141-1/+1
| | | | | | | > mpz.mpz('\xff') should return mpz(255). Instead it returns > mpz(4294967295L). Looks like the constructor doesn't work with strings > containing characters above chr(128). Caused by using just 'char' where 'unsigned char' should have been used.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Use the t# format where appropriate. Greg Stein.Guido van Rossum1998-10-081-5/+2
|
* Export MPZType -- the type of mpz objects....Fred Drake1998-04-031-1/+9
|
* Untested change to include gmp-mparam.h instead of gmp-impl.h.Guido van Rossum1997-12-151-1/+1
| | | | Chris Lawrence <quango@ix.netcom.com>
* Use a trick to make the test for GMP v2 to work when GMP v1 definesGuido van Rossum1997-08-171-1/+1
| | | | | __GNU_MP__ as empty: #if __GNU_MP__ + 0 == 2 (Untested.)
* New form of PyFPE_END_PROTECT macro.Guido van Rossum1997-03-141-1/+1
|
* Changes for Lee Busby's SIGFPE patch set.Guido van Rossum1997-02-141-0/+3
| | | | | Two new modules fpectl and fpetest. Surround various and sundry f.p. operations with PyFPE_*_PROTECT macros.
* Renamed a few symbols that were found in comments.Barry Warsaw1996-12-091-6/+6
|
* Renamed, ungrandly. We don't have the GNU MP library here so we can'tBarry Warsaw1996-12-091-278/+291
| | | | | | really test this module, or even compile it without a lot of work. I'll make a note of it that this has not been tested!
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Changes by Rob Hooft for GMP 2.0.2Guido van Rossum1996-08-191-10/+29
|
* add some castsGuido van Rossum1995-02-101-3/+3
|
* cosmetic changes so these modules will work with the strict new naming schemeGuido van Rossum1995-01-101-2/+1
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Another bulky set of minor changes.Guido van Rossum1995-01-021-5/+19
| | | | | Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-18/+22
|
* * mpzmodule.c: cast some methods to the proper type.Guido van Rossum1993-12-171-6/+8
| | | | | | | * traceback.c (tb_print): use sys.tracebacklimit as a maximum number of traceback entries to print (default 1000). * ceval.c (printtraceback): Don't print stack trace header -- this is now done by tb_print().
* * mpzmodule.c: removed redundant mpz_print function.Guido van Rossum1993-11-051-19/+1
| | | | | | | | | | | | | | * object.[ch], bltinmodule.c, fileobject.c: changed str() to call strobject() which calls an object's __str__ method if it has one. strobject() is also called by writeobject() when PRINT_RAW is passed. * ceval.c: rationalize code for PRINT_ITEM (no change in function!) * funcobject.c, codeobject.c: added compare and hash functionality. Functions with identical code objects and the same global dictionary are equal. Code objects are equal when their code, constants list and names list are identical (i.e. the filename and code name don't count). (hash doesn't work yet since the constants are in a list and lists can't be hashed -- suppose this should really be done with a tuple now we have resizetuple!)
* * mymalloc.h: always allocate one extra byte, since some malloc'sGuido van Rossum1992-12-141-0/+1808
return NULL for malloc(0) or realloc(p, 0). (This should be done differently than wasting one byte, but alas...) * Moved "add'l libraries" option in Makefile to an earlier place. * Remove argument compatibility hacks (b) and (c). * Add grey2mono, dither2mono and mono2grey to imageop. * Dup the fd in socket.fromfd(). * Added new modules mpz, md5 (by JH, requiring GNU MP 1.2). Affects Makefile and config.c. * socketmodule.c: added socket.fromfd(fd, family, type, [proto]), converted socket() to use of getargs().