mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 20:00:24 +01:00
gallivm: fix trunc/itrunc comment
trunc of -1.5 is -1.0 not 1.0...
This commit is contained in:
parent
0f4984a0fb
commit
0ed8c56bfe
1 changed files with 6 additions and 6 deletions
|
|
@ -1054,9 +1054,9 @@ lp_build_round_sse41(struct lp_build_context *bld,
|
|||
|
||||
|
||||
/**
|
||||
* Return the integer part of a float (vector) value. The returned value is
|
||||
* a float (vector).
|
||||
* Ex: trunc(-1.5) = 1.0
|
||||
* Return the integer part of a float (vector) value (== round toward zero).
|
||||
* The returned value is a float (vector).
|
||||
* Ex: trunc(-1.5) = -1.0
|
||||
*/
|
||||
LLVMValueRef
|
||||
lp_build_trunc(struct lp_build_context *bld,
|
||||
|
|
@ -1181,9 +1181,9 @@ lp_build_fract(struct lp_build_context *bld,
|
|||
|
||||
|
||||
/**
|
||||
* Return the integer part of a float (vector) value. The returned value is
|
||||
* an integer (vector).
|
||||
* Ex: itrunc(-1.5) = 1
|
||||
* Return the integer part of a float (vector) value (== round toward zero).
|
||||
* The returned value is an integer (vector).
|
||||
* Ex: itrunc(-1.5) = -1
|
||||
*/
|
||||
LLVMValueRef
|
||||
lp_build_itrunc(struct lp_build_context *bld,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue