openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openexr-devel] Removing register keyword


From: Ed Hanway
Subject: [Openexr-devel] Removing register keyword
Date: Fri, 30 Sep 2016 16:37:39 -0700

We have multiple pending pull requests to remove the register keyword from the OpenEXR source.  I've looked at the code generated by gcc 4.8 with and without the register keyword, and, despite the claim that compilers don't care about the register keyword any more, the resulting object code for x86-64 is different, and slightly worse without the keyword.  That choice of compiler and platform isn't arbitrary -- it's consistent with the VFX reference platform.  

However, since the difference is relatively small, and may not be present at all for other compilers and target architectures, and people will keep submitting bugs and pull requests as long as the register keyword is there, I'm inclined to go ahead and remove the keyword anyway.  If anybody is that concerned about a performance regression on the order of a few percent in the half-from-float constructor, speak now or forever hold your peace.

--
Ed Hanway


reply via email to

[Prev in Thread] Current Thread [Next in Thread]