From: Matthijs Kooijman Date: Tue, 3 Mar 2009 10:58:25 +0000 (+0100) Subject: Never inline the half_adder function. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Fc%CE%BBash.git;a=commitdiff_plain;h=0dd32af30fee665611e77cfb7bf8fc82f70c970b Never inline the half_adder function. --- 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 )