pr34077.c

来自「用于进行gcc测试」· C语言 代码 · 共 31 行

C
31
字号
/* { dg-do compile } *//* { dg-options "-O1 -minline-all-stringops -minline-stringops-dynamically" } */#include <string.h>extern double ran(void);struct spec_fd_t {  int limit;  int len;  int pos;  unsigned char *buf;} spec_fd[3];int spec_random_load (int fd) {  int i, j;  char random_text[(32)][(128*1024)];  for (j = 0; j < (128*1024); j++) {    random_text[i][j] = (int)(ran()*256);  }  for (i = 0 ; i < spec_fd[fd].limit; i+= (128*1024)) {    memcpy(spec_fd[fd].buf + i, random_text[(int)(ran()*(32))],	   (128*1024));  }  spec_fd[fd].len = 1024*1024;  return 0;}

⌨️ 快捷键说明

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