examples/SFExamples/oggvorbiscodec/src/tremor/os.h

00001 #ifndef _OS_H
00002 #define _OS_H
00003 /********************************************************************
00004  *                                                                  *
00005  * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE.   *
00006  *                                                                  *
00007  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
00008  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
00009  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
00010  *                                                                  *
00011  * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002    *
00012  * BY THE Xiph.Org FOUNDATION http://www.xiph.org/                  *
00013  *                                                                  *
00014  ********************************************************************
00015 
00016  function: #ifdef jail to whip a few platforms into the UNIX ideal.
00017 
00018  ********************************************************************/
00019 
00020 #include <math.h>
00021 #include "os_types.h"
00022 
00023 #ifndef _V_IFDEFJAIL_H_
00024 #  define _V_IFDEFJAIL_H_
00025 
00026 #  ifdef __GNUC__
00027 #    define STIN static
00028 #  elif _WIN32
00029 #    define STIN static
00030 #  endif
00031 #else
00032 #  define STIN static
00033 #endif
00034 
00035 #ifndef M_PI
00036 #  define M_PI (3.1415926536f)
00037 #endif
00038 
00039 #if defined(_WIN32) && !defined(__SYMBIAN32__)
00040 #  include <malloc.h>
00041 #  define rint(x)   (floor((x)+0.5f)) 
00042 #  define NO_FLOAT_MATH_LIB
00043 #  define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b))
00044 #endif
00045 
00046 #ifdef HAVE_ALLOCA_H
00047 #  include <alloca.h>
00048 #endif
00049 
00050 #ifdef USE_MEMORY_H
00051 #  include <memory.h>
00052 #endif
00053 
00054 #ifndef min
00055 #  define min(x,y)  ((x)>(y)?(y):(x))
00056 #endif
00057 
00058 #ifndef max
00059 #  define max(x,y)  ((x)<(y)?(y):(x))
00060 #endif
00061 
00062 #endif /* _OS_H */

Generated by  doxygen 1.6.2