#[unsafe(no_mangle)]
pub unsafe fn minimum_u16(
num_els: usize,
num_dims: usize,
metadata: *const usize,
lhs: *const u16,
rhs: *const u16,
out: *mut u16,
)Expand description
ยงSafety
Caller must guarantee that:
metadatamust be either:- null (indicating contiguous arrays) or
- a valid pointer to an array of
3 * num_dimselements containing:- dims[num_dims]: array dimensions
- lhs_strides[num_dims]: strides for left-hand side array
- rhs_strides[num_dims]: strides for right-hand side array
lhsmust be a valid pointer to an array of at leastnum_elselementsrhsmust be a valid pointer to an array of at leastnum_elselementsoutmust be a valid pointer to an array of at leastnum_elselements- The memory regions of
lhs,rhs, andoutmust not overlap - The alignment requirements of the data type must be respected for all arrays
- All array indices calculated from dims and strides must be in bounds