Logo ROOT  
Reference Guide
functioncalls.cxx
Go to the documentation of this file.
1#include "functioncalls.h"
2
3#include <exception>
4#include <math.h>
5
6
7//- group: empty -------------------------------------------------------------
8void empty_call() {
9/* empty, to measure pure call overhead */
10}
11
13/* empty, to measure pure call overhead */
14}
15
16
17//- group: builtin-args-free -------------------------------------------------
18void take_an_int(int /* unused */) {
19/* empty, to measure pure call overhead */
20}
21
22void take_a_double(double /* unused */) {
23/* empty, to measure pure call overhead */
24}
25
26void take_a_struct(Value /* unused */) {
27/* empty, to measure pure call overhead */
28}
29
30//- group: builtin-args-inst -------------------------------------------------
31void TakeAValue::take_an_int(int /* unused */) {
32/* empty, to measure pure call overhead */
33}
34
35void TakeAValue::take_a_double(double /* unused */) {
36/* empty, to measure pure call overhead */
37}
38
39void TakeAValue::take_a_struct(Value /* unused */) {
40/* empty, to measure pure call overhead */
41}
42
43//- group: builtin-args-pass -------------------------------------------------
45 return a + 42;
46}
47
48
49//- group: do-work -----------------------------------------------------------
50double do_work(double arg) {
51 return atan(arg);
52}
53
54double DoWork::do_work(double arg) {
55 return atan(arg);
56}
57
58
59//- group: overload-inst -----------------------------------------------------
60double OverloadedCall::add_it(int a, int b) { std::terminate(); }
61double OverloadedCall::add_it(short a) { std::terminate(); }
62double OverloadedCall::add_it(long a) { std::terminate(); }
63double OverloadedCall::add_it(int a, int b, int c) { std::terminate(); }
64double OverloadedCall::add_it(double a) { return 3.1415 + a; }
65double OverloadedCall::add_it(float a) { return 3.1415 + a; }
66double OverloadedCall::add_it(int a) { std::terminate(); }
#define b(i)
Definition: RSha256.hxx:100
#define c(i)
Definition: RSha256.hxx:101
double atan(double)
double do_work(double)
void empty_call()
double add_it(int a, int b)
void take_a_struct(Value)
void take_a_double(double)
void take_an_int(int)
int pass_int(int)
double do_work(double arg)
void take_a_double(double)
void take_a_struct(Value)
void empty_call()
void take_an_int(int)
auto * a
Definition: textangle.C:12