Nap Joseph Calub

Software Engineer and Open Source Enthusiast

Posts with the "Binary Arithmetic" tag

Showing a total of 1 article.
0xffffffffffffffffn: uint64 hack to decrement by one using addition

Published on October 12, 2023

Deno

## Introduction In the world of software development, there are often clever tricks and hacks that developers use to solve specific problems. One such trick involves using `uint64` (unsigned 64-bit integer) arithmetic to subtract `1` from a number without actually using subtraction. This might sou...

© 2021 Nap Joseph Calub. All rights reserved.

Light Mode
Dark Mode