Skip to content

Commit

Permalink
Use cheri_getlength over cheri_getlen.
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksdavis committed Apr 24, 2020
1 parent bc42dfd commit 394620b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cheri-c-programming.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1308,11 +1308,10 @@ \subsection{Retrieving capability properties}
% This macro wraps the compiler built-in
% \cfunc{\_\_builtin\_cheri\_address\_get}.

\item[\ccode{size\_t cheri\_getlen(void *c)}] Return the length of the bounds for the capability \cvar{c}.
\item[\ccode{size\_t cheri\_getlength(void *c)}] Return the length of the bounds for the capability \cvar{c}.
% This macro wraps the compiler built-in
% \cfunc{\_\_builtin\_cheri\_length\_get}.
(The base plus the length gives the upper bound on \cvar{c}'s address.)
\arnote{I would quite like it if we used ``cheri\_getlength'' instead and deprecated the ``len'' version.}

\item[\ccode{size\_t cheri\_getoffset(void *c)}] Return the difference between the address and the lower bound of the capability \cvar{c}.
% This macro wraps the compiler built-in
Expand Down

0 comments on commit 394620b

Please sign in to comment.