reactivemarkets / toolbox-cpp

The Reactive C++ Toolbox is an open source library of C++20 components designed for efficient, asynchronous network applications on the Linux platform.
https://reactivemarkets.github.io/toolbox-cpp/
Other
21 stars 20 forks source link

bug: the hex_digits function is broken on ARM32 builds #52

Closed markaylett closed 4 years ago

markaylett commented 4 years ago

The hex_digits function was using the long version of the bultin clz function (__builtin_clzl). Long integers are 32-bits on ARM32. A function template has been added to ensure that the correct intrinsic is used in future based on the size of the integer type.

Closes #51