utility.cc (11324:31ca646c7685) utility.cc (11709:f7e79ee7fb4c)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * Copyright (c) 2011 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 340 unchanged lines hidden (view full) ---

349 }
350
351 return ftw;
352}
353
354double
355loadFloat80(const void *_mem)
356{
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * Copyright (c) 2011 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 340 unchanged lines hidden (view full) ---

349 }
350
351 return ftw;
352}
353
354double
355loadFloat80(const void *_mem)
356{
357 const fp80_t *fp80((const fp80_t *)_mem);
357 fp80_t fp80;
358 memcpy(fp80.bits, _mem, 10);
358
359
359 return fp80_cvtd(*fp80);
360 return fp80_cvtd(fp80);
360}
361
362void
363storeFloat80(void *_mem, double value)
364{
361}
362
363void
364storeFloat80(void *_mem, double value)
365{
365 fp80_t *fp80((fp80_t *)_mem);
366
367 *fp80 = fp80_cvfd(value);
366 fp80_t fp80 = fp80_cvfd(value);
367 memcpy(_mem, fp80.bits, 10);
368}
369
370} // namespace X86_ISA
368}
369
370} // namespace X86_ISA