feat(library/init/data/nat/bitwise): use lean::nat_land and lean::nat_lor
This commit is contained in:
parent
e87c471e7f
commit
d2d2c32c81
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue