Changeset f3386d7 in mainline for uspace/lib/c/generic/bitops.c


Ignore:
Timestamp:
2013-07-15T20:44:54Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
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.
Message:

mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/bitops.c

    r273c976 rf3386d7  
    11/*
    2  * Copyright (c) 2012 Jiri Svoboda
     2 * Copyright (c) 2013 Vojtech Horky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup inet
     29/** @addtogroup libc
    3030 * @{
    3131 */
    32 /**
    33  * @file
    34  * @brief
    35  */
    3632
    37 #ifndef INET_UTIL_H_
    38 #define INET_UTIL_H_
     33#include <bitops.h>
    3934
    40 #include <sys/types.h>
     35extern int __popcountsi2(int a)
     36{
     37        return __builtin_popcount(a);
     38}
    4139
    42 uint32_t inet_netmask(int bits);
    43 
    44 #endif
    4540
    4641/** @}
Note: See TracChangeset for help on using the changeset viewer.