]> Nishi Git Mirror - gwion.git/commitdiff
:art: Remove unused functions in prim.c
authorfennecdjay <fennecdjay@gmail.com>
Fri, 2 Sep 2022 11:49:26 +0000 (13:49 +0200)
committerfennecdjay <fennecdjay@gmail.com>
Fri, 2 Sep 2022 11:49:26 +0000 (13:49 +0200)
src/lib/prim.c

index 6b779863c99b7f3533b9d77396155048f29dcc60..8afe80590da8cbfb044c7013e208f7401d2c480c 100644 (file)
@@ -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);                               \