Changeset 879d7745 in mainline


Ignore:
Timestamp:
2013-11-19T07:37:30Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
18dc93c
Parents:
3b04143
Message:

popcount() belongs to libsoftint

Location:
uspace/lib
Files:
1 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    r3b04143 r879d7745  
    6161        generic/bd.c \
    6262        generic/bd_srv.c \
    63         generic/bitops.c \
    6463        generic/cap.c \
    6564        generic/cfg.c \
  • uspace/lib/c/include/bitops.h

    r3b04143 r879d7745  
    107107}
    108108
    109 extern int __popcountsi2(int);
    110 extern int __popcountdi2(long);
    111 
    112109#endif
    113110
  • uspace/lib/softint/Makefile

    r3b04143 r879d7745  
    3535
    3636SOURCES = \
     37        generic/bits.c \
    3738        generic/comparison.c \
    3839        generic/division.c \
  • uspace/lib/softint/generic/bits.c

    r3b04143 r879d7745  
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup softint
    3030 * @{
    3131 */
    3232
    33 #include <bitops.h>
     33#include <bits.h>
    3434
     35/** Compute number of set bits in a number. */
    3536int __popcountsi2(int a)
    3637{
     
    4445}
    4546
     47/** Compute number of set bits in a number. */
    4648int __popcountdi2(long a)
    4749{
Note: See TracChangeset for help on using the changeset viewer.