<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>n7shi</author_name>
  <author_url>https://blog.hatena.ne.jp/n7shi/</author_url>
  <blog_title>七誌の開発日記</blog_title>
  <blog_url>https://7shi.hateblo.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>ulong（64bit符号なし整数型）同士の掛け算を128bitで計算して上位64bitを取得する必要に迫られました。C#のサンプルが見当たらなかったので、作成したものをパブリックドメインに置いておきます。下位64bitは普通に掛け算すれば得られます。 public ulong umulh(ulong x, ulong y) { ulong xh = x &gt;&gt; 32, xl = x &amp; 0xffffffff; ulong yh = y &gt;&gt; 32, yl = y &amp; 0xffffffff; ulong a = xh * yl, ah = a &gt;&gt; 32, al = a &amp; 0xffffffff…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F7shi.hateblo.jp%2Fentry%2F20100630%2F1277983197&quot; title=&quot;ulongの積の上位64bit - 七誌の開発日記&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>2010-06-30 20:19:57</published>
  <title>ulongの積の上位64bit</title>
  <type>rich</type>
  <url>https://7shi.hateblo.jp/entry/20100630/1277983197</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
