repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git]
/
llvm
/
test
/
tools
/
llvm-cov
/
Inputs
/
multithreaded_report
/
bytes.cc
blob
7df13d8d95d26ec2ab14cbd87f1dd20aa6dafff1
1
#include
"abs.h"
2
#include
"bytes.h"
3
#include
"pow.h"
4
5
bool
loopBytes
() {
6
uint64_t
totalInt
=
0
;
7
double
totalFloat
=
0
;
8
for
(
uint8_t
i
=
1
;
i
!=
0
; ++
i
) {
9
double
a
=
logarithm
(
i
);
10
a
=
abs
(
a
);
11
totalInt
+=
abs
(
pow
(
i
,
static_cast
<
uint8_t
>(
a
)));
12
totalFloat
+=
pow
(
static_cast
<
decltype
(
a
)>(
i
),
a
);
13
}
14
return
totalInt
>
totalFloat
;
15
}