minor
diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index bfe06da..bb7f3c7 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
@@ -324,7 +324,7 @@
   out_len = 0;
   out_info = info;
 
-  if (len)
+  if (likely (len))
     memset (pos, 0, sizeof (pos[0]) * len);
 }
 
diff --git a/src/hb-common.cc b/src/hb-common.cc
index 08ec04e..0ae0c05 100644
--- a/src/hb-common.cc
+++ b/src/hb-common.cc
@@ -381,7 +381,7 @@
 const char *
 hb_language_to_string (hb_language_t language)
 {
-  if (!language) return nullptr;
+  if (unlikely (!language)) return nullptr;
 
   return language->s;
 }