Java Programming 2
来源:互联网 发布:手机淘宝怎样退换货 编辑:程序博客网 时间:2024/05/16 07:44
To make the code more efficiently, instead of simply dividing or multiplying the 16, 32, 64, we could move the bits.
private static int ACT_SIZE = 32;y * ACT_SIZE
We could change it to
private static int SIZE_ROL = 5;x << SIZE_ROL
However, we should also notice that the sequence of executing is, multiply/divide->add/minus->shifting bits.
Thus, the code shoud be like this,
(points[i].x << SIZE_ROL) + 7
- Java Programming 2
- Java Network Programming 笔记(2)
- Java Programming: simple Polymorphic programming
- Java Programming: JButton Final Programming
- Chapter 2: The Java Programming Environment
- Programming Methodology in Java 笔记 2
- java Network programming using socket(2)
- WebSocket Java Programming入门-2(Programmatic)
- java Network programming using socket(2)
- Java并行编程(parallel programming) 2
- Java Programming: the Final Check Box Programming
- Java Programming tricky Skills
- Java Programming Basics (1996)
- Java Programming Style Guidelines
- Java Database Programming Bible
- Java 1.4 Game Programming
- LDAP programming with Java
- Java Database Programming Bible
- 裘宗燕:C/C++ 语言中的表达式求值
- 程序员对内存的理解
- Stanford Machine Learning -- 第七讲 PCA 主成分分析
- poj 3286 How many 0's?
- linux内存管理分类
- Java Programming 2
- hadoop对于压缩文件的支持及算法优缺点
- OBJC、C函数对指针形参处理
- 转载_移植LINUX ARM篇
- jcaptcha maven
- ADF局部刷新
- 十天内掌握线性代数:惊人的超速学习实验
- java线程状态
- js中replace的用法-正则替换