Set __IEEE_LITTLE_ENDIAN for _XTENSA_EL__ (ESP32)

Message ID 20191216215611.382486-1-keithp@keithp.com
State Accepted
Commit ed2a469cdd281182fe2a9c2c6fcb3da3fa659979
Headers show
Series
  • Set __IEEE_LITTLE_ENDIAN for _XTENSA_EL__ (ESP32)
Related show

Commit Message

Keith Packard Dec. 16, 2019, 9:56 p.m.
Signed-off-by: Keith Packard <keithp@keithp.com>

---
 newlib/libc/include/machine/ieeefp.h | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.24.0

Comments

Corinna Vinschen Dec. 17, 2019, 9:10 a.m. | #1
On Dec 16 13:56, Keith Packard wrote:
> Signed-off-by: Keith Packard <keithp@keithp.com>

> ---

>  newlib/libc/include/machine/ieeefp.h | 4 ++++

>  1 file changed, 4 insertions(+)

> 

> diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h

> index 536ac11fc..aa8a1903b 100644

> --- a/newlib/libc/include/machine/ieeefp.h

> +++ b/newlib/libc/include/machine/ieeefp.h

> @@ -460,6 +460,10 @@

>  #define __IEEE_LITTLE_ENDIAN

>  #endif

>  

> +#ifdef __XTENSA_EL__

> +#define __IEEE_LITTLE_ENDIAN

> +#endif

> +

>  #ifdef __CYGWIN__

>  #define __OBSOLETE_MATH_DEFAULT 0

>  #endif

> -- 

> 2.24.0


Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Patch

diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h
index 536ac11fc..aa8a1903b 100644
--- a/newlib/libc/include/machine/ieeefp.h
+++ b/newlib/libc/include/machine/ieeefp.h
@@ -460,6 +460,10 @@ 
 #define __IEEE_LITTLE_ENDIAN
 #endif
 
+#ifdef __XTENSA_EL__
+#define __IEEE_LITTLE_ENDIAN
+#endif
+
 #ifdef __CYGWIN__
 #define __OBSOLETE_MATH_DEFAULT 0
 #endif