[warnings] knock out some 64bit warnings
This commit is contained in:
@@ -72,7 +72,7 @@ static void bench_memcpy(void)
|
||||
mine = bench_memcpy_routine(&mymemcpy, srcalign, dstalign);
|
||||
|
||||
printf("srcalign %zu, dstalign %zu: ", srcalign, dstalign);
|
||||
//printf(" null memcpy %lu msecs\n", null);
|
||||
printf(" null memcpy %lu msecs\n", null);
|
||||
printf("libc memcpy %lu msecs, %llu bytes/sec; ", libc, BUFFER_SIZE * ITERATIONS * 1000ULL / libc);
|
||||
printf("my memcpy %lu msecs, %llu bytes/sec; ", mine, BUFFER_SIZE * ITERATIONS * 1000ULL / mine);
|
||||
printf("\n");
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
static int fibo_thread(void *argv)
|
||||
{
|
||||
int fibo = (int)argv;
|
||||
long fibo = (intptr_t)argv;
|
||||
|
||||
thread_t *t[2];
|
||||
|
||||
@@ -73,7 +73,7 @@ int fibo(int argc, const cmd_args *argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
thread_t *t = thread_create("fibo", &fibo_thread, (void *)argv[1].u, DEFAULT_PRIORITY, DEFAULT_STACK_SIZE);
|
||||
thread_t *t = thread_create("fibo", &fibo_thread, (void *)(uintptr_t)argv[1].u, DEFAULT_PRIORITY, DEFAULT_STACK_SIZE);
|
||||
thread_resume(t);
|
||||
|
||||
int retcode;
|
||||
|
||||
@@ -144,7 +144,7 @@ static int mutex_thread(void *arg)
|
||||
if (shared != 0)
|
||||
panic("someone else has messed with the shared data\n");
|
||||
|
||||
shared = (int)current_thread;
|
||||
shared = (intptr_t)current_thread;
|
||||
thread_yield();
|
||||
shared = 0;
|
||||
|
||||
@@ -257,7 +257,7 @@ static int event_signaller(void *arg)
|
||||
|
||||
static int event_waiter(void *arg)
|
||||
{
|
||||
int count = (int)arg;
|
||||
int count = (intptr_t)arg;
|
||||
|
||||
printf("event waiter starting\n");
|
||||
|
||||
@@ -347,7 +347,7 @@ static int context_switch_tester(void *arg)
|
||||
int i;
|
||||
uint total_count = 0;
|
||||
const int iter = 100000;
|
||||
int thread_count = (int)arg;
|
||||
int thread_count = (intptr_t)arg;
|
||||
|
||||
event_wait(&context_switch_event);
|
||||
|
||||
@@ -402,7 +402,7 @@ static volatile int atomic_count;
|
||||
|
||||
static int atomic_tester(void *arg)
|
||||
{
|
||||
int add = (int)arg;
|
||||
int add = (intptr_t)arg;
|
||||
int i;
|
||||
|
||||
TRACEF("add %d\n", add);
|
||||
|
||||
Reference in New Issue
Block a user