aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2024-04-10 14:18:10 +0200
committerkdx <kikoodx@paranoici.org>2024-04-10 14:18:10 +0200
commitd07415534fc917d904f17f6e06fc35d2d6c98b4b (patch)
tree2f3e17606538848d298e557f8a63ad3c063e29c9
parente033104af07257143cc11287434961802fe46618 (diff)
downloadcminus-d07415534fc917d904f17f6e06fc35d2d6c98b4b.tar.gz
golden ratio
-rw-r--r--_.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/_.h b/_.h
index 4518377..18b5f89 100644
--- a/_.h
+++ b/_.h
@@ -61,6 +61,7 @@ void *_realloc(void *ptr, size_t size);
const auto __s_ = (S); \
(__x_ > __y_) ? max(__x_ - __s_, __y_) : min(__x_ + __s_, __y_); \
})
+#define GOLDEN_RATIO 1.618033988749
#define STR(X) #X
#define defer(X) if (atexit(X)) { X(); panic("defer"); }