Re: [Qemu-devel] [PATCHv5 1/6] util: introduce MIN_NON_ZERO

2014-10-27 Thread Max Reitz
On 2014-10-25 at 18:18, Peter Lieven wrote: at least in block layer we have the case of limits being defined for a BlockDriverState. However, in this context often zero (0) has the special meanining of undefined which means no limit. If two of those limits are combined and the minimum is needed t

[Qemu-devel] [PATCHv5 1/6] util: introduce MIN_NON_ZERO

2014-10-25 Thread Peter Lieven
at least in block layer we have the case of limits being defined for a BlockDriverState. However, in this context often zero (0) has the special meanining of undefined which means no limit. If two of those limits are combined and the minimum is needed the minimum function should only return zero if