library: math/big.Int (mini-impl for _cmptest/bigintdemo)

This commit is contained in:
xushiwei
2024-08-01 00:32:21 +08:00
parent 79d8b00b27
commit 2e4b1d8c2b
8 changed files with 537 additions and 3 deletions

View File

@@ -25,13 +25,14 @@ import (
// -----------------------------------------------------------------------------
const (
LLGoFiles = "$(pkg-config --cflags openssl): _wrap/openssl.c"
LLGoPackage = "link: $(pkg-config --libs openssl); -lssl -lcrypto"
)
//go:linkname Free C.OPENSSL_free
//go:linkname Free C.opensslFree
func Free(ptr unsafe.Pointer)
//go:linkname FreeCStr C.OPENSSL_free
//go:linkname FreeCStr C.opensslFree
func FreeCStr(ptr *c.Char)
// -----------------------------------------------------------------------------