~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenpluginapi/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Copyright (c) 1999, Not a Number / NeoGeo b.v. 
2
 
 * $Id: util.h,v 1.5 2003/04/30 13:21:47 ton Exp $
 
2
 * $Id: util.h,v 1.6 2004/12/13 13:51:35 sirdude Exp $
3
3
 * 
4
4
 * All rights reserved.
5
5
 * 
76
76
#define ABS(x)  ((x) < 0 ? -(x) : (x))
77
77
#define FLOOR(x) ((int)(x) - ((x) < 0 && (x) != (int)(x)))
78
78
#define CEIL(x) ((int)(x) + ((x) > 0 && (x) != (int)(x)))
79
 
#define STEP(a,b)       ((a)>(b)) (1) : (0))
 
79
#define STEP(a,b)       ( (a)>(b) ? (1) : (0) )
80
80
#define CLAMP(val, low, high) ((val>high)?high:((val<low)?low:val))
81
81
#define LERP(t,x0,x1) ((x0) + (t)*((x1)-(x0)))
82
82
#define PULSE(a,b,x) (STEP((a),(x)) - STEP((b),(x)))