blob: 3c38123328c19229dfb5eed8a1246e3e4ba1df7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
-- THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS
-- [bitwise]
import Base
open Primitives
namespace bitwise
/- [bitwise::shift_u32]:
Source: 'tests/src/bitwise.rs', lines 4:0-4:31 -/
def shift_u32 (a : U32) : Result U32 :=
do
let t ← a >>> 16#usize
t <<< 16#usize
/- [bitwise::shift_i32]:
Source: 'tests/src/bitwise.rs', lines 11:0-11:31 -/
def shift_i32 (a : I32) : Result I32 :=
do
let t ← a >>> 16#isize
t <<< 16#isize
/- [bitwise::xor_u32]:
Source: 'tests/src/bitwise.rs', lines 18:0-18:37 -/
def xor_u32 (a : U32) (b : U32) : Result U32 :=
Result.ok (a ^^^ b)
/- [bitwise::or_u32]:
Source: 'tests/src/bitwise.rs', lines 22:0-22:36 -/
def or_u32 (a : U32) (b : U32) : Result U32 :=
Result.ok (a ||| b)
/- [bitwise::and_u32]:
Source: 'tests/src/bitwise.rs', lines 26:0-26:37 -/
def and_u32 (a : U32) (b : U32) : Result U32 :=
Result.ok (a &&& b)
end bitwise
|