summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp/cbits/alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop old integer-gmp-0.5 from GHC source treeHerbert Valerio Riedel2015-03-311-97/+0
| | | | | | | | | | | | | | | | | | This completes what c774b28f76ee4c220f7c1c9fd81585e0e3af0e8a (#9281) started. `integer-gmp-1.0` was added as an additional `libraries/integer-gmp2` folder while retaining the ability to configure GHC w/ the old `integer-gmp-0.5` to have a way back, and or the ability to easily switch between old/new `integer-gmp` for benchmark/debugging purposes. This commit removes the old `libraries/integer-gmp` folder and moves `libraries/integer-gmp2` into its place, while removing any mentions of "gmp2" as well as the to support two different `integer-gmp` packages in GHC's source-tree. Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D769
* Refactor `stgReallocForGMP` to use `memcpy`Herbert Valerio Riedel2014-01-031-13/+5
| | | | | | | | | | GCC is able to generate better code when using `memcpy` instead of manually copying bytes in a loop. Otoh, `stgAllocForGMP` is typically called for enlarging initial single-limb structures (see also #8647 for more information) and so this minor optimization won't be very visible in measurements. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* zap obsolete FIXME, fix typosGabor Greif2012-12-141-5/+3
|
* update to track changes to CCCS in the RTSSimon Marlow2011-11-291-2/+4
|
* Follow SET_ARR_HDR changeIan Lynagh2010-06-191-1/+1
|
* Replace an (incorrect) bytes-to-words calculation with ROUNDUP_BYTES_TO_WDSIan Lynagh2010-06-191-1/+1
|
* allocateLocal was renamed to allocateSimon Marlow2009-12-021-1/+1
|
* Patch GMP to always use the GHC allocation functionsIan Lynagh2009-06-211-6/+6
| | | | | | 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.
* Implement the gmp primops in the integer-gmp package using cmmDuncan Coutts2009-06-131-0/+105