Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for hector (0.19 sec)

  1. src/archive/tar/strconv_test.go

    		{math.MaxInt64, 12, true},
    		{0, 12, true},
    		{math.MinInt64, 12, true},
    	}
    
    	for _, v := range vectors {
    		ok := fitsInBase256(v.width, v.in)
    		if ok != v.ok {
    			t.Errorf("fitsInBase256(%d, %d): got %v, want %v", v.in, v.width, ok, v.ok)
    		}
    	}
    }
    
    func TestParseNumeric(t *testing.T) {
    	vectors := []struct {
    		in   string
    		want int64
    		ok   bool
    	}{
    		// Test base-256 (binary) encoded values.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/s390x.s

    	KLMD	R2, R8                 // b93f0028
    	KIMD	R0, R4                 // b93e0004
    	KDSA	R0, R8                 // b93a0008
    	KMA	R2, R6, R4              // b9296024
    	KMCTR   R2, R6, R4              // b92d6024
    
    	// vector add and sub instructions
    	VAB	V3, V4, V4              // e743400000f3
    	VAH	V3, V4, V4              // e743400010f3
    	VAF	V3, V4, V4              // e743400020f3
    	VAG	V3, V4, V4              // e743400030f3
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 22 03:55:32 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    Given defined type <code>Point</code>, the declarations
    </p>
    
    <pre>
    func (p *Point) Length() float64 {
    	return math.Sqrt(p.x * p.x + p.y * p.y)
    }
    
    func (p *Point) Scale(factor float64) {
    	p.x *= factor
    	p.y *= factor
    }
    </pre>
    
    <p>
    bind the methods <code>Length</code> and <code>Scale</code>,
    with receiver type <code>*Point</code>,
    to the base type <code>Point</code>.
    </p>
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/amd64error.s

    	MOVL (AX)(X0*1), AX             // ERROR "invalid instruction"
    	MOVL (AX)(Y0*1), AX             // ERROR "invalid instruction"
    	// VSIB/VM is invalid without vector index.
    	// TODO(quasilyte): improve error message (#21860).
    	// "invalid VSIB address (missing vector index)"
    	VPGATHERQQ Y2, (BP), Y1         // ERROR "invalid instruction"
    	// AVX2GATHER mask/index/dest #UD cases.
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 14 00:03:57 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/parse.go

    	return 0
    }
    
    // term = factor | factor ('*' | '/' | '%' | '>>' | '<<' | '&') factor
    func (p *Parser) term() uint64 {
    	value := p.factor()
    	for {
    		switch p.peek() {
    		case '*':
    			p.next()
    			value *= p.factor()
    		case '/':
    			p.next()
    			if int64(value) < 0 {
    				p.errorf("divide of value with high bit set")
    			}
    			divisor := p.factor()
    			if divisor == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  6. doc/go_spec.html

    of Extended Backus-Naur Form (EBNF):
    </p>
    
    <pre class="grammar">
    Syntax      = { Production } .
    Production  = production_name "=" [ Expression ] "." .
    Expression  = Term { "|" Term } .
    Term        = Factor { Factor } .
    Factor      = production_name | token [ "…" token ] | Group | Option | Repetition .
    Group       = "(" Expression ")" .
    Option      = "[" Expression "]" .
    Repetition  = "{" Expression "}" .
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  7. src/archive/tar/reader_test.go

    	"bytes"
    	"compress/bzip2"
    	"crypto/md5"
    	"errors"
    	"fmt"
    	"io"
    	"math"
    	"os"
    	"path"
    	"reflect"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestReader(t *testing.T) {
    	vectors := []struct {
    		file    string    // Test input file
    		headers []*Header // Expected output headers
    		chksums []string  // MD5 checksum of files, leave as nil if not checked
    		err     error     // Expected error to occur
    	}{{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  8. doc/asm.html

    </p>
    
    <p>
    If a vector instruction takes a length or an index as an argument then it will be the
    first argument.
    For example, <code>VLEIF</code> <code>$1,</code> <code>$16,</code> <code>V2</code> will load
    the value sixteen into index one of <code>V2</code>.
    Care should be taken when using vector instructions to ensure that they are available at
    runtime.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  9. src/archive/tar/tar_test.go

    	f.ops = f.ops[1:]
    	return f.pos, nil
    }
    
    func equalSparseEntries(x, y []sparseEntry) bool {
    	return (len(x) == 0 && len(y) == 0) || reflect.DeepEqual(x, y)
    }
    
    func TestSparseEntries(t *testing.T) {
    	vectors := []struct {
    		in   []sparseEntry
    		size int64
    
    		wantValid    bool          // Result of validateSparseEntries
    		wantAligned  []sparseEntry // Result of alignSparseEntries
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  10. src/bytes/compare_test.go

    	// difference that for some j, a[j]>b[j] and a[j+1]<b[j+1]. If the implementation
    	// compares large chunks with wrong endianness, it gets wrong result.
    	// no vector register is larger than 512 bytes for now
    	const maxLength = 512
    	a := make([]byte, maxLength)
    	b := make([]byte, maxLength)
    	// randomish but deterministic data. No 0 or 255.
    	for i := 0; i < maxLength; i++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
Back to top