diff options
Diffstat (limited to 'lib/int_lib.h')
-rw-r--r-- | lib/int_lib.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/lib/int_lib.h b/lib/int_lib.h index 3690d2eb..6ef7b8e3 100644 --- a/lib/int_lib.h +++ b/lib/int_lib.h @@ -1,22 +1,23 @@ -//===-- int_lib.h - configuration header for libgcc replacement -----------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file is a configuration header for libgcc replacement. -// This file is not part of the interface of this library. -// -//===----------------------------------------------------------------------===// +/* ===-- int_lib.h - configuration header for libgcc replacement -----------=== + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + * ===----------------------------------------------------------------------=== + * + * This file is a configuration header for libgcc replacement. + * This file is not part of the interface of this library. + * + * ===----------------------------------------------------------------------=== + */ #ifndef INT_LIB_H #define INT_LIB_H -// Assumption: signed integral is 2's complement -// Assumption: right shift of signed negative is arithmetic shift +/* Assumption: signed integral is 2's complement */ +/* Assumption: right shift of signed negative is arithmetic shift */ #include <limits.h> #include <math.h> @@ -25,16 +26,16 @@ #define INFINITY HUGE_VAL #endif -// TODO: Improve this to minimal pre-processor hackish'ness. +/* TODO: Improve this to minimal pre-processor hackish'ness. */ #if defined (__SVR4) && defined (__sun) -// config.h build via CMake. -//#include <config.h> +/* config.h build via CMake. */ +/* #include <config.h> */ -// Solaris header for endian and byte swap -//#if defined HAVE_SYS_BYTEORDER_H +/* Solaris header for endian and byte swap */ +/* #if defined HAVE_SYS_BYTEORDER_H */ #include <sys/byteorder.h> -// Solaris defines endian by setting _LITTLE_ENDIAN or _BIG_ENDIAN +/* Solaris defines endian by setting _LITTLE_ENDIAN or _BIG_ENDIAN */ #ifdef _BIG_ENDIAN # define IS_BIG_ENDIAN #endif @@ -51,7 +52,7 @@ #define __LITTLE_ENDIAN__ 1 #endif -#endif //End of Solaris ifdef. +#endif /* End of Solaris ifdef. */ #ifdef __LITTLE_ENDIAN__ #if __LITTLE_ENDIAN__ |