kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

ctl_ternary_long.c (252B)


      1 /* A ?: ternary over 64-bit `long` operands, so the compare/select runs on
      2  * x-registers. volatile operands defeat folding. a < b selects b (=42). */
      3 int test_main(void) {
      4   volatile long a = 10, b = 42;
      5   long r = (a < b) ? b : a;
      6   return (int)r;
      7 }