Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 77 for BigEndian (0.16 sec)

  1. src/internal/coverage/encodecounter/encode.go

    	// Emit file header.
    	ch := coverage.CounterFileHeader{
    		Magic:     coverage.CovCounterMagic,
    		Version:   coverage.CounterFileVersion,
    		MetaHash:  metaFileHash,
    		CFlavor:   cfw.cflavor,
    		BigEndian: false,
    	}
    	if err := binary.Write(cfw.w, binary.LittleEndian, ch); err != nil {
    		return err
    	}
    	return nil
    }
    
    func (cfw *CoverageDataWriter) writeBytes(b []byte) error {
    	if len(b) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. src/runtime/alg.go

    func readUnaligned32(p unsafe.Pointer) uint32 {
    	q := (*[4]byte)(p)
    	if goarch.BigEndian {
    		return uint32(q[3]) | uint32(q[2])<<8 | uint32(q[1])<<16 | uint32(q[0])<<24
    	}
    	return uint32(q[0]) | uint32(q[1])<<8 | uint32(q[2])<<16 | uint32(q[3])<<24
    }
    
    func readUnaligned64(p unsafe.Pointer) uint64 {
    	q := (*[8]byte)(p)
    	if goarch.BigEndian {
    		return uint64(q[7]) | uint64(q[6])<<8 | uint64(q[5])<<16 | uint64(q[4])<<24 |
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (AtomicOr8 ptr val mem) && !config.BigEndian =>
    	(LoweredAtomicOr32 (AND <typ.UInt32Ptr> (MOVVconst [^3]) ptr)
    		(SLLV <typ.UInt32> (ZeroExt8to32 val)
    			(SLLVconst <typ.UInt64> [3]
    				(ANDconst <typ.UInt64> [3] ptr))) mem)
    
    // AtomicAnd8(ptr,val)  =>  LoweredAtomicAnd32(ptr&^3,(uint32(val) << ((ptr & 3) * 8)) | ^(uint32(0xFF) << ((ptr & 3) * 8))))
    (AtomicAnd8  ptr val mem) && !config.BigEndian =>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  4. src/debug/gosym/symtab.go

    )
    
    func walksymtab(data []byte, fn func(sym) error) error {
    	if len(data) == 0 { // missing symtab is okay
    		return nil
    	}
    	var order binary.ByteOrder = binary.BigEndian
    	newTable := false
    	switch {
    	case bytes.HasPrefix(data, oldLittleEndianSymtab):
    		// Same as Go 1.0, but little endian.
    		// Format was used during interim development between Go 1.0 and Go 1.1.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/atomic_test.go

    	}
    }
    
    // Tests that xadduintptr correctly updates 64-bit values. The place where
    // we actually do so is mstats.go, functions mSysStat{Inc,Dec}.
    func TestXadduintptrOnUint64(t *testing.T) {
    	if goarch.BigEndian {
    		// On big endian architectures, we never use xadduintptr to update
    		// 64-bit values and hence we skip the test.  (Note that functions
    		// mSysStat{Inc,Dec} in mstats.go have explicit checks for
    		// big-endianness.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. src/encoding/base64/base64.go

    			enc.decodeMap[src2[2]],
    			enc.decodeMap[src2[3]],
    			enc.decodeMap[src2[4]],
    			enc.decodeMap[src2[5]],
    			enc.decodeMap[src2[6]],
    			enc.decodeMap[src2[7]],
    		); ok {
    			binary.BigEndian.PutUint64(dst[n:], dn)
    			n += 6
    			si += 8
    		} else {
    			var ninc int
    			si, ninc, err = enc.decodeQuantum(dst[n:], src, si)
    			n += ninc
    			if err != nil {
    				return n, err
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  7. src/internal/coverage/defs.go

    // CounterFileHeader stores files header information for a counter-data file.
    type CounterFileHeader struct {
    	Magic     [4]byte
    	Version   uint32
    	MetaHash  [16]byte
    	CFlavor   CounterFlavor
    	BigEndian bool
    	_         [6]byte // padding
    }
    
    // CounterSegmentHeader encapsulates information about a specific
    // segment in a counter data file, which at the moment contains
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/xcoff.go

    		f.xahdr.Oalgntext = int16(logBase2(int(XCOFFSECTALIGN)))
    		f.xahdr.Oalgndata = 0x5
    
    		binary.Write(ctxt.Out, binary.BigEndian, &f.xfhdr)
    		binary.Write(ctxt.Out, binary.BigEndian, &f.xahdr)
    	} else {
    		f.xfhdr.Fopthdr = 0
    		binary.Write(ctxt.Out, binary.BigEndian, &f.xfhdr)
    	}
    
    }
    
    func xcoffwrite(ctxt *Link) {
    	ctxt.Out.SeekSet(0)
    
    	xfile.writeFileHeader(ctxt)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:58:23 UTC 2023
    - 51.8K bytes
    - Viewed (0)
  9. src/runtime/iface.go

    		x = unsafe.Pointer(&staticuint64s[val])
    		if goarch.BigEndian {
    			x = add(x, 6)
    		}
    	} else {
    		x = mallocgc(2, uint16Type, false)
    		*(*uint16)(x) = val
    	}
    	return
    }
    
    func convT32(val uint32) (x unsafe.Pointer) {
    	if val < uint32(len(staticuint64s)) {
    		x = unsafe.Pointer(&staticuint64s[val])
    		if goarch.BigEndian {
    			x = add(x, 4)
    		}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/macho_combine_dwarf.go

    func machoCompressSection(sectBytes []byte) (compressed bool, contents []byte, err error) {
    	var buf bytes.Buffer
    	buf.WriteString("ZLIB")
    	var sizeBytes [8]byte
    	binary.BigEndian.PutUint64(sizeBytes[:], uint64(len(sectBytes)))
    	buf.Write(sizeBytes[:])
    
    	z := zlib.NewWriter(&buf)
    	if _, err := z.Write(sectBytes); err != nil {
    		return false, nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top