mirror of
https://github.com/intel/isa-l.git
synced 2025-01-19 04:26:08 +01:00
mem: reformat using new code style
Signed-off-by: Marcel Cornu <marcel.d.cornu@intel.com>
This commit is contained in:
parent
fa5b8baf84
commit
aaa78d6a7c
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user