Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added signlong implementation

  • Loading branch information...
commit e875d0144e4ca68bcdc60e49f254751ff1cafd02 1 parent 2e89e8f
Oldnemesis authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/timidity/timidity/optcode.h
5 lib/timidity/timidity/optcode.h
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.