MCPcopy Create free account
hub / github.com/docknetwork/crypto / transpose

Function transpose

oblivious_transfer/src/util.rs:243–249  ·  view source on GitHub ↗
(input: &[u8], nrows: usize, ncols: usize)

Source from the content-addressed store, hash-verified

241
242#[inline]
243pub fn transpose(input: &[u8], nrows: usize, ncols: usize) -> Vec<u8> {
244 #[cfg(target_arch = "x86_64")]
245 return transpose_using_sse(input, nrows, ncols);
246
247 #[cfg(not(target_arch = "x86_64"))]
248 return transpose_portable(input, nrows, ncols);
249}
250
251#[cfg(test)]
252mod tests {

Callers 4

_transposeFunction · 0.85
newMethod · 0.85

Calls 2

transpose_using_sseFunction · 0.85
transpose_portableFunction · 0.85

Tested by

no test coverage detected