Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AuxFloat (0.12 sec)

  1. src/cmd/compile/internal/ssa/check.go

    			case auxFloat32:
    				canHaveAuxInt = true
    				if math.IsNaN(v.AuxFloat()) {
    					f.Fatalf("value %v has an AuxInt that encodes a NaN", v)
    				}
    				if !isExactFloat32(v.AuxFloat()) {
    					f.Fatalf("value %v has an AuxInt value that is not an exact float32", v)
    				}
    			case auxFloat64:
    				canHaveAuxInt = true
    				if math.IsNaN(v.AuxFloat()) {
    					f.Fatalf("value %v has an AuxInt that encodes a NaN", v)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/value.go

    		return uint64(uint32(c))
    	case OpConst16:
    		return uint64(uint16(c))
    	case OpConst8:
    		return uint64(uint8(c))
    	}
    	v.Fatalf("op %s isn't OpConst*", v.Op)
    	return 0
    }
    
    func (v *Value) AuxFloat() float64 {
    	if opcodeTable[v.Op].auxType != auxFloat32 && opcodeTable[v.Op].auxType != auxFloat64 {
    		v.Fatalf("op %s doesn't have a float aux field", v.Op)
    	}
    	return math.Float64frombits(uint64(v.AuxInt))
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/wasm/ssa.go

    		getValue64(s, v.Args[0])
    		i64Const(s, v.AuxInt)
    		s.Prog(v.Op.Asm())
    
    	case ssa.OpWasmI64Const:
    		i64Const(s, v.AuxInt)
    
    	case ssa.OpWasmF32Const:
    		f32Const(s, v.AuxFloat())
    
    	case ssa.OpWasmF64Const:
    		f64Const(s, v.AuxFloat())
    
    	case ssa.OpWasmI64Load8U, ssa.OpWasmI64Load8S, ssa.OpWasmI64Load16U, ssa.OpWasmI64Load16S, ssa.OpWasmI64Load32U, ssa.OpWasmI64Load32S, ssa.OpWasmI64Load, ssa.OpWasmF32Load, ssa.OpWasmF64Load:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.6K bytes
    - Viewed (0)
Back to top