(nfds: RawFd)
| 252 | #[cfg(not(any(windows, target_os = "wasi")))] |
| 253 | #[inline] |
| 254 | pub(crate) fn fd_set_num_elements_for_bitvector(nfds: RawFd) -> usize { |
| 255 | // Allocate space for a dense bitvector for `nfds` bits. |
| 256 | let nfds = nfds as usize; |
| 257 | div_ceil(nfds, BITS) |
| 258 | } |
| 259 | |
| 260 | fn div_ceil(lhs: usize, rhs: usize) -> usize { |
| 261 | let d = lhs / rhs; |
no test coverage detected