From ec743fd5a6d66eea8695df413828cdaf78cd0d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 30 May 2024 16:45:40 +0900 Subject: [PATCH] fix: noasm --- uint128be.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uint128be.go b/uint128be.go index 1f7d568..8e68c9d 100644 --- a/uint128be.go +++ b/uint128be.go @@ -7,6 +7,8 @@ import ( "strconv" ) +var u128one = uint128be{0, 1} + type uint128be struct { a uint64 b uint64 @@ -28,13 +30,11 @@ func (num *uint128be) addeq(n uint128be) { num.a, _ = bits.Add64(num.a, n.a, c) } -/* func (num *uint128be) subeq(n uint128be) { var b uint64 num.b, b = bits.Sub64(num.b, n.b, 0) num.a, _ = bits.Sub64(num.a, n.a, b) - return -}*/ +} func (num uint128be) sub(n uint128be) (r uint128be) { var b uint64