X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fmips%2Fcp1.c;h=556af1abc45d1a1508de976dae0b15545b1a8f68;hb=40a5538e9498da85e4df900c7f4e19bcf6f98760;hp=26249f00bfec21798bf010e6bd4e2d58606573de;hpb=e7e811813229598b44f7851121feddcffa911faa;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/mips/cp1.c b/sim/mips/cp1.c index 26249f00bf..556af1abc4 100644 --- a/sim/mips/cp1.c +++ b/sim/mips/cp1.c @@ -1,9 +1,10 @@ /*> cp1.c <*/ /* MIPS Simulator FPU (CoProcessor 1) support. Copyright (C) 2002 Free Software Foundation, Inc. - Originally created by Cygnus Solutions, modified substially - by Broadcom Corporation (SiByte). Paired-single operation support - and MIPS-3D support contributed by Broadcom Corporation (SiByte). + Originally created by Cygnus Solutions. Extensive modifications, + including paired-single operation support and MIPS-3D support + contributed by Ed Satterthwaite and Chris Demetriou, of Broadcom + Corporation (SiByte). This file is part of GDB, the GNU debugger. @@ -1235,7 +1236,7 @@ fp_recip2(sim_cpu *cpu, { static const unsigned64 one_single = UNSIGNED64 (0x3F800000); static const unsigned64 one_double = UNSIGNED64 (0x3FF0000000000000); - static const unsigned64 one_ps = (one_single << 32 | one_single); + static const unsigned64 one_ps = (UNSIGNED64 (0x3F800000) << 32 | UNSIGNED64 (0x3F800000)); unsigned64 one; /* Implemented as nmsub fd, 1, fs, ft. */ @@ -1333,7 +1334,7 @@ fp_rsqrt2(sim_cpu *cpu, { static const unsigned64 half_single = UNSIGNED64 (0x3F000000); static const unsigned64 half_double = UNSIGNED64 (0x3FE0000000000000); - static const unsigned64 half_ps = (half_single << 32 | half_single); + static const unsigned64 half_ps = (UNSIGNED64 (0x3F000000) << 32 | UNSIGNED64 (0x3F000000)); unsigned64 half; /* Implemented as (nmsub fd, 0.5, fs, ft)/2, where the divide is