skia2/resources/sksl/runtime_errors/IllegalOperators.rte
John Stiles bfc9be0f77 Migrate SkSL test inputs to the resources/ directory.
This will allow us to load these inputs for unit testing in `dm`.

Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5
Bug: skia:11009
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-01-22 18:57:29 +00:00

17 lines
520 B
Plaintext

int bit_not(int x) { return ~x; }
int remainder(int x) { return x % 2; }
int remainder_eq(int x) { return x %= 2;}
int shl (int x) { return x << 1; }
int shl_eq(int x) { return x <<= 1; }
int shr (int x) { return x >> 1; }
int shr_eq(int x) { return x >>= 1; }
int bit_and (int x) { return x & 1; }
int bit_and_eq(int x) { return x &= 1; }
int bit_or (int x) { return x | 1; }
int bit_or_eq (int x) { return x |= 1; }
int bit_xor (int x) { return x ^ 1; }
int bit_xor_eq(int x) { return x ^= 1; }