X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=HighOrdAlu.hs;h=d453f640b91737a2a3dc0af0baa902d175822210;hb=bdaeea7a42e08a5a2bc88b44a9cf320266cb2b73;hp=331fa1debd0b4f20a071b126398ee498b552967d;hpb=51213c2cae12b73b46eaf607a0ca1a6586644d73;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/HighOrdAlu.hs b/HighOrdAlu.hs index 331fa1d..d453f64 100644 --- a/HighOrdAlu.hs +++ b/HighOrdAlu.hs @@ -10,12 +10,11 @@ import Data.RangedWord constant :: e -> Op D4 e constant e a b = - e +> (e +> (e +> (singleton e ))) + copy (lengthT a) e invop :: Op n Bit invop a b = map hwnot a - andop :: Op n Bit andop a b = zipWith hwand a b