<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sygh</author_name>
  <author_url>https://blog.hatena.ne.jp/sygh/</author_url>
  <blog_title>syghの新フラグメント置き場</blog_title>
  <blog_url>https://sygh.hatenadiary.jp/</blog_url>
  <categories>
    <anon>プログラミングTips</anon>
    <anon>C++</anon>
  </categories>
  <description>コードの単体パフォーマンステストをやっていて興味深い現象に遭遇しました。 演算途中で発生した不定値 IND (indeterminate value, -1.#IND) や、非数 NaN (not a number, 1.#QNAN) をそのまま計算に使い続けると、環境によっては正常値で演算する場合と比べて処理速度が異様に遅くなるようです。 確認したコンパイラはVisual C++ 2012。 /fp:precise でも /fp:fast でも同様。 実際に現象を確認したコードはもっと複雑な3次元画像処理なのですが、下記のような簡単なテストプログラムでも再現できました。Intel 環境（Xe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsygh.hatenadiary.jp%2Fentry%2F2014%2F06%2F14%2F012632&quot; title=&quot;不定値IND・非数NaNと浮動小数点演算速度 - syghの新フラグメント置き場&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>2014-06-14 01:26:32</published>
  <title>不定値IND・非数NaNと浮動小数点演算速度</title>
  <type>rich</type>
  <url>https://sygh.hatenadiary.jp/entry/2014/06/14/012632</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
