Loading...
Searching...
No Matches
xor.h File Reference

XOR utility functions. More...

Functions

int spdk_xor_gen (void *dest, void **sources, uint32_t n, uint32_t len)
 Generate XOR from multiple source buffers.
 
size_t spdk_xor_get_optimal_alignment (void)
 Get the optimal buffer alignment for XOR functions.
 

Detailed Description

XOR utility functions.

Function Documentation

◆ spdk_xor_gen()

int spdk_xor_gen ( void * dest,
void ** sources,
uint32_t n,
uint32_t len )

Generate XOR from multiple source buffers.

Parameters
destDestination buffer.
sourcesArray of source buffers.
nNumber of source buffers in the array.
lenLength of each buffer in bytes.
Returns
0 on success, negative error code otherwise.

◆ spdk_xor_get_optimal_alignment()

size_t spdk_xor_get_optimal_alignment ( void )

Get the optimal buffer alignment for XOR functions.

Returns
The alignment in bytes.