-
-
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.
Showing
8 changed files
with
46 additions
and
43 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
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
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
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
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
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,14 @@ | ||
use crate::u128::{to_u32x4, u32x4_add}; | ||
|
||
pub type U256 = [u128; 2]; | ||
|
||
#[inline(always)] | ||
pub const fn u32x8_add(&[a0, a1]: &U256, &[b0, b1]: &U256) -> U256 { | ||
[u32x4_add(a0, b0), u32x4_add(a1, b1)] | ||
} | ||
|
||
pub const fn to_u32x8([a, b]: &U256) -> [u32; 8] { | ||
let [a0, a1, a2, a3] = to_u32x4(*a); | ||
let [b0, b1, b2, b3] = to_u32x4(*b); | ||
[a0, a1, a2, a3, b0, b1, b2, b3] | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.