mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
st/mesa: add comment to explain _min(), _maxf(), etc. functions
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
9855477e90
commit
c88a0b6af3
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue