Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

32-bit Floating to 32-bit Integer conversion on DSP C674x

$
0
0

Hi,

Can anybody please tell me how to do a 32-bit Floating to 32-bit Integer conversion using an intrinsic or any other optimized way? But the requirement is the o/p should match the o/p of - floor(0.5+float_number)

I tried with "_spint" but doesn't match for some values. PFA for the prints of floor(0.5+float_number) and _spint(float_number)

Thanks a lot in advance.

PS: Please see that this conversion happens in a loop so, shouldn't break software pipelining.

Regards,

Mahantesh


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>