notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #8 from ksv1986/master
[pcsx_rearmed.git]
/
plugins
/
gpu_neon
/
psx_gpu
/
common.h
diff --git
a/plugins/gpu_neon/psx_gpu/common.h
b/plugins/gpu_neon/psx_gpu/common.h
index
f299f79
..
6c2a99b
100644
(file)
--- a/
plugins/gpu_neon/psx_gpu/common.h
+++ b/
plugins/gpu_neon/psx_gpu/common.h
@@
-1,6
+1,18
@@
#ifndef COMMON_H
#define COMMON_H
#ifndef COMMON_H
#define COMMON_H
+#include <stdint.h>
+
+#ifdef NEON_PC
+typedef int8_t s8;
+typedef uint8_t u8;
+typedef int16_t s16;
+typedef uint16_t u16;
+typedef int32_t s32;
+typedef uint32_t u32;
+typedef int64_t s64;
+typedef uint64_t u64;
+#else
typedef signed char s8;
typedef unsigned char u8;
typedef signed short s16;
typedef signed char s8;
typedef unsigned char u8;
typedef signed short s16;
@@
-9,8
+21,8
@@
typedef signed int s32;
typedef unsigned int u32;
typedef signed long long int s64;
typedef unsigned long long int u64;
typedef unsigned int u32;
typedef signed long long int s64;
typedef unsigned long long int u64;
+#endif
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
@@
-18,5
+30,7
@@
typedef unsigned long long int u64;
#include "vector_ops.h"
#include "psx_gpu.h"
#include "vector_ops.h"
#include "psx_gpu.h"
+#define unlikely(x) __builtin_expect((x), 0)
+
#endif
#endif