Hao Blog

I would prefer to walk the road that didn’t exist until I walked it.

Fixed Point Arithmetic

定点数

定点数 定义 定点数是一种实数数据类型,要求小数点后位数固定,有时也要求小数点前位数固定。定点数与更复杂的浮点数相对。 如果程序需要在没有FPU(Floating Point Unit,浮点运算器)的处理器上执行,或者可以通过定点数提高效率和计算精度时,常使用定点数表示基数为2或10的分数。 定点数类型的值其实就是个整数,需要额外做比例进位,进多少位需要根据具体的定点数类型决定。并且相...

Git Commands

Git常用命令

Git常用命令 Git基础命令 git clone git clone [url]:拉取远程仓库 git clone --depth 1 [url]:拉取远程仓库,且只拉取最近的一次commit,限制 clone 的深度,不会下载 Git 协作的历史记录,这样可以大大加快克隆的速度。但后期无法访问其他的远程分支了。对应的解决方案见Q&A。 git fetch ....

Google Test

gtest

General Unit Test The general unit test includes: Code review Static code scanning Unit test case writing Unit testing is to test and verify the smallest unit in the software. General...

Arm NEON

Arm NEON编程

什么是Arm NEON技术 NEON是指适用于Arm Cortex-A系列或Cortex-R系列处理器的一种高级SIMD-Advanced-SIMD (single instruction, multiple data)扩展指令集。NEON 技术可加速多媒体和信号处理算法(如视频编码/解码、2D/3D 图形、游戏、音频和语音处理、图像处理技术、电话和声音合成)。 SIMD结构(对应单指令...

SELinux

安全增强型Linux

什么是SELinux? SELinux是「Security-Enhanced Linux」的简称,是美国国家安全局「NSA=The National Security Agency」 和SCC(Secure Computing Corporation)开发的 Linux的一个扩张强制访问控制安全模块,是一种采用安全架构的Linux子系统,或者称为一个 Linux 内核模块。 SElinu...

ADB Debug

ADB调试

What is ADB? ADB is a client-server program, and there are three components that make up the entire process. ADB stands for “Android Debug Bridge,” and it is a command line tool that is used to co...

Dynamic and Static Library

C++下的动态与静态库

what is library Essentially, a library is a binary form of executable code that can be loaded into memory and executed by the operating system. There are two types of libraries: static libraries (...

ADB Background

ADB背景相关

Background What is XDA Developers? XDA Developers (also known simply as XDA; often stylized as xda-developers) is a mobile software development community launched on 20 December 2002. Although di...

Monkey Test

猴子测试

What is Monkey Test? In software testing, monkey testing is a technique where the user tests the application or system by providing random inputs and checking the behavior, or seeing whether the a...

Linux Memory Cache

Linux下缓存清理

How to Clear Memory Cache in Linux You can write to /proc/sys/vm/drop_caches file to instruct kernel to drop clean caches, as well as reclaimable slab objects like dentries and inodes. Once droppe...