zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 7f9a227abfbce0e67746cc57dd9b6a4bf0a8d94a (tree)
parent 37ae2464053628d10c7e7e7165ba8a267006b0ad
Author: Frank Denis <github@pureftpd.org>
Date:   Sun, 16 Aug 2020 00:58:14 +0200

deinline edwards25519.{add,dbl}

Diffstat:
Mlib/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 @@ -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);