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
[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git]
/
llvm
/
test
/
tools
/
llvm-cov
/
Inputs
/
multithreaded_report
/
pow.h
blob
303d114126d7aaad181be8de3f43cc0f3b684c9a
1
template
<
typename T
>
2
T
pow
(
T b
,
T p
) {
3
if
(!
p
)
4
return
1
;
5
6
while
(--
p
) {
7
b
*=
b
;
8
}
9
10
return
b
;
11
}