Closed niutech closed 12 years ago
This might actually be fixed in the latest emscripten - I'll check tomorrow. If it is, I just need to regenerate the builds with the latest emscripten version.
Actually, Float64Array is required. Are you on 5.0 or 5.1? I thought 5.1 added support for Float64Array.
I am on Safari 5.0.6 (latest on Mac 10.5.8) but AFAIK Float64Arrays are not supported on IE<=9 as well.
Google seems to provide a fallback for them in its Closure Library: http://code.google.com/p/closure-library/source/browse/trunk/closure/goog/vec/float64array.js. Is it possible to implement a fallback here?
That float64array fallback cannot use an existing buffer, which is what is needed here (to get C-like memory layout).
There is no good way I am aware of to emulate float 64 arrays. To make it truly precise including aliasing an existing buffer takes a lot of (very slow) calculations.
I'm closing as invalid then. There's really nothing we can do to support Safari < 5.1 or IE < 10.
I am using Safari 5 on Mac OS X, which doesn't support Float64Array, so please map it to Float32Array:
if (typeof Float64Array === 'undefined') window.Float64Array = Float32Array;