Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Width (0.21 sec)

  1. src/archive/tar/strconv_test.go

    		{math.MinInt64, 9, true},
    		{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
    	}{
    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/bufio/bufio_test.go

    		// While not recommended, it is valid to append to a shifted buffer.
    		// This forces Write to copy the input.
    		if rn.Intn(8) == 0 && cap(b) > 0 {
    			b = b[1:1:cap(b)]
    		}
    
    		// Append a random integer of varying width.
    		n := int64(rn.Intn(1 << rn.Intn(30)))
    		want = append(strconv.AppendInt(want, n, 10), ' ')
    		b = append(strconv.AppendInt(b, n, 10), ' ')
    		w.Write(b)
    	}
    	w.Flush()
    
    	if !bytes.Equal(got.Bytes(), want) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    <p>
    For unsigned integer values, the operations <code>+</code>,
    <code>-</code>, <code>*</code>, and <code>&lt;&lt;</code> are
    computed modulo 2<sup><i>n</i></sup>, where <i>n</i> is the bit width of
    the <a href="#Numeric_types">unsigned integer</a>'s type.
    Loosely speaking, these unsigned integer operations
    discard high bits upon overflow, and programs may rely on "wrap around".
    </p>
    <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. doc/next/1-intro.md

    <!--
    NOTE: In this document and others in this directory, the convention is to
    set fixed-width phrases with non-fixed-width spaces, as in
    `hello` `world`.
    -->
    
    <style>
      main ul li { margin: 0.5em 0; }
    </style>
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:44:53 GMT 2024
    - 256 bytes
    - Viewed (0)
  5. src/bufio/scan.go

    	// Skip leading spaces.
    	start := 0
    	for width := 0; start < len(data); start += width {
    		var r rune
    		r, width = utf8.DecodeRune(data[start:])
    		if !isSpace(r) {
    			break
    		}
    	}
    	// Scan until space, marking end of word.
    	for width, i := 0, start; i < len(data); i += width {
    		var r rune
    		r, width = utf8.DecodeRune(data[i:])
    		if isSpace(r) {
    			return i + width, data[start:i], nil
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. doc/initial/1-intro.md

    <!--
    NOTE: In this document and others in this directory, the convention is to
    set fixed-width phrases with non-fixed-width spaces, as in
    `hello` `world`.
    -->
    
    <style>
      main ul li { margin: 0.5em 0; }
    </style>
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jan 22 18:07:49 GMT 2024
    - 256 bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    				}
    			}
    			return -1
    		}
    	}
    	var width int
    	for i := 0; i < len(s); i += width {
    		r := rune(s[i])
    		if r < utf8.RuneSelf {
    			if bytealg.IndexByteString(chars, s[i]) >= 0 {
    				return i
    			}
    			width = 1
    			continue
    		}
    		r, width = utf8.DecodeRune(s[i:])
    		if r != utf8.RuneError {
    			// r is 2 to 4 bytes
    			if len(chars) == width {
    				if chars == string(r) {
    					return i
    				}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/testdata/armerror.s

    	MOVFW	R1, CPSR           // ERROR "illegal combination"
    	BFX	$12, $41, R2, R3   // ERROR "wrong width or LSB"
    	BFX	$12, $-2, R2       // ERROR "wrong width or LSB"
    	BFXU	$40, $4, R2, R3    // ERROR "wrong width or LSB"
    	BFXU	$-40, $4, R2       // ERROR "wrong width or LSB"
    	BFX	$-2, $4, R2, R3    // ERROR "wrong width or LSB"
    	BFXU	$4, R2, R5, R2     // ERROR "missing or wrong LSB"
    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)
  9. src/cmd/asm/internal/arch/arm.go

    		return true
    	}
    	return false
    }
    
    // IsARMBFX reports whether the op (as defined by an arm.A* constant) is one the
    // BFX-like instructions which are in the form of "op $width, $LSB, (Reg,) Reg".
    func IsARMBFX(op obj.As) bool {
    	switch op {
    	case arm.ABFX, arm.ABFXU, arm.ABFC, arm.ABFI:
    		return true
    	}
    	return false
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Nov 18 17:59:44 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  10. doc/asm.html

    corresponding memory.
    The memory not explicitly initialized is zeroed.
    The general form of the <code>DATA</code> directive is
    
    <pre>
    DATA	symbol+offset(SB)/width, value
    </pre>
    
    <p>
    which initializes the symbol memory at the given offset and width with the given value.
    The <code>DATA</code> directives for a given symbol must be written with increasing offsets.
    </p>
    
    <p>
    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)
Back to top