|
发表于 2007-6-26 12:41:00
|
显示全部楼层
嗯. 是的. 表示长整型.
下面是关于内核中为什么使用UL的一个解释:
UL is commonly appended to the end of a numerical constant to mark an "unsigned long." UL (or L for long) is necessary because it tells the compiler to treat the value as a long value. This prevents certain architectures from overflowing the bounds of their datatypes. For example, a 16-bit integer can represent numbers between 32,768 and +32,767; an unsigned integer can represent numbers up to 65,535. Using UL allows you to write architecturally independent code for large numbers or long bitmasks. |
|