~ubuntu-branches/ubuntu/hardy/avidemux/hardy

« back to all changes in this revision

Viewing changes to avidemux/ADM_libraries/ADM_libmpeg2enc/fastintfns.h

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev
  • Date: 2007-12-18 13:53:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218135304-cdqec2lg2bglyz15
Tags: 1:2.4~preview3-0.0ubuntu1
* Upload to Ubuntu. (LP: #163287, LP: #126572)
* debian/changelog: re-added Ubuntu releases.
* debian/control:
  - Require debhelper >= 5.0.51 (for dh_icons) and imagemagick.
  - Build-depend on libsdl1.2-dev instead of libsdl-dev.
  - Build against newer libx264-dev. (LP: #138854)
  - Removed libamrnb-dev, not in Ubuntu yet.
* debian/rules:
  - Install all icon sizes, using convert (upstream installs none).
  - Added missing calls to dh_installmenu, dh_installman, dh_icons and
    dh_desktop.
* debian/menu, debian/avidemux-qt.menu:
  - Corrected package and executable names.
* debian/avidemux-common.install: Install icons.
* debian/avidemux.common.manpages: Install man/avidemux.1.
* debian/links, debian/avidemux-cli.links, debian/avidemux-gtk.links:
  - Link manpages to avidemux.1.gz.
* debian/install, debian/avidemux-qt.install, debian/avidemux-gtk.desktop,
  debian/avidemux-qt.desktop: Install desktop files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* fast int primitives. min,max,abs,samesign
 
2
 *
 
3
 * WARNING: Assumes 2's complement arithmetic.
 
4
 *
 
5
 */
 
6
 
 
7
 
 
8
static __inline__ int intmax( register int x, register int y )
 
9
{
 
10
        return x < y ? y : x;
 
11
}
 
12
 
 
13
static __inline__ int intmin( register int x, register int y )
 
14
{
 
15
        return x < y ? x : y;
 
16
}
 
17
 
 
18
static __inline__ int intabs( register int x )
 
19
{
 
20
        return x < 0 ? -x : x;
 
21
}
 
22
 
 
23
#define fabsshift ((8*sizeof(unsigned int))-1)
 
24
 
 
25
#define signmask(x) (((int)x)>>fabsshift)
 
26
static __inline__ int intsamesign(int x, int y)
 
27
{
 
28
        return (y+(signmask(x) & -(y<<1)));
 
29
}
 
30
#undef signmask
 
31
#undef fabsshift
 
32