<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C++言語における符号付き整数型の左ビットシフト&lt;&lt;と符号ビットの関係について。まとめ： 2の補数表現が保証されたC++20現在、左ビットシフト&lt;&lt;は論理左シフト(logical left shift)が保証される。 おまけ：C++20現在、右ビットシフト&gt;&gt;は算術右シフト(arithmetic right shift)が保証される。 // 前提：int型==32bit幅 constexpr int x = 1 &lt;&lt; 31; // x == -2147483648 (== -2^{31}) C++11時点では符号反転を伴う左ビットシフト演算は未定義動作(undefined behavior)で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20211108%2Fp1&quot; title=&quot;1 &amp;lt;&amp;lt; 31 == ? - yohhoyの日記&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-11-08 00:00:00</published>
  <title>1 &lt;&lt; 31 == ?</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20211108/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
