CSAPP-sol/perf/config.h

33 lines
868 B
C

/*********************************************************
* config.h - Configuration data for the driver.c program.
*********************************************************/
#ifndef _CONFIG_H_
#define _CONFIG_H_
/*
* CPEs for the baseline (naive) version of the rotate function that
* was handed out to the students. Rd is the measured CPE for a dxd
* image. Run the driver.c program on your system to get these
* numbers.
*/
#define R64 2.5
#define R128 2.9
#define R256 6.0
#define R512 9.5
#define R1024 10.7
/*
* CPEs for the baseline (naive) version of the smooth function that
* was handed out to the students. Sd is the measure CPE for a dxd
* image. Run the driver.c program on your system to get these
* numbers.
*/
#define S32 38
#define S64 39
#define S128 39
#define S256 39
#define S512 40
#endif /* _CONFIG_H_ */