Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 72 for float64FromBits (0.19 sec)

  1. src/math/fma.go

    		// rounded value overflows exponent range
    		return Float64frombits(uint64(ps)<<63 | uvinf)
    	}
    	if pe < 0 {
    		n := uint(-pe)
    		m = m>>n | nonzero(m&(1<<n-1))
    		pe = 0
    	}
    	m = ((m + 1<<9) >> 10) & ^zero((m&(1<<10-1))^1<<9)
    	pe &= -int32(nonzero(m))
    	return Float64frombits(uint64(ps)<<63 + uint64(pe)<<52 + m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 05 22:05:30 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. src/math/log1p.go

    			iu = Float64bits(u)
    			k = int((iu >> 52) - 1023)
    			c = 0
    		}
    		iu &= 0x000fffffffffffff
    		if iu < 0x0006a09e667f3bcd { // mantissa of Sqrt(2)
    			u = Float64frombits(iu | 0x3ff0000000000000) // normalize u
    		} else {
    			k++
    			u = Float64frombits(iu | 0x3fe0000000000000) // normalize u/2
    			iu = (0x0010000000000000 - iu) >> 2
    		}
    		f = u - 1.0 // Sqrt(2)/2 < u < Sqrt(2)
    	}
    	hfsq := 0.5 * f * f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. src/runtime/metrics/value.go

    //
    // If v.Kind() != KindFloat64, this method panics.
    func (v Value) Float64() float64 {
    	if v.kind != KindFloat64 {
    		panic("called Float64 on non-float64 metric value")
    	}
    	return math.Float64frombits(v.scalar)
    }
    
    // Float64Histogram returns the internal *Float64Histogram value for the metric.
    //
    // If v.Kind() != KindFloat64Histogram, this method panics.
    func (v Value) Float64Histogram() *Float64Histogram {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. test/codegen/math.go

    	// Like math.Copysign(c, -1), but with integer operations. Useful
    	// for platforms that have a copysign opcode to see if it's detected.
    	// s390x:"LNDFR\t",-"MOVD\t"     (no integer load/store)
    	sink64[2] = math.Float64frombits(math.Float64bits(a) | 1<<63)
    
    	// amd64:"ANDQ","ORQ"
    	// s390x:"CPSDR\t",-"MOVD\t"     (no integer load/store)
    	// ppc64x:"FCPSGN"
    	// riscv64:"FSGNJD"
    	sink64[3] = math.Copysign(-1, c)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. test/map.go

    		m[nanb] = "NaN"
    		if len(m) != 5 {
    			panic(fmt.Sprintln("float32 map should have 5 entries:", m))
    		}
    	}
    
    	{
    		var (
    			pz   = float64(0)
    			nz   = math.Float64frombits(1 << 63)
    			nana = float64(math.NaN())
    			nanb = math.Float64frombits(math.Float64bits(nana) ^ 2)
    		)
    
    		m := map[float64]string{
    			pz:   "+0",
    			nana: "NaN",
    			nanb: "NaN",
    		}
    		if m[nz] != "+0" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 06 21:02:55 UTC 2014
    - 14.9K bytes
    - Viewed (0)
  6. src/encoding/binary/binary.go

    	case reflect.Float64:
    		v.SetFloat(math.Float64frombits(d.uint64()))
    
    	case reflect.Complex64:
    		v.SetComplex(complex(
    			float64(math.Float32frombits(d.uint32())),
    			float64(math.Float32frombits(d.uint32())),
    		))
    	case reflect.Complex128:
    		v.SetComplex(complex(
    			math.Float64frombits(d.uint64()),
    			math.Float64frombits(d.uint64()),
    		))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  7. src/math/trig_reduce.go

    	// Clear implicit mantissa bit and shift into place.
    	hi = (hi << (lz + 1)) | (lo >> (64 - (lz + 1)))
    	hi >>= 64 - shift
    	// Include the exponent and convert to a float.
    	hi |= e << shift
    	z = Float64frombits(hi)
    	// Map zeros to origin.
    	if j&1 == 1 {
    		j++
    		j &= 7
    		z--
    	}
    	// Multiply the fractional part by pi/4.
    	return j, z * PI4
    }
    
    // mPi4 is the binary digits of 4/pi as a uint64 array,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  8. src/encoding/gob/dec_helpers.go

    		}
    		if i >= len(slice) {
    			// This is a slice that we only partially allocated.
    			growSlice(v, &slice, length)
    		}
    		real := float64FromBits(state.decodeUint())
    		imag := float64FromBits(state.decodeUint())
    		slice[i] = complex(real, imag)
    	}
    	return true
    }
    
    func decFloat32Array(state *decoderState, v reflect.Value, length int, ovfl error) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 19:28:46 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  9. src/runtime/export_debug_ppc64le_test.go

    		} else {
    			dst.gp_regs[i+3] = uint64(src.Ints[i])
    		}
    	}
    	// Fprs F1..F13 are used to pass float arguments in registers on PPC64
    	for i := 0; i < 12; i++ {
    		dst.fp_regs[i+1] = math.Float64frombits(src.Floats[i])
    	}
    
    }
    
    func loadRegArgs(dst *abi.RegArgs, src *sigcontext) {
    	// Gprs R3..R10, R14..R17 are used to pass int arguments in registers on PPC64
    	for i := range [12]int{} {
    		if i > 7 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 15:33:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. src/math/sqrt.go

    		r >>= 1
    	}
    	// final rounding
    	if ix != 0 { // remainder, result not exact
    		q += q & 1 // round according to extra bit
    	}
    	ix = q>>1 + uint64(exp-1+bias)<<shift // significand + biased exponent
    	return Float64frombits(ix)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 15 17:07:57 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top