Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for f1 (0.04 sec)

  1. doc/go_spec.html

    }
    
    // invalid: 1e3 is a floating-point constant
    for range 1e3 {
    }
    
    // fibo generates the Fibonacci sequence
    fibo := func(yield func(x int) bool) {
    	f0, f1 := 0, 1
    	for yield(f0) {
    		f0, f1 = f1, f0+f1
    	}
    }
    
    // print the Fibonacci numbers below 1000:
    for x := range fibo {
    	if x >= 1000 {
    		break
    	}
    	fmt.Printf("%d ", x)
    }
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 02 23:07:19 UTC 2025
    - 286.5K bytes
    - Viewed (1)
  2. lib/fips140/v1.1.0-rc1.zip

    t.Errorf("wrong answer: %d + %d*(2**64)", r.lo, r.hi) } } func TestSetBytesRoundTri(t *testing.T) { f1 := func(in [32]byte, fe Element) bool { fe.SetBytes(in[:]) // Mask the most significant bit as it's ignored by SetBytes. (Now // instead of earlier so we check the masking in SetBytes is working.) in[len(in)-1] &= (1 << 7) - 1 return bytes.Equal(in[:], fe.Bytes()) && isInBounds(&fe) } if err := quick.Check(f1, nil); err != nil { t.Errorf("failed bytes->FE->bytes round-trip: %v", err) } f2 := func(fe, r...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
Back to top