P99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ P99_IPOW

#define P99_IPOW (   N,
 
)    P99_IF_EQ(N,0)(P99_SIGN_PROMOTE(1, X))((P99_FOR(X, N, P00_POW, P00_POW0, P99_REP(N,))))

Compute the Nth multiplicative integer power of X.

N must be a decimal constant without suffixes. The value 0 is special in that it evaluates to a 1 that is promoted to the promoted type of X.

Remarks
argument 0 must expand to a decimal number
Warning
argument 1 may be evaluated multiple times
Examples
test-p99-pow.c.

Definition at line 67 of file p99_map.h.