diff options
Diffstat (limited to 'gnu/egcs/libf2c/libF77/qbitshft.c')
-rw-r--r-- | gnu/egcs/libf2c/libF77/qbitshft.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/egcs/libf2c/libF77/qbitshft.c b/gnu/egcs/libf2c/libF77/qbitshft.c new file mode 100644 index 00000000000..87fffb91ff8 --- /dev/null +++ b/gnu/egcs/libf2c/libF77/qbitshft.c @@ -0,0 +1,11 @@ +#include "f2c.h" + + longint +#ifdef KR_headers +qbit_shift(a, b) longint a; integer b; +#else +qbit_shift(longint a, integer b) +#endif +{ + return b >= 0 ? a << b : (longint)((ulongint)a >> -b); + } |