[Mesa-dev] [PATCH 2/3] mesa: helper macros to enable per function optimisations

Timothy Arceri t_arceri at yahoo.com.au
Sat Nov 8 14:53:26 PST 2014


On Sat, 2014-11-08 at 16:29 +0330, Siavash Eliasi wrote:
> I rather to not use compiler specific hacks in mesa. If it was a 
> personal pet project it would make sense.
> 
> Best regards,
> Siavash Eliasi.

Having to work around compiler differences is a real world problem. As
has been pointed out before msvc handles function specific optimisations
using intrinsics automatically. GCC and Clang don't so to avoid the
multiple issues cause by having to move things to a different file we
need to work around it. Thankfully macros allow the impact to be
minimised.





More information about the mesa-dev mailing list