Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for Float64frombits (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/runtime/debug_test.go

    		t.Fatal(err)
    	}
    	var result0 int
    	var result1 float64
    	if len(intRegs) > 0 {
    		result0 = int(intRegs[0])
    		result1 = math.Float64frombits(floatRegs[0])
    	} else {
    		result0 = args.y0Ret
    		result1 = args.y1Ret
    	}
    	if result0 != 43 {
    		t.Errorf("want 43, got %d", result0)
    	}
    	if result1 != fval+1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 15:08:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. src/syscall/dll_windows.go

    // "double", use uintptr(math.Float64bits(x)). Floating-point return
    // values are returned in r2. The return value for C type "float" is
    // [math.Float32frombits](uint32(r2)). For C type "double", it is
    // [math.Float64frombits](uint64(r2)).
    //
    //go:uintptrescapes
    func (p *Proc) Call(a ...uintptr) (uintptr, uintptr, error) {
    	return SyscallN(p.Addr(), a...)
    }
    
    // A LazyDLL implements access to a single [DLL].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top