Re: [PATCH v2 1/3] newlib: Add FreeBSD files for non LDBL_EQ_DBL support

Jennifer Averett <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <BN6PR19MB00986D44B8BEA2699954F64A9B6A9@BN6PR19MB0098.namprd19.prod.outlook.com>
I'll use the <sys/endian.h> file from RTEMS in patch 1.  Patch v2- 2/3 moved <sys/endian.h> to
<endian.h> per Corinna's request.  Talking with Joel, we may need to revert that change
and leave it as <sys/endian.h>.

Thanks
Jennifer

________________________________________
From: Sebastian Huber <[email protected]>
Sent: Monday, April 24, 2023 8:03 AM
To: Jennifer Averett; [email protected]
Subject: Re: [PATCH v2 1/3] newlib: Add FreeBSD files for non LDBL_EQ_DBL support

On 20.04.23 23:23, Jennifer Averett wrote:
> +static __inline uint32_t
> +le32dec(const void *pp)
> +{
> +     uint8_t const *p = (uint8_t const *)pp;
> +
> +     return (((unsigned)p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]);
> +}

The <sys/endian.h> from RTEMS has some fixes for 16-bit targets.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: [email protected]
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.