We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#[inline]
1 parent bcf7961 commit 6a11701Copy full SHA for 6a11701
1 file changed
elliptic-curve/src/point/lookup_table.rs
@@ -26,6 +26,7 @@ where
26
pub const SIZE: usize = LUT_SIZE;
27
28
/// Compute a new lookup table from the given point.
29
+ #[inline]
30
pub fn new(p: Point) -> Self {
31
let mut points = [p; LUT_SIZE];
32
@@ -38,6 +39,7 @@ where
38
39
40
/// Given `-8 <= x <= 8`, returns `x * p` in constant time.
41
#[allow(clippy::cast_sign_loss)]
42
43
pub fn select(&self, x: i8) -> Point {
44
debug_assert!((-8..=8).contains(&x));
45
0 commit comments