- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for umagic32 (0.17 sec)
-
src/cmd/compile/internal/ssa/_gen/generic.rules
(Div32u x (Const32 [c])) && umagicOK32(c) && config.RegSize == 4 && c&1 == 0 && config.useHmul => (Rsh32Ux64 <typ.UInt32> (Hmul32u <typ.UInt32> (Const32 <typ.UInt32> [int32(1<<31+(umagic32(c).m+1)/2)]) (Rsh32Ux64 <typ.UInt32> x (Const64 <typ.UInt64> [1]))) (Const64 <typ.UInt64> [umagic32(c).s-2])) (Div32u x (Const32 [c])) && umagicOK32(c) && config.RegSize == 4 && config.useAvg && config.useHmul =>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 22:21:05 UTC 2024 - 135.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewritegeneric.go
// match: (Div32u x (Const32 [c])) // cond: umagicOK32(c) && config.RegSize == 4 && umagic32(c).m&1 == 0 && config.useHmul // result: (Rsh32Ux64 <typ.UInt32> (Hmul32u <typ.UInt32> (Const32 <typ.UInt32> [int32(1<<31+umagic32(c).m/2)]) x) (Const64 <typ.UInt64> [umagic32(c).s-1])) for { x := v_0 if v_1.Op != OpConst32 { break } c := auxIntToInt32(v_1.AuxInt)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:24:47 UTC 2024 - 812.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/magic.go
} M.SetBit(M, int(n), 0) m := M.Uint64() return umagicData{s: int64(s), m: m} } func umagic8(c int8) umagicData { return umagic(8, int64(c)) } func umagic16(c int16) umagicData { return umagic(16, int64(c)) } func umagic32(c int32) umagicData { return umagic(32, int64(c)) } func umagic64(c int64) umagicData { return umagic(64, c) } // For signed division, we use a similar strategy. // First, we enforce a positive c.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:25 UTC 2024 - 15.8K bytes - Viewed (0) -
src/hash/fnv/fnv.go
if len(b) < len(magic32) || string(b[:len(magic32)]) != magic32 { return errors.New("hash/fnv: invalid hash state identifier") } if len(b) != marshaledSize32 { return errors.New("hash/fnv: invalid hash state size") } *s = sum32(byteorder.BeUint32(b[4:])) return nil } func (s *sum32a) UnmarshalBinary(b []byte) error { if len(b) < len(magic32a) || string(b[:len(magic32a)]) != magic32a {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 22:36:41 UTC 2024 - 8.5K bytes - Viewed (0) -
src/sync/atomic/atomic_test.go
} j = delta } if x.before != magic32 || x.after != magic32 { t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32) } } func TestSwapInt32Method(t *testing.T) { var x struct { before int32 i Int32 after int32 } x.before = magic32 x.after = magic32 var j int32 for delta := int32(1); delta+delta > delta; delta += delta {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 71.4K bytes - Viewed (0) -
src/debug/macho/fat.go
// must be converted to little endian first though. var buf [4]byte binary.BigEndian.PutUint32(buf[:], ff.Magic) leMagic := binary.LittleEndian.Uint32(buf[:]) if leMagic == Magic32 || leMagic == Magic64 { return nil, ErrNotFat } else { return nil, &FormatError{0, "invalid magic number", nil} } } offset := int64(4)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/magic_test.go
} } } } func testMagicExhaustiveU(t *testing.T, n uint) { max := uint64(1) << n for c := uint64(1); c < max; c++ { if !umagicOK(n, int64(c)) { continue } m := umagic(n, int64(c)).m s := umagic(n, int64(c)).s for i := uint64(0); i < max; i++ { want := i / c got := (i * (max + m)) >> (n + uint(s)) if want != got {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 22:02:07 UTC 2019 - 9.1K bytes - Viewed (0) -
src/debug/macho/macho.go
Magic uint32 Cpu Cpu SubCpu uint32 Type Type Ncmd uint32 Cmdsz uint32 Flags uint32 } const ( fileHeaderSize32 = 7 * 4 fileHeaderSize64 = 8 * 4 ) const ( Magic32 uint32 = 0xfeedface Magic64 uint32 = 0xfeedfacf MagicFat uint32 = 0xcafebabe ) // A Type is the Mach-O file type, e.g. an object file, executable, or dynamic library. type Type uint32 const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 14 00:56:52 UTC 2021 - 7.6K bytes - Viewed (0) -
src/debug/macho/file.go
// Read and decode Mach magic to determine byte order, size. // Magic32 and Magic64 differ only in the bottom bit. var ident [4]byte if _, err := r.ReadAt(ident[0:], 0); err != nil { return nil, err } be := binary.BigEndian.Uint32(ident[0:]) le := binary.LittleEndian.Uint32(ident[0:]) switch Magic32 &^ 1 { case be &^ 1: f.ByteOrder = binary.BigEndian f.Magic = be case le &^ 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) -
src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go
machoMagicLittle := binary.LittleEndian.Uint32(header[:]) machoMagicBig := binary.BigEndian.Uint32(header[:]) if machoMagicLittle == macho.Magic32 || machoMagicLittle == macho.Magic64 || machoMagicBig == macho.Magic32 || machoMagicBig == macho.Magic64 { f, err := b.openMachO(name, start, limit, offset) if err != nil { return nil, fmt.Errorf("error reading Mach-O file %s: %v", name, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0)