Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Float32Val (0.17 sec)

  1. src/cmd/compile/internal/types2/const.go

    		return x.Kind() == constant.Bool
    	}
    
    	return false
    }
    
    func fitsFloat32(x constant.Value) bool {
    	f32, _ := constant.Float32Val(x)
    	f := float64(f32)
    	return !math.IsInf(f, 0)
    }
    
    func roundFloat32(x constant.Value) constant.Value {
    	f32, _ := constant.Float32Val(x)
    	f := float64(f32)
    	if !math.IsInf(f, 0) {
    		return constant.MakeFloat64(f)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/go/types/const.go

    		return x.Kind() == constant.Bool
    	}
    
    	return false
    }
    
    func fitsFloat32(x constant.Value) bool {
    	f32, _ := constant.Float32Val(x)
    	f := float64(f32)
    	return !math.IsInf(f, 0)
    }
    
    func roundFloat32(x constant.Value) constant.Value {
    	f32, _ := constant.Float32Val(x)
    	f := float64(f32)
    	if !math.IsInf(f, 0) {
    		return constant.MakeFloat64(f)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top