⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 overflow-1.c

📁 用于进行gcc测试
💻 C
字号:
/* PR optimization/13318 *//* Origin: <bremner@unb.ca> *//* Reduced testcase: Wolfgang Bangerth <bangerth@dealii.org> *//* Verify that the big multiplier doesn't cause an integer   overflow in the loop optimizer.  *//* { dg-do compile } *//* { dg-options "-O2" } */struct S {  int key;  int rnext,rprev;}; void foo(struct S* H){  int i, k;  for (i=0; i<2; i++){    struct S* cell=H+k;    cell->key=i*(0xffffffffUL/2);    cell->rnext=k+(1-i);    cell->rprev=k+(1-i);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -