| // SPDX-License-Identifier: GPL-2.0-only |
| * IEEE754 floating point arithmetic |
| * double precision: CLASS.f |
| * FPR[fd] = class(FPR[fs]) |
| * MIPS floating point support |
| * Copyright (C) 2015 Imagination Technologies, Ltd. |
| * Author: Markos Chandras <markos.chandras@imgtec.com> |
| int ieee754dp_2008class(union ieee754dp x) |
| * 10 bit mask as follows: |
| return 0x04 << (xs ? 0 : 4); |
| return 0x08 << (xs ? 0 : 4); |
| case IEEE754_CLASS_DNORM: |
| return 0x10 << (xs ? 0 : 4); |
| return 0x20 << (xs ? 0 : 4); |
| pr_err("Unknown class: %d\n", xc); |