Sign in
swiftshader
/
SwiftShader
/
4b77777a92b9f7a7ff0ac73dd5b2487836e66dae
/
.
/
third_party
/
llvm-7.0
/
llvm
/
test
/
tools
/
llvm-cov
/
Inputs
/
multithreaded_report
/
pow.h
blob: 303d114126d7aaad181be8de3f43cc0f3b684c9a [
file
] [
log
] [
blame
]
template
<
typename
T
>
T pow
(
T b
,
T p
)
{
if
(!
p
)
return
1
;
while
(--
p
)
{
b
*=
b
;
}
return
b
;
}