MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tcp_lro_msb_64

Function tcp_lro_msb_64

freebsd/netinet/tcp_lro.c:995–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993#define tcp_lro_msb_64(x) (1ULL << (flsll(x) - 1))
994#else
995static inline uint64_t
996tcp_lro_msb_64(uint64_t x)
997{
998 x |= (x >> 1);
999 x |= (x >> 2);
1000 x |= (x >> 4);
1001 x |= (x >> 8);
1002 x |= (x >> 16);
1003 x |= (x >> 32);
1004 return (x & ~(x >> 1));
1005}
1006#endif
1007
1008/*

Callers 1

tcp_lro_sortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected