From 1c11711f7bff0a599ebc45f776e720e15775c660 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 22 Oct 2026 18:49:11 +0900 Subject: [PATCH 1/3] Avoid variables starting from underscore Signed-off-by: Yuuichi Asahi --- Content/Presentations/sections/Section_Views.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content/Presentations/sections/Section_Views.tex b/Content/Presentations/sections/Section_Views.tex index 2ac470d8..d431d10d 100644 --- a/Content/Presentations/sections/Section_Views.tex +++ b/Content/Presentations/sections/Section_Views.tex @@ -42,9 +42,9 @@ frame=single ] struct Functor { - double *_x, *_y, a; + double *x_, *y_, a; void operator()(const int64_t i) const { - _y[i] += _x[i]; + y_[i] += x_[i]; } }; \end{code} From e1ef8c0915d9ccf82cbe639fb6a1f20167b1658c Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 22 Oct 2026 18:55:14 +0900 Subject: [PATCH 2/3] avoid overlapping Signed-off-by: Yuuichi Asahi --- Content/Presentations/sections/Section_Spaces.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content/Presentations/sections/Section_Spaces.tex b/Content/Presentations/sections/Section_Spaces.tex index 216a62b0..7de8d099 100644 --- a/Content/Presentations/sections/Section_Spaces.tex +++ b/Content/Presentations/sections/Section_Spaces.tex @@ -320,7 +320,7 @@ Every view stores its data in a \textbf{memory space} set at compile time. \end{block} - \vspace{10pt} + \vspace{5pt} \begin{itemize} \item<2->{\texttt{View data(...);}} From 1c4bff154001d1a33be77eb47cbb6e75a944e705 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 22 Oct 2026 19:00:06 +0900 Subject: [PATCH 3/3] Avoid variables starting from underscore Signed-off-by: Yuuichi Asahi --- .../Presentations/sections/Section_MemoryAccessPatterns.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content/Presentations/sections/Section_MemoryAccessPatterns.tex b/Content/Presentations/sections/Section_MemoryAccessPatterns.tex index 1792155c..539baf10 100644 --- a/Content/Presentations/sections/Section_MemoryAccessPatterns.tex +++ b/Content/Presentations/sections/Section_MemoryAccessPatterns.tex @@ -163,7 +163,7 @@ \begin{code}[keywords={}] operator()(int index, double & valueToUpdate) const { - const double d = _data(index); + const double d = data_(index); valueToUpdate += d; } \end{code} @@ -341,7 +341,7 @@ \begin{code}[keywords={}] operator()(int index, double & valueToUpdate) const { - const double d = _data(index); + const double d = data_(index); valueToUpdate += d; } \end{code}