* [PATCH] MIPS: math-emu: ieee754int.h: Fix indentation
@ 2015-07-16 12:27 ` Markos Chandras
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras @ 2015-07-16 12:27 UTC (permalink / raw)
To: linux-mips; +Cc: Markos Chandras
Fix indentation for the final 'else' block.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
arch/mips/math-emu/ieee754int.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/math-emu/ieee754int.h b/arch/mips/math-emu/ieee754int.h
index 05389d5e3a93..c4e4936460e8 100644
--- a/arch/mips/math-emu/ieee754int.h
+++ b/arch/mips/math-emu/ieee754int.h
@@ -65,8 +65,8 @@ static inline int ieee754_class_nan(int xc)
vc = IEEE754_CLASS_INF; \
else if (vm & SP_MBIT(SP_FBITS-1)) \
vc = IEEE754_CLASS_SNAN; \
- else \
- vc = IEEE754_CLASS_QNAN; \
+ else \
+ vc = IEEE754_CLASS_QNAN; \
} else if (ve == SP_EMIN-1+SP_EBIAS) { \
if (vm) { \
ve = SP_EMIN; \
--
2.4.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] MIPS: math-emu: ieee754int.h: Fix indentation
@ 2015-07-16 12:27 ` Markos Chandras
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras @ 2015-07-16 12:27 UTC (permalink / raw)
To: linux-mips; +Cc: Markos Chandras
Fix indentation for the final 'else' block.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
arch/mips/math-emu/ieee754int.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/math-emu/ieee754int.h b/arch/mips/math-emu/ieee754int.h
index 05389d5e3a93..c4e4936460e8 100644
--- a/arch/mips/math-emu/ieee754int.h
+++ b/arch/mips/math-emu/ieee754int.h
@@ -65,8 +65,8 @@ static inline int ieee754_class_nan(int xc)
vc = IEEE754_CLASS_INF; \
else if (vm & SP_MBIT(SP_FBITS-1)) \
vc = IEEE754_CLASS_SNAN; \
- else \
- vc = IEEE754_CLASS_QNAN; \
+ else \
+ vc = IEEE754_CLASS_QNAN; \
} else if (ve == SP_EMIN-1+SP_EBIAS) { \
if (vm) { \
ve = SP_EMIN; \
--
2.4.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2] MIPS: math-emu: ieee754int.h: Fix indentation
@ 2015-07-16 15:43 ` Markos Chandras
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras @ 2015-07-16 15:43 UTC (permalink / raw)
To: linux-mips; +Cc: Markos Chandras
Fix indentation for the final 'else' blocks.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
Changes since v1:
- Fix one more case
---
arch/mips/math-emu/ieee754int.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/mips/math-emu/ieee754int.h b/arch/mips/math-emu/ieee754int.h
index 05389d5e3a93..6383e2c5c1ad 100644
--- a/arch/mips/math-emu/ieee754int.h
+++ b/arch/mips/math-emu/ieee754int.h
@@ -65,8 +65,8 @@ static inline int ieee754_class_nan(int xc)
vc = IEEE754_CLASS_INF; \
else if (vm & SP_MBIT(SP_FBITS-1)) \
vc = IEEE754_CLASS_SNAN; \
- else \
- vc = IEEE754_CLASS_QNAN; \
+ else \
+ vc = IEEE754_CLASS_QNAN; \
} else if (ve == SP_EMIN-1+SP_EBIAS) { \
if (vm) { \
ve = SP_EMIN; \
@@ -105,8 +105,8 @@ static inline int ieee754_class_nan(int xc)
if (vm) { \
ve = DP_EMIN; \
vc = IEEE754_CLASS_DNORM; \
- } else \
- vc = IEEE754_CLASS_ZERO; \
+ } else \
+ vc = IEEE754_CLASS_ZERO; \
} else { \
ve -= DP_EBIAS; \
vm |= DP_HIDDEN_BIT; \
--
2.4.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2] MIPS: math-emu: ieee754int.h: Fix indentation
@ 2015-07-16 15:43 ` Markos Chandras
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras @ 2015-07-16 15:43 UTC (permalink / raw)
To: linux-mips; +Cc: Markos Chandras
Fix indentation for the final 'else' blocks.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
Changes since v1:
- Fix one more case
---
arch/mips/math-emu/ieee754int.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/mips/math-emu/ieee754int.h b/arch/mips/math-emu/ieee754int.h
index 05389d5e3a93..6383e2c5c1ad 100644
--- a/arch/mips/math-emu/ieee754int.h
+++ b/arch/mips/math-emu/ieee754int.h
@@ -65,8 +65,8 @@ static inline int ieee754_class_nan(int xc)
vc = IEEE754_CLASS_INF; \
else if (vm & SP_MBIT(SP_FBITS-1)) \
vc = IEEE754_CLASS_SNAN; \
- else \
- vc = IEEE754_CLASS_QNAN; \
+ else \
+ vc = IEEE754_CLASS_QNAN; \
} else if (ve == SP_EMIN-1+SP_EBIAS) { \
if (vm) { \
ve = SP_EMIN; \
@@ -105,8 +105,8 @@ static inline int ieee754_class_nan(int xc)
if (vm) { \
ve = DP_EMIN; \
vc = IEEE754_CLASS_DNORM; \
- } else \
- vc = IEEE754_CLASS_ZERO; \
+ } else \
+ vc = IEEE754_CLASS_ZERO; \
} else { \
ve -= DP_EBIAS; \
vm |= DP_HIDDEN_BIT; \
--
2.4.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] MIPS: math-emu: ieee754int.h: Fix indentation
2015-07-16 12:27 ` Markos Chandras
(?)
(?)
@ 2015-07-17 7:58 ` Ralf Baechle
-1 siblings, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2015-07-17 7:58 UTC (permalink / raw)
To: Markos Chandras; +Cc: linux-mips
Queued for 4.3. Thanks,
Ralf
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] MIPS: math-emu: ieee754int.h: Fix indentation
2015-07-16 15:43 ` Markos Chandras
(?)
@ 2015-07-17 10:35 ` Ralf Baechle
-1 siblings, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2015-07-17 10:35 UTC (permalink / raw)
To: Markos Chandras; +Cc: linux-mips
On Thu, Jul 16, 2015 at 04:43:33PM +0100, Markos Chandras wrote:
> diff --git a/arch/mips/math-emu/ieee754int.h b/arch/mips/math-emu/ieee754int.h
> index 05389d5e3a93..6383e2c5c1ad 100644
> --- a/arch/mips/math-emu/ieee754int.h
> +++ b/arch/mips/math-emu/ieee754int.h
> @@ -65,8 +65,8 @@ static inline int ieee754_class_nan(int xc)
> vc = IEEE754_CLASS_INF; \
> else if (vm & SP_MBIT(SP_FBITS-1)) \
> vc = IEEE754_CLASS_SNAN; \
> - else \
> - vc = IEEE754_CLASS_QNAN; \
> + else \
> + vc = IEEE754_CLASS_QNAN; \
> } else if (ve == SP_EMIN-1+SP_EBIAS) { \
> if (vm) { \
> ve = SP_EMIN; \
> @@ -105,8 +105,8 @@ static inline int ieee754_class_nan(int xc)
> if (vm) { \
> ve = DP_EMIN; \
> vc = IEEE754_CLASS_DNORM; \
> - } else \
> - vc = IEEE754_CLASS_ZERO; \
> + } else \
> + vc = IEEE754_CLASS_ZERO; \
> } else { \
> ve -= DP_EBIAS; \
> vm |= DP_HIDDEN_BIT; \
Looks correct but the the first segment duplicates
https://patchwork.linux-mips.org/patch/10732/ so I'm applying only
the 2nd segment.
Thanks,
Ralf
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-17 10:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-16 12:27 [PATCH] MIPS: math-emu: ieee754int.h: Fix indentation Markos Chandras
2015-07-16 12:27 ` Markos Chandras
2015-07-16 15:43 ` [PATCH v2] " Markos Chandras
2015-07-16 15:43 ` Markos Chandras
2015-07-17 10:35 ` Ralf Baechle
2015-07-17 7:58 ` [PATCH] " Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.