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.

llvm-svn: 159034
This commit is contained in:
Chandler Carruth 2012-06-22 21:09:22 +00:00
parent 321916a76b
commit 6e2bf8f2bb
36 changed files with 72 additions and 72 deletions

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: absolute value */
/* Effects: aborts if abs(x) < 0 */

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: a + b */
/* Effects: aborts if a + b overflows */

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: a << b */
/* Precondition: 0 <= b < bits_in_tword */

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: arithmetic a >> b */
/* Precondition: 0 <= b < bits_in_tword */

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: the number of leading 0-bits */
/* Precondition: a != 0 */

View File

@ -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

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: the number of trailing 0-bits */
/* Precondition: a != 0 */

View File

@ -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 */

View File

@ -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.
*/

View File

@ -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

View File

@ -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

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: logical a >> b */
/* Precondition: 0 <= b < bits_in_tword */

View File

@ -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 */

View File

@ -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 */

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: a * b */
static

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: a * b */
/* Effects: aborts if a * b overflows */

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: -a */
ti_int

View File

@ -12,10 +12,10 @@
*===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: -a */
/* Effects: aborts if -a overflows */

View File

@ -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);

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: count of 1 bits */
si_int

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if _ARCH_PPC
#include "int_lib.h"
#if _ARCH_PPC
/* Returns: a ^ b */
long double

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Returns: a - b */
/* Effects: aborts if a - b overflows */

View File

@ -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

View File

@ -12,10 +12,10 @@
* ===----------------------------------------------------------------------===
*/
#if __x86_64
#include "int_lib.h"
#if __x86_64
/* Effects: if rem != 0, *rem = a % b
* Returns: a / b
*/

View File

@ -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 */

View File

@ -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 */