summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp
Commit message (Collapse)AuthorAgeFilesLines
...
* Comparison primops return Int# (Fixes #6135)Jan Stolarek2013-07-194-44/+70
| | | | | For a deatiled discussion of this changes please visit the wiki page: http://hackage.haskell.org/trac/ghc/wiki/PrimBool
* Follow GHC build system changesIan Lynagh2013-07-031-1/+1
|
* Run "sh ./configure" rather than "sh configure"; part of #7992Ian Lynagh2013-06-221-2/+2
| | | | This fixes a bug with how configure re-execs itself.
* Handle dependencies for .cmm files properlyIan Lynagh2013-05-091-6/+2
|
* Fix build when gmp isn't installedIan Lynagh2013-04-281-0/+6
|
* Build system refactoringIan Lynagh2013-04-206-14/+52
|
* integer-gmp: mpn_gcd_1 allocate one Word on stack instead of 'sizeof ↵Sergei Trofimovich2013-03-171-2/+2
| | | | | | | | | (__mpz_struct)' gmp.h defines 'mpn_gcd_1' as following: mp_limb_t mpn_gcd_1 (mp_srcptr /* aka 'mp_limb_t *' */, mp_size_t, mp_limb_t); Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Follow changes in GHC's build systemIan Lynagh2013-03-011-1/+1
|
* Fix GMP_PREFER_FRAMEWORKIan Lynagh2013-02-091-5/+5
| | | | It doesn't look like the old code could have worked
* Never try to use the system gmp on WindowsIan Lynagh2013-02-093-6/+21
| | | | | Apparently building on Windows failed when there is a system gmp available.
* Revert "integer-gmp: improve cross-compiling support GmpDerivedConstants.h"Simon Marlow2013-01-265-34/+87
| | | | | | | This reverts commit 860f2fa9a1f1ca4f8d94388723687f90d122ae81. People reported problems with it on the mailing list, so reverting until we can figure out the cause.
* integer-gmp: improve cross-compiling support GmpDerivedConstants.hSergei Trofimovich2013-01-245-87/+34
| | | | | | | | | | Before the patch GmpDerivedConstants.h was generated by running mkGmpDerivedConstants on target. Now it's generated only with help of autoconf macros. Tested on --target=ia64-unknown-linux-gnu. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Fix configure when we don't have a gmp libraryIan Lynagh2013-01-011-1/+1
|
* Provide a way for OS X users to indicate a preference for the GMP frameworkIan Lynagh2013-01-013-27/+65
| | | | | | | | We used to always use the framework if it existed. Now the make variable GMP_PREFER_FRAMEWORK can be used to control whether the library or the framework is preferred. Fixes #7466.
* zap obsolete FIXME, fix typosGabor Greif2012-12-141-5/+3
|
* Bump version number following new policyIan Lynagh2012-11-301-1/+1
| | | | | We now keep the HEAD version numbers as values which would be suitable for immediate release.
* Add comment to .cabal file saying what GHC 7.6.1 shipped withIan Lynagh2012-11-301-0/+1
|
* fix type mismatch in result of integer_cmm_testBitIntegerzhSimon Marlow2012-10-221-1/+1
|
* Adapt to new Cmm syntaxSimon Marlow2012-10-041-244/+182
|
* Fix building on WindowsIan Lynagh2012-08-071-0/+1
|
* Define testBitInteger; part of #3489Ian Lynagh2012-08-054-2/+44
| | | | Based on a patch from pumpkingod@gmail.com
* Whitespace only: Line some things up betterIan Lynagh2012-08-051-18/+18
|
* Merge branch 'master' of darcs.haskell.org:/srv/darcs//packages/integer-gmpIan Lynagh2012-07-191-1/+1
|\
| * Bump version to 0.5.0.0Paolo Capriotti2012-07-191-1/+1
| |
* | Simplify how gcd @ Int is implementedIan Lynagh2012-07-182-11/+2
| |
* | Move some rules into PrelRulesIan Lynagh2012-07-181-10/+0
|/
* Add another gcdInteger ruleIan Lynagh2012-07-131-3/+8
| | | | This one is better when the result is converted to an Int
* Tweak RULEs; fixes #7041Ian Lynagh2012-07-131-6/+3
| | | | | | | In particular, the gcd rule now uses smallInteger rather than S#, which means that it actually fires. Also fixed a bug when the result is minBound :: Int.
* Add missing imports.Paolo Capriotti2012-06-271-0/+2
|
* Use CLong, not CInt, for mp_bitcnt_t value; fixes #5965Ian Lynagh2012-06-201-2/+2
| | | | | | | | The GMP docs say: Counts of bits of a multi-precision number are represented in the C type mp_bitcnt_t. Currently this is always an unsigned long, but on some systems it will be an unsigned long long in the future.
* Add divInteger and modInteger functionsIan Lynagh2012-06-194-2/+35
| | | | | Now that divModInteger isn't inlined, we were getting allocations for both results even if we're just going to throw one away.
* Use divInt#/modInt# from ghc-primIan Lynagh2012-06-191-16/+1
|
* Fix compilation under LLVM backend. (#5965)David Terei2012-03-281-1/+1
| | | | Recent change means ul is truncate to an int, not a long anymore.
* Fix building libgmp on cygwinIan Lynagh2012-03-161-0/+6
|
* Win64 fixIan Lynagh2012-03-151-1/+1
|
* Update .gitignore.Paolo Capriotti2012-03-061-0/+11
|
* Updated to a newer version of gmp; fixes #5810Ian Lynagh2012-02-031-0/+0
| | | | | | | | I didn't diagnose the problem, but with the newer GMP the problem seems fixed. There are a couple of things that look like candidates for the bug: * A few minor bugs related to portability fixed. * A bug in division code possibly causing incorrect computation was fixed.
* Add some rules; fixes #5767Ian Lynagh2012-01-261-0/+10
| | | | | | | | We now have rules for integerToInt (smallInteger x) = x integerToWord (wordToInteger x) = x integerToInt64 (int64ToInteger x) = x integerToWord64 (word64ToInteger x) = x
* Use the mingw touch program on WindowsIan Lynagh2011-12-021-1/+1
|
* Track changes to the way we reference CCCS in GHC (was: W_[CCCS], now: CCCS)Simon Marlow2011-12-011-5/+5
|
* update to track changes to CCCS in the RTSSimon Marlow2011-11-291-2/+4
|
* Follow GHC build system change to the way we call rmIan Lynagh2011-11-191-2/+2
|
* Eliminate intermediate overflow for encodeFloat, fixes #5524Daniel Fischer2011-10-011-4/+90
|
* Untabify cbits/float.cDaniel Fischer2011-10-011-35/+35
|
* Define mkIntegerIan Lynagh2011-09-172-1/+11
| | | | Now used by GHC to generate Integer literals.
* Export GMP-only functions from the Internals moduleIan Lynagh2011-09-131-1/+1
|
* NOINLINE a couple more functionsIan Lynagh2011-09-131-2/+2
| | | | | We don't need them to be inlined at all, following changes in how GHC handles Integers.
* Don't export gcdInteger, lcmInteger from GHC.IntegerIan Lynagh2011-09-131-1/+1
| | | | integer-simple doesn't export them
* Follow ghc-prim changesIan Lynagh2011-08-261-1/+0
|
* Export Integer(..) from GHC.Integer.GMP.Internals again; fixes #5419Ian Lynagh2011-08-254-194/+201
| | | | The GMP primitives are now in GHC.Integer.GMP.Prim instead.