We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 317e907 commit 361c647Copy full SHA for 361c647
src/array/api/sortFloat32.js
@@ -13,7 +13,9 @@ const iFloatFlip = (f) => {
13
};
14
15
const sortFloat32 = (array) => {
16
- const buffer = Float32Array.from(array).buffer; // TODO avoid copying when passed a Float32Array
+ // TODO avoid copying when passed a Float32Array
17
+ // but be careful to take into account byteOffset, byteLength, and length
18
+ const buffer = Float32Array.from(array).buffer;
19
const view = new Uint32Array(buffer);
20
const N = array.length;
21
for (let i = 0; i < N; ++i) view[i] = floatFlip(view[i]);
0 commit comments