Slides for 4xxx.
[libguestfs-talks.git] / 2020-frama-c / 4400-range-size-1.html
diff --git a/2020-frama-c/4400-range-size-1.html b/2020-frama-c/4400-range-size-1.html
new file mode 100644 (file)
index 0000000..8af73b1
--- /dev/null
@@ -0,0 +1,13 @@
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" href="style.css" type="text/css"/>
+<script src="code.js" type="text/javascript"></script>
+
+<h1>qemu range_size()</h1>
+
+<pre class="code">
+  /* Get the size of range. */
+  static inline uint64_t range_size(const Range *range)
+  {
+      return range->upb - range->lob + 1;
+  }
+</pre>