• 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.

  • 相关阅读:
    iOS6 与iOS7以及7以上状态栏的颜色设置
    XCode常用快捷键的使用
    [Cordova+Sencha Touch] 移动开发1 sencha 2.4.0 + 在 安卓2.3.6上使用报错
    document.addEventListener的使用介绍
    设置aspx页面的地址栏中的Session ID的显示与隐藏
    Android检测网络是否可用并获取网络类型
    程序员必读书籍及导读指南
    ListView的属性及方法详解
    javascript
    CSS
  • 原文地址:https://www.cnblogs.com/superniaoren/p/2990317.html
Copyright © 2020-2023  润新知