mirror of
https://github.com/intel/isa-l.git
synced 2024-12-13 09:52:56 +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 <stddef.h>
|
||||||
#include "unaligned.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;
|
uint8_t *c = buf;
|
||||||
uintmax_t a = 0;
|
uintmax_t a = 0;
|
||||||
|
@ -30,9 +30,11 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "mem_routines.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);
|
return mem_zero_detect_base(mem, len);
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,8 @@
|
|||||||
#define TEST_LEN 8 * 1024
|
#define TEST_LEN 8 * 1024
|
||||||
#define TEST_TYPE_STR "_warm"
|
#define TEST_TYPE_STR "_warm"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int
|
||||||
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int val = 0;
|
int val = 0;
|
||||||
void *buf;
|
void *buf;
|
||||||
|
@ -46,7 +46,8 @@
|
|||||||
#define TEST_SEED 0x1234
|
#define TEST_SEED 0x1234
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int
|
||||||
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i, j, sign;
|
int i, j, sign;
|
||||||
long long r, l;
|
long long r, l;
|
||||||
@ -255,8 +256,7 @@ int main(int argc, char *argv[])
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
if ((r >= l) && (ret_neg != 0)) {
|
if ((r >= l) && (ret_neg != 0)) {
|
||||||
printf("Fail on bad pass zero detect rand %d, l=%lld, e=%lld\n", i, l,
|
printf("Fail on bad pass zero detect rand %d, l=%lld, e=%lld\n", i, l, r);
|
||||||
r);
|
|
||||||
failures = -1;
|
failures = -1;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user