test-qsup-minim.c File Reference

#include <linux/aquosa/qsup.h>
#include <linux/aquosa/qos_debug.h>
#include <math.h>

Go to the source code of this file.

Defines

#define P   10000
#define build_params(req_bw, min_bw, flags)   (& ((qres_params_t) { bw2Q(min_bw, P), bw2Q(req_bw, P), P, flags }) )
#define build_constr(l, w, max_bw, max_min_bw, flags)   (& ((qsup_constraints_t) { l, w, max_bw, max_min_bw, flags }))

Typedefs

typedef double pair_t [2]

Functions

int main (int argc, char *argv[])

Variables

pair_t bw_requests []
pair_t bw_approved []
double tolerance = 0.0001

Define Documentation

#define build_constr ( l,
w,
max_bw,
max_min_bw,
flags   )     (& ((qsup_constraints_t) { l, w, max_bw, max_min_bw, flags }))

Definition at line 41 of file test-qsup-minim.c.

#define build_params ( req_bw,
min_bw,
flags   )     (& ((qres_params_t) { bw2Q(min_bw, P), bw2Q(req_bw, P), P, flags }) )

Definition at line 40 of file test-qsup-minim.c.

#define P   10000

Definition at line 39 of file test-qsup-minim.c.


Typedef Documentation

typedef double pair_t[2]

Definition at line 17 of file test-qsup-minim.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

Initial value:
 {
  { 0.05, 0.05 },
  { 0.3, 0.3 },
  { 0.1+(0.6-0.1)/(0.6-0.1+0.4-0.1)*(0.75-0.1-0.1), 0.1+(0.4-0.1)/(0.6-0.1+0.4-0.1)*(0.75-0.1-0.1) },
  { 0.0, 0.0 },
}

Definition at line 30 of file test-qsup-minim.c.

Initial value:
 {
  
  { 0.05, 0.05 },
  
  { 0.3, 0.3 },
  
  { 0.6, 0.4 },
  
  { 0.0, 0.0 },
}

Definition at line 19 of file test-qsup-minim.c.

double tolerance = 0.0001

Definition at line 37 of file test-qsup-minim.c.

Generated on Mon Aug 2 22:39:17 2010 for qosres by  doxygen 1.6.3