From 7f9a227abfbce0e67746cc57dd9b6a4bf0a8d94a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 16 Aug 2020 00:58:14 +0200 Subject: deinline edwards25519.{add,dbl} --- lib/std/crypto/25519/edwards25519.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/crypto/25519/edwards25519.zig b/lib/std/crypto/25519/edwards25519.zig index 5d70122921..11f5963101 100644 --- a/lib/std/crypto/25519/edwards25519.zig +++ b/lib/std/crypto/25519/edwards25519.zig @@ -74,7 +74,7 @@ pub const Edwards25519 = struct { } /// Double an Edwards25519 point. - pub inline fn dbl(p: Edwards25519) Edwards25519 { + pub fn dbl(p: Edwards25519) Edwards25519 { const t0 = p.x.add(p.y).sq(); var x = p.x.sq(); var z = p.y.sq(); @@ -91,7 +91,7 @@ pub const Edwards25519 = struct { } /// Add two Edwards25519 points. - pub inline fn add(p: Edwards25519, q: Edwards25519) Edwards25519 { + pub fn add(p: Edwards25519, q: Edwards25519) Edwards25519 { const a = p.y.sub(p.x).mul(q.y.sub(q.x)); const b = p.x.add(p.y).mul(q.x.add(q.y)); const c = p.t.mul(q.t).mul(Fe.edwards25519d2); -- cgit v1.2.3