~ubuntu-branches/ubuntu/saucy/bochs/saucy-proposed

« back to all changes in this revision

Viewing changes to fpu/softfloat-macros.h

  • Committer: Bazaar Package Importer
  • Author(s): David Futcher
  • Date: 2009-04-30 07:46:11 UTC
  • mfrom: (1.1.11 upstream) (4.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090430074611-6dih80a5mk2uvxhk
Tags: 2.3.7+20090416-1ubuntu1
* Merge from debian unstable (LP: #370427), remaining changes:
  - debian/patches/12_no-ssp.patch: Build bios with -fno-stack-protector
  - Add Replaces/Conflicts for bochsbios-qemu (<< 2.3.6-2)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
| The result is stored in the location pointed to by `zPtr'.
45
45
*----------------------------------------------------------------------------*/
46
46
 
47
 
BX_CPP_INLINE void shift32RightJamming(Bit32u a, int count, Bit32u *zPtr)
 
47
BX_CPP_INLINE Bit32u shift32RightJamming(Bit32u a, int count)
48
48
{
49
49
    Bit32u z;
50
50
 
57
57
    else {
58
58
        z = (a != 0);
59
59
    }
60
 
    *zPtr = z;
 
60
 
 
61
    return z;
61
62
}
62
63
 
63
64
/*----------------------------------------------------------------------------
69
70
| The result is stored in the location pointed to by `zPtr'.
70
71
*----------------------------------------------------------------------------*/
71
72
 
72
 
BX_CPP_INLINE void shift64RightJamming(Bit64u a, int count, Bit64u *zPtr)
 
73
BX_CPP_INLINE Bit64u shift64RightJamming(Bit64u a, int count)
73
74
{
 
75
    Bit64u z;
 
76
 
74
77
    if (count == 0) {
75
 
        *zPtr = a;
 
78
        z = a;
76
79
    }
77
80
    else if (count < 64) {
78
 
        *zPtr = (a>>count) | ((a<<((-count) & 63)) != 0);
 
81
        z = (a>>count) | ((a << ((-count) & 63)) != 0);
79
82
    }
80
83
    else {
81
 
        *zPtr = (a != 0);
 
84
        z = (a != 0);
82
85
    }
 
86
 
 
87
    return z;
83
88
}
84
89
 
85
90
/*----------------------------------------------------------------------------