mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Change the whitespace because Boats made fun of it on twitter.
This commit is contained in:
parent
4ecf6ab326
commit
43481a9ff6
1 changed files with 3 additions and 10 deletions
|
|
@ -118,16 +118,9 @@ impl<T> CTNegatable for T
|
|||
#[inline(always)]
|
||||
#[cfg(feature = "std")]
|
||||
pub fn conditional_select<T>(a: T, b: T, choice: T) -> T
|
||||
where T: PartialEq +
|
||||
PartialOrd +
|
||||
One +
|
||||
Copy +
|
||||
Signed +
|
||||
Sub<T, Output = T> +
|
||||
BitAnd<T, Output = T> +
|
||||
BitOr<T, Output = T> +
|
||||
Not<Output = T>
|
||||
{
|
||||
where T: PartialEq + PartialOrd + Copy +
|
||||
One + Signed + Sub<T, Output = T> + Not<Output = T> +
|
||||
BitAnd<T, Output = T> + BitOr<T, Output = T> {
|
||||
(!(choice - T::one()) & a) | ((choice - T::one()) & b)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue