Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFloatAdd32 (0.3 sec)

  1. src/math/big/float_test.go

    			t.Errorf("%v:\n\t     %v\n\t-    %v\n\t=    %v\n\twant %v",
    				mode, x, x, got, want)
    		}
    	}
    }
    
    // TestFloatAdd32 tests that Float.Add/Sub of numbers with
    // 24bit mantissa behaves like float32 addition/subtraction
    // (excluding denormal numbers).
    func TestFloatAdd32(t *testing.T) {
    	// chose base such that we cross the mantissa precision limit
    	const base = 1<<26 - 0x10 // 11...110000 (26 bits)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
Back to top