Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for indexlit (0.32 sec)

  1. src/cmd/compile/internal/typecheck/expr.go

    	}
    	return n
    }
    
    // tcSlice typechecks an OSLICE or OSLICE3 node.
    func tcSlice(n *ir.SliceExpr) ir.Node {
    	n.X = DefaultLit(Expr(n.X), nil)
    	n.Low = indexlit(Expr(n.Low))
    	n.High = indexlit(Expr(n.High))
    	n.Max = indexlit(Expr(n.Max))
    	hasmax := n.Op().IsSlice3()
    	l := n.X
    	if l.Type() == nil {
    		n.SetType(nil)
    		return n
    	}
    	if l.Type().IsArray() {
    		if !ir.IsAddressable(n.X) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/typecheck.go

    		}
    	}
    
    	return n
    }
    
    // indexlit implements typechecking of untyped values as
    // array/slice indexes. It is almost equivalent to DefaultLit
    // but also accepts untyped numeric values representable as
    // value of type int (see also checkmake for comparison).
    // The result of indexlit MUST be assigned back to n, e.g.
    //
    //	n.Left = indexlit(n.Left)
    func indexlit(n ir.Node) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. src/crypto/internal/edwards25519/scalar.go

    	for pos < 256 {
    		indexU64 := pos / 64
    		indexBit := pos % 64
    		var bitBuf uint64
    		if indexBit < 64-w {
    			// This window's bits are contained in a single u64
    			bitBuf = digits[indexU64] >> indexBit
    		} else {
    			// Combine the current 64 bits with bits from the next 64
    			bitBuf = (digits[indexU64] >> indexBit) | (digits[1+indexU64] << (64 - indexBit))
    		}
    
    		// Add carry into the current window
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/order.go

    			ir.SameSafeExpr(n.X, n.Y.(*ir.CallExpr).Args[0])
    
    		n.X = o.expr(n.X, nil)
    		if mapAppend {
    			indexLHS := n.X.(*ir.IndexExpr)
    			indexLHS.X = o.cheapExpr(indexLHS.X)
    			indexLHS.Index = o.cheapExpr(indexLHS.Index)
    
    			call := n.Y.(*ir.CallExpr)
    			arg0 := call.Args[0]
    			// ir.SameSafeExpr skips OCONVNOPs, so we must do the same here (#66096).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Splitter.java

                return new SplittingIterator(splitter, toSplit) {
                  @Override
                  int separatorStart(int start) {
                    return separatorMatcher.indexIn(toSplit, start);
                  }
    
                  @Override
                  int separatorEnd(int separatorPosition) {
                    return separatorPosition + 1;
                  }
                };
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Splitter.java

                return new SplittingIterator(splitter, toSplit) {
                  @Override
                  int separatorStart(int start) {
                    return separatorMatcher.indexIn(toSplit, start);
                  }
    
                  @Override
                  int separatorEnd(int separatorPosition) {
                    return separatorPosition + 1;
                  }
                };
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/MediaType.java

        }
    
        @CanIgnoreReturnValue
        String consumeTokenIfPresent(CharMatcher matcher) {
          checkState(hasMore());
          int startPosition = position;
          position = matcher.negate().indexIn(input, startPosition);
          return hasMore() ? input.substring(startPosition, position) : input.substring(startPosition);
        }
    
        String consumeToken(CharMatcher matcher) {
          int startPosition = position;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 07 16:17:10 UTC 2023
    - 46.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/net/MediaType.java

        }
    
        @CanIgnoreReturnValue
        String consumeTokenIfPresent(CharMatcher matcher) {
          checkState(hasMore());
          int startPosition = position;
          position = matcher.negate().indexIn(input, startPosition);
          return hasMore() ? input.substring(startPosition, position) : input.substring(startPosition);
        }
    
        String consumeToken(CharMatcher matcher) {
          int startPosition = position;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 07 16:17:10 UTC 2023
    - 46.2K bytes
    - Viewed (0)
Back to top