Changeset 7d7bc09 in mainline for uspace/lib/posix/src/stdlib.c
- Timestamp:
- 2018-06-20T18:58:11Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 777832e
- Parents:
- 3bd1d7d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/stdlib.c
r3bd1d7d4 r7d7bc09 49 49 #include "libc/vfs/vfs.h" 50 50 #include "libc/stats.h" 51 52 /**53 * Integer absolute value.54 *55 * @param i Input value.56 * @return Absolute value of the parameter.57 */58 int abs(int i)59 {60 return i < 0 ? -i : i;61 }62 63 /**64 * Long integer absolute value.65 *66 * @param i Input value.67 * @return Absolute value of the parameter.68 */69 long labs(long i)70 {71 return i < 0 ? -i : i;72 }73 74 /**75 * Long long integer absolute value.76 *77 * @param i Input value.78 * @return Absolute value of the parameter.79 */80 long long llabs(long long i)81 {82 return i < 0 ? -i : i;83 }84 51 85 52 /**
Note:
See TracChangeset
for help on using the changeset viewer.