Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for Float64frombits (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/encoding/gob/debug.go

    		fmt.Fprintf(os.Stderr, "%s%d\n", indent, x)
    	case tFloat:
    		x := deb.uint64()
    		fmt.Fprintf(os.Stderr, "%s%g\n", indent, float64FromBits(x))
    	case tComplex:
    		r := deb.uint64()
    		i := deb.uint64()
    		fmt.Fprintf(os.Stderr, "%s%g+%gi\n", indent, float64FromBits(r), float64FromBits(i))
    	case tBytes:
    		x := int(deb.uint64())
    		b := make([]byte, x)
    		deb.r.Read(b)
    		deb.consumed(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  9. src/encoding/gob/decode.go

    // the exponent end coming out first, so integer floating point numbers
    // (for example) transmit more compactly. This routine does the
    // unswizzling.
    func float64FromBits(u uint64) float64 {
    	v := bits.ReverseBytes64(u)
    	return math.Float64frombits(v)
    }
    
    // float32FromBits decodes an unsigned integer, treats it as a 32-bit floating-point
    // number, and returns it. It's a helper function for float32 and complex64.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  10. src/encoding/binary/binary_test.go

    	0x10,
    	0x1112,
    	0x13141516,
    	0x1718191a1b1c1d1e,
    
    	math.Float32frombits(0x1f202122),
    	math.Float64frombits(0x232425262728292a),
    	complex(
    		math.Float32frombits(0x2b2c2d2e),
    		math.Float32frombits(0x2f303132),
    	),
    	complex(
    		math.Float64frombits(0x333435363738393a),
    		math.Float64frombits(0x3b3c3d3e3f404142),
    	),
    
    	[4]uint8{0x43, 0x44, 0x45, 0x46},
    
    	true,
    	[4]bool{true, false, true, false},
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top