src/libm/math_private.h
changeset 4909 fd40b483d489
parent 2760 02aa80d7905f
child 5086 c2539ff054c8
equal deleted inserted replaced
4908:9b9dc9fc7df2 4909:fd40b483d489
    16 
    16 
    17 #ifndef _MATH_PRIVATE_H_
    17 #ifndef _MATH_PRIVATE_H_
    18 #define _MATH_PRIVATE_H_
    18 #define _MATH_PRIVATE_H_
    19 
    19 
    20 /*#include <endian.h>*/
    20 /*#include <endian.h>*/
       
    21 #include "SDL_endian.h"
    21 #include <sys/types.h>
    22 #include <sys/types.h>
    22 
    23 
    23 #define attribute_hidden
    24 #define attribute_hidden
    24 #define libm_hidden_proto(x)
    25 #define libm_hidden_proto(x)
    25 #define libm_hidden_def(x)
    26 #define libm_hidden_def(x)
    44  * Math on arm is special:
    45  * Math on arm is special:
    45  * For FPA, float words are always big-endian.
    46  * For FPA, float words are always big-endian.
    46  * For VFP, floats words follow the memory system mode.
    47  * For VFP, floats words follow the memory system mode.
    47  */
    48  */
    48 
    49 
    49 #if (__BYTE_ORDER == __BIG_ENDIAN) || \
    50 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
    50     (!defined(__VFP_FP__) && (defined(__arm__) || defined(__thumb__)))
       
    51 
    51 
    52 typedef union
    52 typedef union
    53 {
    53 {
    54     double value;
    54     double value;
    55     struct
    55     struct