3 /********************************************************************
5 * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
7 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
8 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
9 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
11 * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
12 * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
14 ********************************************************************
16 function: #ifdef jail to whip a few platforms into the UNIX ideal.
18 ********************************************************************/
23 #ifndef _V_IFDEFJAIL_H_
24 # define _V_IFDEFJAIL_H_
27 # define STIN static inline
29 # define STIN static __inline__
32 # define STIN static inline
36 # define M_PI (3.1415926536f)
41 # define rint(x) (floor((x)+0.5f))
42 # define NO_FLOAT_MATH_LIB
43 # define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b))
55 # define min(x,y) ((x)>(y)?(y):(x))
59 # define max(x,y) ((x)<(y)?(y):(x))