(dst: &mut [T], src: T)
| 62 | /// Fill a slice with a repeated value, preserving its type and alignment. |
| 63 | #[inline(always)] |
| 64 | fn volatile_fill_slice<T: Copy>(dst: &mut [T], src: T) { |
| 65 | // Target 16-byte chunks |
| 66 | match size_of::<T>() { |
| 67 | 0 => {} |
| 68 | 1 => volatile_fill_chunked::<_, 16>(dst, src), |
| 69 | 2 => volatile_fill_chunked::<_, 8>(dst, src), |
| 70 | 4 => volatile_fill_chunked::<_, 4>(dst, src), |
| 71 | 8 => volatile_fill_chunked::<_, 2>(dst, src), |
| 72 | _ => volatile_fill_iterative(dst, src), |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | /// Prepare the repeated pattern and handle the tail independently of the bulk backend. |
| 77 | #[inline(always)] |
no test coverage detected