packages/integer-gmp.git
8 years agoEq and Ord instances are now in the integer package, not base
Ian Lynagh [Fri, 22 Jul 2011 18:09:46 +0000 (19:09 +0100)] 
Eq and Ord instances are now in the integer package, not base

8 years agoBump version number
Ian Lynagh [Wed, 6 Jul 2011 19:29:45 +0000 (20:29 +0100)] 
Bump version number

8 years agoFollow CC var changes in makefiles
Ian Lynagh [Sat, 23 Apr 2011 16:23:50 +0000 (17:23 +0100)] 
Follow CC var changes in makefiles

8 years agoMake and use AR_STAGE[0123] makefile vars
Ian Lynagh [Sat, 23 Apr 2011 16:22:36 +0000 (17:22 +0100)] 
Make and use AR_STAGE[0123] makefile vars

8 years agoPart of #5122 "Faster conversion between Rational and Double/Float" fix
Ian Lynagh [Fri, 22 Apr 2011 14:18:44 +0000 (15:18 +0100)] 
Part of #5122 "Faster conversion between Rational and Double/Float" fix

From daniel.is.fischer.

8 years agoTweak build rules
Ian Lynagh [Fri, 22 Apr 2011 11:50:34 +0000 (12:50 +0100)] 
Tweak build rules

We were doing
    echo $(HOSTPLATFORM) | sed 's/i[567]86/i486/g'
but the only x86 value HOSTPLATFORM can have is i386.

We now also tell GMP that its build platform is $(BUILDPLATFORM)
rather than $(HOSTPLATFORM).

8 years agoUpdate source-repository in the .cabal file to point to the git repo
Ian Lynagh [Tue, 5 Apr 2011 18:04:13 +0000 (19:04 +0100)] 
Update source-repository in the .cabal file to point to the git repo

8 years agoCall the final build system phase "final" rather than "" ghc-darcs-git-switchover
Ian Lynagh [Sun, 6 Feb 2011 20:32:32 +0000 (20:32 +0000)] 
Call the final build system phase "final" rather than ""

8 years agoUpdate for changes in GHC's build system
Ian Lynagh [Sat, 22 Jan 2011 19:47:56 +0000 (19:47 +0000)] 
Update for changes in GHC's build system

8 years agoCorrect the gmp build phase
Ian Lynagh [Mon, 17 Jan 2011 12:22:45 +0000 (12:22 +0000)] 
Correct the gmp build phase

8 years agoTidy up gmp cleaning
Ian Lynagh [Mon, 17 Jan 2011 12:12:24 +0000 (12:12 +0000)] 
Tidy up gmp cleaning

8 years agoAdd extensions to LANGUAGE pragmas
Ian Lynagh [Tue, 11 Jan 2011 00:30:50 +0000 (00:30 +0000)] 
Add extensions to LANGUAGE pragmas

8 years agoFix unknown symbol base_ControlziExceptionziBase_patError_info by helping GHC generat...
Edward Z. Yang [Sat, 4 Dec 2010 01:30:10 +0000 (01:30 +0000)] 
Fix unknown symbol base_ControlziExceptionziBase_patError_info by helping GHC generate smarter core.

8 years agoAdd LANGUAGE BangPatterns to modules that use bang patterns
simonpj@microsoft.com [Fri, 12 Nov 2010 17:06:04 +0000 (17:06 +0000)] 
Add LANGUAGE BangPatterns to modules that use bang patterns

8 years agoAdd a rewrite rule for toInt# so literals work right
simonpj@microsoft.com [Tue, 26 Oct 2010 08:29:55 +0000 (08:29 +0000)] 
Add a rewrite rule for toInt# so literals work right

