Amethyst Studio
为什么C语言需要结构体对齐
2022-07-16
提供一个例子,解释为什么C语言需要结构体对齐
646 words
|
3 minutes
Cover Image of the Post
C++的静态继承 - CRTP机制
2022-07-14
面向对象中的继承机制要依赖动态多态来实现,不过C++的CRTP机制允许我们进行静态继承
570 words
|
3 minutes
Cover Image of the Post
计算机是如何计算pow函数的
从数学的角度,解释计算机是如何计算pow函数的
1903 words
|
10 minutes
Cover Image of the Post
Ubuntu 20.04安装最新版gcc
在ubuntu 20.04上通过源码安装最新版本的gcc
411 words
|
2 minutes
Cover Image of the Post
glibc源码剖析 - scalbnf
剖析一下glibc中scalbnf的实现,熟悉IEEE 754标准才能解读好这个代码
1705 words
|
9 minutes
Cover Image of the Post
现代C++模板 - contain all none any
用模板实现不定参数的contain all none和any
204 words
|
1 minutes
Cover Image of the Post
glibc源码剖析 - isinf
剖析一下glibc中isinf的实现,虽然是很简单的函数,但也有很值得学习的地方
872 words
|
4 minutes
Cover Image of the Post
改错记
在公司改bug时的一见趣事
273 words
|
1 minutes
Cover Image of the Post