From: fennecdjay Date: Fri, 2 Sep 2022 11:49:26 +0000 (+0200) Subject: :art: Remove unused functions in prim.c X-Git-Tag: nightly~264^2~17 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=40c26867f7a865c5154a630a6ce9ac264cceb63b;p=gwion.git :art: Remove unused functions in prim.c --- diff --git a/src/lib/prim.c b/src/lib/prim.c index 6b779863..8afe8059 100644 --- a/src/lib/prim.c +++ b/src/lib/prim.c @@ -28,8 +28,6 @@ static inline bool is_prim_float(const Exp e) { return (is_prim(e) && e->d.prim.prim_type == ae_prim_float); } -static inline uint pot(const m_int x) { return (x > 0) && ((x & (x - 1)) == 0); } - #define POWEROF2_OPT(name, OP) \ if (is_prim_int(bin->rhs) && pot(bin->rhs->d.prim.d.num)) { \ bin->op = insert_symbol(#OP); \