>>> On 23.10.15 at 16:48, <ian.campb...@citrix.com> wrote: > Perhaps this needs to be explicitly asked then, So, given: > #define set_xen_guest_handle_raw(hnd, val) \ > do { \ > typeof(&(hnd)) _sxghr_tmp = &(hnd); \ > _sxghr_tmp->q = 0; \ > _sxghr_tmp->p = val; \ > } while ( 0 ) > > where typeof is used to avoid the multiple evaluations of hnd which > assigning to hnd.q and hnd.p would involve, is there some way to do the > same in pure ANSI C?
As per Julien's earlier reply, perhaps the x86 way is usable for arm after all. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel