Quantcast
Channel: ARM Connected Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 3617

How to get absolute value of a 32-bit signed integer as fast as possible?

$
0
0
Hi.   I wonder how to calculate absolute value of a 32-bit signed integer in C as fast as possible. I saw that there is a FPU instruction VABS.F32, which do that in one cycle (above the floats). I thought, if it is possible to use it also with

Viewing all articles
Browse latest Browse all 3617

Trending Articles