You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[WIP] ctutils: automatically use optimized 1-byte CtEq
As an alternative to the `BytesCtEq` approach to using the optimized
impl of `CmovEq` for `[u8]`, this implementation automatically uses it
for all 1-byte types when the `CtEq` impl for `[T]` is invoked
(or anything that calls it, like the impls on `[T; N]`, `Box<[T]>`, and
`Vec<T>`.
To ensure we're not casting from a slice of a type containing
uninitialized memory to `[u8]`, this bounds all such `CtEq` impls on a
newly introduced `unsafe trait NoUninit`, which is currently not exposed
in the public API except through the bounds. The trait has been impl'd
for all of the types we impl other traits for in this crate.
0 commit comments