Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/gpu-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* GPU Accelerated JavaScript
*
* @version 1.5.4
* @date Thu Jul 26 2018 08:57:20 GMT+0100 (BST)
* @date Thu Jul 26 2018 17:35:34 GMT+0100 (BST)
*
* @license MIT
* The MIT License
Expand Down
2 changes: 1 addition & 1 deletion bin/gpu-core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions bin/gpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* GPU Accelerated JavaScript
*
* @version 1.5.4
* @date Thu Jul 26 2018 08:57:20 GMT+0100 (BST)
* @date Thu Jul 26 2018 17:35:35 GMT+0100 (BST)
*
* @license MIT
* The MIT License
Expand Down Expand Up @@ -6054,13 +6054,13 @@ var Utils = function (_UtilsCore) {
var GPU = require('../index');
var x = new GPU({
mode: 'webgl-validator'
}).createKernel(function (x, y) {
return x / y;
}).createKernel(function (v1, v2) {
return v1[this.thread.x] / v2[this.thread.x];
}, {
output: [1]
})(6, 3);
})([6, 6030401], [3, 3991]);

_hasIntegerDivisionAccuracyBug = x[0] !== 2;
_hasIntegerDivisionAccuracyBug = x[0] !== 2 || x[1] !== 1511;

return _hasIntegerDivisionAccuracyBug;
}
Expand Down
4 changes: 2 additions & 2 deletions bin/gpu.min.js

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions dist/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,15 @@ var Utils = function (_UtilsCore) {
var GPU = require('../index');
var x = new GPU({
mode: 'webgl-validator'
}).createKernel(function (x, y) {
return x / y;
}).createKernel(function (v1, v2) {
return v1[this.thread.x] / v2[this.thread.x];
}, {
output: [1]
})(6, 3);
})([6, 6030401], [3, 3991]);

_hasIntegerDivisionAccuracyBug = x[0] !== 2;
// have we not got whole numbers for 6/3 or 6030401/3991
// add more here if others see this problem
_hasIntegerDivisionAccuracyBug = x[0] !== 2 || x[1] !== 1511;

return _hasIntegerDivisionAccuracyBug;
}
Expand Down
10 changes: 6 additions & 4 deletions src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,15 @@ class Utils extends UtilsCore {
const GPU = require('../index');
const x = new GPU({
mode: 'webgl-validator'
}).createKernel(function(x, y) {
return x / y;
}).createKernel(function(v1, v2) {
return v1[this.thread.x] / v2[this.thread.x];
}, {
output: [1]
})(6, 3);
})([6, 6030401], [3, 3991]);

_hasIntegerDivisionAccuracyBug = x[0] !== 2;
// have we not got whole numbers for 6/3 or 6030401/3991
// add more here if others see this problem
_hasIntegerDivisionAccuracyBug = (x[0] !== 2 || x[1] !== 1511);

return _hasIntegerDivisionAccuracyBug;
}
Expand Down