projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
700f7c0
)
Never inline the half_adder function.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 3 Mar 2009 10:58:25 +0000
(11:58 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 3 Mar 2009 10:58:25 +0000
(11:58 +0100)
Adders.hs
patch
|
blob
|
history
diff --git
a/Adders.hs
b/Adders.hs
index 4745d8cd66b1984ae6e119f2e1e5399f38110ea2..7243b504063c0871350745daf98036839078d83b 100644
(file)
--- a/
Adders.hs
+++ b/
Adders.hs
@@
-59,6
+59,7
@@
no_carry_adder (a, b) = a `hwxor` b
-- Combinatoric stateless half adder
-- A -> B -> (S, C)
half_adder :: (Bit, Bit) -> (Bit, Bit)
+{-# NOINLINE half_adder #-}
half_adder (a, b) =
( a `hwxor` b, a `hwand` b )