<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>数学</anon>
    <anon>C++</anon>
  </categories>
  <description>前回、64ビット整数（__int64）を使ったが、 n /= 2;ここを、 n &gt;&gt;= 1;としたら、全体で4倍速くなった。 逆アセンブリ見てみるもんだね。 しかし、符号なし32ビット整数を2つ使ったら、さらに1.8倍になった。 こんな感じ。 // n = n * 3 + 1 void triple(uint n[2]) { n[0] = n[0] * 3 + 1; n[1] = n[1] * 3; uint over = n[0] &gt;&gt; 30; n[1] += over; n[0] &amp;= (1 }// n /= 2 void half(uint n[2]) { n[0] /= 2; uint…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20080209%2Fp1&quot; title=&quot;ツリー状の自然数の列（2） - inamori’s diary&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>https://cdn-ak.f.st-hatena.com/images/fotolife/i/inamori/20080209/20080209191059.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-02-09 00:00:00</published>
  <title>ツリー状の自然数の列（2）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20080209/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
