Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bindings/go/blst.tgo
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ import "C"

import "runtime"

import "fmt"

const BLST_SCALAR_BYTES = 256 / 8
const BLST_FP_BYTES = 384 / 8
const BLST_P1_COMPRESS_BYTES = BLST_FP_BYTES
Expand Down Expand Up @@ -205,7 +207,7 @@ func SetMaxProcs(procs int) {
func numThreads(maxThreads int) int {
numThreads := maxProcs

// take into consideration the possility that application reduced
// take into consideration the possibility that application reduced
// GOMAXPROCS after |maxProcs| was initialized
numProcs := runtime.GOMAXPROCS(0)
if maxProcs > numProcs {
Expand Down Expand Up @@ -364,7 +366,7 @@ func PairingAsFp12(ctx Pairing) *Fp12 {
}

func (pt *Fp12) asPtr() *C.blst_fp12 {
if (pt != nil) {
if pt != nil {
return &pt.cgo
}

Expand Down