Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for MemBytes (0.19 sec)

  1. src/cmd/vendor/golang.org/x/arch/x86/x86asm/plan9x.go

    	switch last & 0xFF {
    	case 0, 0x66, 0x67:
    		// ignore
    	default:
    		prefix += last.String() + " "
    	}
    
    	op := inst.Op.String()
    	if plan9Suffix[inst.Op] {
    		s := inst.DataSize
    		if inst.MemBytes != 0 {
    			s = inst.MemBytes * 8
    		} else if inst.Args[1] == nil { // look for register-only 64-bit instruction, like PUSHQ AX
    			if r, ok := inst.Args[0].(Reg); ok && RAX <= r && r <= R15 {
    				s = 64
    			}
    		}
    		switch s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/arch/x86/x86asm/gnu.go

    				op += byteSizeSuffix(inst.DataSize / 8)
    			} else if inst.Mode == 64 {
    				op += "q"
    			} else {
    				op += byteSizeSuffix(inst.MemBytes)
    			}
    
    		default:
    			if isFloat(inst.Op) {
    				// I can't explain any of this, but it's what libopcodes does.
    				switch inst.MemBytes {
    				default:
    					if (inst.Op == FLD || inst.Op == FSTP) && isMem(inst.Args[0]) {
    						op += "t"
    					}
    				case 4:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/arch/x86/x86asm/decode.go

    			xArgM80bcd,
    			xArgM80dec,
    			xArgM80fp,
    			xArgM94108byte,
    			xArgMem:
    			if !haveMem {
    				inst.Op = 0
    				break Decode
    			}
    			inst.Args[narg] = mem
    			inst.MemBytes = int(memBytes[decodeOp(x)])
    			if mem.Base == RIP {
    				inst.PCRel = displen
    				inst.PCRelOff = dispoff
    			}
    			narg++
    
    		case xArgPtr16colon16:
    			inst.Args[narg] = Imm(immc >> 16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 45.1K bytes
    - Viewed (0)
  4. src/testing/benchmark.go

    	return int64(r.MemAllocs) / int64(r.N)
    }
    
    // AllocedBytesPerOp returns the "B/op" metric,
    // which is calculated as r.MemBytes / r.N.
    func (r BenchmarkResult) AllocedBytesPerOp() int64 {
    	if v, ok := r.Extra["B/op"]; ok {
    		return int64(v)
    	}
    	if r.N <= 0 {
    		return 0
    	}
    	return int64(r.MemBytes) / int64(r.N)
    }
    
    // String returns a summary of the benchmark results.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/arch/x86/x86asm/intel.go

    		}
    		if Imm(int32(a)) == a {
    			return fmt.Sprintf("%#x", int64(a))
    		}
    		return fmt.Sprintf("%#x", uint64(a))
    	case Mem:
    		if a.Base == EIP {
    			a.Base = RIP
    		}
    		prefix := ""
    		switch inst.MemBytes {
    		case 1:
    			prefix = "byte "
    		case 2:
    			prefix = "word "
    		case 4:
    			prefix = "dword "
    		case 8:
    			prefix = "qword "
    		case 16:
    			prefix = "xmmword "
    		case 32:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 22:23:32 UTC 2017
    - 11.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/arch/x86/x86asm/inst.go

    	Mode     int      // processor mode in bits: 16, 32, or 64
    	AddrSize int      // address size in bits: 16, 32, or 64
    	DataSize int      // operand size in bits: 16, 32, or 64
    	MemBytes int      // size of memory argument in bytes: 1, 2, 4, 8, 16, and so on.
    	Len      int      // length of encoded instruction in bytes
    	PCRel    int      // length of PC-relative address in instruction encoding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. src/testing/sub_test.go

    			// simply verify the lower bound.
    			if got := b.result.MemAllocs; got < 2 {
    				t.Errorf("MemAllocs was %v; want 2", got)
    			}
    			if got := b.result.MemBytes; got < 2*bufSize {
    				t.Errorf("MemBytes was %v; want %v", got, 2*bufSize)
    			}
    		},
    	}, {
    		desc: "cleanup is called",
    		f: func(b *B) {
    			var calls, cleanups, innerCalls, innerCleanups int
    			b.Run("", func(b *B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  8. src/internal/fuzz/worker.go

    func (ws *workerServer) minimizeInput(ctx context.Context, vals []any, mem *sharedMem, args minimizeArgs) (success bool, retErr error) {
    	keepCoverage := args.KeepCoverage
    	memBytes := mem.valueRef()
    	bPtr := &memBytes
    	count := &mem.header().count
    	shouldStop := func() bool {
    		return ctx.Err() != nil ||
    			(args.Limit > 0 && *count >= args.Limit)
    	}
    	if shouldStop() {
    		return false, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  9. pkg/test/csrctrl/signer/signer.go

    		return nil, fmt.Errorf("error decoding DER certificate bytes: %s", err.Error())
    	}
    
    	pemBytes := bytes.NewBuffer([]byte{})
    	err = pem.Encode(pemBytes, &pem.Block{Type: "CERTIFICATE", Bytes: der})
    	if err != nil {
    		return nil, fmt.Errorf("error encoding certificate PEM: %s", err.Error())
    	}
    
    	intermediateCerts, err := util.AppendRootCerts(pemBytes.Bytes(), s.caProvider.caIntermediate.CertFile)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 03 18:57:19 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  10. pkg/apis/certificates/v1/helpers.go

    */
    
    package v1
    
    import (
    	"crypto/x509"
    	"encoding/pem"
    	"errors"
    )
    
    // ParseCSR decodes a PEM encoded CSR
    func ParseCSR(pemBytes []byte) (*x509.CertificateRequest, error) {
    	// extract PEM from request object
    	block, _ := pem.Decode(pemBytes)
    	if block == nil || block.Type != "CERTIFICATE REQUEST" {
    		return nil, errors.New("PEM block type must be CERTIFICATE REQUEST")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 05 04:47:24 UTC 2020
    - 1K bytes
    - Viewed (0)
Back to top