Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 72 for Float64frombits (0.25 sec)

  1. src/math/big/float.go

    		} else {
    			// normal number: emin <= e <= emax
    			bexp = uint64(e+bias) << mbits
    			mant = msb64(r.mant) >> ebits & (1<<mbits - 1) // cut off msb (implicit 1 bit)
    		}
    
    		return math.Float64frombits(sign | bexp | mant), r.acc
    
    	case zero:
    		if x.neg {
    			var z float64
    			return -z, Exact
    		}
    		return 0.0, Exact
    
    	case inf:
    		if x.neg {
    			return math.Inf(-1), Exact
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ppc64/ssa.go

    		p.From.Offset = v.AuxInt
    		p.To.Type = obj.TYPE_REG
    		p.To.Reg = v.Reg()
    
    	case ssa.OpPPC64FMOVDconst, ssa.OpPPC64FMOVSconst:
    		p := s.Prog(v.Op.Asm())
    		p.From.Type = obj.TYPE_FCONST
    		p.From.Val = math.Float64frombits(uint64(v.AuxInt))
    		p.To.Type = obj.TYPE_REG
    		p.To.Reg = v.Reg()
    
    	case ssa.OpPPC64FCMPU, ssa.OpPPC64CMP, ssa.OpPPC64CMPW, ssa.OpPPC64CMPU, ssa.OpPPC64CMPWU:
    		p := s.Prog(v.Op.Asm())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/generic.rules

    // Pass constants through math.Float{32,64}bits and math.Float{32,64}frombits
    (Load <t1> p1 (Store {t2} p2 (Const64  [x]) _)) && isSamePtr(p1,p2) && sizeof(t2) == 8 && is64BitFloat(t1) && !math.IsNaN(math.Float64frombits(uint64(x))) => (Const64F [math.Float64frombits(uint64(x))])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.pb.go

    			}
    			var v uint64
    			if (iNdEx + 8) > l {
    				return io.ErrUnexpectedEOF
    			}
    			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
    			iNdEx += 8
    			v2 := float64(math.Float64frombits(v))
    			m.Maximum = &v2
    		case 10:
    			if wireType != 0 {
    				return fmt.Errorf("proto: wrong wireType = %d for field ExclusiveMaximum", wireType)
    			}
    			var v int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 248K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.pb.go

    			}
    			var v uint64
    			if (iNdEx + 8) > l {
    				return io.ErrUnexpectedEOF
    			}
    			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
    			iNdEx += 8
    			v2 := float64(math.Float64frombits(v))
    			m.Maximum = &v2
    		case 10:
    			if wireType != 0 {
    				return fmt.Errorf("proto: wrong wireType = %d for field ExclusiveMaximum", wireType)
    			}
    			var v int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 244.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/S390X.rules

      => (LGDR (CPSDR <t> y x))
    (OR (RISBGZ (LGDR x) {r}) (MOVDconst [c]))
      && c >= 0
      && r == s390x.NewRotateParams(0, 0, 0)
      => (LGDR (CPSDR <x.Type> (FMOVDconst <x.Type> [math.Float64frombits(uint64(c))]) x))
    (CPSDR y (FMOVDconst [c])) && !math.Signbit(c) => (LPDFR y)
    (CPSDR y (FMOVDconst [c])) && math.Signbit(c)  => (LNDFR y)
    
    // absorb negations into set/clear sign bit
    (FNEG  (LPDFR x)) => (LNDFR x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewritePPC64.go

    	// cond: !math.IsNaN(math.Float64frombits(uint64(c)))
    	// result: (FMOVDconst [math.Float64frombits(uint64(c))])
    	for {
    		if v_0.Op != OpPPC64MOVDconst {
    			break
    		}
    		c := auxIntToInt64(v_0.AuxInt)
    		if !(!math.IsNaN(math.Float64frombits(uint64(c)))) {
    			break
    		}
    		v.reset(OpPPC64FMOVDconst)
    		v.AuxInt = float64ToAuxInt(math.Float64frombits(uint64(c)))
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (FMOVSstore [off] {sym} ptr (FMOVSgpfp val) mem) => (MOVWstore [off] {sym} ptr val mem)
    
    // float <=> int register moves, with no conversion.
    // These come up when compiling math.{Float64bits, Float64frombits, Float32bits, Float32frombits}.
    (MOVDload  [off] {sym} ptr (FMOVDstore [off] {sym} ptr val _)) => (FMOVDfpgp val)
    (FMOVDload [off] {sym} ptr (MOVDstore  [off] {sym} ptr val _)) => (FMOVDgpfp val)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteS390X.go

    		}
    		break
    	}
    	// match: (OR (RISBGZ (LGDR x) {r}) (MOVDconst [c]))
    	// cond: c >= 0 && r == s390x.NewRotateParams(0, 0, 0)
    	// result: (LGDR (CPSDR <x.Type> (FMOVDconst <x.Type> [math.Float64frombits(uint64(c))]) x))
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			if v_0.Op != OpS390XRISBGZ {
    				continue
    			}
    			r := auxToS390xRotateParams(v_0.Aux)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 395.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewritegeneric.go

    		v.copyOf(x)
    		return true
    	}
    	// match: (Load <t1> p1 (Store {t2} p2 (Const64 [x]) _))
    	// cond: isSamePtr(p1,p2) && sizeof(t2) == 8 && is64BitFloat(t1) && !math.IsNaN(math.Float64frombits(uint64(x)))
    	// result: (Const64F [math.Float64frombits(uint64(x))])
    	for {
    		t1 := v.Type
    		p1 := v_0
    		if v_1.Op != OpStore {
    			break
    		}
    		t2 := auxToType(v_1.Aux)
    		_ = v_1.Args[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
Back to top