Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for isSame (0.19 sec)

  1. src/bufio/scan_test.go

    			t.Errorf("#%d: termination expected at %d; got %d", n, len(test), i)
    		}
    		err := s.Err()
    		if err != nil {
    			t.Errorf("#%d: %v", n, err)
    		}
    	}
    }
    
    // Test that the rune splitter returns same sequence of runes (not bytes) as for range string.
    func TestScanRune(t *testing.T) {
    	for n, test := range scanTests {
    		buf := strings.NewReader(test)
    		s := NewScanner(buf)
    		s.Split(ScanRunes)
    		var i, runeCount int
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/arch/arm64.go

    			arm64SpecialOperand[opd.String()] = opd
    		}
    
    		// Handle some special cases.
    		specialMapping := map[string]arm64.SpecialOperand{
    			// The internal representation of CS(CC) and HS(LO) are the same.
    			"CS": arm64.SPOP_HS,
    			"CC": arm64.SPOP_LO,
    		}
    		for s, opd := range specialMapping {
    			arm64SpecialOperand[s] = opd
    		}
    	}
    	if opd, ok := arm64SpecialOperand[name]; ok {
    		return opd
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 29 09:04:58 GMT 2022
    - 10.4K bytes
    - Viewed (0)
  3. misc/cgo/gmp/gmp.go

    	x.doinit()
    	y.doinit()
    	z.doinit()
    	C.mpz_tdiv_q(&z.i[0], &x.i[0], &y.i[0])
    	return z
    }
    
    // Mod sets z = x % y and returns z.
    // Like the result of the Go % operator, z has the same sign as x.
    func (z *Int) Mod(x, y *Int) *Int {
    	x.doinit()
    	y.doinit()
    	z.doinit()
    	C.mpz_tdiv_r(&z.i[0], &x.i[0], &y.i[0])
    	return z
    }
    
    // Lsh sets z = x << s and returns z.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  4. src/cmd/api/main_test.go

    	}
    
    	context := w.context
    	if context == nil {
    		context = &build.Default
    	}
    
    	// Look in cache.
    	// If we've already done an import with the same set
    	// of relevant tags, reuse the result.
    	var key string
    	if usePkgCache {
    		if tags, ok := pkgTags[dir]; ok {
    			key = tagKey(dir, context, tags)
    			if pkg := pkgCache[key]; pkg != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  5. misc/go_android_exec/main.go

    	// directory, which will look something like
    	// "$GOROOT/src/mime/multipart" or "$GOPATH/src/golang.org/x/mobile".
    	// We extract everything after the $GOROOT or $GOPATH to run on the
    	// same relative directory on the target device.
    	importPath, isStd, modPath, modDir, err := pkgPath()
    	if err != nil {
    		return 0, err
    	}
    	var deviceCwd string
    	if isStd {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  6. src/archive/tar/reader.go

    func (tr *Reader) readOldGNUSparseMap(hdr *Header, blk *block) (sparseDatas, error) {
    	// Make sure that the input format is GNU.
    	// Unfortunately, the STAR format also has a sparse header format that uses
    	// the same type flag but has a completely different layout.
    	if blk.getFormat() != FormatGNU {
    		return nil, ErrHeader
    	}
    	hdr.Format.mayOnlyBe(FormatGNU)
    
    	var p parser
    	hdr.Size = p.parseNumeric(blk.toGNU().realSize())
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. misc/ios/go_ios_exec.go

    	// works, but only when running one binary at a time.
    	// Use a file lock to make sure only one wrapper is running at a time.
    	//
    	// The lock file is never deleted, to avoid concurrent locks on distinct
    	// files with the same path.
    	lockName := filepath.Join(os.TempDir(), "go_ios_exec-"+deviceID+".lock")
    	lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
    	if err != nil {
    		return 1, err
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  8. src/archive/tar/writer_test.go

    					"GOLANG.pkg":     "tar",
    				},
    			}, nil},
    			testClose{nil},
    		},
    	}, {
    		// Craft a theoretically valid PAX archive with global headers.
    		// The GNU and BSD tar tools do not parse these the same way.
    		//
    		// BSD tar v3.1.2 parses and ignores all global headers;
    		// the behavior is verified by researching the source code.
    		//
    		//	$ bsdtar -tvf pax-global-records.tar
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/armerror.s

    	STREX	R1, (R0), R1       // ERROR "cannot use same register as both source and destination"
    	STREX	R1, (R0), R0       // ERROR "cannot use same register as both source and destination"
    	STREXD	R0, (R2), R0       // ERROR "cannot use same register as both source and destination"
    	STREXD	R0, (R2), R1       // ERROR "cannot use same register as both source and destination"
    	STREXD	R0, (R2), R2       // ERROR "cannot use same register as both source and destination"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Nov 03 14:06:21 GMT 2017
    - 14.4K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/386.s

    // This input was created by taking the instruction productions in
    // the old assembler's (8a's) grammar and hand-writing complete
    // instructions for each rule, to guarantee we cover the same space.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT foo(SB), DUPOK|NOSPLIT, $0
    
    // LTYPE1 nonrem	{ outcode(int($1), &$2); }
    	SETCC	AX
    	SETCC	foo+4(SB)
    
    // LTYPE2 rimnon	{ outcode(int($1), &$2); }
    	DIVB	AX
    	DIVB	foo+4(SB)
    	PUSHL	$foo+4(SB)
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 18:57:21 GMT 2019
    - 2K bytes
    - Viewed (0)
Back to top