FLANG
int-power.h
1//===-- lib/Evaluate/int-power.h --------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef FORTRAN_EVALUATE_INT_POWER_H_
10#define FORTRAN_EVALUATE_INT_POWER_H_
11
12// Computes an integer power of a real or complex value.
13
14#include "flang/Evaluate/complex-value.h"
15#include "flang/Evaluate/real-value.h"
16#include "flang/Evaluate/target.h"
17
18namespace Fortran::evaluate {
19
21 const value::IntegerValue &power,
22 Rounding rounding = TargetCharacteristics::defaultRounding);
23
25 const value::ComplexValue &base, const value::IntegerValue &power,
26 Rounding rounding = TargetCharacteristics::defaultRounding);
27
28} // namespace Fortran::evaluate
29#endif // FORTRAN_EVALUATE_INT_POWER_H_
Definition complex-value.h:28
Definition integer-value.h:35
Definition real-value.h:32
Definition call.h:34
Definition target-rounding.h:18