From 69587c91dd307eec09a71b30bf6785cec68c281b Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 25 Mar 2019 21:57:10 +0100 Subject: [PATCH] Do not use uint if not needed --- include/emu_general.h | 10 +++++----- src/emu_general.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/emu_general.h b/include/emu_general.h index a17ac5159..5a9426426 100644 --- a/include/emu_general.h +++ b/include/emu_general.h @@ -15,11 +15,11 @@ #define HAS_VBFE 0 #define VECT_SIZE 1 -uint atomic_dec (uint *p); -uint atomic_inc (uint *p); +u32 atomic_dec (u32 *p); +u32 atomic_inc (u32 *p); -size_t get_global_id (uint dimindx __attribute__((unused))); -size_t get_local_id (uint dimindx __attribute__((unused))); -size_t get_local_size (uint dimindx __attribute__((unused))); +size_t get_global_id (u32 dimindx __attribute__((unused))); +size_t get_local_id (u32 dimindx __attribute__((unused))); +size_t get_local_size (u32 dimindx __attribute__((unused))); #endif // _CPU_OPENCL_EMU_H diff --git a/src/emu_general.c b/src/emu_general.c index fa8bdc1ab..51f7b1a0f 100644 --- a/src/emu_general.c +++ b/src/emu_general.c @@ -17,17 +17,17 @@ u32 atomic_inc (u32 *p) return *p++; } -size_t get_global_id (uint dimindx __attribute__((unused))) +size_t get_global_id (u32 dimindx __attribute__((unused))) { return 0; } -size_t get_local_id (uint dimindx __attribute__((unused))) +size_t get_local_id (u32 dimindx __attribute__((unused))) { return 0; } -size_t get_local_size (uint dimindx __attribute__((unused))) +size_t get_local_size (u32 dimindx __attribute__((unused))) { return 0; }