summaryrefslogtreecommitdiff
path: root/mpz/get_str.c
Commit message (Collapse)AuthorAgeFilesLines
* Copyright yearMarco Bodrato2017-02-081-2/+2
|
* mp[fz]/get_str.c, mpz/out_str.c: Save a string and a branch.Marco Bodrato2017-02-081-14/+11
|
* Include just gmp-impl.h, make gmp-impl.h grab gmp.h.Torbjorn Granlund2016-08-291-1/+0
|
* Use __GMP_ALLOCATE_FUNC_TYPE and friends.Torbjorn Granlund2016-08-291-1/+1
|
* Update library files license to use LGPL3+ and GPL2+.Torbjorn Granlund2014-01-271-7/+18
|
* Canonicalise copyright headers.Torbjorn Granlund2014-01-191-3/+3
|
* Use https to link to GNU license.Torbjorn Granlund2013-12-021-1/+1
|
* Collapse copyright years.Torbjorn Granlund2013-11-281-1/+1
|
* __gmp_tmp_debug_alloc does not like to alloc 0 limbs.Marco Bodrato2012-06-021-1/+1
|
* Don't strip leading zeros since current mpn_get_str won't generate any.Torbjorn Granlund2012-06-011-15/+4
| | | | Misc streamlining.
* Use the macros ALLOC etc to access the fields of mpz_t in mpz/*.Marc Glisse2012-02-231-3/+3
| | | | Test mpz_abs when it requires a reallocation.
* Whitespace cleanup.Torbjorn Granlund2010-11-221-3/+3
|
* Make all bases either work or return an error.Torbjorn Granlund2010-11-221-1/+5
|
* Add 'const' to variables pointing to character strings.Torbjorn Granlund2010-11-101-1/+1
|
* Cast a char index to int to shut up compilers.tege2007-09-261-1/+1
|
* Update license to version 3.tege2007-09-181-4/+2
|
* Update FSF's address.tege2006-02-151-2/+2
|
* Add a copyright year.tege2005-11-011-2/+2
|
* Remove TMP_XXXX marker arguments.tege2005-05-181-3/+3
|
* Allow bases <= 62. Return error for invalid bases.tege2003-03-171-1/+7
|
* * mpz/get_str.c, mpz/sizeinbase.c, mpbsd/mout.c, tune/speed.h: UseKevin Ryde2002-02-081-1/+3
| | | | MPN_SIZEINBASE.
* * mpn/generic/sizeinbase.c: New file, adapted from mpz/sizeinbase.c.Kevin Ryde2002-01-231-39/+18
| | | | | | | | | Use POW2_P, use __mp_bases[base].big_base for log2(base). * mpz/sizeinbase.c, tune/speed.h, mpn/generic/get_str.c, mpz/get_str.c, mpbsd/mout.c, mpbsd/mtox.c: Use it. * mpz/get_str.c: Write directly to user buffer, skip at most one leading zero, eliminate special case for x==0.
* * gmp-impl.h, mpz/get_str.c, mpq/get_str.c, printf/asprntffuns.c,Kevin Ryde2002-01-171-2/+4
| | | | | printf/doprnt.c, printf/repl-vsnprintf.c, printf/snprntffuns.c: Some fixes to compile as C++.
* * mpz/get_str.c: Determine realloc size arithmetically.Kevin Ryde2002-01-071-6/+12
| | | | | | | | * mpz/get_str.c: Don't copy mpn_get_str input for power of 2 bases. * gmp-impl.h (MPN_GET_STR_SIZE): New macro. * mpn/generic/get_str.c, mpz/get_str.c, mpbsd/mout.c, mpbsd/mtox.c, tune/speed.h: Use it.
* * gmp-impl.h (__GMP_REALLOCATE_FUNC_MAYBE): New macro.Kevin Ryde2001-07-231-3/+1
| | | | * mpz/get_str.c, mpq/get_str.c, mpf/get_str.c: Use it.
* More of:Kevin Ryde2001-01-291-0/+1
| | | | | | | * mpz/get_str.c, mpf/get_str.c: Make allocated string block exactly strlen(str)+1 bytes. (Add string.h for strlen.)
* Correction to:Kevin Ryde2001-01-271-1/+2
| | | | | | | * mpz/get_str.c, mpf/get_str.c: Make allocated string block exactly strlen(str)+1 bytes. Need to update pointer on reallocation.
* * mpz/get_str.c, mpf/get_str.c: Make allocated string block exactlyKevin Ryde2001-01-261-2/+13
| | | | strlen(str)+1 bytes.
* Remove K&R function headers.tege2001-01-021-8/+1
|
* Add a copyright year.Kevin Ryde2000-10-241-1/+1
|
* * * (__gmp_allocate_func etc): Rename from _mp_allocate_func etc.Kevin Ryde2000-10-211-1/+1
| | | | (__gmp_default_allocate etc): Rename from _mp_default_allocate etc.
* Copyright (C) -> Copyright.Kevin Ryde2000-10-151-1/+1
|
* *** empty log message ***tege2000-07-241-4/+4
|
* Initial revisiontege1996-05-081-0/+118