]> pd.if.org Git - liblfds/blob - liblfds/liblfds7.1.0/test_and_benchmark/libbenchmark/inc/libbenchmark/libbenchmark_gnuplot.h
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds7.1.0 / test_and_benchmark / libbenchmark / inc / libbenchmark / libbenchmark_gnuplot.h
1 /***** defines *****/
2 #define LIBBENCHMARK_GNUPLOT_OPTIONS_INIT( gpo )                               (gpo).y_axis_scale_type = LIBBENCHMARK_GNUPLOT_Y_AXIS_SCALE_TYPE_LINEAR, (gpo).width_in_pixels_set_flag = LOWERED, (gpo).width_in_pixels_set_flag = LOWERED
3 #define LIBBENCHMARK_GNUPLOT_OPTIONS_SET_Y_AXIS_SCALE_TYPE_LOGARITHMIC( gpo )  (gpo).y_axis_scale_type = LIBBENCHMARK_GNUPLOT_Y_AXIS_SCALE_TYPE_LOGARITHMIC;
4 #define LIBBENCHMARK_GNUPLOT_OPTIONS_SET_WIDTH_IN_PIXELS( gpo, wip )           (gpo).width_in_pixels = wip, (gpo).width_in_pixels_set_flag = RAISED
5 #define LIBBENCHMARK_GNUPLOT_OPTIONS_SET_HEIGHT_IN_PIXELS( gpo, wip )          (gpo).height_in_pixels = wip, (gpo).height_in_pixels_set_flag = RAISED
6
7 /***** enums *****/
8 enum libbenchmark_gnuplot_y_axis_scale_type
9 {
10   LIBBENCHMARK_GNUPLOT_Y_AXIS_SCALE_TYPE_LINEAR,
11   LIBBENCHMARK_GNUPLOT_Y_AXIS_SCALE_TYPE_LOGARITHMIC
12 };
13
14 /***** structs *****/
15 struct libbenchmark_gnuplot_options
16 {
17   enum flag
18     width_in_pixels_set_flag,
19     height_in_pixels_set_flag;
20
21   enum libbenchmark_gnuplot_y_axis_scale_type
22     y_axis_scale_type;
23
24   lfds710_pal_uint_t
25     width_in_pixels,
26     height_in_pixels;
27 };
28
29 /***** public prototypes *****/
30