~ubuntu-branches/ubuntu/lucid/schroedinger/lucid

« back to all changes in this revision

Viewing changes to schroedinger/schroutils.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-10-03 18:49:33 UTC
  • mfrom: (1.1.7 upstream) (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091003184933-mmkb7rff1nblsq6m
Tags: 1.0.8-2
* debian/control:
  + Build-depend on pkg-config to fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
#define ROUND_UP_2(x) ROUND_UP_POW2(x,1)
52
52
#define ROUND_UP_4(x) ROUND_UP_POW2(x,2)
53
53
#define ROUND_UP_8(x) ROUND_UP_POW2(x,3)
 
54
#define ROUND_UP_16(x) ROUND_UP_POW2(x,4)
54
55
#define ROUND_UP_64(x) ROUND_UP_POW2(x,6)
55
56
#define OFFSET(ptr,offset) ((void *)(((uint8_t *)(ptr)) + (offset)))
56
57
#define ROUND_SHIFT(x,y) (((x) + (1<<((y)-1)))>>(y))
57
58
 
58
59
#define schro_divide(a,b) (((a)<0)?(((a) - (b) + 1)/(b)):((a)/(b)))
 
60
#define schro_divide3(a) (((a)*21845 + 10922)>>16)
59
61
 
60
62
#endif
61
63