much better nan!

SVN revision: 44305
This commit is contained in:
Carsten Haitzler 2009-12-09 05:30:43 +00:00
parent 35da61c96d
commit 8700b81cb2
2 changed files with 5 additions and 8 deletions

View File

@ -260,14 +260,8 @@ struct _Edje_External_Param
typedef struct _Edje_External_Param Edje_External_Param;
#ifndef NAN
# include <endian.h>
# if __BYTE_ORDER == __BIG_ENDIAN
# define __nan_bytes { 0x7f, 0xc0, 0, 0 }
# elif __BYTE_ORDER == __LITLE_ENDIAN
# define __nan_bytes { 0, 0, 0xc0, 0x7f }
# endif
static union { unsigned char __c[4]; float __d; } __nan_union = { __nan_bytes };
# define NAN (__nan_union.d)
extern float *_edje_const_nan;
#define NAN (*_edje_const_nan)
#endif
#define EDJE_EXTERNAL_INT_UNSET INT32_MAX

View File

@ -6,6 +6,9 @@
#include "edje_private.h"
static const unsigned int _edje_conte_nan_int = 0x7fc00000;
float *_edje_const_nan = (float *)(&(_edje_conte_nan_int));
static int _edje_init_count = 0;
static int _edje_log_dom_global = -1;
Eina_Mempool *_edje_real_part_mp = NULL;