Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Float16Array #1398

Merged
merged 4 commits into from
Apr 8, 2024
Merged
Changes from 2 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
11 changes: 8 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5597,6 +5597,7 @@ The <dfn id="dfn-typed-array-type" export>typed array types</dfn> are
{{Uint8ClampedArray}},
{{BigInt64Array}},
{{BigUint64Array}},
{{Float16Array}},
{{Float32Array}}, and
{{Float64Array}}.

Expand Down Expand Up @@ -6485,9 +6486,11 @@ data. The table below lists these types and the kind of buffer or view they repr
<tr>
<td><dfn id="idl-Uint8ClampedArray" interface>Uint8ClampedArray</dfn>
<td>A view on to a [=buffer type=] instance that exposes it as an array of unsigned 8-bit integers with clamped conversions
<tr>
<td><dfn id="idl-Float16Array" interface>Float16Array</dfn>
<td rowspan=3>A view on to a [=buffer type=] instance that exposes it as an array of IEEE 754 floating point numbers of the given size in bits
<tr>
<td><dfn id="idl-Float32Array" interface>Float32Array</dfn>
<td rowspan=2>A view on to a [=buffer type=] instance that exposes it as an array of IEEE 754 floating point numbers of the given size in bits
<tr>
<td><dfn id="idl-Float64Array" interface>Float64Array</dfn>
</table>
Expand All @@ -6514,6 +6517,7 @@ in [[#js-buffer-source-types]].
"Uint8ClampedArray"
"BigInt64Array"
"BigUint64Array"
"Float16Array"
"Float32Array"
"Float64Array"
</pre>
Expand Down Expand Up @@ -8807,7 +8811,8 @@ class, with the following additional restrictions on those objects.
{{Uint8ClampedArray}},
{{BigInt64Array}},
{{BigUint64Array}},
{{Float32Array}} or
{{Float16Array}},
{{Float32Array}}, or
{{Float64Array}} value
by running the following algorithm:

Expand Down Expand Up @@ -14666,7 +14671,7 @@ must support.
typedef (Int8Array or Int16Array or Int32Array or
Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or
BigInt64Array or BigUint64Array or
Float32Array or Float64Array or DataView) ArrayBufferView;
Float16Array or Float32Array or Float64Array or DataView) ArrayBufferView;
</pre>

The {{ArrayBufferView}} typedef is used to represent
Expand Down
Loading