Replace more uses of 'cnt' by 'n'.
[pspp] / src / libpspp / float-format.c
index 80924e831501c3bec68b863b5a0869c1af293ea5..ee2d1228aa1bb09a076550d69dacfe8c1e414084 100644 (file)
@@ -203,14 +203,14 @@ float_get_lowest (void)
   return x;
 }
 \f
-/* Returns CNT bits in X starting from the given bit OFS. */
+/* Returns N bits in X starting from the given bit OFS. */
 static inline uint64_t
-get_bits (uint64_t x, int ofs, int cnt)
+get_bits (uint64_t x, int ofs, int n)
 {
   assert (ofs >= 0 && ofs < 64);
-  assert (cnt > 0 && cnt < 64);
-  assert (ofs + cnt <= 64);
-  return (x >> ofs) & ((UINT64_C(1) << cnt) - 1);
+  assert (n > 0 && n < 64);
+  assert (ofs + n <= 64);
+  return (x >> ofs) & ((UINT64_C(1) << n) - 1);
 }
 
 /* Returns NATIVE converted to a form that, when stored in