在程序设计中,算术移位是一种位操作,有时被称为有符号移位。它分为算术左移和算术右移。对于二进制数来说,算术移位可以移动每个数字的位置,即每个数字都能被移动,而空出的位置又被其他数字填充。当向右移动时,最左边的位置依旧保留原有位置的数值[1]。
参考文献
Wikiwand in your browser!
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.