Changeset 565


Ignore:
Timestamp:
May 1, 2011, 1:12:21 AM (6 years ago)
Author:
Sam Hocevar
Message:

core: add more argument types to Min() and Max().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/common.h

    r555 r565  
    2929static inline int Min(int a, int b) { return a < b ? a : b; }
    3030static inline int Max(int a, int b) { return a > b ? a : b; }
     31static inline long Min(long a, long b) { return a < b ? a : b; }
     32static inline long Max(long a, long b) { return a > b ? a : b; }
     33static inline unsigned long Min(unsigned long a, unsigned long b) { return a < b ? a : b; }
     34static inline unsigned long Max(unsigned long a, unsigned long b) { return a > b ? a : b; }
    3135static inline float Min(float a, float b) { return a < b ? a : b; }
    3236static inline float Max(float a, float b) { return a > b ? a : b; }
Note: See TracChangeset for help on using the changeset viewer.