diff options
author | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2011-06-12 20:27:10 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2011-06-12 20:27:10 -0700 |
commit | 740f981cfd55604d46598144dccac26dd53f643c (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /softfloat/s_shift128RightJam.c | |
parent | c0ebf99d6bb3ef3cf252703b50b849bcbaa2ec59 (diff) | |
download | riscv-isa-sim-740f981cfd55604d46598144dccac26dd53f643c.zip riscv-isa-sim-740f981cfd55604d46598144dccac26dd53f643c.tar.gz riscv-isa-sim-740f981cfd55604d46598144dccac26dd53f643c.tar.bz2 |
[sim] renamed to riscv-isa-run
Diffstat (limited to 'softfloat/s_shift128RightJam.c')
-rwxr-xr-x | softfloat/s_shift128RightJam.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/softfloat/s_shift128RightJam.c b/softfloat/s_shift128RightJam.c deleted file mode 100755 index 5a4e188..0000000 --- a/softfloat/s_shift128RightJam.c +++ /dev/null @@ -1,31 +0,0 @@ - -#include <stdint.h> -#include "platform.h" -#include "primitives.h" - -struct uint128 - softfloat_shift128RightJam( uint64_t a64, uint64_t a0, unsigned int count ) -{ - unsigned int negCount; - struct uint128 z; - - if ( count < 64 ) { - negCount = - count; - z.v64 = a64>>( count & 63 ); - z.v0 = - a64<<( negCount & 63 ) | a0>>count - | ( (uint64_t) ( a0<<( negCount & 63 ) ) != 0 ); - } else { - z.v64 = 0; - z.v0 = - ( count < 128 ) - ? a64>>( count & 63 ) - | ( ( ( a64 & ( ( (uint64_t) 1<<( count & 63 ) ) - 1 ) ) - | a0 ) - != 0 ) - : ( ( a64 | a0 ) != 0 ); - } - return z; - -} - |