forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/mips/math-emu/dp_sqrt.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* IEEE754 floating point arithmetic
23 * double precision square root
34 */
45 /*
56 * MIPS floating point support
67 * Copyright (C) 1994-2000 Algorithmics Ltd.
7
- *
8
- * This program is free software; you can distribute it and/or modify it
9
- * under the terms of the GNU General Public License (Version 2) as
10
- * published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15
- * for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License along
18
- * with this program; if not, write to the Free Software Foundation, Inc.,
19
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
208 */
219
2210 #include "ieee754dp.h"
....@@ -64,8 +52,7 @@
6452
6553 case IEEE754_CLASS_DNORM:
6654 DPDNORMX;
67
- /* fall through */
68
-
55
+ fallthrough;
6956 case IEEE754_CLASS_NORM:
7057 if (xs) {
7158 /* sqrt(-x) = Nan */
....@@ -142,7 +129,7 @@
142129 switch (oldcsr.rm) {
143130 case FPU_CSR_RU:
144131 y.bits += 1;
145
- /* fall through */
132
+ fallthrough;
146133 case FPU_CSR_RN:
147134 t.bits += 1;
148135 break;