aboutsummaryrefslogtreecommitdiff
path: root/lib/timidity
diff options
context:
space:
mode:
authorOldnemesis <oldnemesis@xbmc>2012-07-07 00:59:29 -0700
committerOldnemesis <oldnemesis@xbmc>2012-07-07 00:59:29 -0700
commite875d0144e4ca68bcdc60e49f254751ff1cafd02 (patch)
treeafe32b534fda722134533340b85fab7ff1c8be16 /lib/timidity
parent2e89e8f52ac06776a6d7481c109375390d442b83 (diff)
Added signlong implementation
Diffstat (limited to 'lib/timidity')
-rw-r--r--lib/timidity/timidity/optcode.h5
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)