mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: Apply clang-format (make format)
This commit is contained in:
parent
22ee056c3a
commit
c18ff180e3
1 changed files with 3 additions and 3 deletions
|
|
@ -807,9 +807,9 @@ MINLINE unsigned char unit_float_to_uchar_clamp(float val)
|
|||
|
||||
MINLINE unsigned short unit_float_to_ushort_clamp(float val)
|
||||
{
|
||||
return (unsigned short)((val >= 1.0f - 0.5f / 65535) ? 65535 :
|
||||
(val <= 0.0f) ? 0 :
|
||||
(val * 65535.0f + 0.5f));
|
||||
return (unsigned short)((val >= 1.0f - 0.5f / 65535) ?
|
||||
65535 :
|
||||
(val <= 0.0f) ? 0 : (val * 65535.0f + 0.5f));
|
||||
}
|
||||
#define unit_float_to_ushort_clamp(val) \
|
||||
((CHECK_TYPE_INLINE(val, float)), unit_float_to_ushort_clamp(val))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue