Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 722 for rounds (0.11 sec)

  1. src/internal/chacha8rand/chacha8_amd64.s

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // ChaCha8 is ChaCha with 8 rounds.
    // See https://cr.yp.to/chacha/chacha-20080128.pdf.
    // See chacha8_generic.go for additional details.
    
    // ROL rotates the uint32s in register R left by N bits, using temporary T.
    #define ROL(N, R, T) \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. src/crypto/sha256/sha256block.go

    	var w [64]uint32
    	h0, h1, h2, h3, h4, h5, h6, h7 := dig.h[0], dig.h[1], dig.h[2], dig.h[3], dig.h[4], dig.h[5], dig.h[6], dig.h[7]
    	for len(p) >= chunk {
    		// Can interlace the computation of w with the
    		// rounds below if needed for speed.
    		for i := 0; i < 16; i++ {
    			j := i * 4
    			w[i] = uint32(p[j])<<24 | uint32(p[j+1])<<16 | uint32(p[j+2])<<8 | uint32(p[j+3])
    		}
    		for i := 16; i < 64; i++ {
    			v1 := w[i-2]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:21:42 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. test/float_lit2.go

    // f₁ is an odd mantissa, so the halfway point (f₁+f₂)/2 rounds to f₂ and is rejected.
    // The halfway point is (f₁+f₂)/2 = 2¹²⁸ - 2¹⁰³.
    //
    // The same is true of float64, with different constants: s/24/53/ and s/128/1024/.
    
    const (
    	two24   = 1.0 * (1 << 24)
    	two53   = 1.0 * (1 << 53)
    	two64   = 1.0 * (1 << 64)
    	two128  = two64 * two64
    	two256  = two128 * two128
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:39:47 UTC 2016
    - 7.9K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/chacha20/chacha_generic.go

    		// The remaining 18 rounds.
    		for i := 0; i < 9; i++ {
    			// Column round.
    			x0, x4, x8, x12 = quarterRound(x0, x4, x8, x12)
    			x1, x5, x9, x13 = quarterRound(x1, x5, x9, x13)
    			x2, x6, x10, x14 = quarterRound(x2, x6, x10, x14)
    			x3, x7, x11, x15 = quarterRound(x3, x7, x11, x15)
    
    			// Diagonal round.
    			x0, x5, x10, x15 = quarterRound(x0, x5, x10, x15)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  5. src/internal/fuzz/coverage.go

    	if len(base) != len(snapshot) {
    		panic(fmt.Sprintf("the number of coverage bits changed: before=%d, after=%d", len(base), len(snapshot)))
    	}
    	found := false
    	for i := range snapshot {
    		if snapshot[i]&^base[i] != 0 {
    			found = true
    			break
    		}
    	}
    	if !found {
    		return nil
    	}
    	diff := make([]byte, len(snapshot))
    	for i := range diff {
    		diff[i] = snapshot[i] &^ base[i]
    	}
    	return diff
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/go/types/named_test.go

    			T.AddMethod(m)
    		}
    
    		// check method order
    		if i == 0 {
    			// first round: collect methods in given order
    			methods = make([]string, T.NumMethods())
    			for j := range methods {
    				methods[j] = T.Method(j).Name()
    			}
    		} else {
    			// successive rounds: methods must appear in the same order
    			if got := T.NumMethods(); got != len(methods) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 16:29:58 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/cmd/internal/notsha256/sha256block.go

    	var w [64]uint32
    	h0, h1, h2, h3, h4, h5, h6, h7 := dig.h[0], dig.h[1], dig.h[2], dig.h[3], dig.h[4], dig.h[5], dig.h[6], dig.h[7]
    	for len(p) >= chunk {
    		// Can interlace the computation of w with the
    		// rounds below if needed for speed.
    		for i := 0; i < 16; i++ {
    			j := i * 4
    			w[i] = uint32(p[j])<<24 | uint32(p[j+1])<<16 | uint32(p[j+2])<<8 | uint32(p[j+3])
    		}
    		for i := 16; i < 64; i++ {
    			v1 := w[i-2]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:17 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. src/go/doc/testdata/benchmark.go

    		return y
    	}
    	return x
    }
    
    // roundDown10 rounds a number down to the nearest power of 10.
    func roundDown10(n int) int {
    	var tens = 0
    	// tens = floor(log_10(n))
    	for n > 10 {
    		n = n / 10
    		tens++
    	}
    	// result = 10^tens
    	result := 1
    	for i := 0; i < tens; i++ {
    		result *= 10
    	}
    	return result
    }
    
    // roundUp rounds x up to a number of the form [1eX, 2eX, 5eX].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/named_test.go

    			T.AddMethod(m)
    		}
    
    		// check method order
    		if i == 0 {
    			// first round: collect methods in given order
    			methods = make([]string, T.NumMethods())
    			for j := range methods {
    				methods[j] = T.Method(j).Name()
    			}
    		} else {
    			// successive rounds: methods must appear in the same order
    			if got := T.NumMethods(); got != len(methods) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 21:06:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. src/go/doc/testdata/testing.1.golden

    	// 
    	func max(x, y int) int
    
    	// 
    	func min(x, y int) int
    
    	// 
    	func parseCpuList()
    
    	// roundDown10 rounds a number down to the nearest power of 10. 
    	func roundDown10(n int) int
    
    	// roundUp rounds x up to a number of the form [1eX, 2eX, 5eX]. 
    	func roundUp(n int) int
    
    	// startAlarm starts an alarm if requested. 
    	func startAlarm()
    
    	// stopAlarm turns off the alarm. 
    	func stopAlarm()
    
    	// 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8.4K bytes
    - Viewed (0)
Back to top