Skip to content

Commit

Permalink
import/binary.plam: [irrelevant] comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
slovnicki committed Aug 28, 2018
1 parent 6545ecb commit d004cb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions import/binary.plam
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ subBe = \x y. subB0e x y F
-- variant substraction
forkS = \x y c. (and (isEnd x) (isEnd y)) (c (pair numZ end) end) ((isEnd x) (pair numZ end) ((isEnd y) (pair (xor3 (fst x) F c) (f (snd x) end (carryS (fst x) F c))) (pair (xor3 (fst x) (fst y) c) (f (snd x) (snd y) (carryS (fst x) (fst y) c)))))

-- E = c (pair numZ end) end
-- A = pair numZ end
-- E1 = end
-- E2 = end
-- B = pair (xor3 (fst x) F c) (f (snd x) end (carryS (fst x) F c))
-- C = pair (xor3 (fst x) (fst y) c) (f (snd x) (snd y) (carryS (fst x) (fst y) c))
-- D = pair (xor3 (fst x) (fst y) c) (f (snd x) (snd y) (carryS (fst x) (fst y) c))

-- whether a binary numeral has numZ bit
hasZ = Y (\f. \x. (isEnd x) F ((isNumZ (fst x)) T (f (snd x))))
Expand Down

0 comments on commit d004cb6

Please sign in to comment.