Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for encFloat (0.21 sec)

  1. src/encoding/gob/encode.go

    // swizzling.
    func floatBits(f float64) uint64 {
    	u := math.Float64bits(f)
    	return bits.ReverseBytes64(u)
    }
    
    // encFloat encodes the floating point value (float32 float64) referenced by v.
    func encFloat(i *encInstr, state *encoderState, v reflect.Value) {
    	f := v.Float()
    	if f != 0 || state.sendZero {
    		bits := floatBits(f)
    		state.update(i)
    		state.encodeUint(bits)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/debug/dwarf/const.go

    	/* 0xE0-0xFF reserved for user-specific */
    )
    
    // Basic type encodings -- the value for AttrEncoding in a TagBaseType Entry.
    const (
    	encAddress      = 0x01
    	encBoolean      = 0x02
    	encComplexFloat = 0x03
    	encFloat        = 0x04
    	encSigned       = 0x05
    	encSignedChar   = 0x06
    	encUnsigned     = 0x07
    	encUnsignedChar = 0x08
    	// The following are new in DWARF 3.
    	encImaginaryFloat = 0x09
    	encPackedDecimal  = 0x0A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  3. src/debug/dwarf/type.go

    		}
    
    	case TagBaseType:
    		// Basic type.  (DWARF v2 ยง5.1)
    		// Attributes:
    		//	AttrName: name of base type in programming language of the compilation unit [required]
    		//	AttrEncoding: encoding value for type (encFloat etc) [required]
    		//	AttrByteSize: size of type in bytes [required]
    		//	AttrBitOffset: bit offset of value within containing storage unit
    		//	AttrDataBitOffset: bit offset of value within containing storage unit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  4. src/encoding/gob/codec_test.go

    		var data float32 = 17
    		instr := &encInstr{encFloat, 6, nil, 0}
    		state := newEncoderState(b)
    		instr.op(instr, state, reflect.ValueOf(data))
    		if !bytes.Equal(floatResult, b.Bytes()) {
    			t.Errorf("float32 enc instructions: expected % x got % x", floatResult, b.Bytes())
    		}
    	}
    
    	// float64
    	{
    		b.Reset()
    		var data float64 = 17
    		instr := &encInstr{encFloat, 6, nil, 0}
    		state := newEncoderState(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
Back to top