diff options
author | Oldnemesis <oldnemesis@xbmc> | 2012-07-07 00:59:29 -0700 |
---|---|---|
committer | Oldnemesis <oldnemesis@xbmc> | 2012-07-07 00:59:29 -0700 |
commit | e875d0144e4ca68bcdc60e49f254751ff1cafd02 (patch) | |
tree | afe32b534fda722134533340b85fab7ff1c8be16 /lib/timidity | |
parent | 2e89e8f52ac06776a6d7481c109375390d442b83 (diff) |
Added signlong implementation
Diffstat (limited to 'lib/timidity')
-rw-r--r-- | lib/timidity/timidity/optcode.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/timidity/timidity/optcode.h b/lib/timidity/timidity/optcode.h index 0c5bff7089..35ad926a26 100644 --- a/lib/timidity/timidity/optcode.h +++ b/lib/timidity/timidity/optcode.h @@ -23,6 +23,11 @@ #include "sysdep.h" +static inline int32 signlong(int32 a) +{ + return ((a | 0x7fffffff) >> 30); +} + /* Generic version of imuldiv. */ #define imuldiv8(a, b) \ (int32)(((int64)(a) * (int64)(b)) >> 8) |