Skip to content

Commit

Permalink
Add wordBits
Browse files Browse the repository at this point in the history
  • Loading branch information
ollef committed May 25, 2024
1 parent c0d6d48 commit fbbac10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Low/Representation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ leastUpperBound repr1 repr2 =
wordBytes :: Num a => a
wordBytes = 8

wordBits :: (Num a) => a
wordBits = wordBytes * 8

int :: Representation
int = Representation {pointers = 0, nonPointerBytes = wordBytes}

Expand Down

0 comments on commit fbbac10

Please sign in to comment.