~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to disas/m68k.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4685
4685
        /* This is the last byte; zero out the bits which are not part of
4686
4686
           this field.  */
4687
4687
        result |=
4688
 
          (*(data + cur_byte) & ((1 << (len - cur_bitshift)) - 1))
 
4688
          (unsigned long)(*(data + cur_byte)
 
4689
                          & ((1 << (len - cur_bitshift)) - 1))
4689
4690
            << cur_bitshift;
4690
4691
      else
4691
 
        result |= *(data + cur_byte) << cur_bitshift;
 
4692
        result |= (unsigned long)*(data + cur_byte) << cur_bitshift;
4692
4693
      cur_bitshift += FLOATFORMAT_CHAR_BIT;
4693
4694
      if (order == floatformat_little)
4694
4695
        ++cur_byte;
4698
4699
  return result;
4699
4700
}
4700
4701
 
4701
 
#ifndef min
4702
 
#define min(a, b) ((a) < (b) ? (a) : (b))
4703
 
#endif
4704
 
 
4705
4702
/* Convert from FMT to a double.
4706
4703
   FROM is the address of the extended float.
4707
4704
   Store the double in *TO.  */
4733
4730
      nan = 0;
4734
4731
      while (mant_bits_left > 0)
4735
4732
        {
4736
 
          mant_bits = min (mant_bits_left, 32);
 
4733
          mant_bits = MIN(mant_bits_left, 32);
4737
4734
 
4738
4735
          if (get_field (ufrom, fmt->byteorder, fmt->totalsize,
4739
4736
                         mant_off, mant_bits) != 0)
4793
4790
 
4794
4791
  while (mant_bits_left > 0)
4795
4792
    {
4796
 
      mant_bits = min (mant_bits_left, 32);
 
4793
      mant_bits = MIN(mant_bits_left, 32);
4797
4794
 
4798
4795
      mant = get_field (ufrom, fmt->byteorder, fmt->totalsize,
4799
4796
                         mant_off, mant_bits);