minimum_u16

Function minimum_u16 

Source
#[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:

  • metadata must be either:
    • null (indicating contiguous arrays) or
    • a valid pointer to an array of 3 * num_dims elements 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
  • lhs must be a valid pointer to an array of at least num_els elements
  • rhs must be a valid pointer to an array of at least num_els elements
  • out must be a valid pointer to an array of at least num_els elements
  • The memory regions of lhs, rhs, and out must 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