- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 168 for Alen (0.07 sec)
-
src/internal/bytealg/compare_386.s
MOVL b_len+12(FP), DX LEAL ret+16(FP), AX JMP cmpbody<>(SB) // input: // SI = a // DI = b // BX = alen // DX = blen // AX = address of return word (set to 1/0/-1) TEXT cmpbody<>(SB),NOSPLIT,$0-0 MOVL DX, BP SUBL BX, DX // DX = blen-alen JLE 2(PC) MOVL BX, BP // BP = min(alen, blen) CMPL SI, DI JEQ allsame CMPL BP, $4 JB small #ifdef GO386_softfloat JMP mediumloop #endif largeloop:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 23 21:22:58 UTC 2021 - 2.6K bytes - Viewed (0) -
src/vendor/golang.org/x/net/lif/address.go
return as, nil } func parseLinkAddr(b []byte) ([]byte, error) { nlen, alen, slen := int(b[1]), int(b[2]), int(b[3]) l := 4 + nlen + alen + slen if len(b) < l { return nil, errors.New("invalid address") } b = b[4:] var addr []byte if nlen > 0 { b = b[nlen:] } if alen > 0 { addr = make([]byte, alen) copy(addr, b[:alen]) } return addr, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.5K bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/address.go
// care". nlen, alen, slen := int(b[1]), int(b[2]), int(b[3]) if nlen == 0xff { nlen = 0 } if alen == 0xff { alen = 0 } if slen == 0xff { slen = 0 } l := 4 + nlen + alen + slen if len(b) < l { return 0, nil, errInvalidAddr } data := b[4:] var name string var addr []byte if nlen > 0 { name = string(data[:nlen])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 9.9K bytes - Viewed (0) -
src/internal/bytealg/compare_amd64.s
MOVQ AX, SI MOVQ DI, DX MOVQ CX, DI JMP cmpbody<>(SB) // input: // SI = a // DI = b // BX = alen // DX = blen // output: // AX = output (-1/0/1) TEXT cmpbody<>(SB),NOSPLIT,$0-0 CMPQ SI, DI JEQ allsame CMPQ BX, DX MOVQ DX, R8 CMOVQLT BX, R8 // R8 = min(alen, blen) = # of bytes to compare CMPQ R8, $8 JB small CMPQ R8, $63 JBE loop #ifndef hasAVX2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 18 17:17:01 UTC 2022 - 4.3K bytes - Viewed (0) -
src/internal/bytealg/compare_wasm.s
Get SP I64Load a_base+0(FP) I64Load a_len+8(FP) I64Load b_base+16(FP) I64Load b_len+24(FP) Call cmpbody<>(SB) I64Store ret+32(FP) RET // params: a, alen, b, blen // ret: -1/0/1 TEXT cmpbody<>(SB), NOSPLIT, $0-0 // len = min(alen, blen) Get R1 Get R3 Get R1 Get R3 I64LtU Select Set R4 Get R0 I32WrapI64 Get R2 I32WrapI64 Get R4 I32WrapI64 Call memcmp<>(SB)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 11 04:00:35 UTC 2019 - 1.4K bytes - Viewed (0) -
src/syscall/route_bsd.go
type linkLayerAddr struct { Type byte Nlen byte Alen byte Slen byte } lla := (*linkLayerAddr)(unsafe.Pointer(&b[0])) l := 4 + int(lla.Nlen) + int(lla.Alen) + int(lla.Slen) if len(b) < l { return nil, 0, EINVAL } b = b[4:] sa := &SockaddrDatalink{Type: lla.Type, Nlen: lla.Nlen, Alen: lla.Alen, Slen: lla.Slen} for i := 0; len(sa.Data) > i && i < l-4; i++ { sa.Data[i] = int8(b[i]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.1K bytes - Viewed (0) -
src/net/interface_aix.go
ifi := &Interface{Index: int(ifm.Index), Flags: linkFlags(ifm.Flags)} ifi.Name = string(sdl.Data[:sdl.Nlen]) ifi.HardwareAddr = sdl.Data[sdl.Nlen : sdl.Nlen+sdl.Alen] // Retrieve MTU ifr := &ifreq{} copy(ifr.Name[:], ifi.Name) err = unix.Ioctl(sock, syscall.SIOCGIFMTU, unsafe.Pointer(ifr)) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 27 05:42:03 UTC 2022 - 4.5K bytes - Viewed (0) -
src/math/big/rat.go
func mulDenom(z, x, y nat) nat { switch { case len(x) == 0 && len(y) == 0: return z.setWord(1) case len(x) == 0: return z.set(y) case len(y) == 0: return z.set(x) } return z.mul(x, y) } // scaleDenom sets z to the product x*f. // If f == 0 (zero value of denominator), z is set to (a copy of) x. func (z *Int) scaleDenom(x *Int, f nat) { if len(f) == 0 { z.Set(x) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 13.5K bytes - Viewed (0) -
src/syscall/netlink_linux.go
func ParseNetlinkMessage(b []byte) ([]NetlinkMessage, error) { var msgs []NetlinkMessage for len(b) >= NLMSG_HDRLEN { h, dbuf, dlen, err := netlinkMessageHeaderAndData(b) if err != nil { return nil, err } m := NetlinkMessage{Header: *h, Data: dbuf[:int(h.Len)-NLMSG_HDRLEN]} msgs = append(msgs, m) b = b[dlen:] } return msgs, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 4.8K bytes - Viewed (0) -
src/syscall/syscall_bsd.go
sa.raw.Type = sa.Type sa.raw.Nlen = sa.Nlen sa.raw.Alen = sa.Alen sa.raw.Slen = sa.Slen sa.raw.Data = sa.Data return unsafe.Pointer(&sa.raw), SizeofSockaddrDatalink, nil } func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) { switch rsa.Addr.Family { case AF_LINK: pp := (*RawSockaddrDatalink)(unsafe.Pointer(rsa)) sa := new(SockaddrDatalink) sa.Len = pp.Len sa.Family = pp.Family
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 10:34:48 UTC 2023 - 13.6K bytes - Viewed (0)