Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SetOptimize (0.21 sec)

  1. src/strconv/ftoa_test.go

    		shortFast := FormatFloat(x, 'g', -1, 64)
    		SetOptimize(false)
    		shortSlow := FormatFloat(x, 'g', -1, 64)
    		SetOptimize(true)
    		if shortSlow != shortFast {
    			t.Errorf("%b printed as %s, want %s", x, shortFast, shortSlow)
    		}
    
    		prec := rand.Intn(12) + 5
    		shortFast = FormatFloat(x, 'e', prec, 64)
    		SetOptimize(false)
    		shortSlow = FormatFloat(x, 'e', prec, 64)
    		SetOptimize(true)
    		if shortSlow != shortFast {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 24 23:50:20 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  2. src/strconv/internal_test.go

    // license that can be found in the LICENSE file.
    
    // export access to strconv internals for tests
    
    package strconv
    
    func NewDecimal(i uint64) *decimal {
    	d := new(decimal)
    	d.Assign(i)
    	return d
    }
    
    func SetOptimize(b bool) bool {
    	old := optimize
    	optimize = b
    	return old
    }
    
    func ParseFloatPrefix(s string, bitSize int) (float64, int, error) {
    	return parseFloatPrefix(s, bitSize)
    }
    
    func MulByLog2Log10(x int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 08:44:21 UTC 2021
    - 618 bytes
    - Viewed (0)
  3. src/strconv/atof_test.go

    	for _, tt := range roundTripCases {
    		old := SetOptimize(false)
    		s := FormatFloat(tt.f, 'g', -1, 64)
    		if s != tt.s {
    			t.Errorf("no-opt FormatFloat(%b) = %s, want %s", tt.f, s, tt.s)
    		}
    		f, err := ParseFloat(tt.s, 64)
    		if f != tt.f || err != nil {
    			t.Errorf("no-opt ParseFloat(%s) = %b, %v want %b, nil", tt.s, f, err, tt.f)
    		}
    		SetOptimize(true)
    		s = FormatFloat(tt.f, 'g', -1, 64)
    		if s != tt.s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 16:24:57 UTC 2022
    - 23.6K bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/main/java/org/gradle/api/internal/tasks/scala/MinimalScalaCompileOptions.java

        }
    
        public void setDebugLevel(@Nullable String debugLevel) {
            this.debugLevel = debugLevel;
        }
    
        public boolean isOptimize() {
            return optimize;
        }
    
        public void setOptimize(boolean optimize) {
            this.optimize = optimize;
        }
    
        @Nullable
        public String getEncoding() {
            return encoding;
        }
    
        public void setEncoding(@Nullable String encoding) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/main/java/org/gradle/language/scala/tasks/BaseScalaCompileOptions.java

            this.debugLevel = debugLevel;
        }
    
        /**
         * Run optimizations.
         */
        @Input
        public boolean isOptimize() {
            return optimize;
        }
    
        public void setOptimize(boolean optimize) {
            this.optimize = optimize;
        }
    
        /**
         * Encoding of source files.
         */
        @Nullable @Optional @Input
        public String getEncoding() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top