add .gitignore
[swift-upb.git] / bin64.h
diff --git a/bin64.h b/bin64.h
index 3550f22..fb88c99 100644 (file)
--- a/bin64.h
+++ b/bin64.h
@@ -9,11 +9,7 @@
 #ifndef BIN64_H
 #define BIN64_H
 #include <assert.h>
-#ifdef _MSC_VER
-    #include "compat/stdint.h"
-#else
-    #include <stdint.h>
-#endif
+#include "compat.h"
 
 
 /** Numbering for (aligned) logarithmical bins.
@@ -141,13 +137,13 @@ struct bin64_t {
     }
 
     /** Check whether this bin is the left sibling. */
-    bool is_left () const {
+    inline bool is_left () const {
         uint64_t tb = tail_bit();
         return !(v&(tb<<1));
     }
     
     /** Check whether this bin is the right sibling. */
-    bool is_right() const { return !is_left(); }
+    inline bool is_right() const { return !is_left(); }
 
     /** Get the leftmost basic bin within this bin. */
     bin64_t left_foot () const {