Skip to content

Instantly share code, notes, and snippets.

View theRealAph's full-sized avatar

Andrew Haley theRealAph

View GitHub Profile
@theRealAph
theRealAph / HashCodeExample.java
Last active April 22, 2024 12:48
Arrays hash code vectorized example
public class HashCodeExample {
static void vload(int[] v0, int[] data, int offset) {
for (int i = 0; i < v0.length; i++) {
v0[i] = data[i + offset];
}
}
static void vadd(int[] vd, int[] v0, int[] v1) {
for (int i = 0; i < v0.length; i++) {