| 360 | } |
| 361 | |
| 362 | double pgo_primer() |
| 363 | { |
| 364 | static const double lower_bound_x = -50.0; |
| 365 | static const double lower_bound_y = -50.0; |
| 366 | static const double upper_bound_x = +50.0; |
| 367 | static const double upper_bound_y = +50.0; |
| 368 | static const double delta = 0.07; |
| 369 | |
| 370 | double total = 0.0; |
| 371 | |
| 372 | for (double x = lower_bound_x; x <= upper_bound_x; x += delta) |
| 373 | { |
| 374 | for (double y = lower_bound_y; y <= upper_bound_y; y += delta) |
| 375 | { |
| 376 | total += native<double>::func00(x,y); |
| 377 | total += native<double>::func01(x,y); |
| 378 | total += native<double>::func02(x,y); |
| 379 | total += native<double>::func03(x,y); |
| 380 | total += native<double>::func04(x,y); |
| 381 | total += native<double>::func05(x,y); |
| 382 | total += native<double>::func06(x,y); |
| 383 | total += native<double>::func07(x,y); |
| 384 | total += native<double>::func08(x,y); |
| 385 | total += native<double>::func09(x,y); |
| 386 | total += native<double>::func10(x,y); |
| 387 | total += native<double>::func11(x,y); |
| 388 | total += native<double>::func12(x,y); |
| 389 | total += native<double>::func13(x,y); |
| 390 | total += native<double>::func14(x,y); |
| 391 | total += native<double>::func15(x,y); |
| 392 | total += native<double>::func16(x,y); |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | return total; |
| 397 | } |
| 398 | |
| 399 | inline std::size_t load_expression_file(const std::string& file_name, std::deque<std::string>& expression_list) |
| 400 | { |