<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>b1u3</author_name>
  <author_url>https://blog.hatena.ne.jp/b1u3/</author_url>
  <blog_title>いろんなことで四苦Hack（仮）</blog_title>
  <blog_url>https://b1u3.hateblo.jp/</blog_url>
  <categories>
    <anon>エミュレータ</anon>
    <anon>小ネタ</anon>
  </categories>
  <description>mgba 読んでたら __builtin_bswap というマクロが出てきた。 これは GCC に含まれるビルトイン関数。 gcc.gnu.org これは、バイトを逆順に呼び出す関数。例えば、データ上のリトルエンディアンの値をビッグエンディアンで読み出したりできる。 正確には、変換するデータの大きさを表す 数字の suffix がつく。 簡単に確認してみる。 #include &lt;stdio.h&gt; int main() { printf(&quot;%x\n&quot;, __builtin_bswap32(0x12345678)); return 0; } 出力 % ./a.out 78563412 0x1234…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fb1u3.hateblo.jp%2Fentry%2F2021%2F04%2F05%2F005915&quot; title=&quot;__builtin_bswap  - いろんなことで四苦Hack（仮）&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-05 00:59:15</published>
  <title>__builtin_bswap </title>
  <type>rich</type>
  <url>https://b1u3.hateblo.jp/entry/2021/04/05/005915</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
