vfp.hh (8737:770ccf3af571) | vfp.hh (8865:508635b3e666) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 94 unchanged lines hidden (view full) --- 103{ 104 VfpRoundNearest = 0, 105 VfpRoundUpward = 1, 106 VfpRoundDown = 2, 107 VfpRoundZero = 3 108}; 109 110static inline float bitsToFp(uint64_t, float); | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 94 unchanged lines hidden (view full) --- 103{ 104 VfpRoundNearest = 0, 105 VfpRoundUpward = 1, 106 VfpRoundDown = 2, 107 VfpRoundZero = 3 108}; 109 110static inline float bitsToFp(uint64_t, float); |
111static inline double bitsToFp(uint64_t, double); |
|
111static inline uint32_t fpToBits(float); | 112static inline uint32_t fpToBits(float); |
113static inline uint64_t fpToBits(double); |
|
112 113template <class fpType> 114static inline bool 115flushToZero(fpType &op) 116{ 117 fpType junk = 0.0; 118 if (std::fpclassify(op) == FP_SUBNORMAL) { 119 uint64_t bitMask = ULL(0x1) << (sizeof(fpType) * 8 - 1); --- 455 unchanged lines hidden --- | 114 115template <class fpType> 116static inline bool 117flushToZero(fpType &op) 118{ 119 fpType junk = 0.0; 120 if (std::fpclassify(op) == FP_SUBNORMAL) { 121 uint64_t bitMask = ULL(0x1) << (sizeof(fpType) * 8 - 1); --- 455 unchanged lines hidden --- |