Krita Source Code Documentation
Loading...
Searching...
No Matches
KisHalfTraits.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef KISHALFTRAITS_H
8
#define KISHALFTRAITS_H
9
10
#include <KoConfig.h>
11
#ifdef HAVE_OPENEXR
12
13
#include <half.h>
14
#include <halfLimits.h>
15
16
#include <type_traits>
17
18
namespace
std
{
19
20
inline
bool
21
isfinite(half __x)
22
{
return
__x.isFinite(); }
23
24
inline
bool
25
isinf(half __x)
26
{
return
__x.isInfinity(); }
27
28
inline
bool
29
isnan(half __x)
30
{
return
__x.isNan(); }
31
32
inline
bool
33
isnormal(half __x)
34
{
return
__x.isNormalized(); }
35
36
inline
bool
37
signbit(half __x)
38
{
return
__x.isNegative(); }
39
40
}
41
42
#endif
43
44
#endif
// KISHALFTRAITS_H
std
Definition
propagate_const.h:43
libs
global
KisHalfTraits.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52