Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
1a65fc26
Commit
1a65fc26
authored
Oct 13, 2016
by
baldurk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add std::isnan and std::isinf wrappers for VS2010 that doesn't have them
parent
033d3ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
hex_float.h
SPIRV/hex_float.h
+13
-0
No files found.
SPIRV/hex_float.h
View file @
1a65fc26
...
@@ -23,6 +23,19 @@
...
@@ -23,6 +23,19 @@
#include <limits>
#include <limits>
#include <sstream>
#include <sstream>
#if defined(_MSC_VER) && _MSC_VER < 1700
namespace
std
{
bool
isnan
(
double
f
)
{
return
::
_isnan
(
f
)
!=
0
;
}
bool
isinf
(
double
f
)
{
return
::
_finite
(
f
)
==
0
;
}
}
#endif
#include "bitutils.h"
#include "bitutils.h"
namespace
spvutils
{
namespace
spvutils
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment