提交 acfea137 编写于 作者: G Greg Kurz 提交者: Laurent Vivier

bswap: Fix accessors syntax in comment

All accessors that have an endian infix DO have an underscore between
{size} and {endian}.
Signed-off-by: NGreg Kurz <groug@kaod.org>
Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <155119086741.1037569.12734854713022304642.stgit@bahia.lan>
Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
上级 806be373
......@@ -255,9 +255,9 @@ typedef union {
/*
* the generic syntax is:
*
* load: ld{type}{sign}{size}{endian}_p(ptr)
* load: ld{type}{sign}{size}_{endian}_p(ptr)
*
* store: st{type}{size}{endian}_p(ptr, val)
* store: st{type}{size}_{endian}_p(ptr, val)
*
* Note there are small differences with the softmmu access API!
*
......@@ -293,10 +293,10 @@ typedef union {
*
* For cases where the size to be used is not fixed at compile time,
* there are
* stn{endian}_p(ptr, sz, val)
* stn_{endian}_p(ptr, sz, val)
* which stores @val to @ptr as an @endian-order number @sz bytes in size
* and
* ldn{endian}_p(ptr, sz)
* ldn_{endian}_p(ptr, sz)
* which loads @sz bytes from @ptr as an unsigned @endian-order number
* and returns it in a uint64_t.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册