-
Notifications
You must be signed in to change notification settings - Fork 14
/
defs.tex
136 lines (115 loc) · 5.22 KB
/
defs.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
\usepackage{xcolor}
\definecolor{cyanish}{rgb}{0,0.8,1.0}
\definecolor{orange}{rgb}{1.0,0.5,0.0}
\definecolor{pink}{rgb}{1.0,0.47,0.6}
\definecolor{light-gray}{gray}{0.95}
\definecolor{jiancolor}{RGB}{0,153,153}
\definecolor{mygreen}{RGB}{50,200,50}
\definecolor{pink}{rgb}{1.0,0.47,0.6}
\definecolor{commentgreen}{rgb}{0.0,0.5,0.0}
\newcommand{\BigOmega}[1]{$\Omega(#1)$}
\newcommand{\BigO}[1]{${\cal O}(#1)$}
\newcommand{\BigTheta}[1]{$\Theta(#1)$}
\newcommand{\Caveatdaxor}{\emph{Caveat DAXor}}
\newcommand{\DAXmmapd}{DAX-mapped}
\newcommand{\DAXmmap}{DAX-\mmap{}}
\newcommand{\boldparagraph}[1]{\vspace*{0.5ex}\noindent\textbf{#1}\hspace{1em}}
\newcommand{\caveatdaxor}{\emph{caveat DAXor}}
\newcommand{\etal}{\textit{et al.}}
\newcommand{\ignore}[1]{}
\newcommand{\mmapd}{\mmap{}'d}
\newcommand{\mm}{mm$^2$}
\newcommand{\myitem}[1]{\item \textbf{#1}}% ignore macros
\newcommand{\refalg}[1]{Algorithm~\ref{#1}}% ignore macros
\newcommand{\refeq}[1]{(Equation~\ref{#1})}% ignore macros
\newcommand{\reffig}[1]{Figure~\ref{#1}}% ignore macros
\newcommand{\reflst}[1]{Listing~\ref{#1}}% ignore macros
\ifdefined\libpaperFancyRefSec
\newcommand{\refsec}[1]{\S~\ref{#1}}% ignore macros
\else
\newcommand{\refsec}[1]{Section~\ref{#1}}% ignore macros
\fi
\newcommand{\reftab}[1]{Table~\ref{#1}}% ignore macros
\newcommand{\refapp}[1]{Appendix~\ref{#1}}% ignore macros
\newcommand{\refln}[1]{Line~\ref{#1}}% ignore macros
\newcommand{\reflns}[2]{Lines~\hyperref[#1]{\ref*{#1}-\ref*{#2}}}% ignore macros
\newcommand{\us}{\textmu{}s}
\newcommand{\x}[1]{$\times$}
\newcommand{\figtitle}[1]{\textbf{#1}}
% Never modify these to hide text.
\newcommand{\fixme}[1]{{\color{red}\textbf{#1}}}
\newcommand{\jian}[1]{{\color{jiancolor}\textbf{[Jian: #1]}}}
\newcommand{\lu}[1]{{\color{orange}\textbf{#1}}}
\newcommand{\juno}[1]{{\color{red}\textbf{#1}}}
\newcommand{\george}[1]{{\color{red}\textbf{#1}}}
\newcommand{\shengan}[1]{{\color{blue}\textbf{#1}}}
\newcommand{\joe}[1]{{\color{blue}\textbf{[Joe: #1]}}}
\newcommand{\morteza}[1]{{\color{yellow}\textbf{[Morteza: #1]}}}
\newcommand{\saman}[1]{{\color{purple}\textbf{#1}}}
\newcommand{\steve}[1]{{\color{mygreen}\textbf{[Steve: #1]}}}
\newcommand{\kunal}[1]{{\color{purple}\textbf{#1}}}
\newcommand{\xiao}[1]{{\color{purple}\textbf{#1}}}
\newcommand{\smahar}[1]{{{\textcolor{cyan}{{\small\sffamily $\blacktriangleright$ Suyash: #1 $\blacktriangleleft$}}}}}
\newcommand{\yi}[1]{{\color{purple}\textbf{#1}}}
\newcommand{\mingyao}[1]{{\color{purple}\textbf{#1}}}
\newcommand{\tj}[1]{{\color{blue}\textbf{[TJ: #1]}}}
\newcommand{\HOW}[1]{{\color{red}\textbf{HOW:} #1}}
\newif\ifcutforspace
\long\def\cutforspace#1{
\ifcutforspace%
\begingroup%
\dimen0=\columnwidth
\advance\dimen0 by -1in%
\setbox0=\hbox{\parbox[b]{\dimen0}{\protect{\em Cut For Space} #1}}
\dimen1=\ht0\advance\dimen1 by 2pt%
\dimen2=\dp0\advance\dimen2 by 2pt%
\vskip 0.25pt%
\hbox to \columnwidth{%
\vrule height\dimen1 width 3pt depth\dimen2%
\hss\copy0\hss%
\vrule height\dimen1 width 3pt depth\dimen2%
}%
\endgroup%
\fi}
%\newcommand{\cutforspace}[1]{\hrule \textbf{Cut for Space:} #1\hrule}
%\newcommand{\cutforspace}[1]{{\color{blue}\textbf{#1}}}
\newcommand{\note}[2]{\fixme{$\ll$ #1 $\gg$ #2}}
\newcommand{\app}[1]{{\sc #1}}
\newcommand{\nova}[1]{NOVA} % ignore macros
\newcommand{\extfs}[1]{\texttt{Ext4#1}}% ignore macros
\newcommand{\extfsDAX}[1]{\extfs{-DAX#1}}% ignore macros
\newcommand{\xfs}[1]{\texttt{XFS#1}}% ignore macros
\newcommand{\xfsDAX}[1]{\xfs{-DAX#1}}% ignore macros
\newcommand{\csym}[1]{\texttt{#1}}% ignore macros
% mbox prevents linebreaks between the name and the '()'
\newcommand{\cfunc}[1]{\mbox{\csym{#1}\hspace{-0.1em}\csym{()}}}% ignore macros
\newcommand{\malloc}{\cfunc{malloc}}% ignore macros
\newcommand{\free}{\cfunc{free}}% ignore macros
\newcommand{\ioopen}{\cfunc{open}}% ignore macros
\newcommand{\ioclose}{\cfunc{close}}% ignore macros
\newcommand{\iowrite}{\cfunc{write}}% ignore macros
\newcommand{\ioread}{\cfunc{read}}% ignore macros
\newcommand{\ioctl}{\cfunc{ioctl}}% ignore macros
\newcommand{\mmap}{\cfunc{mmap}}% ignore macros
\newcommand{\munmap}{\cfunc{munmap}}% ignore macros
\newcommand{\fsync}{\cfunc{fsync}}% ignore macros
\newcommand{\msync}{\cfunc{msync}}% ignore macros
\newcommand{\fdatasync}{\cfunc{fdatasync}}% ignore macros
\newcommand{\memcpy}{\cfunc{memcpy}}% ignore macros
\newcommand{\memset}{\cfunc{memset}}% ignore macros
\newcommand{\pread}{\cfunc{pread}}% ignore macros
\newcommand{\pwrite}{\cfunc{pwrite}}% ignore macros
\newcommand{\writev}{\cfunc{writev}}% ignore macros
\newcommand{\readv}{\cfunc{readv}}% ignore macros
\newcommand{\pwritev}{\cfunc{pwritev}}% ignore macros
\newcommand{\preadv}{\cfunc{preadv}}% ignore macros
\newcommand{\clwb}{\csym{clwb}}% ignore macros
\newcommand{\clflush}{\csym{clflush}}% ignore macros
\newcommand{\clflushopt}{\csym{clflushopt}}% ignore macros
\newcommand{\mfence}{\csym{mfence}}% ignore macros
\newcommand{\sfence}{\csym{sfence}}% ignore macros
\newcommand{\sbrk}{\cfunc{sbrk}}% ignore macros
\newcommand{\eg}{e.g.}
\newcommand{\Eg}{E.g.}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1.05pt] (char) {#1};}}