diff options
Diffstat (limited to 'compiler-rt/lib/fixunsxfdi.c')
-rw-r--r-- | compiler-rt/lib/fixunsxfdi.c | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/compiler-rt/lib/fixunsxfdi.c b/compiler-rt/lib/fixunsxfdi.c index b0abb936234..e09f2d06de9 100644 --- a/compiler-rt/lib/fixunsxfdi.c +++ b/compiler-rt/lib/fixunsxfdi.c @@ -1,30 +1,34 @@ -//===-- fixunsxfdi.c - Implement __fixunsxfdi -----------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file implements __fixunsxfdi for the compiler_rt library. -// -//===----------------------------------------------------------------------===// +/* ===-- fixunsxfdi.c - Implement __fixunsxfdi -----------------------------=== + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + * ===----------------------------------------------------------------------=== + * + * This file implements __fixunsxfdi for the compiler_rt library. + * + * ===----------------------------------------------------------------------=== + */ #if !_ARCH_PPC #include "int_lib.h" -// Returns: convert a to a unsigned long long, rounding toward zero. -// Negative values all become zero. +/* Returns: convert a to a unsigned long long, rounding toward zero. + * Negative values all become zero. + */ -// Assumption: long double is an intel 80 bit floating point type padded with 6 bytes -// du_int is a 64 bit integral type -// value in long double is representable in du_int or is negative -// (no range checking performed) +/* Assumption: long double is an intel 80 bit floating point type padded with 6 bytes + * du_int is a 64 bit integral type + * value in long double is representable in du_int or is negative + * (no range checking performed) + */ -// gggg gggg gggg gggg gggg gggg gggg gggg | gggg gggg gggg gggg seee eeee eeee eeee | -// 1mmm mmmm mmmm mmmm mmmm mmmm mmmm mmmm | mmmm mmmm mmmm mmmm mmmm mmmm mmmm mmmm +/* gggg gggg gggg gggg gggg gggg gggg gggg | gggg gggg gggg gggg seee eeee eeee eeee | + * 1mmm mmmm mmmm mmmm mmmm mmmm mmmm mmmm | mmmm mmmm mmmm mmmm mmmm mmmm mmmm mmmm + */ du_int __fixunsxfdi(long double a) |