From: Akira Yokosawa <akiyks@gmail.com>
To: paulmck@linux.vnet.ibm.com
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH 2/3] advsync: Add necessary blank lines around minipages
Date: Sat, 16 Apr 2016 17:14:48 +0900 [thread overview]
Message-ID: <5711F478.9020503@gmail.com> (raw)
In-Reply-To: <5711F2CF.1030907@gmail.com>
From 9aac20a120daf460b1046cb234e8eddd1171271b Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiysw@gmail.com>
Date: Fri, 15 Apr 2016 23:20:36 +0900
Subject: [PATCH 2/3] advsync: Add necessary blank lines around minipages
In the `Pair-Wise Memory Barriers: Portable Combinations`
subsubsection, we need blank lines before and after minipages
that embody code snippet tables. Without them, minipages are
forced to be placed in strange ways. This commit adds those
necessary blank lines.
Also it adds "\scriptsize" commands to the minipages for their
consistency with the one in the previous subsubsection.
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
advsync/memorybarriers.tex | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/advsync/memorybarriers.tex b/advsync/memorybarriers.tex
index 965718c..0ef020f 100644
--- a/advsync/memorybarriers.tex
+++ b/advsync/memorybarriers.tex
@@ -565,9 +565,11 @@ pairings that portable software may depend on.
by a memory barrier, while a second CPU executes a pair
of stores also separated by a memory barrier, as follows
(both A and B are initially equal to zero):
+
\vspace{5pt}
\begin{minipage}[t]{\columnwidth}
\tt
+ \scriptsize
\begin{tabular}{l|l}
CPU 1 & CPU 2 \\
\hline
@@ -577,6 +579,7 @@ pairings that portable software may depend on.
\end{tabular}
\end{minipage}
\vspace{5pt}
+
After both CPUs have completed executing these code sequences,
if \co{Y==1}, then we must also have \co{X==1}.
In this case, the fact that \co{Y==1} means that
@@ -594,9 +597,11 @@ pairings that portable software may depend on.
In this pairing, each CPU executes a load followed by a
memory barrier followed by a store, as follows
(both A and B are initially equal to zero):
+
\vspace{5pt}
\begin{minipage}[t]{\columnwidth}
\tt
+ \scriptsize
\begin{tabular}{l|l}
CPU 1 & CPU 2 \\
\hline
@@ -606,6 +611,7 @@ pairings that portable software may depend on.
\end{tabular}
\end{minipage}
\vspace{5pt}
+
After both CPUs have completed executing these code sequences,
if \co{X==1}, then we must also have \co{Y==0}.
In this case, the fact that \co{X==1} means that
@@ -628,9 +634,11 @@ pairings that portable software may depend on.
memory barrier followed by a store, while the other CPU
executes a pair of stores separated by a memory barrier,
as follows (both A and B are initially equal to zero):
+
\vspace{5pt}
\begin{minipage}[t]{\columnwidth}
\tt
+ \scriptsize
\begin{tabular}{l|l}
CPU 1 & CPU 2 \\
\hline
@@ -640,6 +648,7 @@ pairings that portable software may depend on.
\end{tabular}
\end{minipage}
\vspace{5pt}
+
After both CPUs have completed executing these code sequences,
if \co{X==1}, then we must also have \co{B==1}.
In this case, the fact that \co{X==1} means that
@@ -710,6 +719,7 @@ keep in mind that they used to be a \emph{lot} harder on some systems!
\vspace{5pt}
\begin{minipage}[t]{\columnwidth}
\tt
+ \scriptsize
\begin{tabular}{l|l}
CPU 1 & CPU 2 \\
\hline
--
1.9.1
next prev parent reply other threads:[~2016-04-16 8:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-16 8:07 [PATCH 0/3] advsync: Typo fix and vertical spacing tweaks Akira Yokosawa
2016-04-16 8:11 ` [PATCH 1/3] advsync: Fix a trivial typo Akira Yokosawa
2016-04-16 8:14 ` Akira Yokosawa [this message]
2016-04-16 8:17 ` [PATCH 3/3] advsync: Tweak vertical spacing around code snippets Akira Yokosawa
2016-04-17 3:36 ` [PATCH 0/3] advsync: Typo fix and vertical spacing tweaks Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5711F478.9020503@gmail.com \
--to=akiyks@gmail.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=perfbook@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.