<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tkuro</author_name>
  <author_url>https://blog.hatena.ne.jp/tkuro/</author_url>
  <blog_title>初学者の箸置</blog_title>
  <blog_url>https://tkuro.hatenadiary.org/</blog_url>
  <categories>
    <anon>gcc</anon>
    <anon>cpu</anon>
  </categories>
  <description>RLogをいじってて知った__builtin_expectを試してみた。__builtin_expectはある式がほとんどの場合に決まった定数になる、と言う場合に分岐予測のヒントなどを与えて高速化を計るためのgccディレクティブだそうな。 RLogはdormant(休眠)状態のログファシリティに最適化してあって、プロダクションコードにログコードを残しっぱなしでもさほどデグレしないのが売りなんだけど、そのカラクリがこれ。 で、RLog自身についてはあとで書く。 どうかく？ 具体的には __builtin_expect(A,B)と書いた場合 Aが定数 Bである事を期待する、というヒント情報になる。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftkuro.hatenadiary.org%2Fentry%2F20110114%2F1294956535&quot; title=&quot;__builtin_expectの効力 - 初学者の箸置&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/t/tkuro/20110114/20110114064137.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-01-14 07:08:55</published>
  <title>__builtin_expectの効力</title>
  <type>rich</type>
  <url>https://tkuro.hatenadiary.org/entry/20110114/1294956535</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
