Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 44 of 44 for arithmetic (0.29 sec)

  1. src/cmd/compile/internal/test/testdata/gen/constFoldGen.go

    // Copyright 2016 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.
    
    // This program generates a test to verify that the standard arithmetic
    // operators properly handle constant folding. The test file should be
    // generated with a known working version of go.
    // launch with `go run constFoldGen.go` a file called constFold_test.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  2. src/hash/maphash/maphash.go

    // last call to [Hash.Reset] or [Hash.SetSeed].
    //
    // All bits of the Sum64 result are close to uniformly and
    // independently distributed, so it can be safely reduced
    // by using bit masking, shifting, or modular arithmetic.
    func (h *Hash) Sum64() uint64 {
    	h.initSeed()
    	return rthash(h.buf[:h.n], h.state.s)
    }
    
    // MakeSeed returns a new random seed.
    func MakeSeed() Seed {
    	var s uint64
    	for {
    		s = randUint64()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. src/internal/coverage/cformat/format.go

    	pcount := fm.p.unitTable[ukey]
    	var result uint32
    	if fm.cm == coverage.CtrModeSet {
    		if count != 0 || pcount != 0 {
    			result = 1
    		}
    	} else {
    		// Use saturating arithmetic.
    		result, _ = cmerge.SaturatingAdd(pcount, count)
    	}
    	fm.p.unitTable[ukey] = result
    }
    
    // sortUnits sorts a slice of extcu objects in a package according to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. src/math/big/arith_amd64.s

    // license that can be found in the LICENSE file.
    
    //go:build !math_big_pure_go
    
    #include "textflag.h"
    
    // This file provides fast assembly versions for the elementary
    // arithmetic operations on vectors implemented in arith.go.
    
    // The carry bit is saved with SBBQ Rx, Rx: if the carry was set, Rx is -1, otherwise it is 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top