Skip to content

Commit

Permalink
Added signlong implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldnemesis committed Jul 7, 2012
1 parent 2e89e8f commit e875d01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/timidity/timidity/optcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit e875d01

@Voyager1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks - this does indeed fix it.

Please sign in to comment.