?? bug-1.c
字號(hào):
#include <stdlib.h>#include <stdio.h>#include <stddef.h>#include <altivec.h>#define NPAGES 20#define NSKIP 10static vector float big[NPAGES*4096/16] = { {1,1,1,1} };/* NPAGES pages worth. */static int failed;static void f(vector float *p){ int i = 1; p = (vector float *)(((ptrdiff_t)p + 4095) & ~4095); i += NSKIP; p += NSKIP*4096/16; while (i < NPAGES) { if (!vec_all_eq(*p,((vector float){0,0,0,0}))) { printf("*p isn't zero at 0x%p, page %d\n", p, i); failed++; } i++; p += 4096/16; }}int main(void){ f(big); if (failed) abort (); return 0;}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -