Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 400 for original (0.11 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/versions/gover.go

    // go1.21 and earlier are no longer supported by x/tools.
    
    package versions
    
    import "strings"
    
    // A gover is a parsed Go gover: major[.Minor[.Patch]][kind[pre]]
    // The numbers are the original decimal strings to avoid integer overflows
    // and since there is very little actual math. (Probably overflow doesn't matter in practice,
    // but at the time this code was written, there was an existing test that used
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:52:54 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. src/crypto/internal/bigmod/nat_test.go

    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func testModSubThenAddIdentity(a *Nat, b *Nat) bool {
    	m := maxModulus(uint(len(a.limbs)))
    	original := new(Nat).set(a)
    	a.Sub(b, m)
    	a.Add(b, m)
    	return a.Equal(original) == 1
    }
    
    func TestModSubThenAddIdentity(t *testing.T) {
    	err := quick.Check(testModSubThenAddIdentity, &quick.Config{})
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. src/encoding/json/decode.go

    	// (to satisfy possible pointer methods) and continues to dereference
    	// subsequent pointers as necessary.
    	//
    	// After the first round-trip, we set v back to the original value to
    	// preserve the original RW flags contained in reflect.Value.
    	v0 := v
    	haveAddr := false
    
    	// If v is a named type and is addressable,
    	// start with its address, so that if the type has pointer methods,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typeparam.go

    	}
    
    	// compute type set if necessary
    	if ityp.tset == nil {
    		// pos is used for tracing output; start with the type parameter position.
    		pos := t.obj.pos
    		// use the (original or possibly instantiated) type bound position if we have one
    		if n := asNamed(bound); n != nil {
    			pos = n.obj.pos
    		}
    		computeInterfaceTypeSet(t.check, pos, ityp)
    	}
    
    	return ityp
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. src/go/types/errors.go

    		// constant initialization expression, pos is the position of
    		// the original expression, and not of the currently declared
    		// constant identifier. Use the provided errpos instead.
    		// TODO(gri) We may also want to augment the error message and
    		// refer to the position (pos) in the original expression.
    		if check.errpos != nil && check.errpos.Pos().IsValid() {
    			assert(check.iota != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. src/hash/crc32/gen_const_ppc64le.go

    // <******@****.***> found at https://github.com/antonblanchard/crc32-vpmsum.
    // The original is dual licensed under GPL and Apache 2.  As the copyright holder
    // for the work, IBM has contributed this new work under the golang license.
    
    // This code was written in Go based on the original C implementation.
    
    // This is a tool needed to generate the appropriate constants needed for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:44:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. src/math/exp.go

    func Exp(x float64) float64 {
    	if haveArchExp {
    		return archExp(x)
    	}
    	return exp(x)
    }
    
    // The original C code, the long comment, and the constants
    // below are from FreeBSD's /usr/src/lib/msun/src/e_exp.c
    // and came with this notice. The go code is a simplified
    // version of the original C.
    //
    // ====================================================
    // Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. src/index/suffixarray/sais.go

    // a subproblem at most half as big, invokes itself recursively,
    // and then runs a sequence of linear passes to turn the answer
    // for the subproblem into the answer for the original problem.
    // This gives T(N) = O(N) + T(N/2) = O(N) + O(N/2) + O(N/4) + ... = O(N).
    //
    // The outline of the code, with the forward and backward scans
    // through O(N)-sized arrays called out, is:
    //
    // sais_I_N
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  9. src/go/printer/example_test.go

    	// file set fset.
    	funcAST, fset := parseFunc("example_test.go", "printSelf")
    
    	// Print the function body into buffer buf.
    	// The file set is provided to the printer so that it knows
    	// about the original source formatting and can add additional
    	// line breaks where they were present in the source.
    	var buf bytes.Buffer
    	printer.Fprint(&buf, fset, funcAST.Body)
    
    	// Remove braces {} enclosing the function body, unindent,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:55:02 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typeset.go

    	// if a method is embedded via multiple overlapping embedded interfaces, we
    	// don't provide a guarantee which "original m" got chosen for the embedding
    	// interface. See also go.dev/issue/34421.
    	//
    	// If we don't care to provide this identity guarantee anymore, instead of
    	// reusing the original method in embeddings, we can clone the method's Func
    	// Object and give it the position of a corresponding embedded interface. Then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top