ptgen: fix misprint and simplify calculation a bit
authorMikhail Kshevetskiy <[email protected]>
Fri, 10 Jan 2025 08:23:54 +0000 (11:23 +0300)
committerDaniel Golle <[email protected]>
Tue, 23 Sep 2025 22:15:33 +0000 (23:15 +0100)
commit996dc482a7e88985e25ccb8b6829cbd2ae3e1a53
treeae15c10355f5973955798709849d1d5e14f0b27c
parent0725c3d4aa1b7ebec013439cb57fda9dea3f1d5e
ptgen: fix misprint and simplify calculation a bit

2 << ((10 * exp) - 1) is equal to 1 << (10 * exp). This allows us
simplify a formula and remove extra if.

Signed-off-by: Mikhail Kshevetskiy <[email protected]>
src/ptgen.c