zoukankan      html  css  js  c++  java
  • libc 一些内置函数

    — Built-in Function: int __builtin_ffs (unsigned int x)

    Returns one plus the index of the least significant 1-bit of x, or if x is zero, returns zero.

    — Built-in Function: int __builtin_clz (unsigned int x)

    Returns the number of leading 0-bits in x, starting at the most significant bit position. If x is 0, the result is undefined.

    — Built-in Function: int __builtin_ctz (unsigned int x)

    Returns the number of trailing 0-bits in x, starting at the least significant bit position. If x is 0, the result is undefined.

    — Built-in Function: int __builtin_popcount (unsigned int x)

    Returns the number of 1-bits in x.

    — Built-in Function: int __builtin_parity (unsigned int x)

    Returns the parity of x, i.e. the number of 1-bits in x modulo 2.

    — Built-in Function: int __builtin_ffsl (unsigned long)

    Similar to __builtin_ffs, except the argument type is unsigned long.

    — Built-in Function: int __builtin_clzl (unsigned long)

    Similar to __builtin_clz, except the argument type is unsigned long.

    — Built-in Function: int __builtin_ctzl (unsigned long)

    Similar to __builtin_ctz, except the argument type is unsigned long.

    — Built-in Function: int __builtin_popcountl (unsigned long)

    Similar to __builtin_popcount, except the argument type is unsigned long.

    — Built-in Function: int __builtin_parityl (unsigned long)

    Similar to __builtin_parity, except the argument type is unsigned long.

    — Built-in Function: int __builtin_ffsll (unsigned long long)

    Similar to __builtin_ffs, except the argument type is unsigned long long.

    — Built-in Function: int __builtin_clzll (unsigned long long)

    Similar to __builtin_clz, except the argument type is unsigned long long.

    — Built-in Function: int __builtin_ctzll (unsigned long long)

    Similar to __builtin_ctz, except the argument type is unsigned long long.

    — Built-in Function: int __builtin_popcountll (unsigned long long)

    Similar to __builtin_popcount, except the argument type is unsigned long long.

    — Built-in Function: int __builtin_parityll (unsigned long long)

    Similar to __builtin_parity, except the argument type is unsigned long long.

  • 相关阅读:
    [题解]AtCoder Beginner Contest 174
    [高精取模]
    C++知识点—对拍
    C++知识点 STL容器3—map && pair
    致远星的搜索战争 T3 星际穿梭 题解
    洛谷 7月月赛 Div.2 T1 可持久化动态仙人掌的直径问题
    T139631 T3 阶乘之和
    C++知识点 STL容器2—set
    【2020-08-10】轻易的评价反而会阻碍成长
    【2020-08-09】人生十三信条
  • 原文地址:https://www.cnblogs.com/superniaoren/p/2990317.html
Copyright © 2011-2022 走看看