Move work on animation implementation

This commit is contained in:
Kovid Goyal
2024-07-16 22:05:45 +05:30
parent cd320e05c1
commit 0a707b5c33
6 changed files with 144 additions and 39 deletions

View File

@@ -31,11 +31,11 @@
#define LIKELY(x) __builtin_expect (!!(x), 1)
#define UNLIKELY(x) __builtin_expect (!!(x), 0)
#define MAX(x, y) __extension__ ({ \
__typeof__ (x) a = (x); __typeof__ (y) b = (y); \
a > b ? a : b;})
__typeof__ (x) __a__ = (x); __typeof__ (y) __b__ = (y); \
__a__ > __b__ ? __a__ : __b__;})
#define MIN(x, y) __extension__ ({ \
__typeof__ (x) a = (x); __typeof__ (y) b = (y); \
a < b ? a : b;})
__typeof__ (x) __a__ = (x); __typeof__ (y) __b__ = (y); \
__a__ < __b__ ? __a__ : __b__;})
#define SWAP(x, y) do { __typeof__(x) _sw_ = y; y = x; x = _sw_; } while(0)
#define xstr(s) str(s)
#define str(s) #s