| 993 | #define tcp_lro_msb_64(x) (1ULL << (flsll(x) - 1)) |
| 994 | #else |
| 995 | static inline uint64_t |
| 996 | tcp_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 | /* |