diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-06-22 21:09:22 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-06-22 21:09:22 +0000 |
commit | 7f2d7c75e713d778106d01a54e7aef40227bbf2d (patch) | |
tree | b4e11b8570f075741aa7cb7bb0a2cfdfef5a9283 | |
parent | 0193b74976719b8aea4cb8874ba36b75836a8d6e (diff) |
Mechanical change to sink a #ifdef guard for a platform below the
include of int_lib.h.
The purpose of this change is to make the C code conform to the pedantic
rules of C99 -- an empty translation unit is not valid. It should have
absolutely no functional impact, and changes nothing about the built
libraries.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159034 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/absvti2.c | 4 | ||||
-rw-r--r-- | lib/addvti3.c | 4 | ||||
-rw-r--r-- | lib/ashlti3.c | 4 | ||||
-rw-r--r-- | lib/ashrti3.c | 4 | ||||
-rw-r--r-- | lib/clzti2.c | 4 | ||||
-rw-r--r-- | lib/cmpti2.c | 4 | ||||
-rw-r--r-- | lib/ctzti2.c | 4 | ||||
-rw-r--r-- | lib/divti3.c | 4 | ||||
-rw-r--r-- | lib/ffsti2.c | 4 | ||||
-rw-r--r-- | lib/fixdfti.c | 4 | ||||
-rw-r--r-- | lib/fixsfti.c | 4 | ||||
-rw-r--r-- | lib/fixunsdfti.c | 4 | ||||
-rw-r--r-- | lib/fixunssfti.c | 4 | ||||
-rw-r--r-- | lib/fixunsxfti.c | 4 | ||||
-rw-r--r-- | lib/fixxfti.c | 4 | ||||
-rw-r--r-- | lib/floattidf.c | 4 | ||||
-rw-r--r-- | lib/floattisf.c | 4 | ||||
-rw-r--r-- | lib/floattixf.c | 4 | ||||
-rw-r--r-- | lib/floatuntidf.c | 4 | ||||
-rw-r--r-- | lib/floatuntisf.c | 4 | ||||
-rw-r--r-- | lib/floatuntixf.c | 4 | ||||
-rw-r--r-- | lib/lshrti3.c | 4 | ||||
-rw-r--r-- | lib/modti3.c | 4 | ||||
-rw-r--r-- | lib/muloti4.c | 4 | ||||
-rw-r--r-- | lib/multi3.c | 4 | ||||
-rw-r--r-- | lib/mulvti3.c | 4 | ||||
-rw-r--r-- | lib/negti2.c | 4 | ||||
-rw-r--r-- | lib/negvti2.c | 4 | ||||
-rw-r--r-- | lib/parityti2.c | 4 | ||||
-rw-r--r-- | lib/popcountti2.c | 4 | ||||
-rw-r--r-- | lib/powitf2.c | 4 | ||||
-rw-r--r-- | lib/subvti3.c | 4 | ||||
-rw-r--r-- | lib/ucmpti2.c | 4 | ||||
-rw-r--r-- | lib/udivmodti4.c | 4 | ||||
-rw-r--r-- | lib/udivti3.c | 4 | ||||
-rw-r--r-- | lib/umodti3.c | 4 |
36 files changed, 72 insertions, 72 deletions
diff --git a/lib/absvti2.c b/lib/absvti2.c index 8f2bddcb3..c1c727798 100644 --- a/lib/absvti2.c +++ b/lib/absvti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: absolute value */ /* Effects: aborts if abs(x) < 0 */ diff --git a/lib/addvti3.c b/lib/addvti3.c index 9105c1789..2efcf3b40 100644 --- a/lib/addvti3.c +++ b/lib/addvti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: a + b */ /* Effects: aborts if a + b overflows */ diff --git a/lib/ashlti3.c b/lib/ashlti3.c index 7042b53b9..4bd8219b5 100644 --- a/lib/ashlti3.c +++ b/lib/ashlti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: a << b */ /* Precondition: 0 <= b < bits_in_tword */ diff --git a/lib/ashrti3.c b/lib/ashrti3.c index 4d1623027..ed43641c7 100644 --- a/lib/ashrti3.c +++ b/lib/ashrti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: arithmetic a >> b */ /* Precondition: 0 <= b < bits_in_tword */ diff --git a/lib/clzti2.c b/lib/clzti2.c index 7a650eb42..355c20e42 100644 --- a/lib/clzti2.c +++ b/lib/clzti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: the number of leading 0-bits */ /* Precondition: a != 0 */ diff --git a/lib/cmpti2.c b/lib/cmpti2.c index b156fce90..d0aec452a 100644 --- a/lib/cmpti2.c +++ b/lib/cmpti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: if (a < b) returns 0 * if (a == b) returns 1 * if (a > b) returns 2 diff --git a/lib/ctzti2.c b/lib/ctzti2.c index 1c9508fd5..66dc01b7a 100644 --- a/lib/ctzti2.c +++ b/lib/ctzti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: the number of trailing 0-bits */ /* Precondition: a != 0 */ diff --git a/lib/divti3.c b/lib/divti3.c index 4ec3fa35e..0242c1368 100644 --- a/lib/divti3.c +++ b/lib/divti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + tu_int __udivmodti4(tu_int a, tu_int b, tu_int* rem); /* Returns: a / b */ diff --git a/lib/ffsti2.c b/lib/ffsti2.c index 948c696b6..27e15d581 100644 --- a/lib/ffsti2.c +++ b/lib/ffsti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: the index of the least significant 1-bit in a, or * the value zero if a is zero. The least significant bit is index one. */ diff --git a/lib/fixdfti.c b/lib/fixdfti.c index 4140d1446..b110a94b8 100644 --- a/lib/fixdfti.c +++ b/lib/fixdfti.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a signed long long, rounding toward zero. */ /* Assumption: double is a IEEE 64 bit floating point type diff --git a/lib/fixsfti.c b/lib/fixsfti.c index c64e5aea5..c730ae046 100644 --- a/lib/fixsfti.c +++ b/lib/fixsfti.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a signed long long, rounding toward zero. */ /* Assumption: float is a IEEE 32 bit floating point type diff --git a/lib/fixunsdfti.c b/lib/fixunsdfti.c index 524a2078f..fb0336f69 100644 --- a/lib/fixunsdfti.c +++ b/lib/fixunsdfti.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a unsigned long long, rounding toward zero. * Negative values all become zero. */ diff --git a/lib/fixunssfti.c b/lib/fixunssfti.c index b80791017..8f4c62627 100644 --- a/lib/fixunssfti.c +++ b/lib/fixunssfti.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a unsigned long long, rounding toward zero. * Negative values all become zero. */ diff --git a/lib/fixunsxfti.c b/lib/fixunsxfti.c index f0e16dbfe..260bfc01f 100644 --- a/lib/fixunsxfti.c +++ b/lib/fixunsxfti.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a unsigned long long, rounding toward zero. * Negative values all become zero. */ diff --git a/lib/fixxfti.c b/lib/fixxfti.c index 1022770f1..973dc31bf 100644 --- a/lib/fixxfti.c +++ b/lib/fixxfti.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a signed long long, rounding toward zero. */ /* Assumption: long double is an intel 80 bit floating point type padded with 6 bytes diff --git a/lib/floattidf.c b/lib/floattidf.c index 3cafea8a2..77749f8d3 100644 --- a/lib/floattidf.c +++ b/lib/floattidf.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a double, rounding toward even.*/ /* Assumption: double is a IEEE 64 bit floating point type diff --git a/lib/floattisf.c b/lib/floattisf.c index ab33e4aad..4776125de 100644 --- a/lib/floattisf.c +++ b/lib/floattisf.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a float, rounding toward even. */ /* Assumption: float is a IEEE 32 bit floating point type diff --git a/lib/floattixf.c b/lib/floattixf.c index 852acc707..3813dc6b7 100644 --- a/lib/floattixf.c +++ b/lib/floattixf.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a long double, rounding toward even. */ /* Assumption: long double is a IEEE 80 bit floating point type padded to 128 bits diff --git a/lib/floatuntidf.c b/lib/floatuntidf.c index d0889a074..4c1d3289f 100644 --- a/lib/floatuntidf.c +++ b/lib/floatuntidf.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a double, rounding toward even. */ /* Assumption: double is a IEEE 64 bit floating point type diff --git a/lib/floatuntisf.c b/lib/floatuntisf.c index f5527583c..c8da2601b 100644 --- a/lib/floatuntisf.c +++ b/lib/floatuntisf.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a float, rounding toward even. */ /* Assumption: float is a IEEE 32 bit floating point type diff --git a/lib/floatuntixf.c b/lib/floatuntixf.c index 00c07d8ed..dbce80f16 100644 --- a/lib/floatuntixf.c +++ b/lib/floatuntixf.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: convert a to a long double, rounding toward even. */ /* Assumption: long double is a IEEE 80 bit floating point type padded to 128 bits diff --git a/lib/lshrti3.c b/lib/lshrti3.c index 5fdd99eb7..be768143b 100644 --- a/lib/lshrti3.c +++ b/lib/lshrti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: logical a >> b */ /* Precondition: 0 <= b < bits_in_tword */ diff --git a/lib/modti3.c b/lib/modti3.c index dbe5e949b..752202d45 100644 --- a/lib/modti3.c +++ b/lib/modti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + tu_int __udivmodti4(tu_int a, tu_int b, tu_int* rem); /*Returns: a % b */ diff --git a/lib/muloti4.c b/lib/muloti4.c index 1fcd0baf7..f58dd074e 100644 --- a/lib/muloti4.c +++ b/lib/muloti4.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: a * b */ /* Effects: sets *overflow to 1 if a * b overflows */ diff --git a/lib/multi3.c b/lib/multi3.c index ad8ab3fcb..0b8730f08 100644 --- a/lib/multi3.c +++ b/lib/multi3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: a * b */ static diff --git a/lib/mulvti3.c b/lib/mulvti3.c index ae65cf8fe..31f7d2fd3 100644 --- a/lib/mulvti3.c +++ b/lib/mulvti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: a * b */ /* Effects: aborts if a * b overflows */ diff --git a/lib/negti2.c b/lib/negti2.c index 774e80829..f7e4ad3b9 100644 --- a/lib/negti2.c +++ b/lib/negti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: -a */ ti_int diff --git a/lib/negvti2.c b/lib/negvti2.c index ef766bb48..05df6152f 100644 --- a/lib/negvti2.c +++ b/lib/negvti2.c @@ -12,10 +12,10 @@ *===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: -a */ /* Effects: aborts if -a overflows */ diff --git a/lib/parityti2.c b/lib/parityti2.c index 8f857455a..a1f47b1d9 100644 --- a/lib/parityti2.c +++ b/lib/parityti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: 1 if number of bits is odd else returns 0 */ si_int __paritydi2(di_int a); diff --git a/lib/popcountti2.c b/lib/popcountti2.c index 68d942707..95666738f 100644 --- a/lib/popcountti2.c +++ b/lib/popcountti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: count of 1 bits */ si_int diff --git a/lib/powitf2.c b/lib/powitf2.c index 189632cf6..d3b934924 100644 --- a/lib/powitf2.c +++ b/lib/powitf2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if _ARCH_PPC - #include "int_lib.h" +#if _ARCH_PPC + /* Returns: a ^ b */ long double diff --git a/lib/subvti3.c b/lib/subvti3.c index 44127b73a..b32df5e6c 100644 --- a/lib/subvti3.c +++ b/lib/subvti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: a - b */ /* Effects: aborts if a - b overflows */ diff --git a/lib/ucmpti2.c b/lib/ucmpti2.c index 11137c5a5..5466d2174 100644 --- a/lib/ucmpti2.c +++ b/lib/ucmpti2.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Returns: if (a < b) returns 0 * if (a == b) returns 1 * if (a > b) returns 2 diff --git a/lib/udivmodti4.c b/lib/udivmodti4.c index 427861b1e..f619c7495 100644 --- a/lib/udivmodti4.c +++ b/lib/udivmodti4.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + /* Effects: if rem != 0, *rem = a % b * Returns: a / b */ diff --git a/lib/udivti3.c b/lib/udivti3.c index 7405a0f98..d9e1bb46f 100644 --- a/lib/udivti3.c +++ b/lib/udivti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + tu_int __udivmodti4(tu_int a, tu_int b, tu_int* rem); /* Returns: a / b */ diff --git a/lib/umodti3.c b/lib/umodti3.c index 8f20c5fe3..8ebe7f0dc 100644 --- a/lib/umodti3.c +++ b/lib/umodti3.c @@ -12,10 +12,10 @@ * ===----------------------------------------------------------------------=== */ -#if __x86_64 - #include "int_lib.h" +#if __x86_64 + tu_int __udivmodti4(tu_int a, tu_int b, tu_int* rem); /* Returns: a % b */ |