replace x86.T with native.T
This commit is contained in:
parent
e29a5a3475
commit
f67f8c0118
12 changed files with 91 additions and 91 deletions
morphisms
|
@ -2,8 +2,8 @@
|
|||
```
|
||||
|
||||
morph_i64_as_twos_complement_to_zigzag ()
|
||||
ℤ ~ x86.Int64
|
||||
--> ℤ ~ ZigZagInt ~ ℕ ~ x86.UInt64
|
||||
ℤ ~ native.Int64
|
||||
--> ℤ ~ ZigZagInt ~ ℕ ~ native.UInt64
|
||||
```
|
||||
if( *src >= 0 ) {
|
||||
*dst = (2 * (uint64_t)*src)
|
||||
|
@ -15,8 +15,8 @@ morph_i64_as_twos_complement_to_zigzag ()
|
|||
```
|
||||
|
||||
morph_i64_as_zigzag_to_twos_complement ()
|
||||
ℤ ~ ZigZagInt ~ ℕ ~ x86.UInt64
|
||||
--> ℤ ~ x86.Int64
|
||||
ℤ ~ ZigZagInt ~ ℕ ~ native.UInt64
|
||||
--> ℤ ~ native.Int64
|
||||
```
|
||||
if( *src % 2 == 0 ) {
|
||||
*dst = *src / 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue