public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: Jennifer Averett <jennifer.averett@oarcorp.com>, newlib@sourceware.org
Subject: Re: [PATCH v2 1/3] newlib: Add FreeBSD files for non LDBL_EQ_DBL support
Date: Mon, 24 Apr 2023 15:03:10 +0200	[thread overview]
Message-ID: <e2d4c2c9-6c51-269b-0bac-06b3b15e750c@embedded-brains.de> (raw)
In-Reply-To: <20230420212309.2375488-2-jennifer.averett@oarcorp.com>

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: sebastian.huber@embedded-brains.de
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/

  parent reply	other threads:[~2023-04-24 13:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-20 21:23 [PATCH v2 0/3] Add math support for non LDBL_EQ_DBL architecture Jennifer Averett
2023-04-20 21:23 ` [PATCH v2 1/3] newlib: Add FreeBSD files for non LDBL_EQ_DBL support Jennifer Averett
2023-04-24  8:51   ` Corinna Vinschen
2023-04-24 12:47     ` Jennifer Averett
2023-04-24 13:03   ` Sebastian Huber [this message]
2023-04-27 11:46     ` Jennifer Averett
2023-04-27 11:49       ` Sebastian Huber
2023-04-20 21:23 ` [PATCH v2 2/3] newlib: Add non LDBL_EQ_DBL math support for aarch64, i386, and x86_64 Jennifer Averett
2023-04-20 21:23 ` [PATCH v2 3/3] Regenerated source for adding non LDBL_EQ_DBL Jennifer Averett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2d4c2c9-6c51-269b-0bac-06b3b15e750c@embedded-brains.de \
    --to=sebastian.huber@embedded-brains.de \
    --cc=jennifer.averett@oarcorp.com \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).