mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
nir: Add rounding modes enum
v2: Added comments describing each of the rounding modes. (Jason
Ekstrand)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
5165e222d1
commit
d711445430
1 changed files with 10 additions and 0 deletions
|
|
@ -106,6 +106,16 @@ typedef enum {
|
|||
nir_var_all = ~0,
|
||||
} nir_variable_mode;
|
||||
|
||||
/**
|
||||
* Rounding modes.
|
||||
*/
|
||||
typedef enum {
|
||||
nir_rounding_mode_undef = 0,
|
||||
nir_rounding_mode_rtne = 1, /* round to nearest even */
|
||||
nir_rounding_mode_ru = 2, /* round up */
|
||||
nir_rounding_mode_rd = 3, /* round down */
|
||||
nir_rounding_mode_rtz = 4, /* round towards zero */
|
||||
} nir_rounding_mode;
|
||||
|
||||
typedef union {
|
||||
float f32[4];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue