diff options
author | David Schleef <ds@schleef.org> | 2003-07-27 05:24:15 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-07-27 05:24:15 +0000 |
commit | d1f62e8a4f976e11634d2f9187821e8686cec76d (patch) | |
tree | 7aeb45681425dc71469510056d67f4aa20d3574b /ext/mplex/fastintfns.h | |
parent | a10432d76cb431d03e27b97d790d2ba7ae34f4b8 (diff) | |
download | gst-plugins-bad-d1f62e8a4f976e11634d2f9187821e8686cec76d.tar.gz gst-plugins-bad-d1f62e8a4f976e11634d2f9187821e8686cec76d.tar.bz2 gst-plugins-bad-d1f62e8a4f976e11634d2f9187821e8686cec76d.zip |
Moved to gst-libs/ext/mplex
Original commit message from CVS:
Moved to gst-libs/ext/mplex
Diffstat (limited to 'ext/mplex/fastintfns.h')
-rw-r--r-- | ext/mplex/fastintfns.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ext/mplex/fastintfns.h b/ext/mplex/fastintfns.h deleted file mode 100644 index 7c1ec130..00000000 --- a/ext/mplex/fastintfns.h +++ /dev/null @@ -1,35 +0,0 @@ -/* fast int primitives. min,max,abs,samesign - * - * WARNING: Assumes 2's complement arithmetic. - * - */ - -#ifndef __inline__ -#define __inline__ inline -#endif - -static __inline__ int intmax( register int x, register int y ) -{ - return x < y ? y : x; -} - -static __inline__ int intmin( register int x, register int y ) -{ - return x < y ? x : y; -} - -static __inline__ int intabs( register int x ) -{ - return x < 0 ? -x : x; -} - -#define fabsshift ((8*sizeof(unsigned int))-1) - -#define signmask(x) (((int)x)>>fabsshift) -static __inline__ int intsamesign(int x, int y) -{ - return (y+(signmask(x) & -(y<<1))); -} -#undef signmask -#undef fabsshift - |