2012-06-03 15:48:14 +00:00
|
|
|
#ifndef _OS_H
|
|
|
|
#define _OS_H
|
|
|
|
/********************************************************************
|
|
|
|
* *
|
|
|
|
* THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
|
|
|
|
* *
|
|
|
|
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
|
|
|
|
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
|
|
|
|
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
|
|
|
|
* *
|
|
|
|
* THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
|
|
|
|
* BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
|
|
|
|
* *
|
|
|
|
********************************************************************
|
|
|
|
|
|
|
|
function: #ifdef jail to whip a few platforms into the UNIX ideal.
|
|
|
|
|
|
|
|
********************************************************************/
|
|
|
|
|
2018-04-24 04:44:46 +00:00
|
|
|
#include <stdint.h>
|
2012-06-03 15:48:14 +00:00
|
|
|
#include <math.h>
|
|
|
|
|
2018-04-24 04:44:46 +00:00
|
|
|
#include <retro_inline.h>
|
2012-06-03 15:48:14 +00:00
|
|
|
|
|
|
|
#ifndef M_PI
|
|
|
|
# define M_PI (3.1415926536f)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# include <malloc.h>
|
|
|
|
# define rint(x) (floor((x)+0.5f))
|
|
|
|
# define NO_FLOAT_MATH_LIB
|
|
|
|
# define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_ALLOCA_H
|
|
|
|
# include <alloca.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USE_MEMORY_H
|
|
|
|
# include <memory.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _OS_H */
|