Am 15.12.2014 um 13:50 hat Max Reitz geschrieben: > Add helper functions for getting and setting refcounts in a refcount > array for any possible refcount order, and choose the correct one during > refcount initialization. > > Signed-off-by: Max Reitz <mre...@redhat.com> > Reviewed-by: Eric Blake <ebl...@redhat.com> > Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Hm... Wouldn't it be better to have a single generic implementation that is based on uint64_t* and calculates the right shifts and bitmasks on the fly? Kevin