🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309586

Re: Zmiana Endiana

#309586
From: Radoslaw Szwed
Date: Thu, 04 Jan 2018 09:44
8 lines
1193 bytes
Użytkownik "Borneq" <borneq@antyspam.hidden.pl> napisał w wiadomości news:p2j4cs$g35$1@node1.news.atman.pl...
> Jak przekonwertować między Big Endian a Little Endian w c++?
> zmieniając 4 bajty w 32 bitwach z 0,1,2,3 na 3,2,1,0?

Tak na marginesie przypomnę, że procesory od 486 mają sprzętowe rozwiązanie rozkaz
BSWAP reg32

Rozkaz zajmuje 2 bajty i 1 cykl zegara.
Technical Details
Message-ID: <p2kt3j$pkj$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail
References: <p2j4cs$g35$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: "Radoslaw Szwed" <radekszwed@pochta.fm>
Newsgroups: pl.comp.lang.c
Subject: Re: Zmiana Endiana
Date: Thu, 4 Jan 2018 10:44:28 +0100
Organization: Aioe.org NNTP Server
Lines: 13
Message-ID: <p2kt3j$pkj$1@gioia.aioe.org>
References: <p2j4cs$g35$1@node1.news.atman.pl>
NNTP-Posting-Host: tfrjE4KTfXrJoxo6YOE9UQ.user.gioia.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse@aioe.org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-Notice: Filtered by postfilter v. 0.8.2
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit