Closed kimishpatel closed 5 years ago
Performance loss comes from the fact that llvm does a function call to 'roundf' whereas replacing that with nearbyint just replaces the call with a couple of scale and round instructions.
Thanks for quick approval @yinghai. Yes accuracy wise it stays the same.
Performance loss comes from the fact that llvm does a function call to 'roundf' whereas replacing that with nearbyint just replaces the call with a couple of scale and round instructions.