Commit c88a0b6a authored by Brian Paul's avatar Brian Paul

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

Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent 9855477e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment