diff options
Diffstat (limited to 'third_party/skcms')
-rw-r--r-- | third_party/skcms/src/PortableMath.c | 6 | ||||
-rw-r--r-- | third_party/skcms/src/PortableMath.h | 2 | ||||
-rwxr-xr-x | third_party/skcms/version.sha1 | 2 |
3 files changed, 2 insertions, 8 deletions
diff --git a/third_party/skcms/src/PortableMath.c b/third_party/skcms/src/PortableMath.c index 9e1a138713..d63d6abb0c 100644 --- a/third_party/skcms/src/PortableMath.c +++ b/third_party/skcms/src/PortableMath.c @@ -60,9 +60,3 @@ float powf_(float x, float y) { return (x == 0) || (x == 1) ? x : r * exp2f_(log2f_(x) * y); } - -bool isfinitef_(float x) { - uint32_t bits; - small_memcpy(&bits, &x, sizeof(bits)); - return (bits & 0x7f800000) != 0x7f800000; -} diff --git a/third_party/skcms/src/PortableMath.h b/third_party/skcms/src/PortableMath.h index efa59bf704..58a2fa8751 100644 --- a/third_party/skcms/src/PortableMath.h +++ b/third_party/skcms/src/PortableMath.h @@ -27,4 +27,4 @@ float log2f_(float); float exp2f_(float); float powf_(float, float); -bool isfinitef_(float); +static inline bool isfinitef_(float x) { return 0 == x*0; } diff --git a/third_party/skcms/version.sha1 b/third_party/skcms/version.sha1 index 6a74e30c81..720d2402e3 100755 --- a/third_party/skcms/version.sha1 +++ b/third_party/skcms/version.sha1 @@ -1 +1 @@ -5b9549acaa26e3e2cae8919a0ee0e4cdeb59e1e8
\ No newline at end of file +28e8b3248d725ed1a7e71d0c9d3dffb3cee2c561
\ No newline at end of file |