Fix spharm example for gcc14

This commit is contained in:
Wouter Wijsman
2024-05-18 22:25:31 +02:00
parent b6d0f42c04
commit 343e8b38f6
2 changed files with 5 additions and 3 deletions

View File

@@ -77,14 +77,14 @@ struct Vertex __attribute__((aligned(16))) vertices[12*3] =
int done = 0;
/* Exit callback */
int exit_callback(void)
int exit_callback(int arg1, int arg2, void *common)
{
done = 1;
return 0;
}
/* Callback thread */
void CallbackThread(void *arg)
int CallbackThread(SceSize args, void *arg)
{
int cbid;
@@ -92,6 +92,7 @@ void CallbackThread(void *arg)
sceKernelRegisterExitCallback(cbid);
sceKernelSleepThreadCB();
return cbid;
}
/* Sets up the callback thread and returns its thread id */

View File

@@ -18,6 +18,7 @@
#include <pspgu.h>
#include <pspgum.h>
#include <math.h>
#include "mt19937.h"
/*
@@ -31,7 +32,7 @@
float shift23=(float)(1<<23);
float OOshift23=1.0f/(float)(1<<23);
static inline float floorf(float i)
inline float floorf(float i)
{ // return largest integer that is less than or equal to i
float k = (float)((int) i);
if (k <= i)