MinoruSekine / libfixedpointnumber

Library for fixed point number by C++11
GNU Lesser General Public License v3.0
3 stars 2 forks source link

Is there any performance comparison avaiable? #216

Closed hitdshu closed 2 years ago

hitdshu commented 2 years ago

Hi,

Thanks for your excellent project. Is there any performance comparison avaiable? Like fixed vs. float, fixed vs. double, etc..

Deshun

MinoruSekine commented 2 years ago

@hitdshu I'm very sorry for missing this ticket.

Is there any performance comparison avaiable? Like fixed vs. float, fixed vs. double, etc..

No. Those comparison must be there because we can determine which numeric type is suitable.

But I think there are no doubt that...

I have to say "Performance comparison should be available" again.

hitdshu commented 2 years ago

Wow, thanks for your reply.....

You're right. Through some search in the web, I found that FPU can make operations of floats as fast as integers. And fixed float might should be used in embbed systems where theres isn't a FPU there....

Thanks for your help. Have a nice day. Deshun