freebsd-dev/contrib/libf2c/libF77/lbitshft.c

12 lines
191 B
C
Raw Normal View History

1999-09-18 10:51:31 +00:00
#include "f2c.h"
integer
#ifdef KR_headers
lbit_shift(a, b) integer a; integer b;
#else
lbit_shift(integer a, integer b)
#endif
{
return b >= 0 ? a << b : (integer)((uinteger)a >> -b);
}