Skip to content

Commit

Permalink
fix inlined lrintf() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Nov 10, 2023
1 parent 047fd22 commit 2c1eebc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libfaad/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ char *strchr(), *strrchr();
#if defined(_WIN32) && defined(_M_IX86) && !defined(__MINGW32__)
#ifndef HAVE_LRINTF
#define HAS_LRINTF
static INLINE int lrintf(float f)
static INLINE long lrintf(float f)
{
int i;
__asm
Expand All @@ -339,7 +339,7 @@ char *strchr(), *strrchr();
#ifndef HAVE_LRINTF
#define HAS_LRINTF
// from http://www.stereopsis.com/FPU.html
static INLINE int lrintf(float f)
static INLINE long lrintf(float f)
{
int i;
__asm__ __volatile__ (
Expand Down Expand Up @@ -405,7 +405,7 @@ char *strchr(), *strrchr();

#ifndef HAS_LRINTF
/* standard cast */
#define lrintf(f) ((int32_t)(f))
#define lrintf(f) ((long)(f))
#endif

typedef real_t complex_t[2];
Expand Down

0 comments on commit 2c1eebc

Please sign in to comment.