Changes between Version 1 and Version 2 of ReplacingGMPNotes/RequiredIntegerFunctions
 Timestamp:
 Jan 5, 2007 5:31:55 AM (9 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

ReplacingGMPNotes/RequiredIntegerFunctions
v1 v2 2 2 3 3 = 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 == 4 8 5 9  '''Module/Class'''  '''Haskell Function'''  '''Notes'''  … … 25 29  GHC.Num(Eq)  ==   26 30  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  27 35  Data.Bits  (.&.)   28 36  Data.Bits  (..)   … … 42 50  Data.Bits  rotateL  rotates operate as shifts for Integer  43 51  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'''  44 57  GHC.Prim  integer2Int  from rts/PrimOps.cmm  45 58  GHC.Prim  integer2Word  from rts/PrimOps.cmm  … … 65 78  GHC.Prim  orInteger#  from rts/PrimOps.cmm  66 79  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  69 81  GHC.Float  floatRadix  rts/StgPrimFloat.c  70 82  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  73 85 86