Skip to contentSkip to conversation

debugging: Use \ln for natural logarithm in Eq E.9

PATCH Applied Akira Yokosawa 2 participants 4 messages Oct 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 debugging: Use \ln for natural logarithm in Eq E.9

From ad506b1b01a5c13bbbe393c7acaa11b4320d0601 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sat, 21 Oct 2017 07:53:36 +0900
Subject: [PATCH 1/3] debugging: Use \ln for natural logarithm in Eq E.9

---
 debugging/debugging.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
debugging/debugging.tex +1 -1
index a4537b0..700e725 100644
@@ -1265,7 +1265,7 @@ following formula:
 	Equation~\ref{eq:debugging:Error-Free Test Duration}, resulting in:
 
 	\begin{equation}
-		T = - \frac{1}{3} \log \frac{100 - 99.9}{100} = 2.3
+		T = - \frac{1}{3} \ln \frac{100 - 99.9}{100} = 2.3
 	\end{equation}
 
 	If the test runs without failure for 2.3 hours, we can be 99.9\,\%
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 Remove trademark and registered symbols in text

From 75d006892f834a75f6901d666d0276722ce276f5 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sat, 21 Oct 2017 08:25:47 +0900
Subject: [PATCH 2/3] Remove trademark and registered symbols in text

The Legal page should have covered these trade marks.

Instead of removing the macros, substitute custom macros for them. When a part of the text will be exported as a separate document, these macros can be defined to output actual symbols as are shown in comment in perfbook.tex.

---
 SMPdesign/beyond.tex      | 4 ++--
 datastruct/datastruct.tex | 4 ++--
 memorder/memorder.tex     | 4 ++--
 perfbook.tex              | 4 ++++
 4 files changed, 10 insertions(+), 6 deletions(-)
SMPdesign/beyond.tex +2 -2
index 65f2518..72862c5 100644
@@ -195,7 +195,7 @@ Lines~8-9 of this listing must use fetch-and-add to arbitrate concurrent
 attempts to record cells in the \co{->visited[]} array.
 
 This approach does provide significant speedups on a dual-CPU
-Lenovo\textsuperscript\texttrademark W500
+Lenovo\mytexttrademark\ W500
 running at 2.53\,GHz, as shown in
 Figure~\ref{fig:SMPdesign:CDF of Solution Times For SEQ and PWQ},
 which shows the cumulative distribution functions (CDFs) for the solution
@@ -575,7 +575,7 @@ the solution line.
 This disappointing performance compared to results in
 Figure~\ref{fig:SMPdesign:Varying Maze Size vs. COPART}
 is due to the less-tightly integrated hardware available in the
-larger and older Xeon\textsuperscript\textregistered
+larger and older Xeon\mytextregistered\
 system running at 2.66\,GHz.
 
 \subsection{Future Directions and Conclusions}
datastruct/datastruct.tex +2 -2
index e6c3f17..c5038b6 100644
@@ -394,8 +394,8 @@ The \co{hashtab_free()} function on lines~20-23 is straightforward.
 \end{figure}
 
 The performance results for an eight-CPU 2\,GHz
-Intel\textsuperscript\textregistered
-Xeon\textsuperscript\textregistered
+Intel\mytextregistered\
+Xeon\mytextregistered\
 system using a bucket-locked hash table with 1024 buckets are shown in
 Figure~\ref{fig:datastruct:Read-Only Hash-Table Performance For Schroedinger's Zoo}.
 The performance does scale nearly linearly, but is not much more than half
memorder/memorder.tex +2 -2
index 752e321..bd3af16 100644
@@ -4408,7 +4408,7 @@ barrier.
 \subsection{\Power{} / PowerPC}
 \label{sec:memorder:POWER / PowerPC}
 
-The \Power{} and PowerPC\textsuperscript{\textregistered}
+The \Power{} and PowerPC\mytextregistered\
 CPU families have a wide variety of memory-barrier
 instructions~\cite{PowerPC94,MichaelLyons05a}:
 \begin{description}
@@ -4623,7 +4623,7 @@ it~\cite[Section 8.1.3]{Intel64IA32v3A2011}.
 
 \subsection{z Systems}
 
-The z~Systems machines make up the IBM\textsuperscript{\texttrademark}
+The z~Systems machines make up the IBM\mytexttrademark\
 mainframe family, previously
 known as the 360, 370, 390 and zSeries~\cite{IBMzSeries04a}.
 Parallelism came late to z~Systems, but given that these mainframes first
perfbook.tex +4 -0
index 049f028..1c23b3a 100644
@@ -146,6 +146,10 @@
 %\newcommand{\GCC}{\co{gcc}} % For those who prefer "gcc"
 \newcommand{\IRQ}{IRQ}
 %\newcommand{\IRQ}{irq}      % For those who prefer "irq"
+\newcommand{\mytexttrademark}{}
+\newcommand{\mytextregistered}{}
+%\newcommand{\mytexttrademark}{\textsuperscript\texttrademark}
+%\newcommand{\mytextregistered}{\textsuperscript\textregistered}
 
 \newcommand{\Epigraph}[2]{\epigraphhead[65]{\rmfamily\epigraph{#1}{#2}}}
 
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/3 toolsoftrade: Adjust wording on age of POWER5

In reply to Akira Yokosawa

From 79aa63bf91eacaec2c8cdf15d1f1874fbc42913e Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sat, 21 Oct 2017 08:40:45 +0900
Subject: [PATCH 3/3] toolsoftrade: Adjust wording on age of POWER5

---
 toolsoftrade/toolsoftrade.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolsoftrade/toolsoftrade.tex +1 -1
index 77b3eba..d37a295 100644
@@ -1137,7 +1137,7 @@ This situation will only get worse as you add CPUs.
 } \QuickQuizEnd
 
 \QuickQuiz{}
-	\Power{5} is several years old, and new hardware should
+	\Power{5} is more than a decade old, and new hardware should
 	be faster.
 	So why should anyone worry about reader-writer locks being slow?
 \QuickQuizAnswer{
Signature · 1 line
2.7.4
#3 lore raw
In reply to Akira Yokosawa
Quoted 6 lines · Akira Yokosawa
Quoted 1 line

From ad506b1b01a5c13bbbe393c7acaa11b4320d0601 Mon Sep 17 00:00:00 2001

From: Akira Yokosawa <[email protected]>
Date: Sat, 21 Oct 2017 07:53:36 +0900
Subject: [PATCH 1/3] debugging: Use \ln for natural logarithm in Eq E.9

I applied all three, thank you! Good eyes, especially on the log->ln change. ;-)

Thanx, Paul

Quoted 20 lines
---
 debugging/debugging.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
debugging/debugging.tex +1 -1
index a4537b0..700e725 100644
@@ -1265,7 +1265,7 @@ following formula:
 	Equation~\ref{eq:debugging:Error-Free Test Duration}, resulting in:
 
 	\begin{equation}
-		T = - \frac{1}{3} \log \frac{100 - 99.9}{100} = 2.3
+		T = - \frac{1}{3} \ln \frac{100 - 99.9}{100} = 2.3
 	\end{equation}
 
 	If the test runs without failure for 2.3 hours, we can be 99.9\,\%
Signature · 1 line
2.7.4