[code-reflection] RFR: Float4 arrayView support [v2]

Ruby Chen duke at openjdk.org
Fri Nov 7 18:49:49 UTC 2025


> Preliminary `Float4` support for arrayViews. Currently only supported for `F32ArrayPadded` buffers, which can be accessed like a `Float4[]` as shown below:
> 
> Float4[] arr = buffer.float4ArrayView(); // for a F32ArrayPadded buffer
> 
> At the moment, to use an element in the array, the `Float4` must be loaded into a separate variable first, i.e.
> 
> Float4 a = arr[index * 4];
> 
> A value can be stored into the array through the following syntax:
> 
> arr[index * 4] = ...

Ruby Chen has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits:

 - Merge branch 'code-reflection' into array-view
 - Cleaning up vector arrayView
 - Merge branch 'code-reflection' into array-view
 - Float4 arrayView support

-------------

Changes: https://git.openjdk.org/babylon/pull/646/files
  Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=646&range=01
  Stats: 1645 lines in 13 files changed: 1222 ins; 400 del; 23 mod
  Patch: https://git.openjdk.org/babylon/pull/646.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/646/head:pull/646

PR: https://git.openjdk.org/babylon/pull/646


More information about the babylon-dev mailing list