zoukankan      html  css  js  c++  java
  • Built-in functions

    转自::http://blog.csdn.net/luyuncheng/article/details/11674123

     
    — 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.
    返回右起第一个‘1’的位置。

    — 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.
    返回左起第一个‘1’之前0的个数。

    — 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.
    返回右起第一个‘1’之后的0的个数。

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

    Returns the number of 1-bits in x.
    返回‘1’的个数。

    — 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.
    返回‘1’的个数的奇偶性。

    — 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.
  • 相关阅读:
    2019-2020-1 20175201 20175215 20175229实验五 通讯协议设计
    2019-2020-1 20175201 20175215 20175229实验四 外设驱动程序设计
    2019-2020-1 实验三-并发程序 20175215
    20175201 20175215 20175229 实验二 固件程序设计
    冲刺博客汇总
    2018-2019-2 20175215 实验五《网络编程与安全》实验报告
    Int和Integer(课上测试)
    MySort(选做)
    2019-2020-2 20175234 赵诗玥 《网络对抗技术》 Exp1 PC平台逆向破解
    2019-2020-2 20175234 赵诗玥《网络对抗技术》 Exp0 Kali安装
  • 原文地址:https://www.cnblogs.com/y7070/p/4906470.html
Copyright © 2011-2022 走看看