4 Commits

Author SHA1 Message Date
Ethan Hardy
19721bb1c4 Fix #8349: Add const to Max Array C/C++ examples where applicable. (#8350)
As noted by Matt during his [Advent of Compiler Optimizations - Episode
20: Vectorization
[0:55]](https://www.youtube.com/watch?v=d68x8TF7XJs&t=55s), `const` can
and should be introduced here.

We don't need the elements of `y` to be modifiable.

Closes #8349 

<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2025-12-22 19:20:18 -06:00
Cameron Cawley
24d4c39e57 Allow the C examples to build with a C89 compiler (#4104) 2022-10-02 17:41:57 +02:00
RabsRincon
e6bd714840 Add C & CPPX examples. Add load() builtin tests 2017-12-12 23:51:34 +01:00
RabsRincon
43279a61ca Fix various points raised after code reviews
Some fixes, a great slam and then some
2017-12-09 11:19:45 +01:00