Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for indexlit (0.2 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/cover/testdata/main.go

    	index := -1
    	indexLo := uint32(1e9)
    	for i := range coverTest.Count {
    		lo, hi := coverTest.Pos[3*i], coverTest.Pos[3*i+1]
    		if lo == line && line == hi {
    			return coverTest.Count[i], i
    		}
    		// Choose the earliest match (the counters are in unpredictable order).
    		if lo <= line && line <= hi && indexLo > lo {
    			index = i
    			indexLo = lo
    		}
    	}
    	if index == -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 16:40:40 UTC 2016
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc

          value_eq.getRhs() != body.getArgument(2))
        return failure();
    
      mhlo::CompareOp index_lt = llvm::dyn_cast_or_null<mhlo::CompareOp>(
          index_and.getRhs().getDefiningOp());
      if (!index_lt ||
          index_lt.getComparisonDirection() != mhlo::ComparisonDirection::LT ||
          index_lt.getLhs() != body.getArgument(1) ||
          index_lt.getRhs() != body.getArgument(3))
        return failure();
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/CharMatcher.java

       * #matches} for each character.
       *
       * @param sequence the character sequence to examine from the beginning
       * @return an index, or {@code -1} if no character matches
       */
      public int indexIn(CharSequence sequence) {
        return indexIn(sequence, 0);
      }
    
      /**
       * Returns the index of the first matching BMP character in a character sequence, starting from a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/runtime_metadata.fbs

    // }
    table HardwareMetadata {
      // List of different hardwares this model can use.
      hardware_name:[string];
    }
    
    // Metadata for a single Op.
    table OpMetadata {
      // Node index in the corresponding subgraph.
      index:int;
      // The hardware suggested for inference.
      // This will correspond to the index in the hardware_name field in the
      // hardware metadata.
      hardware:uint8;
      // The estimated costs for the given op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 21 01:22:53 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/CharMatcher.java

       * #matches} for each character.
       *
       * @param sequence the character sequence to examine from the beginning
       * @return an index, or {@code -1} if no character matches
       */
      public int indexIn(CharSequence sequence) {
        return indexIn(sequence, 0);
      }
    
      /**
       * Returns the index of the first matching BMP character in a character sequence, starting from a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/plugin/internal/DefaultPluginIdTest.groovy

    import static DefaultPluginId.validate
    
    class DefaultPluginIdTest extends Specification {
    
        def "test validation matcher"() {
            expect:
            DefaultPluginId.INVALID_PLUGIN_ID_CHAR_MATCHER.indexIn(input) == index
    
            where:
            input     | index
            "foo"     | -1
            "f o"     | 1
            "foo.bür" | 5
            "123"     | -1
            "FOO.bar" | -1
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 24 07:29:33 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/plugin/use/internal/DefaultPluginId.java

            } else if (value.contains(SEPARATOR + SEPARATOR)) {
                throw new InvalidPluginIdException(value, DOUBLE_SEPARATOR);
            } else {
                int invalidCharIndex = INVALID_PLUGIN_ID_CHAR_MATCHER.indexIn(value);
                if (invalidCharIndex >= 0) {
                    char invalidChar = value.charAt(invalidCharIndex);
                    throw new InvalidPluginIdException(value, invalidPluginIdCharMessage(invalidChar));
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 14 10:16:36 UTC 2017
    - 4K bytes
    - Viewed (0)
Back to top