divdf3.c (229135) | divdf3.c (239138) |
---|---|
1//===-- lib/divdf3.c - Double-precision division ------------------*- C -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 5 unchanged lines hidden (view full) --- 14// It should be a fairly straightforward exercise to implement gradual 15// underflow with correct rounding. 16// 17//===----------------------------------------------------------------------===// 18 19#define DOUBLE_PRECISION 20#include "fp_lib.h" 21 | 1//===-- lib/divdf3.c - Double-precision division ------------------*- C -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 5 unchanged lines hidden (view full) --- 14// It should be a fairly straightforward exercise to implement gradual 15// underflow with correct rounding. 16// 17//===----------------------------------------------------------------------===// 18 19#define DOUBLE_PRECISION 20#include "fp_lib.h" 21 |
22ARM_EABI_FNALIAS(ddiv, divdf3); | 22ARM_EABI_FNALIAS(ddiv, divdf3) |
23 24fp_t __divdf3(fp_t a, fp_t b) { 25 26 const unsigned int aExponent = toRep(a) >> significandBits & maxExponent; 27 const unsigned int bExponent = toRep(b) >> significandBits & maxExponent; 28 const rep_t quotientSign = (toRep(a) ^ toRep(b)) & signBit; 29 30 rep_t aSignificand = toRep(a) & significandMask; --- 154 unchanged lines hidden --- | 23 24fp_t __divdf3(fp_t a, fp_t b) { 25 26 const unsigned int aExponent = toRep(a) >> significandBits & maxExponent; 27 const unsigned int bExponent = toRep(b) >> significandBits & maxExponent; 28 const rep_t quotientSign = (toRep(a) ^ toRep(b)) & signBit; 29 30 rep_t aSignificand = toRep(a) & significandMask; --- 154 unchanged lines hidden --- |