Skip to content
  • Hagen Paul Pfeifer's avatar
    kernel.h: add {min,max}3 macros · f27c85c5
    Hagen Paul Pfeifer authored
    
    
    Introduce two additional min/max macros to compare three operands.  This
    will save some cycles as well as some bytes on the stack and last but not
    least more pleasing as macro nesting.
    
    [akpm@linux-foundation.org: fix warnings]
    Signed-off-by: default avatarHagen Paul Pfeifer <hagen@jauu.net>
    Cc: Joe Perches <joe@perches.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Hartley Sweeten <hsweeten@visionengravers.com>
    Cc: Russell King <linux@arm.linux.org.uk>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Herbert Xu <herbert@gondor.apana.org.au>
    Cc: Roland Dreier <rolandd@cisco.com>
    Cc: Sean Hefty <sean.hefty@intel.com>
    Cc: Pekka Enberg <penberg@cs.helsinki.fi>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    f27c85c5