Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 246 for shifts (0.21 sec)

  1. src/cmd/compile/internal/ppc64/ssa.go

    	case ssa.OpPPC64CLRLSLWI:
    		r := v.Reg()
    		r1 := v.Args[0].Reg()
    		shifts := v.AuxInt
    		p := s.Prog(v.Op.Asm())
    		// clrlslwi ra,rs,mb,sh will become rlwinm ra,rs,sh,mb-sh,31-sh as described in ISA
    		p.From = obj.Addr{Type: obj.TYPE_CONST, Offset: ssa.GetPPC64Shiftmb(shifts)}
    		p.AddRestSourceConst(ssa.GetPPC64Shiftsh(shifts))
    		p.Reg = r1
    		p.To.Type = obj.TYPE_REG
    		p.To.Reg = r
    
    	case ssa.OpPPC64CLRLSLDI:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  2. src/runtime/mcentral.go

    	size := uintptr(class_to_size[c.spanclass.sizeclass()])
    
    	s := mheap_.alloc(npages, c.spanclass)
    	if s == nil {
    		return nil
    	}
    
    	// Use division by multiplication and shifts to quickly compute:
    	// n := (npages << _PageShift) / size
    	n := s.divideByElemSize(npages << _PageShift)
    	s.limit = s.base() + size*n
    	s.initHeapBits(false)
    	return s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/expr.go

    	case *Map:
    		return "map"
    	case *Chan:
    		return "chan"
    	default:
    		return check.sprintf("%s", typ) // catch-all
    	}
    }
    
    // If e != nil, it must be the shift expression; it may be nil for non-constant shifts.
    func (check *Checker) shift(x, y *operand, e syntax.Expr, op syntax.Operator) {
    	// TODO(gri) This function seems overly complex. Revisit.
    
    	var xval constant.Value
    	if x.mode == constant_ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (Max(64|32)F <t> x y) => (Neg(64|32)F <t> (Min(64|32)F <t> (Neg(64|32)F <t> x) (Neg(64|32)F <t> y)))
    
    (CvtBoolToUint8 ...) => (Copy ...)
    
    // Lowering shifts
    // Unsigned shifts need to return 0 if shift amount is >= width of shifted value.
    //   result = (arg << shift) & (shift >= argbits ? 0 : 0xffffffffffffffff)
    (Lsh64x(64|32|16|8) <t> x y) && !shiftIsBounded(v) => (ANDQ (SHLQ <t> x y) (SBBQcarrymask <t> (CMP(Q|L|W|B)const y [64])))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/memcombine.go

    		}
    	}
    
    	// Check for reads in little-endian or big-endian order.
    	shift0 := r[0].shift
    	isLittleEndian := true
    	for i := int64(0); i < n; i++ {
    		if r[i].shift != shift0+i*size*8 {
    			isLittleEndian = false
    			break
    		}
    	}
    	isBigEndian := true
    	for i := int64(0); i < n; i++ {
    		if r[i].shift != shift0-i*size*8 {
    			isBigEndian = false
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (SRLI <t> [x] (MOVWUreg y)) && x >= 0 && x <= 31 => (SRLIW <t> [int64(x)] y)
    
    // Replace right shifts that exceed size of signed type.
    (SRAI <t> [x] (MOVBreg y)) && x >=  8 => (SRAI  [63] (SLLI <t> [56] y))
    (SRAI <t> [x] (MOVHreg y)) && x >= 16 => (SRAI  [63] (SLLI <t> [48] y))
    (SRAI <t> [x] (MOVWreg y)) && x >= 32 => (SRAIW [31] y)
    
    // Eliminate right shifts that exceed size of unsigned type.
    (SRLI <t> [x] (MOVBUreg y)) && x >=  8 => (MOVDconst <t> [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/asm.go

    		} else {
    			p.errorf("bad addr size for DATA argument: %d", sz)
    		}
    	}
    }
    
    // asmGlobl assembles a GLOBL pseudo-op.
    // GLOBL shifts<>(SB),8,$256
    // GLOBL shifts<>(SB),$256
    func (p *Parser) asmGlobl(operands [][]lex.Token) {
    	if len(operands) != 2 && len(operands) != 3 {
    		p.errorf("expect two or three operands for GLOBL")
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. src/compress/bzip2/bzip2.go

    	}
    
    	for i := range tt {
    		b := tt[i] & 0xff
    		tt[c[b]] |= uint32(i) << 8
    		c[b]++
    	}
    
    	return tt[origPtr] >> 8
    }
    
    // This is a standard CRC32 like in hash/crc32 except that all the shifts are reversed,
    // causing the bits in the input to be processed in the reverse of the usual order.
    
    var crctab [256]uint32
    
    func init() {
    	const poly = 0x04C11DB7
    	for i := range crctab {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. operator/cmd/mesh/install.go

    	})
    	if err != nil {
    		return err
    	}
    	// If there is no default webhook but a revisioned default webhook exists,
    	// and we are installing a new IOP with default semantics, the default webhook shifts.
    	if exists && len(mwhs.Items) == 0 && iop.Spec.GetRevision() == "" {
    		p.Println("The default revision has been updated to point to this installation.")
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:35 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. test/codegen/arithmetic.go

    		d = divd / divr
    		// amd64:-"JMP"
    		// 386:-"JMP"
    		e = divd % divr
    		d += e
    	}
    	return d, e
    }
    
    // Check that len() and cap() calls divided by powers of two are
    // optimized into shifts and ands
    
    func LenDiv1(a []int) int {
    	// 386:"SHRL\t[$]10"
    	// amd64:"SHRQ\t[$]10"
    	// arm64:"LSR\t[$]10",-"SDIV"
    	// arm:"SRL\t[$]10",-".*udiv"
    	// ppc64x:"SRD"\t[$]10"
    	return len(a) / 1024
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top