Path: blob/master/tools/android-sdk/renderscript/clang-include/float.h
496 views
/*===---- float.h - Characteristics of floating point types ----------------===1*2* Permission is hereby granted, free of charge, to any person obtaining a copy3* of this software and associated documentation files (the "Software"), to deal4* in the Software without restriction, including without limitation the rights5* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6* copies of the Software, and to permit persons to whom the Software is7* furnished to do so, subject to the following conditions:8*9* The above copyright notice and this permission notice shall be included in10* all copies or substantial portions of the Software.11*12* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN18* THE SOFTWARE.19*20*===-----------------------------------------------------------------------===21*/2223#ifndef __FLOAT_H24#define __FLOAT_H2526/* If we're on MinGW, fall back to the system's float.h, which might have27* additional definitions provided for Windows.28* For more details see http://msdn.microsoft.com/en-us/library/y0ybw9fy.aspx29*/30#if (defined(__MINGW32__) || defined(_MSC_VER)) && __STDC_HOSTED__ && \31__has_include_next(<float.h>)32# include_next <float.h>3334/* Undefine anything that we'll be redefining below. */35# undef FLT_EVAL_METHOD36# undef FLT_ROUNDS37# undef FLT_RADIX38# undef FLT_MANT_DIG39# undef DBL_MANT_DIG40# undef LDBL_MANT_DIG41# if __STDC_VERSION__ >= 199901L || !defined(__STRICT_ANSI__)42# undef DECIMAL_DIG43# endif44# undef FLT_DIG45# undef DBL_DIG46# undef LDBL_DIG47# undef FLT_MIN_EXP48# undef DBL_MIN_EXP49# undef LDBL_MIN_EXP50# undef FLT_MIN_10_EXP51# undef DBL_MIN_10_EXP52# undef LDBL_MIN_10_EXP53# undef FLT_MAX_EXP54# undef DBL_MAX_EXP55# undef LDBL_MAX_EXP56# undef FLT_MAX_10_EXP57# undef DBL_MAX_10_EXP58# undef LDBL_MAX_10_EXP59# undef FLT_MAX60# undef DBL_MAX61# undef LDBL_MAX62# undef FLT_EPSILON63# undef DBL_EPSILON64# undef LDBL_EPSILON65# undef FLT_MIN66# undef DBL_MIN67# undef LDBL_MIN68# if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__)69# undef FLT_TRUE_MIN70# undef DBL_TRUE_MIN71# undef LDBL_TRUE_MIN72# undef FLT_DECIMAL_DIG73# undef DBL_DECIMAL_DIG74# undef LDBL_DECIMAL_DIG75# endif76#endif7778/* Characteristics of floating point types, C99 5.2.4.2.2 */7980#define FLT_EVAL_METHOD __FLT_EVAL_METHOD__81#define FLT_ROUNDS (__builtin_flt_rounds())82#define FLT_RADIX __FLT_RADIX__8384#define FLT_MANT_DIG __FLT_MANT_DIG__85#define DBL_MANT_DIG __DBL_MANT_DIG__86#define LDBL_MANT_DIG __LDBL_MANT_DIG__8788#if __STDC_VERSION__ >= 199901L || !defined(__STRICT_ANSI__)89# define DECIMAL_DIG __DECIMAL_DIG__90#endif9192#define FLT_DIG __FLT_DIG__93#define DBL_DIG __DBL_DIG__94#define LDBL_DIG __LDBL_DIG__9596#define FLT_MIN_EXP __FLT_MIN_EXP__97#define DBL_MIN_EXP __DBL_MIN_EXP__98#define LDBL_MIN_EXP __LDBL_MIN_EXP__99100#define FLT_MIN_10_EXP __FLT_MIN_10_EXP__101#define DBL_MIN_10_EXP __DBL_MIN_10_EXP__102#define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__103104#define FLT_MAX_EXP __FLT_MAX_EXP__105#define DBL_MAX_EXP __DBL_MAX_EXP__106#define LDBL_MAX_EXP __LDBL_MAX_EXP__107108#define FLT_MAX_10_EXP __FLT_MAX_10_EXP__109#define DBL_MAX_10_EXP __DBL_MAX_10_EXP__110#define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__111112#define FLT_MAX __FLT_MAX__113#define DBL_MAX __DBL_MAX__114#define LDBL_MAX __LDBL_MAX__115116#define FLT_EPSILON __FLT_EPSILON__117#define DBL_EPSILON __DBL_EPSILON__118#define LDBL_EPSILON __LDBL_EPSILON__119120#define FLT_MIN __FLT_MIN__121#define DBL_MIN __DBL_MIN__122#define LDBL_MIN __LDBL_MIN__123124#if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__)125# define FLT_TRUE_MIN __FLT_DENORM_MIN__126# define DBL_TRUE_MIN __DBL_DENORM_MIN__127# define LDBL_TRUE_MIN __LDBL_DENORM_MIN__128# define FLT_DECIMAL_DIG __FLT_DECIMAL_DIG__129# define DBL_DECIMAL_DIG __DBL_DECIMAL_DIG__130# define LDBL_DECIMAL_DIG __LDBL_DECIMAL_DIG__131#endif132133#endif /* __FLOAT_H */134135136