请输入您要查询的字词:

 

单词 BitwiseOR
释义

bitwise OR


Bitwise OR is a bit-level operation on two binary values which indicates which bits are set in either value. For each position i, if the bit di in either value is 1, then di of the result is 1, otherwise it’s 0. For example, given 50 and 163 in two unsigned bytes, a bitwise OR returns 179.

In most high-level programming languages that offer bitwise OR, the usual operator is a single pipe line (—), not to be confused with a double pipe line (——) which performs a Boolean OR, returning a True or False value.

The Windows Calculator offers bitwise OR in scientific calculator mode, while the Mac OS X Calculator offers it in programmer mode.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/24 13:21:58