Lines Matching +full:64 +full:- +full:bit
1 //===-- lib/builtins/ppc/floattitf.c - Convert int128->long double -*-C -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements converting a signed 128 bit integer to a 128bit IBM /
10 // PowerPC long double (double-double) value.
12 //===----------------------------------------------------------------------===//
16 // Conversions from signed and unsigned 64-bit int to long double.
20 // Convert a signed 128-bit integer to long double.
21 // This uses the following property: Let hi and lo be 64-bits each,
23 // argument interpreted as a signed or unsigned k-bit integer. Then,
25 // signed_val_128(hi,lo) = signed_val_64(hi) * 2^64 + unsigned_val_64(lo)
26 // = (long double)hi * 2^64 + (long double)lo,
29 // unsigned 64-bit integer to long double conversions, respectively.
31 // Split the int128 argument into 64-bit high and low int64 parts. in __floattitf()
32 int64_t ArgHiPart = (int64_t)(arg >> 64); in __floattitf()
35 // Convert each 64-bit part into long double. The high part in __floattitf()
41 // The low bit of ArgHiPart corresponds to the 2^64 bit in arg. in __floattitf()
42 // Multiply the high part by 2^64 to undo the right shift by 64-bits in __floattitf()