From 0dd32af30fee665611e77cfb7bf8fc82f70c970b Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 3 Mar 2009 11:58:25 +0100 Subject: [PATCH] Never inline the half_adder function. --- Adders.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/Adders.hs b/Adders.hs index 4745d8c..7243b50 100644 --- 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 ) -- 2.30.2