Fast digit count (integer log10)

A forum for ARM assembly programmers (32 & 64 bit)
Post Reply
rhyde
Site Admin
Posts: 47
Joined: Sun Dec 04, 2022 5:36 pm

Fast digit count (integer log10)

Post by rhyde »

Attached are a couple of functions that quickly count the number of decimal digits in an integer (32- and 64-bit versions).
Cheers,
Randy Hyde
Attachments
Listing9-2.zip
64-bit version
(20.09 KiB) Downloaded 18 times
Listing9-1.zip
32-bit version
(13.15 KiB) Downloaded 17 times
Post Reply