Skip to content

Commit e875d01

Browse files
author
Oldnemesis
committed
Added signlong implementation
1 parent 2e89e8f commit e875d01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/timidity/timidity/optcode.h

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
#include "sysdep.h"
2525

26+
static inline int32 signlong(int32 a)
27+
{
28+
return ((a | 0x7fffffff) >> 30);
29+
}
30+
2631
/* Generic version of imuldiv. */
2732
#define imuldiv8(a, b) \
2833
(int32)(((int64)(a) * (int64)(b)) >> 8)

0 commit comments

Comments
 (0)