Changes between Version 1 and Version 2 of ReplacingGMPNotes/RequiredIntegerFunctions


Ignore:
Timestamp:
Jan 5, 2007 5:31:55 AM (8 years ago)
Author:
p_tanski
Comment:

Add note; split table into GHC and Primitive sections

Legend:

Unmodified
Added
Removed
Modified
  • ReplacingGMPNotes/RequiredIntegerFunctions

    v1 v2  
    22 
    33= Functions that operate on Integer values = 
     4 
     5''Note'': this is a very rough overview of the Integer functions in GHC.  It is not yet even a sketch of functions that a replacement library should implement, although the [wiki:ReplacingGMPNotes/RequiredIntegerFunctions#PrimitiveFunctions(inCmmorC) Primitive Functions (in Cmm or C)] provide an overview of what GMP currently provides. 
     6 
     7== GHC Functions == 
    48 
    59|| '''Module/Class''' || '''Haskell Function''' || '''Notes''' || 
     
    2529|| GHC.Num(Eq) || == ||  || 
    2630|| GHC.Num(Eq) || != ||  || 
     31|| GHC.Float || floatRadix || rts/StgPrimFloat.c || 
     32|| GHC.Float || encodeFloat || rts/StgPrimFloat.c --> linked in directly? || 
     33|| GHC.Float || decodeFloat || rts/StgPrimFloat.c --> rts/Rts.h --> !PrimOps.cmm ||  
     34|| GHC.Float || decodeDouble || rts/StgPrimFloat.c --> rts/Rts.h --> !PrimOps.cmm || 
    2735|| Data.Bits || (.&.) ||  || 
    2836|| Data.Bits || (.|.) ||  || 
     
    4250|| Data.Bits || rotateL || rotates operate as shifts for Integer || 
    4351|| Data.Bits || rotateR || rotates operate as shifts for Integer || 
     52|| !StringBuffer || parseInteger || Haskell function ||  
     53 
     54== Primitive Functions (in Cmm or C) == 
     55 
     56|| '''Module/Class''' || '''Haskell Function''' || '''Notes''' || 
    4457|| GHC.Prim || integer2Int || from rts/PrimOps.cmm || 
    4558|| GHC.Prim || integer2Word || from rts/PrimOps.cmm || 
     
    6578|| GHC.Prim || orInteger# || from rts/PrimOps.cmm ||  
    6679|| GHC.Prim || xorInteger# || from rts/PrimOps.cmm ||  
    67 || GHC.Prim || complementInteger# || from rts/PrimOps.cmm ||  
    68 || !StringBuffer || parseInteger || Haskell function ||  
     80|| GHC.Prim || complementInteger# || from rts/PrimOps.cmm || 
    6981|| GHC.Float || floatRadix || rts/StgPrimFloat.c || 
    7082|| GHC.Float || encodeFloat || rts/StgPrimFloat.c --> linked in directly? || 
    71 || GHC.Float || {{{__decodeFloat}}} || rts/StgPrimFloat.c --> rts/Rts.h --> !PrimOps.cmm ||  
    72 || GHC.Float || {{{__decodeDouble}}} || rts/StgPrimFloat.c --> rts/Rts.h --> !PrimOps.cmm || 
     83|| GHC.Float || decodeFloat || rts/StgPrimFloat.c --> rts/Rts.h --> !PrimOps.cmm ||  
     84|| GHC.Float || decodeDouble || rts/StgPrimFloat.c --> rts/Rts.h --> !PrimOps.cmm || 
    7385 
     86