/* SPDX-License-Identifier: GPL-2.0-or-later */1/*2* Linux/PA-RISC Project (http://www.parisc-linux.org/)3*4* Floating-point emulation code5* Copyright (C) 2001 Hewlett-Packard (Paul Bame) <[email protected]>6*/78#ifdef __NO_PA_HDRS9PA header file -- do not include this header file for non-PA builds.10#endif111213/* amount is assumed to be a constant between 0 and 32 (non-inclusive) */14#define Shiftdouble(left,right,amount,dest) \15/* int left, right, amount, dest; */ \16dest = ((left) << (32-(amount))) | ((unsigned int)(right) >> (amount))1718/* amount must be less than 32 */19#define Variableshiftdouble(left,right,amount,dest) \20/* unsigned int left, right; int amount, dest; */ \21if (amount == 0) dest = right; \22else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \23((unsigned) right >> (amount))2425/* amount must be between 0 and 32 (non-inclusive) */26#define Variable_shift_double(left,right,amount,dest) \27/* unsigned int left, right; int amount, dest; */ \28dest = (left << (32-(amount))) | ((unsigned) right >> (amount))293031