qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tcg: Document ctpop opcodes
@ 2021-11-10 12:20 Richard Henderson
  2021-11-10 12:32 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2021-11-10 12:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: f4bug

Fixes: a768e4e99247
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/658
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 tcg/README | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tcg/README b/tcg/README
index c2e7762a37..391f4d1e80 100644
--- a/tcg/README
+++ b/tcg/README
@@ -254,6 +254,12 @@ t0 = t1 ? clz(t1) : t2
 
 t0 = t1 ? ctz(t1) : t2
 
+* ctpop_i32/i64 t0, t1
+
+t0 = number of bits set in t1
+With "ctpop" short for "count popultation", matching
+the function name used in include/qemu/host-utils.h.
+
 ********* Shifts/Rotates
 
 * shl_i32/i64 t0, t1, t2
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tcg: Document ctpop opcodes
  2021-11-10 12:20 [PATCH] tcg: Document ctpop opcodes Richard Henderson
@ 2021-11-10 12:32 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-11-10 12:32 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel



On 11/10/21 13:20, Richard Henderson wrote:
> Fixes: a768e4e99247
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/658
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  tcg/README | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/tcg/README b/tcg/README
> index c2e7762a37..391f4d1e80 100644
> --- a/tcg/README
> +++ b/tcg/README
> @@ -254,6 +254,12 @@ t0 = t1 ? clz(t1) : t2
>  
>  t0 = t1 ? ctz(t1) : t2
>  
> +* ctpop_i32/i64 t0, t1
> +
> +t0 = number of bits set in t1
> +With "ctpop" short for "count popultation", matching

Typo "population".

> +the function name used in include/qemu/host-utils.h.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-10 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-10 12:20 [PATCH] tcg: Document ctpop opcodes Richard Henderson
2021-11-10 12:32 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).