Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for isMnt (0.05 sec)

  1. 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)
  2. 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)
  3. test/named.go

    	isInt(2 * i)
    	asInt(i * i)
    	isInt(i * i)
    	i *= 2
    	asInt(i / 5)
    	isInt(i / 5)
    	asInt(5 / i)
    	isInt(5 / i)
    	asInt(i / i)
    	isInt(i / i)
    	i /= 2
    	asInt(i % 5)
    	isInt(i % 5)
    	asInt(5 % i)
    	isInt(5 % i)
    	asInt(i % i)
    	isInt(i % i)
    	i %= 2
    	asInt(i & 5)
    	isInt(i & 5)
    	asInt(5 & i)
    	isInt(5 & i)
    	asInt(i & i)
    	isInt(i & i)
    	i &= 2
    	asInt(i &^ 5)
    	isInt(i &^ 5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/universe.go

    	// simple aliases
    	SimType[TMAP] = TPTR
    	SimType[TCHAN] = TPTR
    	SimType[TFUNC] = TPTR
    	SimType[TUNSAFEPTR] = TPTR
    
    	for et := TINT8; et <= TUINT64; et++ {
    		IsInt[et] = true
    	}
    	IsInt[TINT] = true
    	IsInt[TUINT] = true
    	IsInt[TUINTPTR] = true
    
    	IsFloat[TFLOAT32] = true
    	IsFloat[TFLOAT64] = true
    
    	IsComplex[TCOMPLEX64] = true
    	IsComplex[TCOMPLEX128] = true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/text/template/parse/node.go

    			n.Float64 = f
    			// If a floating-point extraction succeeded, extract the int if needed.
    			if !n.IsInt && float64(int64(f)) == f {
    				n.IsInt = true
    				n.Int64 = int64(f)
    			}
    			if !n.IsUint && float64(uint64(f)) == f {
    				n.IsUint = true
    				n.Uint64 = uint64(f)
    			}
    		}
    	}
    	if !n.IsInt && !n.IsUint && !n.IsFloat {
    		return nil, fmt.Errorf("illegal number syntax: %q", text)
    	}
    	return n, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/math/big/rat_test.go

    	}
    }
    
    func TestIsInt(t *testing.T) {
    	one := NewInt(1)
    	for _, a := range setStringTests {
    		x, ok := new(Rat).SetString(a.in)
    		if !ok {
    			continue
    		}
    		i := x.IsInt()
    		e := x.Denom().Cmp(one) == 0
    		if i != e {
    			t.Errorf("got IsInt(%v) == %v; want %v", x, i, e)
    		}
    	}
    }
    
    func TestRatAbs(t *testing.T) {
    	zero := new(Rat)
    	for _, a := range setStringTests {
    		x, ok := new(Rat).SetString(a.in)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtTypeInfoProvider.kt

        public val KaType.isUnit: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.UNIT) }
        public val KaType.isInt: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.INT) }
        public val KaType.isLong: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.LONG) }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. src/math/big/ratmarsh.go

    	z.a.abs = z.a.abs.setBytes(buf[j:i])
    	z.b.abs = z.b.abs.setBytes(buf[i:])
    	return nil
    }
    
    // MarshalText implements the [encoding.TextMarshaler] interface.
    func (x *Rat) MarshalText() (text []byte, err error) {
    	if x.IsInt() {
    		return x.a.MarshalText()
    	}
    	return x.marshal(), nil
    }
    
    // UnmarshalText implements the [encoding.TextUnmarshaler] interface.
    func (z *Rat) UnmarshalText(text []byte) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top