]> git.tdb.fi Git - ext/subsurface.git/commit
Tweak depth next_minmax() interface
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Sep 2011 20:35:59 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Sep 2011 20:35:59 +0000 (13:35 -0700)
commitd1ce43087834a881885371e0c7ece9fe55e46e64
tree12b94032a48f0cf2896eaaa444b3b0bc8142b6e1
parent7bbcf2fabd0d74d46dba1f3fad5a6d85c6f6eb1d
Tweak depth next_minmax() interface

Use start/end sample pointers to make a recursive algorithm possible.

Also, clean up the end condition - we don't want to return an
uninteresting minmax result just because we ran out of samples.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
profile.c