harness.h
来自「用于进行gcc测试」· C头文件 代码 · 共 31 行
H
31 行
/* Common code for most VMX test cases. To use, include this file, then write a routine named test() that performs a series of calls to check(). */#include <stdlib.h>#include <stdio.h>#include <altivec.h>static int failed;static void test (void);static voidcheck (int result, const char *name){ if (!result) { failed++; printf ("fail %s\n", name); }} intmain (void){ test (); if (failed) abort (); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?