~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to source/blender/blenlib/BLI_math_base.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
#define MAXFLOAT  ((float)3.40282347e+38)
81
81
#endif
82
82
 
 
83
#if defined(__GNUC__)
 
84
#  define NAN_FLT __builtin_nanf("")
 
85
#else
 
86
/* evil quiet NaN definition */
 
87
static const int NAN_INT = 0x7FC00000;
 
88
#  define NAN_FLT  (*((float *)(&NAN_INT)))
 
89
#endif
 
90
 
83
91
/* do not redefine functions from C99 or POSIX.1-2001 */
84
92
#if !(defined(_ISOC99_SOURCE) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L))
85
93
 
214
222
MINLINE int power_of_2_min_i(int n);
215
223
 
216
224
MINLINE int divide_round_i(int a, int b);
 
225
MINLINE int mod_i(int i, int n);
217
226
 
218
227
MINLINE float shell_angle_to_dist(const float angle);
219
228