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
#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_from_ith_ulong(set, 1, 0xdeadbeef);
	hwloc_bitmap_asprintf(&string, set);
	printf("ith:  %s\n", string);

	return 0;
}

Reply via email to