Spike, a RISC-V ISA Simulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
221 B

#include <stdint.h>
#include "platform.h"
#include "primitives.h"
uint64_t softfloat_shortShift64RightJam( uint64_t a, unsigned int count )
{
return a>>count | ( ( a & ( ( (uint64_t) 1<<count ) - 1 ) ) != 0 );
}