-
常见的字符串Hash算法
常见hash算法的碰撞概率统计 10万 50万 100万 500万 1000万 一亿 1000万次的平均执行时间 一亿次的平均执行时间 一亿次的平均长度 BKDRHash 0.00002 0.000112 0.000251 0.00118... -
Macro returning the number of arguments it is given in C?
一个简单的实现能否使用一个简单的宏在C语言中计算不定参数的数量,例如这样: 123foo(1) -> 1foo(cat, dog) -> 2foo(red, green, blue) -> 3 一个比较简单的实现是这样的: 1#de... -
Recommended C style and coding rules
This document describes C code style used by Tilen MAJERLE in his projects and libraries. Table of Contents The single most i...