2009-10-28 01:48:46 +08:00
|
|
|
/* ===-- int_lib.h - configuration header for compiler-rt -----------------===
|
2009-08-05 09:47:29 +08:00
|
|
|
*
|
|
|
|
* The LLVM Compiler Infrastructure
|
|
|
|
*
|
2010-11-17 06:13:33 +08:00
|
|
|
* This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
* Source Licenses. See LICENSE.TXT for details.
|
2009-08-05 09:47:29 +08:00
|
|
|
*
|
|
|
|
* ===----------------------------------------------------------------------===
|
|
|
|
*
|
2009-10-28 01:48:46 +08:00
|
|
|
* This file is a configuration header for compiler-rt.
|
2009-08-05 09:47:29 +08:00
|
|
|
* This file is not part of the interface of this library.
|
|
|
|
*
|
|
|
|
* ===----------------------------------------------------------------------===
|
|
|
|
*/
|
2009-06-27 00:47:03 +08:00
|
|
|
|
|
|
|
#ifndef INT_LIB_H
|
|
|
|
#define INT_LIB_H
|
|
|
|
|
2011-11-16 02:56:21 +08:00
|
|
|
/* Assumption: Signed integral is 2's complement. */
|
|
|
|
/* Assumption: Right shift of signed negative is arithmetic shift. */
|
|
|
|
/* Assumption: Endianness is little or big (not mixed). */
|
|
|
|
|
2011-11-16 02:34:44 +08:00
|
|
|
/* ABI macro definitions */
|
|
|
|
|
|
|
|
#if __ARM_EABI__
|
|
|
|
# define ARM_EABI_FNALIAS(aeabi_name, name) \
|
|
|
|
void __aeabi_##aeabi_name() __attribute__((alias("__" #name)));
|
|
|
|
# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
|
|
|
|
#else
|
|
|
|
# define ARM_EABI_FNALIAS(aeabi_name, name)
|
|
|
|
# define COMPILER_RT_ABI
|
|
|
|
#endif
|
|
|
|
|
2011-11-16 08:20:36 +08:00
|
|
|
/* Include the standard compiler builtin headers we use functionality from. */
|
2009-06-27 00:47:03 +08:00
|
|
|
#include <limits.h>
|
2011-01-08 03:09:06 +08:00
|
|
|
#include <stdint.h>
|
2011-11-16 03:02:22 +08:00
|
|
|
#include <stdbool.h>
|
2011-11-16 08:20:36 +08:00
|
|
|
#include <float.h>
|
|
|
|
|
2011-11-16 02:56:13 +08:00
|
|
|
/* Include the commonly used internal type definitions. */
|
|
|
|
#include "int_types.h"
|
2009-06-27 00:47:03 +08:00
|
|
|
|
2011-11-16 09:19:19 +08:00
|
|
|
/* Include internal utility function declarations. */
|
|
|
|
#include "int_util.h"
|
|
|
|
|
2009-08-06 03:57:20 +08:00
|
|
|
#endif /* INT_LIB_H */
|