1 //===-- powitf2.cpp - Implement __powitf2 ---------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file implements __powitf2 for the compiler_rt library.
11 //===----------------------------------------------------------------------===//
13 #define QUAD_PRECISION
16 #if defined(CRT_HAS_TF_MODE)
20 COMPILER_RT_ABI fp_t
__powitf2(fp_t a
, int b
) {
21 const int recip
= b
< 0;
31 return recip
? 1 / r
: r
;