Make ksgn() return int instead of int32_t

git-svn-id: https://svn.eduke32.com/eduke32@7864 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-01 06:50:17 +00:00 committed by Christoph Oelckers
parent 26272f6755
commit 0652b5b6d6
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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__(

View file

@ -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