<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-08-03 0:46 GMT+03:00 Xiaodi Wu <span dir="ltr">&lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It&#39;s not that &lt;&lt; will overflow and / will not. Substitute * for / and the argument would be the same. The difference is that &lt;&lt; traps when you shift more than the total number of bits but does *not* trap when you shift numbers off as would arithmetic exponentiation; * traps on overflow. Thus, what &lt;&lt; is concerned about is the bits (as it should), but * is concerned about the max representable value.</blockquote><div><br></div><div>Substitute * for / and my argument would also be the same :)</div></div></div></div>