2
These utility routines are used various
3
places in the GHC library.
7
#if __GLASGOW_HASKELL__ <= 610
20
Calling 'strlen' and 'memcpy' directly gives problems with GCC's inliner,
21
and causes gcc to require too many registers on x84
27
return (strlen((char *)a));
31
ghc_memcmp( HsPtr a1, HsPtr a2, HsInt len )
33
return (memcmp((char *)a1, a2, len));
37
ghc_memcmp_off( HsPtr a1, HsInt i, HsPtr a2, HsInt len )
39
return (memcmp((char *)a1 + i, a2, len));
43
enableTimingStats( void ) /* called from the driver */
45
RtsFlags.GcFlags.giveStats = ONELINE_GC_STATS;
49
setHeapSize( HsInt size )
51
RtsFlags.GcFlags.heapSizeSuggestion = size / BLOCK_SIZE;
52
if (RtsFlags.GcFlags.maxHeapSize != 0 &&
53
RtsFlags.GcFlags.heapSizeSuggestion > RtsFlags.GcFlags.maxHeapSize) {
54
RtsFlags.GcFlags.maxHeapSize = RtsFlags.GcFlags.heapSizeSuggestion;