20000329-1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 41 行

C
41
字号
int giop_tx_big_endian;inlinevoidgiop_encode_ulong (unsigned long i, char *buf){  if (giop_tx_big_endian)    {      *(unsigned long *) buf = i;    }  else    {      *buf++ = i & 0xff;      *buf++ = (i >> 8) & 0xff;      *buf++ = (i >> 16) & 0xff;      *buf = (i >> 24) & 0xff;    }}staticdoubletime_giop_encode (unsigned long l){  int c;  char buf[4];  for (c = 0; c < (512 * 1024 * 1024); ++c)    {      giop_encode_ulong (l, buf);    }}intmain (int ac, char *av[]){  giop_tx_big_endian = 1;  time_giop_encode (0);}

⌨️ 快捷键说明

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