mirror of
https://github.com/xiph/opus.git
synced 2025-06-05 15:03:39 +00:00
fixed-point: overflow debugging now works again.
This commit is contained in:
parent
8600f69f79
commit
2aaa0fee93
3 changed files with 10 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2003 Jean-Marc Valin */
|
||||
/* Copyright (C) 2003-2008 Jean-Marc Valin */
|
||||
/**
|
||||
@file fixed_debug.h
|
||||
@brief Fixed-point operations with debugging
|
||||
|
@ -171,6 +171,8 @@ static inline int SHL32(long long a, int shift)
|
|||
#define SATURATE16(x,a) (((x)>(a) ? (a) : (x)<-(a) ? -(a) : (x)))
|
||||
#define SATURATE32(x,a) (((x)>(a) ? (a) : (x)<-(a) ? -(a) : (x)))
|
||||
|
||||
#define ROUND(x,a) (EXTRACT16(PSHR32((x),(a))))
|
||||
|
||||
//#define SHR(a,shift) ((a) >> (shift))
|
||||
//#define SHL(a,shift) ((a) << (shift))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue