feat(library/init/data/nat/bitwise): use lean::nat_land and lean::nat_lor

This commit is contained in:
Leonardo de Moura 2019-05-31 21:55:25 -07:00
parent e87c471e7f
commit d2d2c32c81

View file

@ -18,7 +18,9 @@ else
let r := bitwise n' m' in
if f b₁ b₂ then bit1 r else bit0 r
@[extern cpp "lean::nat_land"]
def land : Nat → Nat → Nat := bitwise and
@[extern cpp "lean::nat_lor"]
def lor : Nat → Nat → Nat := bitwise or
end Nat