perflab added

This commit is contained in:
2025-04-12 10:18:45 +08:00
parent a04c35be04
commit 4ea99d81a7
51 changed files with 350295 additions and 0 deletions

17
perflab/poly/poly.h Normal file
View File

@ -0,0 +1,17 @@
/*
Integer polynomial evaluation.
Polynomial given by array of coefficients a[0] ... a[degree].
Want to compute SUM(i=0,degree) a[i] * x^i
*/
/* Type declaration for a polynomial evaluation function */
typedef int (*peval_fun)(int*, int, int);
typedef struct {
peval_fun f;
char *descr;
} peval_fun_rec, *peval_fun_ptr;
/* Table of polynomial functions to test. Null terminated */
extern peval_fun_rec peval_fun_tab[];