Changeset 34b9299 in mainline for uspace/lib/c/include/macros.h


Ignore:
Timestamp:
2012-10-31T19:47:53Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82d062d8
Parents:
f0da6855
git-author:
Adam Hraska <adam.hraska@…> (2012-10-31 19:47:53)
git-committer:
Jakub Jermar <jakub@…> (2012-10-31 19:47:53)
Message:

printf() full floating point support.
(Thanks to Adam Hraska.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/macros.h

    rf0da6855 r34b9299  
    3838#define min(a, b)  ((a) < (b) ? (a) : (b))
    3939#define max(a, b)  ((a) > (b) ? (a) : (b))
     40#define abs(a)     ((a) >= 0 ? (a) : (-a))
     41
    4042
    4143#define KiB2SIZE(kb)  ((kb) << 10)
Note: See TracChangeset for help on using the changeset viewer.