forked from embench/embench-iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dummy-libm.c
96 lines (70 loc) · 1.3 KB
/
dummy-libm.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* Dummy standard C math library for the benchmarks
Copyright (C) 2018-2019 Embecosm Limited
Contributor: Jeremy Bennett <jeremy.bennett@embecosm.com>
This file is part of Embench and was formerly part of the Bristol/Embecosm
Embedded Benchmark Suite.
SPDX-License-Identifier: GPL-3.0-or-later */
/* The purpose of this library is to measure the size of code excluding target
dependent C library code. It only makes sense if it is used with
-gc-sections. */
double
acos (double x __attribute__ ((unused)))
{
return 0.0;
}
double
atan (double x __attribute__ ((unused)))
{
return 0.0;
}
double
cos (double x __attribute__ ((unused)))
{
return 0.0;
}
double
sin (double x __attribute__ ((unused)))
{
return 0.0;
}
double
pow (double x __attribute__ ((unused)), double y __attribute__ ((unused)))
{
return 0.0;
}
double
sqrt (double x __attribute__ ((unused)))
{
return 0.0;
}
float
sqrtf (float x __attribute__ ((unused)))
{
return 0.0;
}
double
floor (double x __attribute__ ((unused)))
{
return 0.0;
}
float
floorf (float x __attribute__ ((unused)))
{
return 0.0;
}
double
exp (double x __attribute__ ((unused)))
{
return 0.0;
}
double
log (double x __attribute__ ((unused)))
{
return 0.0;
}
/*
Local Variables:
mode: C
c-file-style: "gnu"
End:
*/