552fcb9a1b
All internal usage has migrated to MakeFor..., this removes the old program kind, and updates some tests. Bug: skia:11813 Change-Id: I56733b071270e1ae3fab5d851e23acf6c02e3361 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/402536 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
17 lines
520 B
Plaintext
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; }
|