mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
glsl: Add "built-in" functions to do ffract(fp64)
Reviewed-by: Elie Tournier <tournier.elie@gmail.com>
This commit is contained in:
parent
5c9a659f50
commit
e213f3871f
1 changed files with 6 additions and 0 deletions
|
|
@ -1458,3 +1458,9 @@ __fmax64(uint64_t a, uint64_t b)
|
|||
if (__flt64_nonnan(a, b)) return b;
|
||||
return a;
|
||||
}
|
||||
|
||||
uint64_t
|
||||
__ffract64(uint64_t a)
|
||||
{
|
||||
return __fadd64(a, __fneg64(__ffloor64(a)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue