GCC and Clang perform extremely slow on mod of power of 2 operation

后端 未结 0 577
时光说笑
时光说笑 2020-12-24 12:20

Consider following code:

int foo(int x) {
  if ((x) % 256 == 0)
    if ((x) % 16 == 0)
      return 0;
  return 1;
}

int bar(int x) {
  if ((x) & 255 ==          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题