Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 155 for original (0.14 sec)

  1. test/typeparam/issue58513.go

    // function literals to plumb sub-dictionaries appropriately.
    // However, when these expressions are inlined, we were constructing
    // the function literal bodies with the inline-adjusted positions
    // instead of the original (inline-free) positions, which could lead
    // to infinite loops when unwinding the stack.
    
    package main
    
    import "runtime"
    
    func assert[_ any]() {
    	panic(0)
    }
    
    func Assert[To any]() func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 23:07:49 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/math/sqrt.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    // The original C code and the long comment below are
    // from FreeBSD's /usr/src/lib/msun/src/e_sqrt.c and
    // came with this notice. The go code is a simplified
    // version of the original C.
    //
    // ====================================================
    // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 15 17:07:57 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  3. src/regexp/syntax/make_perl_groups.pl

    	"[:upper:]",
    	"[:word:]",
    	"[:xdigit:]",
    );
    
    my @perlclasses = (
    	"\\d",
    	"\\s",
    	"\\w",
    );
    
    my %overrides = (
    	# Prior to Perl 5.18, \s did not match vertical tab.
    	# RE2 preserves that original behaviour.
    	"\\s:11" => 0,
    );
    
    sub ComputeClass($) {
      my @ranges;
      my ($class) = @_;
      my $regexp = "[$class]";
      my $start = -1;
      for (my $i=0; $i<=129; $i++) {
        if ($i == 129) { $i = 256; }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. src/crypto/ecdsa/boring.go

    // a particular key is never again modified, but that has not been a
    // stated assumption before. Just in case there is any existing code that
    // does modify the key between operations, we save the original values
    // alongside the cached BoringCrypto key and check that the real key
    // still matches before using the cached key. The theory is that the real
    // operations are significantly more expensive than the comparison.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. src/syscall/wtf8_windows.go

    // is that the conversion is lossless even for ill-formed UTF-16 strings.
    // This property allows to read an ill-formed UTF-16 string, convert it
    // to a Go string, and convert it back to the same original UTF-16 string.
    //
    // See go.dev/issues/59971 for more info.
    
    package syscall
    
    import (
    	"unicode/utf16"
    	"unicode/utf8"
    )
    
    const (
    	surr1 = 0xd800
    	surr2 = 0xdc00
    	surr3 = 0xe000
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. src/html/template/clone_test.go

    // to the copy but not to the original."
    func TestCloneThenParse(t *testing.T) {
    	t0 := Must(New("t0").Parse(`{{define "a"}}{{template "embedded"}}{{end}}`))
    	t1 := Must(t0.Clone())
    	Must(t1.Parse(`{{define "embedded"}}t1{{end}}`))
    	if len(t0.Templates())+1 != len(t1.Templates()) {
    		t.Error("adding a template to a clone added it to the original")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
  7. src/internal/weak/pointer.go

    	if ptr != nil {
    		u = runtime_registerWeakPointer(unsafe.Pointer(ptr))
    	}
    	runtime.KeepAlive(ptr)
    	return Pointer[T]{u}
    }
    
    // Strong creates a strong pointer from the weak pointer.
    // Returns nil if the original value for the weak pointer was reclaimed by
    // the garbage collector.
    // If a weak pointer points to an object with a finalizer, then Strong will
    // return nil as soon as the object's finalizer is queued for execution.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:13:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/cgotest/overlaydir.go

    			if err != nil {
    				return err
    			}
    			perm = info.Mode() & os.ModePerm
    		}
    
    		// Always copy directories (don't symlink them).
    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If the OS supports symlinks, use them instead of copying bytes.
    		if err := os.Symlink(srcPath, dstPath); err == nil {
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. test/alias2.go

    func (A0) m1()  {} // ERROR "T0\.m1 already declared|redefinition of .m1."
    func (A0) m2()  {}
    
    // Type aliases and the original type name can be used interchangeably.
    var _ A0 = T0{}
    var _ T0 = A0{}
    
    // But aliases and original types cannot be used with new types based on them.
    var _ N0 = T0{} // ERROR "cannot use T0{} \(value of type T0\) as N0 value in variable declaration"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:09:14 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. src/crypto/rsa/boring.go

    // a particular key is never again modified, but that has not been a
    // stated assumption before. Just in case there is any existing code that
    // does modify the key between operations, we save the original values
    // alongside the cached BoringCrypto key and check that the real key
    // still matches before using the cached key. The theory is that the real
    // operations are significantly more expensive than the comparison.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
Back to top