Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for bignum (0.19 sec)

  1. src/crypto/internal/boring/boring.go

    func bnToBig(bn *C.GO_BIGNUM) BigInt {
    	x := make(BigInt, (C._goboringcrypto_BN_num_bytes(bn)+wordBytes-1)/wordBytes)
    	if C._goboringcrypto_BN_bn2le_padded(wbase(x), C.size_t(len(x)*wordBytes), bn) == 0 {
    		panic("boringcrypto: bignum conversion failed")
    	}
    	return x
    }
    
    func bigToBn(bnp **C.GO_BIGNUM, b BigInt) bool {
    	if *bnp != nil {
    		C._goboringcrypto_BN_free(*bnp)
    		*bnp = nil
    	}
    	if b == nil {
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. test/fibo.go

    // -opt         optimize memory allocation through reuse
    // -short       only print the first 10 digits of very large fibonacci numbers
    
    // Command fibo is a stand-alone test and benchmark to
    // evaluate the performance of bignum arithmetic written
    // entirely in Go.
    package main
    
    import (
    	"flag"
    	"fmt"
    	"math/big" // only used for printing
    	"os"
    	"strconv"
    	"testing"
    	"text/tabwriter"
    	"time"
    )
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 08 22:22:58 UTC 2014
    - 6.3K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/trampoline_reuse_test.txt

    #define NOP2S22 NOP2S20 NOP2S20 NOP2S20 NOP2S20
    #define NOP2S24 NOP2S22 NOP2S22 NOP2S22 NOP2S22
    #define BIGNOP NOP2S24 NOP2S24
    TEXT main·BigAsm(SB),0,$0-0
            // Fill to the direct call limit so Func2 must generate a new trampoline.
            // As the implicit trampoline above is just barely unreachable.
            BIGNOP
            MOVD $main·Func2(SB), R3
    
    TEXT main·Func2(SB),0,$0-0
            CALL bar·Bar+0x400(SB)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 14:31:23 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/bindm.c

    Cherry Mui <******@****.***> 1684339275 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 692 bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/bindm.go

    Cherry Mui <******@****.***> 1684339275 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractVersionTest.java

                assertEquals(1, Integer.signum(v1.compareTo(v2)), "expected " + v1 + " > " + v2);
                assertEquals(-1, Integer.signum(v2.compareTo(v1)), "expected " + v2 + " < " + v1);
                assertNotEquals(v1, v2, "expected " + v1 + " != " + v2);
                assertNotEquals(v2, v1, "expected " + v2 + " != " + v1);
            } else if (expected < 0) {
                assertEquals(-1, Integer.signum(v1.compareTo(v2)), "expected " + v1 + " < " + v2);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 19 19:08:55 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/PerformanceReportScenario.groovy

                return Double.NEGATIVE_INFINITY
            }
            def firstExecution = currentExecutions[0]
            double signum = Math.signum(firstExecution.differencePercentage)
            if (signum == 0.0d) {
                signum = -1.0
            }
            return firstExecution.confidencePercentage * signum
        }
    
        double getDifferencePercentage() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/catchpanic.go

    //go:build !plan9 && !windows
    // +build !plan9,!windows
    
    package main
    
    /*
    #include <signal.h>
    #include <stdlib.h>
    #include <string.h>
    
    static void abrthandler(int signum) {
    	if (signum == SIGABRT) {
    		exit(0);  // success
    	}
    }
    
    void registerAbortHandler() {
    	struct sigaction act;
    	memset(&act, 0, sizeof act);
    	act.sa_handler = abrthandler;
    	sigaction(SIGABRT, &act, NULL);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 993 bytes
    - Viewed (0)
  9. pkg/kube/inject/testdata/inject/job.yaml

    apiVersion: batch/v1
    kind: Job
    metadata:
      name: pi
    spec:
      template:
        metadata:
          name: pi
        spec:
          containers:
          - name: pi
            image: perl
            command: ["perl",  "-Mbignum=bpi", "-wle", "print bpi(2000)"]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Aug 16 01:43:48 UTC 2019
    - 261 bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/sigfwd.go

    sig_atomic_t expectCSigsegv;
    int *sigfwdP;
    
    static void sigsegv() {
    	expectCSigsegv = 1;
    	*sigfwdP = 1;
    	fprintf(stderr, "ERROR: C SIGSEGV not thrown on caught?.\n");
    	exit(2);
    }
    
    static void segvhandler(int signum) {
    	if (signum == SIGSEGV) {
    		if (expectCSigsegv == 0) {
    			fprintf(stderr, "SIGSEGV caught in C unexpectedly\n");
    			exit(1);
    		}
    		fprintf(stdout, "OK\n");
    		exit(0);  // success
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 17:06:49 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top