[PATCH] Set __IEEE_LITTLE_ENDIAN for _XTENSA_EL__ (ESP32)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Set __IEEE_LITTLE_ENDIAN for _XTENSA_EL__ (ESP32)

Keith Packard
Signed-off-by: Keith Packard <[hidden email]>
---
 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

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Set __IEEE_LITTLE_ENDIAN for _XTENSA_EL__ (ESP32)

Corinna Vinschen
On Dec 16 13:56, Keith Packard wrote:

> Signed-off-by: Keith Packard <[hidden email]>
> ---
>  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

signature.asc (849 bytes) Download Attachment