summaryrefslogtreecommitdiff
path: root/lib/int_lib.h
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-08-05 01:47:29 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-08-05 01:47:29 +0000
commit0e4ad9c55a8554a220af3dc6b0fc4b0a5d64c025 (patch)
tree4c4ac7f8fbb9afffc22ab04ef63e9dfd5eecc5fc /lib/int_lib.h
parentf361ff15d3a8286e27f8adc8d02c9d3ed79fc8db (diff)
downloadcompiler-rt-0e4ad9c55a8554a220af3dc6b0fc4b0a5d64c025.tar.gz
compiler-rt-0e4ad9c55a8554a220af3dc6b0fc4b0a5d64c025.tar.bz2
compiler-rt-0e4ad9c55a8554a220af3dc6b0fc4b0a5d64c025.tar.xz
Start porting compiler-rt testsuit to Solaris with new build system. Fix some C++ style comments which are not allowed in ISO C90.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@78143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/int_lib.h')
-rw-r--r--lib/int_lib.h45
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__