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
617d1b12
Commit
617d1b12
authored
Jun 06, 2018
by
David Neto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relax a stringToDouble test for, OSX AppleClang 9.1
1e-323 was flushed to zero. 1e-308 is also flushed to zero. Use 1e-307 instead, which still satisfies the test intent. Fixes #1400
parent
ba018e67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
stringToDouble.vert.out
Test/baseResults/stringToDouble.vert.out
+2
-2
stringToDouble.vert
Test/stringToDouble.vert
+1
-1
No files found.
Test/baseResults/stringToDouble.vert.out
View file @
617d1b12
...
...
@@ -108,7 +108,7 @@ Shader version: 460
0:26 move second child to first child ( temp double)
0:26 'e11' ( temp double)
0:26 Constant:
0:26
9.8813129168249e-324
0:26
1.0000000000000e-307
0:27 Sequence
0:27 move second child to first child ( temp double)
0:27 'e12' ( temp double)
...
...
@@ -561,7 +561,7 @@ Shader version: 460
0:26 move second child to first child ( temp double)
0:26 'e11' ( temp double)
0:26 Constant:
0:26
9.8813129168249e-324
0:26
1.0000000000000e-307
0:27 Sequence
0:27 move second child to first child ( temp double)
0:27 'e12' ( temp double)
...
...
Test/stringToDouble.vert
View file @
617d1b12
...
...
@@ -23,7 +23,7 @@ void main()
float
e8
=
1e-16
;
double
e9
=
1e100
;
double
e10
=
1e+308
;
double
e11
=
1e-3
23
;
double
e11
=
1e-3
07
;
// Was 1e-323, but that's flushed to zero sometimes. 1e-308 can be flushed to 0.
double
e12
=
1e+309
;
double
e13
=
1e-324
;
double
e24
=
1e+999
;
...
...
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