diff options
author | arphaman <arphaman@gmail.com> | 2013-09-04 12:47:44 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-09-04 12:47:44 +0100 |
commit | b0930584ad6c1f8590c306bc8d92f923b4da8f2c (patch) | |
tree | 6d4663d95e2b5c1c7ac04fbaf5c4885169e9b399 /include/Numerical/Integer.h | |
parent | 1e6e1abbcdd3fada164c5f3fa8b6bbabacce4766 (diff) | |
download | libflangrt-b0930584ad6c1f8590c306bc8d92f923b4da8f2c.tar.gz |
added integer power functions
Diffstat (limited to 'include/Numerical/Integer.h')
-rw-r--r-- | include/Numerical/Integer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/Numerical/Integer.h b/include/Numerical/Integer.h new file mode 100644 index 0000000..e41b4f6 --- /dev/null +++ b/include/Numerical/Integer.h @@ -0,0 +1,21 @@ +//===--- Integer.h - Integer operations library -----------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBFLANG_NUMERICAL_INTEGER_H +#define LLVM_LIBFLANG_NUMERICAL_INTEGER_H + +#include "Libflang.h" +#include <stdint.h> + +LIBFLANG_ABI int8_t libflang_pow_i1_i1(int8_t x, int8_t y); +LIBFLANG_ABI int16_t libflang_pow_i2_i2(int16_t x, int16_t y); +LIBFLANG_ABI int32_t libflang_pow_i4_i4(int32_t x, int32_t y); +LIBFLANG_ABI int64_t libflang_pow_i8_i8(int64_t x, int64_t y); + +#endif |