摘要
在很多系统程序中常要求在位(bit)一级进行运算或处理。C语言提供了位运算的功能,这使得C语言也能像汇编语言一样用来编写系统程序。位运算说的简单一些,就是直接对整数在内存中的二进制位进行操作。希望通过本文让大家了解位运算中鲜为人知的事情。
In many system program often requires(bit)in a computing or processing.C language provides a calculation function,which makes the C language can be the same as the assembly language used to write the program.Bit operation that simple, just to integer in binary bits in memory operation.Hope that through this article to let everybody know the little-known things bit operation.
出处
《软件工程师》
2014年第5期20-21,共2页
Software Engineer
关键词
位运算
规则
左移
右移
可移植
bit operations
rules
left
right
transplantation