Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 215 for SetMode (0.21 sec)

  1. src/cmd/distpack/pack.go

    	// Start with files from GOROOT, filtering out non-distribution files.
    	base, err := NewArchive(goroot)
    	if err != nil {
    		log.Fatal(err)
    	}
    	base.SetTime(versionTime)
    	base.SetMode(mode)
    	base.Remove(
    		".git/**",
    		".gitattributes",
    		".github/**",
    		".gitignore",
    		"VERSION.cache",
    		"misc/cgo/*/_obj/**",
    		"**/.DS_Store",
    		"**/*.exe~", // go.dev/issue/23894
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/math/big/bits_test.go

    	if mode == ToNearestAway {
    		panic("not yet implemented")
    	}
    	if mode == ToNearestEven && rbit == 1 && (sbit == 1 || sbit == 0 && bit0 != 0) || mode == AwayFromZero {
    		// round away from zero
    		f.SetMode(ToZero).SetPrec(prec)
    		f.Add(f, Bits{int(r) + 1}.Float())
    	}
    	return f
    }
    
    // Float returns the *Float z of the smallest possible precision such that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

            }
    
            final ExtractData data = new ExtractData();
            final HttpPost httpPost = new HttpPost(url);
            final HttpEntity postEntity = MultipartEntityBuilder.create().setMode(HttpMultipartMode.BROWSER_COMPATIBLE)
                    .setCharset(Charset.forName("UTF-8")).addBinaryBody("filedata", in).build();
            httpPost.setEntity(postEntity);
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFileHelper.groovy

            if (isWindows()) {
                return
            }
            def perms = PosixFilePermissions.fromString(permissions)
            Files.setPosixFilePermissions(file.toPath(), perms)
        }
    
        void setMode(int mode) {
            // TODO: Remove this entirely and use built-in Files.setPosixFilePermissions
            def process = ["chmod", Integer.toOctalString(mode), file.absolutePath].execute()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

            return this;
        }
    
        public TestFile setMode(int mode) {
            assertExists();
            new TestFileHelper(this).setMode(mode);
            return this;
        }
    
        public int getMode() {
            assertExists();
            return new TestFileHelper(this).getMode();
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. src/math/big/floatconv.go

    // ParseFloat is like f.Parse(s, base) with f set to the given precision
    // and rounding mode.
    func ParseFloat(s string, base int, prec uint, mode RoundingMode) (f *Float, b int, err error) {
    	return new(Float).SetPrec(prec).SetMode(mode).Parse(s, base)
    }
    
    var _ fmt.Scanner = (*Float)(nil) // *Float must implement fmt.Scanner
    
    // Scan is a support routine for [fmt.Scanner]; it sets z to the value of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-packaging/src/main/java/org/gradle/caching/internal/packaging/impl/TarBuildCacheEntryPacker.java

            TarArchiveEntry entry = new TarArchiveEntry(path, true);
            entry.setSize(size);
            entry.setMode(mode);
            tarOutput.putArchiveEntry(entry);
        }
    
        @Override
        public UnpackResult unpack(CacheableEntity entity, InputStream input, OriginReader readOrigin) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 07:31:19 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  8. src/math/big/ftoa.go

    	// round mantissa to n bits
    	var n uint
    	if prec < 0 {
    		n = 1 + (x.MinPrec()-1+3)/4*4 // round MinPrec up to 1 mod 4
    	} else {
    		n = 1 + 4*uint(prec)
    	}
    	// n%4 == 1
    	x = new(Float).SetPrec(n).SetMode(x.mode).Set(x)
    
    	// adjust mantissa to use exactly n bits
    	m := x.mant
    	switch w := uint(len(x.mant)) * _W; {
    	case w < n:
    		m = nat(nil).shl(m, n-w)
    	case w > n:
    		m = nat(nil).shr(m, w-n)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  9. src/math/big/float.go

    }
    
    func makeAcc(above bool) Accuracy {
    	if above {
    		return Above
    	}
    	return Below
    }
    
    // SetMode sets z's rounding mode to mode and returns an exact z.
    // z remains unchanged otherwise.
    // z.SetMode(z.Mode()) is a cheap way to set z's accuracy to [Exact].
    func (z *Float) SetMode(mode RoundingMode) *Float {
    	z.mode = mode
    	z.acc = Exact
    	return z
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  10. src/go/constant/value.go

    			var t big.Float
    			t.SetPrec(prec - delta)
    
    			// try rounding down a little
    			t.SetMode(big.ToZero)
    			t.Set(x.val)
    			if _, acc := t.Int(i); acc == big.Exact {
    				return makeInt(i)
    			}
    
    			// try rounding up a little
    			t.SetMode(big.AwayFromZero)
    			t.Set(x.val)
    			if _, acc := t.Int(i); acc == big.Exact {
    				return makeInt(i)
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
Back to top