vdc.cpp --> vdc.c

This commit is contained in:
aliaspider 2014-11-23 11:51:28 +01:00
parent 5857eb6ce6
commit 25550fc6cf
3 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ else ifeq ($(platform), psp1)
CXX = psp-g++$(EXE_EXT)
AR = psp-ar$(EXE_EXT)
ENDIANNESS_DEFINES := -DLSB_FIRST
FLAGS += -DPSP -G0
FLAGS += -DPSP -G0 -std=c99
FLAGS += -DHAVE_MKDIR
STATIC_LINKING = 1
EXTRA_INCLUDES := -I$(shell psp-config --pspsdk-path)/include

View File

@ -32,7 +32,7 @@ The spectrum peaked at 15734 Hz. 21477272.727272... / 3 / 15734 = 455.00(CPU cy
#include <math.h>
#ifdef PSP
#include "vdc_psp.cpp"
#include "vdc_psp.c"
#endif
static uint32 disabled_layer_color;

View File

@ -217,11 +217,11 @@ static inline void sceGuClutMode_(unsigned int cpsm, unsigned int shift,
static inline int getExp_(int val)
{
unsigned int i;
asm("clz %0, %1\n":"=r"(i):"r"(val&0x3FF));
__asm__("clz %0, %1\n":"=r"(i):"r"(val&0x3FF));
return 31 - i;
}
void inline sceGuTexImage_(int mipmap, int width, int height, int tbw,
static inline void sceGuTexImage_(int mipmap, int width, int height, int tbw,
const void* tbp)
{
sendCommandi(0xa0, ((unsigned int)tbp) & 0xffffff);