st/mesa: add comment to explain _min(), _maxf(), etc. functions

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Brian Paul 2014-02-25 09:53:49 -07:00
parent 9855477e90
commit c88a0b6af3

View file

@ -39,6 +39,12 @@
#include "st_extensions.h"
#include "st_format.h"
/*
* Note: we use these function rather than the MIN2, MAX2, CLAMP macros to
* avoid evaluating arguments (which are often function calls) more than once.
*/
static unsigned _min(unsigned a, unsigned b)
{
return (a < b) ? a : b;