MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / IntegerPower

Function IntegerPower

extern/re2/re2/testing/string_generator_test.cc:18–23  ·  view source on GitHub ↗

Returns i to the e.

Source from the content-addressed store, hash-verified

16
17// Returns i to the e.
18static int64_t IntegerPower(int i, int e) {
19 int64_t p = 1;
20 while (e-- > 0)
21 p *= i;
22 return p;
23}
24
25// Checks that for given settings of the string generator:
26// * it generates strings that are non-decreasing in length.

Callers 1

RunTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected