From: Keir Fraser <keir@xensource.com>
To: Jimi Xenidis <jimix@watson.ibm.com>, Keir Fraser <keir@xensource.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [RFC] Re: [PATCH] fix xenctl_cpumap translation to handle bitops accessed like arrays
Date: Sun, 21 Jan 2007 16:20:31 +0000 [thread overview]
Message-ID: <C1D9434F.7917%keir@xensource.com> (raw)
In-Reply-To: <BE075B8D-ECE5-4241-90CB-22E033B4777F@watson.ibm.com>
Yes looks like I screwed up the source endianness. Perhaps the first two
lines of the inner loop should be replaced by:
l |= (unsigned long)bp[b+j] << (j*8);
(and a similar change to the similar function) in libxc?
-- Keir
On 21/1/07 4:10 pm, "Jimi Xenidis" <jimix@watson.ibm.com> wrote:
> From the patch that you committed, AFAICT this function does not do
> anything:
>
> void bitmap_byte_to_long(unsigned long *lp, const uint8_t *bp, int
> nbits)
> {
> unsigned long l;
> int i, j, b;
>
> for (i = 0, b = 0; nbits > 0; i++, b += sizeof(l)) {
> l = 0;
> for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) {
> l <<= 8;
> l |= bp[b+j];
> nbits -= 8;
> }
> lp[i] = l;
> }
> }
next prev parent reply other threads:[~2007-01-21 16:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-17 17:53 [PATCH] fix xenctl_cpumap translation to handle bitops accessed like arrays Jimi Xenidis
2006-12-18 9:26 ` Keir Fraser
2006-12-18 16:50 ` Jimi Xenidis
2006-12-18 17:55 ` Keir Fraser
2006-12-20 19:05 ` [RFC] " Jimi Xenidis
2006-12-21 10:48 ` Keir Fraser
2006-12-21 17:32 ` Jimi Xenidis
2006-12-21 19:51 ` Keir Fraser
2007-01-16 23:26 ` Jimi Xenidis
2007-01-17 12:20 ` Keir Fraser
2007-01-17 12:50 ` Jimi Xenidis
2007-01-17 13:55 ` Keir Fraser
2007-01-21 16:10 ` Jimi Xenidis
2007-01-21 16:20 ` Keir Fraser [this message]
2007-01-21 21:43 ` Jimi Xenidis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C1D9434F.7917%keir@xensource.com \
--to=keir@xensource.com \
--cc=jimix@watson.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.