utility.hh (9880:3fda7e22041b) | utility.hh (9889:2dbc34e3b922) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 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 --- 173 unchanged lines hidden (view full) --- 182 * special for some special floating point values. 183 * 184 * @param ftw Current value of the FTW register. 185 * @param top Current x87 TOP value. 186 * @param spm Stack displacement. 187 * @return New value of the FTW register. 188 */ 189 uint16_t genX87Tags(uint16_t ftw, uint8_t top, int8_t spm); | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 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 --- 173 unchanged lines hidden (view full) --- 182 * special for some special floating point values. 183 * 184 * @param ftw Current value of the FTW register. 185 * @param top Current x87 TOP value. 186 * @param spm Stack displacement. 187 * @return New value of the FTW register. 188 */ 189 uint16_t genX87Tags(uint16_t ftw, uint8_t top, int8_t spm); |
190 191 /** 192 * Load an 80-bit float from memory and convert it to double. 193 * 194 * @param mem Pointer to an 80-bit float. 195 * @return double representation of the 80-bit float. 196 */ 197 double loadFloat80(const void *mem); 198 199 /** 200 * Convert and store a double as an 80-bit float. 201 * 202 * @param mem Pointer to destination for the 80-bit float. 203 * @param value Double precision float to store. 204 */ 205 void storeFloat80(void *mem, double value); |
|
190} 191 192#endif // __ARCH_X86_UTILITY_HH__ | 206} 207 208#endif // __ARCH_X86_UTILITY_HH__ |