qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Add and use bit rotate functions
@ 2013-09-12 19:13 Stefan Weil
  2013-09-12 19:13 ` [Qemu-devel] [PATCH 1/3] tci: Add implementation of rotl_i64, rotr_i64 Stefan Weil
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Stefan Weil @ 2013-09-12 19:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Richard Henderson

The first patch was already sent to qemu-devel and is only included
here because patch 3 is based on it. Only patch 1 is needed for qemu-stable.

It looks like shift values of 0 or 32/64 work as expected because
the compiler "knows" the pattern used to implement the rotate operation,
so the code does not need special handling of some shift values.

rol8 and ror8 are currently unused. I added them nevertheless,
so they can be used when someone needs them.

[PATCH 1/3] tci: Add implementation of rotl_i64, rotr_i64
[PATCH 2/3] bitops: Add rotate functions (rol8, ror8, ...)
[PATCH 3/3] misc: Use new rotate functions

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

end of thread, other threads:[~2013-09-12 19:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-12 19:13 [Qemu-devel] [PATCH 0/3] Add and use bit rotate functions Stefan Weil
2013-09-12 19:13 ` [Qemu-devel] [PATCH 1/3] tci: Add implementation of rotl_i64, rotr_i64 Stefan Weil
2013-09-12 19:13 ` [Qemu-devel] [PATCH 2/3] bitops: Add rotate functions (rol8, ror8, ...) Stefan Weil
2013-09-12 19:24   ` Richard Henderson
2013-09-12 19:13 ` [Qemu-devel] [PATCH 3/3] misc: Use new rotate functions Stefan Weil
2013-09-12 19:25   ` Richard Henderson
2013-09-12 19:23 ` [Qemu-devel] [PATCH 0/3] Add and use bit " Richard Henderson

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).