util: Tiny optimisation for the linear→srgb conversion
authorNeil Roberts <neil@linux.intel.com>
Thu, 26 Nov 2015 16:53:42 +0000 (17:53 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 27 Nov 2015 09:55:22 +0000 (10:55 +0100)
commitbc2470d5d3e9788af8d6aee0a001b7de9cd4972b
tree49835848a363ac6d09763341d02cba83dd2c9575
parent27a88a947c78c9af5eaeb6587fb5211057931d8c
util: Tiny optimisation for the linear→srgb conversion

When converting 0.0 it would be nice if it didn't do any arithmetic.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/util/format_srgb.h