Changeset f3386d7 in mainline for uspace/lib/c/generic/bitops.c
- Timestamp:
- 2013-07-15T20:44:54Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f8d3df3
- Parents:
- 273c976 (diff), a940f1d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/bitops.c
r273c976 rf3386d7 1 1 /* 2 * Copyright (c) 201 2 Jiri Svoboda2 * Copyright (c) 2013 Vojtech Horky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup inet29 /** @addtogroup libc 30 30 * @{ 31 31 */ 32 /**33 * @file34 * @brief35 */36 32 37 #ifndef INET_UTIL_H_ 38 #define INET_UTIL_H_ 33 #include <bitops.h> 39 34 40 #include <sys/types.h> 35 extern int __popcountsi2(int a) 36 { 37 return __builtin_popcount(a); 38 } 41 39 42 uint32_t inet_netmask(int bits);43 44 #endif45 40 46 41 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.