Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for isInt (0.04 sec)

  1. src/text/template/exec.go

    	case constant.IsFloat &&
    		!isHexInt(constant.Text) && !isRuneInt(constant.Text) &&
    		strings.ContainsAny(constant.Text, ".eEpP"):
    		return reflect.ValueOf(constant.Float64)
    
    	case constant.IsInt:
    		n := int(constant.Int64)
    		if int64(n) != constant.Int64 {
    			s.errorf("%s overflows int", constant.Text)
    		}
    		return reflect.ValueOf(n)
    
    	case constant.IsUint:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/range.go

    	if v1 == nil && v2 != nil {
    		base.Fatalf("walkRange: v2 != nil while v1 == nil")
    	}
    
    	var body []ir.Node
    	var init []ir.Node
    	switch k := t.Kind(); {
    	default:
    		base.Fatalf("walkRange")
    
    	case types.IsInt[k]:
    		hv1 := typecheck.TempAt(base.Pos, ir.CurFunc, t)
    		hn := typecheck.TempAt(base.Pos, ir.CurFunc, t)
    
    		init = append(init, ir.NewAssignStmt(base.Pos, hv1, nil))
    		init = append(init, ir.NewAssignStmt(base.Pos, hn, a))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  3. src/math/big/float_test.go

    		"0.000000001e+9 int",
    		"1.2345e200 int",
    		"Inf",
    		"+Inf",
    		"-Inf",
    	} {
    		s := strings.TrimSuffix(test, " int")
    		want := s != test
    		if got := makeFloat(s).IsInt(); got != want {
    			t.Errorf("%s.IsInt() == %t", s, got)
    		}
    	}
    }
    
    func fromBinary(s string) int64 {
    	x, err := strconv.ParseInt(s, 2, 64)
    	if err != nil {
    		panic(err)
    	}
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/order.go

    		n.X = o.expr(n.X, nil)
    
    		orderBody := true
    		xt := typecheck.RangeExprType(n.X.Type())
    		switch k := xt.Kind(); {
    		default:
    			base.Fatalf("order.stmt range %v", n.Type())
    
    		case types.IsInt[k]:
    			// Used only once, no need to copy.
    
    		case k == types.TARRAY, k == types.TSLICE:
    			if n.Value == nil || ir.IsBlank(n.Value) {
    				// for i := range x will only use x once, to compute len(x).
    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. api/go1.5.txt

    pkg math/big, method (*Float) Int(*Int) (*Int, Accuracy)
    pkg math/big, method (*Float) Int64() (int64, Accuracy)
    pkg math/big, method (*Float) IsInf() bool
    pkg math/big, method (*Float) IsInt() bool
    pkg math/big, method (*Float) MantExp(*Float) int
    pkg math/big, method (*Float) MinPrec() uint
    pkg math/big, method (*Float) Mode() RoundingMode
    pkg math/big, method (*Float) Mul(*Float, *Float) *Float
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types/type.go

    		t.SetHasShape(true)
    	}
    	for _, f := range fields {
    		if f.Type.NotInHeap() {
    			t.SetNotInHeap(true)
    			break
    		}
    	}
    
    	return t
    }
    
    var (
    	IsInt     [NTYPE]bool
    	IsFloat   [NTYPE]bool
    	IsComplex [NTYPE]bool
    	IsSimple  [NTYPE]bool
    )
    
    var IsOrdered [NTYPE]bool
    
    // IsReflexive reports whether t has a reflexive equality operator.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  7. pkg/volume/emptydir/empty_dir.go

    	}
    	if err := ed.setupDir(dir); err != nil {
    		return err
    	}
    	// Make SetUp idempotent.
    	medium, isMnt, mountPageSize, err := ed.mountDetector.GetMountMedium(dir, ed.medium)
    	klog.V(3).Infof("pod %v: setupHugepages: medium: %s, isMnt: %v, dir: %s, err: %v", ed.pod.UID, medium, isMnt, dir, err)
    	if err != nil {
    		return err
    	}
    	// If the directory is a mountpoint with medium hugepages of the same page size,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. pkg/volume/emptydir/empty_dir_test.go

    			}
    		})
    	}
    }
    
    type testMountDetector struct {
    	pageSize *resource.Quantity
    	isMnt    bool
    	err      error
    }
    
    func (md *testMountDetector) GetMountMedium(path string, requestedMedium v1.StorageMedium) (v1.StorageMedium, bool, *resource.Quantity, error) {
    	return v1.StorageMediumHugePages, md.isMnt, md.pageSize, md.err
    }
    
    func TestSetupHugepages(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

                        || actualOsName.contains("ce"));
                isNT = !is9x;
            }
            switch (family) {
                case FAMILY_WINDOWS:
                    return isWindows;
                case FAMILY_WIN9X:
                    return isWindows && is9x;
                case FAMILY_NT:
                    return isWindows && isNT;
                case FAMILY_OS2:
                    return actualOsName.contains(FAMILY_OS2);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/Os.java

                        || actualOsName.contains("ce"));
                isNT = !is9x;
            }
            switch (family) {
                case FAMILY_WINDOWS:
                    return isWindows;
                case FAMILY_WIN9X:
                    return isWindows && is9x;
                case FAMILY_NT:
                    return isWindows && isNT;
                case FAMILY_OS2:
                    return actualOsName.contains(FAMILY_OS2);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top