From 0652b5b6d6be9bc54fa1a1a0a9f07bda1c2e8439 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 1 Aug 2019 06:50:17 +0000 Subject: [PATCH] Make ksgn() return int instead of int32_t git-svn-id: https://svn.eduke32.com/eduke32@7864 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/pragmas.h | 2 +- source/build/include/pragmas_ppc.h | 2 +- source/build/include/pragmas_x86_msvc.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/build/include/pragmas.h b/source/build/include/pragmas.h index 9d0f33570..935498426 100644 --- a/source/build/include/pragmas.h +++ b/source/build/include/pragmas.h @@ -252,7 +252,7 @@ static FORCE_INLINE int32_t klabs(int32_t const a) #endif #endif #ifndef pragmas_have_ksgn -static FORCE_INLINE CONSTEXPR int32_t ksgn(int32_t a) { return (a > 0) - (a < 0); } +static FORCE_INLINE CONSTEXPR int ksgn(int32_t a) { return (a > 0) - (a < 0); } #endif #ifndef pragmas_have_mulscale diff --git a/source/build/include/pragmas_ppc.h b/source/build/include/pragmas_ppc.h index 773598feb..ac86158b2 100644 --- a/source/build/include/pragmas_ppc.h +++ b/source/build/include/pragmas_ppc.h @@ -167,7 +167,7 @@ static inline int32_t klabs(int32_t a) #define pragmas_have_ksgn -static inline int32_t ksgn(int32_t a) +static inline int ksgn(int32_t a) { int32_t s, t; __asm__( diff --git a/source/build/include/pragmas_x86_msvc.h b/source/build/include/pragmas_x86_msvc.h index 1eaec7c5a..85b4c2cca 100644 --- a/source/build/include/pragmas_x86_msvc.h +++ b/source/build/include/pragmas_x86_msvc.h @@ -354,7 +354,7 @@ static __inline int32_t klabs(int32_t a) #define pragmas_have_ksgn -static __inline int32_t ksgn(int32_t b) +static __inline int ksgn(int32_t b) { _asm { mov ebx, b