-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2865679
commit f787659
Showing
10 changed files
with
2,675 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
main | ||
vwhirlpool | ||
*.so | ||
*.dylib | ||
*.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module vwhirlpool | ||
|
||
// | ||
pub fn to_u8(x u64) u16 { | ||
return u16(byte(x & 0xff)) | ||
} | ||
|
||
// | ||
pub fn to_u16(x u64) u16 { | ||
return u16(x & 0xffff) | ||
} | ||
|
||
// | ||
pub fn to_u32(x u64) u32 { | ||
return u32(x & 0xffffffff) | ||
} | ||
|
||
// | ||
pub fn to_u64(x u64) u64 { | ||
return u64(x & 0xffffffffffffffff) | ||
} |
Oops, something went wrong.