On 12/22/2010 01:50 PM, Guy Streeter wrote:
I'm using 1.1 on Fedora 13. I start with
set = hwloc_bitmap_alloc_full()
and it looks like
0xf...f
Then I call
hwloc_bitmap_from_ith_ulong(set, 1, 0xdeadbeef)
and I get
0xdeadbeef,0x00000034,0x3f77aed8
which I don't understand.
Example code is attached.
thanks,
--Guy
hwloc_bitmap_set_ith_ulong() seems to behave in a similar way.
full: 0xf...f
ith: 0xf...f,,0xdeadbeef,0xffffffff,0xffffffff
Example attached.
thanks,
--Guy
#include <stdlib.h>
#include <stdio.h>
#include <hwloc.h>
main()
{
hwloc_bitmap_t set;
char *string;
set = hwloc_bitmap_alloc_full();
hwloc_bitmap_asprintf(&string, set);
printf("full: %s\n", string);
free(string);
hwloc_bitmap_set_ith_ulong(set, 1, 0xdeadbeef);
hwloc_bitmap_asprintf(&string, set);
printf("ith: %s\n", string);
return 0;
}