xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* find_next{,_zero}_bit() inconsistencies
@ 2016-08-29 11:59 Jan Beulich
  2016-08-29 12:03 ` Andrew Cooper
  2016-08-30  9:26 ` David Vrabel
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Beulich @ 2016-08-29 11:59 UTC (permalink / raw)
  To: Julien Grall, Andrew Cooper, Stefano Stabellini; +Cc: xen-devel

Hello,

in the context of
https://lists.xenproject.org/archives/html/xen-devel/2016-08/msg03068.html
I once again came across the different behavior our various
implementations of the $subject functions, in particular their varying
handling of the offset argument being greater / greater-or-equal
the size argument. Shouldn't we settle on a single, uniform model,
which might be
1) offset >= size is valid, returns size,
2) offset == size is valid, returns size, offset > size is invalid,
3) offset >= size is invalid.

Thanks for opinions, Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-30 12:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-29 11:59 find_next{,_zero}_bit() inconsistencies Jan Beulich
2016-08-29 12:03 ` Andrew Cooper
2016-08-29 12:38   ` Jan Beulich
2016-08-30  9:26 ` David Vrabel
2016-08-30 10:08   ` Jan Beulich
2016-08-30 12:32     ` Julien Grall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).