diff options
Diffstat (limited to 'lib/fixdfdi.c')
-rw-r--r-- | lib/fixdfdi.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/lib/fixdfdi.c b/lib/fixdfdi.c index 87368b7e5..fa5dd8993 100644 --- a/lib/fixdfdi.c +++ b/lib/fixdfdi.c @@ -1,25 +1,27 @@ -//===-- fixdfdi.c - Implement __fixdfdi -----------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file implements __fixdfdi for the compiler_rt library. -// -//===----------------------------------------------------------------------===// +/* ===-- fixdfdi.c - Implement __fixdfdi -----------------------------------=== + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + * ===----------------------------------------------------------------------=== + * + * This file implements __fixdfdi for the compiler_rt library. + * + * ===----------------------------------------------------------------------=== + */ #include "int_lib.h" -// Returns: convert a to a signed long long, rounding toward zero. +/* Returns: convert a to a signed long long, rounding toward zero. */ -// Assumption: double is a IEEE 64 bit floating point type -// su_int is a 32 bit integral type -// value in double is representable in di_int (no range checking performed) +/* Assumption: double is a IEEE 64 bit floating point type + * su_int is a 32 bit integral type + * value in double is representable in di_int (no range checking performed) + */ -// seee eeee eeee mmmm mmmm mmmm mmmm mmmm | mmmm mmmm mmmm mmmm mmmm mmmm mmmm mmmm +/* seee eeee eeee mmmm mmmm mmmm mmmm mmmm | mmmm mmmm mmmm mmmm mmmm mmmm mmmm mmmm */ di_int __fixdfdi(double a) @@ -38,4 +40,4 @@ __fixdfdi(double a) else r.all >>= (52 - e); return (r.all ^ s) - s; -} +} |