2 These utility routines are used various
3 places in the GHC library.
17 Calling 'strlen' and 'memcpy' directly gives problems with GCC's inliner,
18 and causes gcc to require too many registers on x84
24 return (strlen((char *)a));
28 ghc_memcmp( HsPtr a1, HsPtr a2, HsInt len )
30 return (memcmp((char *)a1, a2, len));
34 ghc_memcmp_off( HsPtr a1, HsInt i, HsPtr a2, HsInt len )
36 return (memcmp((char *)a1 + i, a2, len));
40 enableTimingStats( void ) /* called from the driver */
42 RtsFlags.GcFlags.giveStats = ONELINE_GC_STATS;
46 setHeapSize( HsInt size )
48 RtsFlags.GcFlags.heapSizeSuggestion = size / BLOCK_SIZE;
49 if (RtsFlags.GcFlags.maxHeapSize != 0 &&
50 RtsFlags.GcFlags.heapSizeSuggestion > RtsFlags.GcFlags.maxHeapSize) {
51 RtsFlags.GcFlags.maxHeapSize = RtsFlags.GcFlags.heapSizeSuggestion;