diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-28 00:57:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-28 00:57:10 +0100 |
| commit | 70793236abc278dd51ca577b35ca1757851380d3 (patch) | |
| tree | b3241ea3fae32b104623e1c4ea3c3dfba3cccd7b /examples | |
| parent | 0a1ef1e59da47a15a04967a407ff3e8a7a2ffea4 (diff) | |
Support `llvm_vector_reduce_add` if the LLVM intrinsic is not supported
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 96e770241..c287e4054 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -2373,7 +2373,9 @@ matrix_type :: proc() { // Unlike normal arrays, matrices try to maximize alignment to allow for the (SIMD) vectorization // properties whilst keeping zero padding (either between columns or at the end of the type). // - // Zero padding is a compromise for use with third-party libraries, instead of optimizing for performance + // Zero padding is a compromise for use with third-party libraries, instead of optimizing for performance. + // Padding between columns was not taken even if that would have allowed each column to be loaded + // individually into a SIMD register with the correct alignment properties. // // Currently, matrices are limited to a maximum of 16 elements (rows*columns), and a minimum of 1 element. // This is because matrices are stored as values (not a reference type), and thus operations on them will |