Brice Goglin, le Mon 22 Mar 2010 22:37:59 +0100, a écrit :
> Bert Wesarg wrote:
> > In case of the
> > binary cpuset operations I find the '<res> = <arg1> op <arg2>' style
> > more flexible, than the current '<arg1> op= <arg2>' style.
> 
> Given that you don't like malloc, you really don't want this :)

I guess he meant

hwloc_cpuset_and(hwloc_cpuset_t res, hwloc_const_cpuset_t arg1, 
hwloc_const_cpuset_t arg2);

arg1 and arg2 being allowed to be equal to res, thus keeping the
possibility of an arg1 op= arg2 style.

> > I would also rename hwloc_cpuset_clearset() to
> > hwloc_cpuset_andnotset(), so it fits to the _{or,and,xor,not}set
> > naming style (i.e. they are named after the bit operation).
> 
> I don't like andnotset() at all, sorry.

We could add an alias.

Samuel

Reply via email to