Skip to content

Commit

Permalink
Fix sub -> add
Browse files Browse the repository at this point in the history
  • Loading branch information
sfegan committed Aug 8, 2024
1 parent de7bd04 commit 22106f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/math/hex_array_vcl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,12 @@ template<typename VCLArchitecture> class alignas(VCLArchitecture::vec_bytes) VCL

mask = w==ringid || v==ringid;
hexid = if_add(mask, hexid, v+max(-u,0));
hexid = if_sub(~mask, hexid, advance);
hexid = if_add(~mask, hexid, advance);
advance = if_sub(mask, advance, advance);

mask = u==minus_ringid || w==minus_ringid;
hexid = if_add(mask, hexid, -w+max(-v,0));
hexid = if_sub(~mask, hexid, advance);
hexid = if_add(~mask, hexid, advance);
advance = if_sub(mask, advance, advance);

mask = v==minus_ringid || (u==ringid && w!=ringid);
Expand Down

0 comments on commit 22106f5

Please sign in to comment.