aboutsummaryrefslogtreecommitdiff
path: root/chapters/pseudocode.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'chapters/pseudocode.adoc')
-rw-r--r--chapters/pseudocode.adoc11
1 files changed, 7 insertions, 4 deletions
diff --git a/chapters/pseudocode.adoc b/chapters/pseudocode.adoc
index e6b7604..5e6af5b 100644
--- a/chapters/pseudocode.adoc
+++ b/chapters/pseudocode.adoc
@@ -128,7 +128,7 @@ out_t truncate(in_t input)
output is the sizeof(out_t) least significant bits in input.
----
-The following definition is used to flatten a list of lists into a single list
+The following definition is used to flatten a list of lists into a single list.
[source,c++]
----
@@ -142,10 +142,13 @@ in_t* flatten(in_t lists[]) {
}
----
-The following helper function returns the length of a list
+Generic helper functions used to keep the pseudocode concise.
[source,c++]
----
int length(in_t input)
- return number of elements in input
-----
+ return number of elements in input list
+
+int floor(in_t input)
+ return input value rounded down to nearest integer
+---- \ No newline at end of file