Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for swift (0.17 sec)

  1. src/cmd/asm/internal/arch/arm64.go

    		}
    	}
    	return 0, false
    }
    
    // ARM64RegisterShift constructs an ARM64 register with shift operation.
    func ARM64RegisterShift(reg, op, count int16) (int64, error) {
    	// the base register of shift operations must be general register.
    	if reg > arm64.REG_R31 || reg < arm64.REG_R0 {
    		return 0, errors.New("invalid register for shift operation")
    	}
    	return int64(reg&31)<<16 | int64(op)<<22 | int64(uint16(count)), nil
    }
    
    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)
  2. src/cmd/asm/internal/lex/lex.go

    	// a rune/ScanToken value for them - ugly but simple.
    	LSH          ScanToken = -1000 - iota // << Left shift.
    	RSH                                   // >> Logical right shift.
    	ARR                                   // -> Used on ARM for shift type 3, arithmetic right shift.
    	ROT                                   // @> Used on ARM for shift type 4, rotate right.
    	Include                               // included file started here
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. src/archive/zip/writer.go

    		// local character encoding. Most encoding are compatible with a large
    		// subset of CP-437, which itself is ASCII-like.
    		//
    		// Forbid 0x7e and 0x5c since EUC-KR and Shift-JIS replace those
    		// characters with localized currency and overline characters.
    		if r < 0x20 || r > 0x7d || r == 0x5c {
    			if !utf8.ValidRune(r) || (r == utf8.RuneError && size == 1) {
    				return false, false
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. cmd/metacache-stream_test.go

    "src/compress/flate/testdata/huffman-shifts.wb.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.dyn.expect", "src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.golden", "src/compress/flate/testdata/huffman-text-shift.in", "src/compress/flate/testdata/huffman-text-shift.wb.expect", "src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput", "src/compress/flate/testdata/huffman-text.dyn.expect", "src/compress/flate/te...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  5. cmd/metacache-entries_test.go

    "src/compress/flate/testdata/huffman-shifts.wb.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.dyn.expect", "src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.golden", "src/compress/flate/testdata/huffman-text-shift.in", "src/compress/flate/testdata/huffman-text-shift.wb.expect", "src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput", "src/compress/flate/testdata/huffman-text.dyn.expect", "src/compress/flate/te...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 31.6K bytes
    - Viewed (0)
  6. src/archive/zip/writer_test.go

    			comment: "in the 世界",
    			flags:   0x808,
    		},
    		{
    			name:    "the replacement rune is �",
    			comment: "the replacement rune is �",
    			flags:   0x808,
    		},
    		{
    			// Name is Japanese encoded in Shift JIS.
    			name:    "\x93\xfa\x96{\x8c\xea.txt",
    			comment: "in the 世界",
    			flags:   0x008, // UTF-8 must not be set
    		},
    	}
    
    	// write a zip file
    	buf := new(bytes.Buffer)
    	w := NewWriter(buf)
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  7. src/archive/zip/reader_test.go

    				Content: []byte{},
    				Mode:    0644,
    				// Name is valid UTF-8, but format does not have UTF-8 flag set.
    				// We don't do UTF-8 detection for multi-byte runes due to
    				// false-positives with other encodings (e.g., Shift-JIS).
    				// Format says encoding is not UTF-8, so we trust it.
    				NonUTF8:  true,
    				Modified: time.Date(2017, 11, 6, 13, 9, 27, 0, timeZone(-8*time.Hour)),
    			},
    		},
    	},
    	{
    		Name: "utf8-osx.zip",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/parse.go

    			}
    		case lex.LSH:
    			p.next()
    			shift := p.factor()
    			if int64(shift) < 0 {
    				p.errorf("negative left shift count")
    			}
    			return value << shift
    		case lex.RSH:
    			p.next()
    			shift := p.term()
    			if int64(shift) < 0 {
    				p.errorf("negative right shift count")
    			}
    			if int64(value) < 0 {
    				p.errorf("right shift of value with high bit set")
    			}
    			value >>= shift
    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)
  9. src/cmd/asm/internal/asm/expr_test.go

    	{"3%0", "modulo by zero"},
    	{"(1<<63)%0", "modulo of value with high bit set"},
    	{"3<<-4", "negative left shift count"},
    	{"3<<(1<<63)", "negative left shift count"},
    	{"3>>-4", "negative right shift count"},
    	{"3>>(1<<63)", "negative right shift count"},
    	{"(1<<63)>>2", "right shift of value with high bit set"},
    	{"(1<<62)>>2", ""},
    	{`'\x80'`, "illegal UTF-8 encoding for character constant"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  10. src/bufio/scan.go

    		// If we've already hit EOF or an I/O error, we are done.
    		if s.err != nil {
    			// Shut it down.
    			s.start = 0
    			s.end = 0
    			return false
    		}
    		// Must read more data.
    		// First, shift data to beginning of buffer if there's lots of empty space
    		// or space is needed.
    		if s.start > 0 && (s.end == len(s.buf) || s.start > len(s.buf)/2) {
    			copy(s.buf, s.buf[s.start:s.end])
    			s.end -= s.start
    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)
Back to top