See the comments with toInt#, but the key point is
that we want (fromInteger 1)::Int to yield (I# 1)!

8 years agoFollow GHC.Bool/GHC.Types merge
Ian Lynagh [Sat, 23 Oct 2010 15:36:31 +0000 (15:36 +0000)] 
Follow GHC.Bool/GHC.Types merge

8 years agoBump version number to 0.2.0.2
Ian Lynagh [Thu, 16 Sep 2010 17:00:32 +0000 (17:00 +0000)] 
Bump version number to 0.2.0.2

8 years agoFix compile warning on 32bit machine
David Terei [Tue, 17 Aug 2010 10:34:07 +0000 (10:34 +0000)] 
Fix compile warning on 32bit machine

8 years agofix hashInteger to be the same as fromIntegral, and document it (#4108)
Simon Marlow [Fri, 13 Aug 2010 15:31:42 +0000 (15:31 +0000)] 
fix hashInteger to be the same as fromIntegral, and document it (#4108)

8 years agoimplement integer2Int# and integer2Word# in Haskell, not foreign prim
Simon Marlow [Fri, 13 Aug 2010 15:29:26 +0000 (15:29 +0000)] 
implement integer2Int# and integer2Word# in Haskell, not foreign prim

8 years agoUse the stage-specific CONF_CC_OPTS variables
Ian Lynagh [Fri, 23 Jul 2010 13:59:33 +0000 (13:59 +0000)] 
Use the stage-specific CONF_CC_OPTS variables

9 years agoHide GHC.Integer from haddock again, now that haddock #24 is fixed; trac #2839 Haskell_2010_report_generated
Ian Lynagh [Wed, 23 Jun 2010 21:53:06 +0000 (21:53 +0000)] 
Hide GHC.Integer from haddock again, now that haddock #24 is fixed; trac #2839

9 years agoFollow SET_ARR_HDR change
Ian Lynagh [Sat, 19 Jun 2010 23:53:32 +0000 (23:53 +0000)] 
Follow SET_ARR_HDR change

9 years agoReplace an (incorrect) bytes-to-words calculation with ROUNDUP_BYTES_TO_WDS
Ian Lynagh [Sat, 19 Jun 2010 23:51:06 +0000 (23:51 +0000)] 
Replace an (incorrect) bytes-to-words calculation with ROUNDUP_BYTES_TO_WDS

9 years agoFIX #38000 Store StgArrWords payload size in bytes
Antoine Latter [Fri, 1 Jan 2010 18:34:37 +0000 (18:34 +0000)] 
FIX #38000 Store StgArrWords payload size in bytes

9 years agoFollow variable name changes
Ian Lynagh [Wed, 16 Jun 2010 16:16:28 +0000 (16:16 +0000)] 
Follow variable name changes

9 years agopass $(AR) to the GMP build
Simon Marlow [Thu, 10 Jun 2010 08:08:42 +0000 (08:08 +0000)] 
pass $(AR) to the GMP build

9 years agoFix the $(GMP_DIR) path that we remove
Ian Lynagh [Mon, 19 Apr 2010 19:35:38 +0000 (19:35 +0000)] 
Fix the $(GMP_DIR) path that we remove

9 years agoFix the build
Ian Lynagh [Mon, 15 Feb 2010 15:35:40 +0000 (15:35 +0000)] 
Fix the build
A missing | meant that the build broke on machines that don't have
libgmp available.

9 years agoDon't rely on tar supporting -j; trac #3841
Ian Lynagh [Sun, 14 Feb 2010 22:05:56 +0000 (22:05 +0000)] 
Don't rely on tar supporting -j; trac #3841

9 years agoMERGED: Pass GMP paths when compiling mkGmpDerivedConstants; fixes trac #3784
Ian Lynagh [Mon, 18 Jan 2010 21:51:42 +0000 (21:51 +0000)] 
MERGED: Pass GMP paths when compiling mkGmpDerivedConstants; fixes trac #3784
Ian Lynagh <igloo@earth.li>**20100118191831

9 years agoTag imported gmp symbols with the package they're from
Ben.Lippmeier@anu.edu.au [Sat, 2 Jan 2010 06:34:22 +0000 (06:34 +0000)] 
Tag imported gmp symbols with the package they're from

9 years agoMove .depend file dependency inside HaveLibGmp test
Simon Marlow [Thu, 17 Dec 2009 20:23:23 +0000 (20:23 +0000)] 
Move .depend file dependency inside HaveLibGmp test
We were building GMP even if we didn't need to.

9 years agoFix a makefile dep
Ian Lynagh [Wed, 16 Dec 2009 13:13:42 +0000 (13:13 +0000)] 
Fix a makefile dep

9 years agoAdd a missing dependency on gmp.h
Ian Lynagh [Tue, 15 Dec 2009 13:20:10 +0000 (13:20 +0000)] 
Add a missing dependency on gmp.h

9 years agoallocateLocal was renamed to allocate
Simon Marlow [Wed, 2 Dec 2009 09:15:17 +0000 (09:15 +0000)] 
allocateLocal was renamed to allocate

9 years agoUndo previous patch, caused linker problems on x86_64/linux
Ben.Lippmeier@anu.edu.au [Tue, 24 Nov 2009 03:12:54 +0000 (03:12 +0000)] 
Undo previous patch, caused linker problems on x86_64/linux

rolling back:

Sat Nov 21 16:43:13 EST 2009  Ben.Lippmeier@anu.edu.au
  * Windows DLLs: Tag imported gmp symbols with the package they're from.

    M ./cbits/gmp-wrappers.cmm -20 +20

9 years agoWindows DLLs: Tag imported gmp symbols with the package they're from.
Ben.Lippmeier@anu.edu.au [Sat, 21 Nov 2009 05:43:13 +0000 (05:43 +0000)] 
Windows DLLs: Tag imported gmp symbols with the package they're from.

9 years agoSet the path to nm before configuring the C gmp lib
Ian Lynagh [Mon, 12 Oct 2009 21:40:31 +0000 (21:40 +0000)] 
Set the path to nm before configuring the C gmp lib

9 years agoBump version to 0.2.0.0
Ian Lynagh [Sun, 20 Sep 2009 14:19:26 +0000 (14:19 +0000)] 
Bump version to 0.2.0.0

9 years agoUse CONF_CC_OPTS
Manuel M T Chakravarty [Thu, 17 Sep 2009 13:13:07 +0000 (13:13 +0000)] 
Use CONF_CC_OPTS
- Needed to get arch-dependent options, eg, on Snow Leopard

9 years agoUpdate to follow RTS tidyp changes
Simon Marlow [Sat, 1 Aug 2009 19:35:13 +0000 (19:35 +0000)] 
Update to follow RTS tidyp changes

9 years agofix conditionals (prevents GMP always being built)
Simon Marlow [Sat, 1 Aug 2009 22:37:24 +0000 (22:37 +0000)] 
fix conditionals (prevents GMP always being built)

9 years agoFix GC annotations in GMP_TAKE1_UL1_RET1()
Simon Marlow [Thu, 23 Jul 2009 12:39:01 +0000 (12:39 +0000)] 
Fix GC annotations in GMP_TAKE1_UL1_RET1()

10 years agoAdd primops for shifting
Ian Lynagh [Wed, 22 Jul 2009 01:48:40 +0000 (01:48 +0000)] 
Add primops for shifting

10 years agoRemove unused stack variable
Ian Lynagh [Tue, 21 Jul 2009 20:28:07 +0000 (20:28 +0000)] 
Remove unused stack variable

10 years agoWhitespace only, in gmp-wrappers.cmm
Ian Lynagh [Tue, 21 Jul 2009 20:26:40 +0000 (20:26 +0000)] 
Whitespace only, in gmp-wrappers.cmm

10 years agoMake integer-gmp suitable to be used directly, rather than via integer
Ian Lynagh [Tue, 21 Jul 2009 18:53:02 +0000 (18:53 +0000)] 
Make integer-gmp suitable to be used directly, rather than via integer

10 years agoAdd GmpDerivedConstants.h dependencies for all ways, not just vanilla
Ian Lynagh [Sat, 18 Jul 2009 14:56:28 +0000 (14:56 +0000)] 
Add GmpDerivedConstants.h dependencies for all ways, not just vanilla

10 years agofix mk/build.mk for HaveLibGmp/HaveFrameworkGMP
Austin Seipp [Mon, 6 Jul 2009 21:39:37 +0000 (21:39 +0000)] 
fix mk/build.mk for HaveLibGmp/HaveFrameworkGMP
Previously if you were to set HaveFrameworkGMP/HaveLibGmp in
mk/build.mk (e.g. on mac os) the settings would be ignored, as
gmp/config.mk is included late in GHC's ghc.mk, meaning autoconf
overrides your settings. Now they ignore the values picked up by
configure if you set these variables.

10 years agoCheck for whether we have gmp.h, as well as whether we have the gmp library
Ian Lynagh [Thu, 25 Jun 2009 16:29:33 +0000 (16:29 +0000)] 
Check for whether we have gmp.h, as well as whether we have the gmp library

10 years agoFix the case of HaveFrameworkGMP values
Ian Lynagh [Thu, 25 Jun 2009 16:25:44 +0000 (16:25 +0000)] 
Fix the case of HaveFrameworkGMP values

10 years agofix the dependencies on GmpDerivedConstants.h when HaveLibGmp==YES 2009-06-25
Simon Marlow [Tue, 23 Jun 2009 14:09:22 +0000 (14:09 +0000)] 
fix the dependencies on GmpDerivedConstants.h when HaveLibGmp==YES

10 years agoMake this package now really integer-gmp, rather than pretending it's integer
Ian Lynagh [Mon, 22 Jun 2009 22:18:12 +0000 (22:18 +0000)] 
Make this package now really integer-gmp, rather than pretending it's integer

10 years agodon't include config.mk if we're cleaning
Simon Marlow [Tue, 23 Jun 2009 10:03:35 +0000 (10:03 +0000)] 
don't include config.mk if we're cleaning

10 years agoPatch GMP to always use the GHC allocation functions
Ian Lynagh [Sun, 21 Jun 2009 18:29:57 +0000 (18:29 +0000)] 
Patch GMP to always use the GHC allocation functions
This works around a crash (only on OS X for some reason?) where the GHCi
GMP uses the systems memory allocator. We should fix this properly, by
making ghci run constructor functions.

10 years agogmp build tweaks
Ian Lynagh [Wed, 17 Jun 2009 12:17:20 +0000 (12:17 +0000)] 
gmp build tweaks

10 years agoMake configure fail if deriving the constants fails
Ian Lynagh [Tue, 16 Jun 2009 18:30:05 +0000 (18:30 +0000)] 
Make configure fail if deriving the constants fails

10 years agoImprove the configure script
Ian Lynagh [Tue, 16 Jun 2009 17:37:53 +0000 (17:37 +0000)] 
Improve the configure script

10 years agoDon't put "extra-libraries: gmp" in the cabal file; it comes from the buildinfo file
Ian Lynagh [Mon, 15 Jun 2009 20:25:12 +0000 (20:25 +0000)] 
Don't put "extra-libraries: gmp" in the cabal file; it comes from the buildinfo file

10 years agoFixes for building on machines that don't have gmp
Ian Lynagh [Mon, 15 Jun 2009 20:23:52 +0000 (20:23 +0000)] 
Fixes for building on machines that don't have gmp

10 years agoMove the int64 conversion functions here, from ghc-prim
Ian Lynagh [Mon, 15 Jun 2009 20:17:32 +0000 (20:17 +0000)] 
Move the int64 conversion functions here, from ghc-prim

10 years agoMove gmp to here, from the GHC repo
Ian Lynagh [Sun, 14 Jun 2009 18:32:55 +0000 (18:32 +0000)] 
Move gmp to here, from the GHC repo

10 years agoAdd a configure script and rely on local definitions of derived constants
Duncan Coutts [Sat, 13 Jun 2009 14:46:10 +0000 (14:46 +0000)] 
Add a configure script and rely on local definitions of derived constants

10 years agoTweak the small integer case of gcdInteger for better optimisation
Duncan Coutts [Sat, 13 Jun 2009 13:40:49 +0000 (13:40 +0000)] 
Tweak the small integer case of gcdInteger for better optimisation
The gcdInt function in the base package now calls gcdInteger with
two small integers. With this weak, the optimiser generates a base
gcdInt that directly calls the gcdInt# primop from this package.
This means there should be no additional overhead compared to when
the base gcdInt called the gcdInt# primop directly.

10 years agoImplement the gmp primops in the integer-gmp package using cmm
Duncan Coutts [Sat, 13 Jun 2009 13:37:50 +0000 (13:37 +0000)] 
Implement the gmp primops in the integer-gmp package using cmm

10 years agoAdd __encodeDouble and __encodeFloat
Duncan Coutts [Thu, 11 Jun 2009 15:49:51 +0000 (15:49 +0000)] 
Add __encodeDouble and __encodeFloat
Moved here from the rts.

10 years agoRemove the unused decodeFloatInteger
Ian Lynagh [Tue, 2 Jun 2009 18:22:20 +0000 (18:22 +0000)] 
Remove the unused decodeFloatInteger

10 years agoUse a bang pattern when we where/let-bind values with unlifted types
Ian Lynagh [Fri, 24 Apr 2009 12:53:37 +0000 (12:53 +0000)] 
Use a bang pattern when we where/let-bind values with unlifted types

10 years agoDon't set -Wall -Werror in the .cabal file
Ian Lynagh [Thu, 12 Mar 2009 12:57:09 +0000 (12:57 +0000)] 
Don't set -Wall -Werror in the .cabal file

10 years agoDon't hide GHC.Integer from haddock; fixes trac #2839
Ian Lynagh [Wed, 11 Feb 2009 16:26:19 +0000 (16:26 +0000)] 
Don't hide GHC.Integer from haddock; fixes trac #2839
This works around haddock not exporting docs across package boundaries

10 years agoRequire Cabal version >= 1.6
Ian Lynagh [Thu, 22 Jan 2009 01:13:10 +0000 (01:13 +0000)] 
Require Cabal version >= 1.6

10 years agoAdd "bug-reports" and "source-repository" info to the Cabal file
Ian Lynagh [Wed, 21 Jan 2009 18:24:59 +0000 (18:24 +0000)] 
Add "bug-reports" and "source-repository" info to the Cabal file

10 years agoFix performance regression in quotRemInteger/divModInteger
Simon Marlow [Thu, 20 Nov 2008 09:58:15 +0000 (09:58 +0000)] 
Fix performance regression in quotRemInteger/divModInteger
This fixes most of the performance regression in these functions
between 6.8.3 and 6.10.1, it was due to a slight difference in the
strictness between the old and new versions (see comments for
details).  There's still a few percent loss in performance in the div
test in nofib/spectral/integer that I haven't tracked down as yet.

10 years agoMove the Integer type definition into GHC.Integer.Internals
Ian Lynagh [Thu, 25 Sep 2008 13:39:35 +0000 (13:39 +0000)] 
Move the Integer type definition into GHC.Integer.Internals
This means that we can export the constructors, but still keep the
GHC.Integer interface generic.

10 years agoPad version number to 0.1.0.0
Ian Lynagh [Sat, 20 Sep 2008 16:01:39 +0000 (16:01 +0000)] 
Pad version number to 0.1.0.0

11 years agoAdd a .darcs-boring file 6_10_branch_has_been_forked
Ian Lynagh [Fri, 27 Jun 2008 15:54:53 +0000 (15:54 +0000)] 
Add a .darcs-boring file

11 years agoAvoid using deprecated flags
Ian Lynagh [Mon, 16 Jun 2008 14:53:51 +0000 (14:53 +0000)] 
Avoid using deprecated flags

11 years agoWibble && definition 2008-05-28
Ian Lynagh [Sat, 12 Apr 2008 10:08:06 +0000 (10:08 +0000)] 
Wibble && definition

11 years agoWe can now use Ordering as it's in ghc-prim
Ian Lynagh [Sat, 12 Apr 2008 21:58:13 +0000 (21:58 +0000)] 
We can now use Ordering as it's in ghc-prim

11 years agoDefine integerToWord64, word64ToInteger, integerToInt64, int64ToInteger
Ian Lynagh [Tue, 25 Mar 2008 20:28:04 +0000 (20:28 +0000)] 
Define integerToWord64, word64ToInteger, integerToInt64, int64ToInteger
if on a 32-bit machine

11 years agoFix parsing precedence problem
Ian Lynagh [Sun, 23 Mar 2008 20:29:27 +0000 (20:29 +0000)] 
Fix parsing precedence problem

11 years agoInitial commit of integer(-gmp) package; code copied from base
Ian Lynagh [Sun, 23 Mar 2008 18:34:34 +0000 (18:34 +0000)] 
Initial commit of integer(-gmp) package; code copied from base