There are few inconsistent expressions for code / type mentioning and reference to figure / source file. This commit polishes the expressions to be more consistent with other expressions. Signed-off-by: SeongJae Park <sj38.park@xxxxxxxxx> --- SMPdesign/SMPdesign.tex | 4 ++-- SMPdesign/beyond.tex | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SMPdesign/SMPdesign.tex b/SMPdesign/SMPdesign.tex index d2b092d..f609e7e 100644 --- a/SMPdesign/SMPdesign.tex +++ b/SMPdesign/SMPdesign.tex @@ -991,11 +991,11 @@ Figure~\ref{fig:SMPdesign:Allocator-Cache Data Structures}. The ``Global Pool'' of Figure~\ref{fig:SMPdesign:Allocator Cache Schematic} is implemented by \co{globalmem} of type \co{struct globalmempool}, and the two CPU pools by the per-CPU variable \co{percpumem} of -type \co{percpumempool}. +type \co{struct percpumempool}. Both of these data structures have arrays of pointers to blocks in their \co{pool} fields, which are filled from index zero upwards. Thus, if \co{globalmem.pool[3]} is \co{NULL}, then the remainder of -the array from index 4 up must also be NULL. +the array from index 4 up must also be \co{NULL}. The \co{cur} fields contain the index of the highest-numbered full element of the \co{pool} array, or -1 if all elements are empty. All elements from \co{globalmem.pool[0]} through diff --git a/SMPdesign/beyond.tex b/SMPdesign/beyond.tex index f4035cd..e52980b 100644 --- a/SMPdesign/beyond.tex +++ b/SMPdesign/beyond.tex @@ -135,7 +135,8 @@ Line~20 initializes for the next pass through the outer loop. \end{figure} The pseudocode for \co{maze_try_visit_cell()} is shown on lines~1-12 -of Figure~\ref{fig:SMPdesign:SEQ Helper Pseudocode}. +of Figure~\ref{fig:SMPdesign:SEQ Helper Pseudocode} +(\co{maze.c}). Line~4 checks to see if cells \co{c} and \co{n} are adjacent and connected, while line~5 checks to see if cell \co{n} has not yet been visited. The \co{celladdr()} function returns the address of the specified cell. @@ -146,7 +147,8 @@ is now full, and line~10 marks this cell as visited and also records the distance from the maze start. Line~11 then returns success. The pseudocode for \co{maze_find_any_next_cell()} is shown on lines~14-28 -of the figure (\co{maze.c}). +of Figure~\ref{fig:SMPdesign:SEQ Helper Pseudocode} +(\co{maze.c}). Line~17 picks up the current cell's distance plus 1, while lines~19, 21, 23, and~25 check the cell in each direction, and lines~20, 22, 24, and~26 -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html