kazinator
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
1173 ms·
- 5311.▲
- 5312.▲
- 5313.▲
- 5314.▲
- 5315.▲
- 5316.▲
- 5317.▲
- 5318.▲
- 5319.▲
- 5320.▲
- 5321.▲
- 5322.▲
- 5323.▲
- 5324.▲
- 5325.▲
Here is a table-driven idea. #include <stdio.h>
int bcd2dec[] = {
[0x000] = 0, [0x001] = 1, [0x002] = 2, [0x003] = 3, [0x004] = 4,
[0x005] = 5, [0x006] = 6, [0x007] = 7, [0x008] = 8, [0x009] = 9,
[0x010] = 10, [0x01 - 5326.▲
- 5327.▲
- 5328.▲
- 5329.▲
- 5330.▲
- 5331.▲
- 5332.▲
- 5333.▲
- 5334.▲
- 5335.▲
- 5336.▲
- 5337.▲
- 5338.▲
- 5339.▲
- 5340.▲
More ›