libc: counting, rounding, and min/max macros

These macros are the same as in gnu libc
and bsd's sys/sys/param.h

Change-Id: If798c3d45a068d5e8378034a4850cb6c1a7da07e
[ARM] libc: define return and conditional return macros

Change-Id: Id28c8f88c06403ff9fb40ad8ce6906a605a83cff