mem: reformat using new code style

Signed-off-by: Marcel Cornu <marcel.d.cornu@intel.com>
This commit is contained in:
Marcel Cornu 2024-04-19 17:09:34 +01:00 committed by Pablo de Lara
parent fa5b8baf84
commit aaa78d6a7c
5 changed files with 243 additions and 239 deletions

View File

@ -31,7 +31,8 @@
#include <stddef.h>
#include "unaligned.h"
int mem_zero_detect_base(void *buf, size_t n)
int
mem_zero_detect_base(void *buf, size_t n)
{
uint8_t *c = buf;
uintmax_t a = 0;

View File

@ -30,9 +30,11 @@
#include <stdint.h>
#include "mem_routines.h"
int mem_zero_detect_base(void *buf, size_t n);
int
mem_zero_detect_base(void *buf, size_t n);
int isal_zero_detect(void *mem, size_t len)
int
isal_zero_detect(void *mem, size_t len)
{
return mem_zero_detect_base(mem, len);
}

View File

@ -36,7 +36,8 @@
#define TEST_LEN 8 * 1024
#define TEST_TYPE_STR "_warm"
int main(int argc, char *argv[])
int
main(int argc, char *argv[])
{
int val = 0;
void *buf;

View File

@ -46,7 +46,8 @@
#define TEST_SEED 0x1234
#endif
int main(int argc, char *argv[])
int
main(int argc, char *argv[])
{
int i, j, sign;
long long r, l;
@ -255,8 +256,7 @@ int main(int argc, char *argv[])
goto exit;
}
if ((r >= l) && (ret_neg != 0)) {
printf("Fail on bad pass zero detect rand %d, l=%lld, e=%lld\n", i, l,
r);
printf("Fail on bad pass zero detect rand %d, l=%lld, e=%lld\n", i, l, r);
failures = -1;
goto exit;
}