Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/fpu u_int64_t --> uint64_t. No binary changes.
details: https://anonhg.NetBSD.org/src/rev/9b58f127b6d5
branches: trunk
changeset: 369718:9b58f127b6d5
user: rin <rin%NetBSD.org@localhost>
date: Sun Aug 28 22:22:41 2022 +0000
description:
u_int64_t --> uint64_t. No binary changes.
diffstat:
sys/arch/powerpc/fpu/fpu_explode.c | 10 +++++-----
sys/arch/powerpc/fpu/fpu_extern.h | 4 ++--
sys/arch/powerpc/fpu/fpu_implode.c | 10 +++++-----
3 files changed, 12 insertions(+), 12 deletions(-)
diffs (95 lines):
diff -r f142e8485859 -r 9b58f127b6d5 sys/arch/powerpc/fpu/fpu_explode.c
--- a/sys/arch/powerpc/fpu/fpu_explode.c Sun Aug 28 22:09:26 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_explode.c Sun Aug 28 22:22:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_explode.c,v 1.9 2020/06/27 04:24:08 rin Exp $ */
+/* $NetBSD: fpu_explode.c,v 1.10 2022/08/28 22:22:41 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.9 2020/06/27 04:24:08 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.10 2022/08/28 22:22:41 rin Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -107,7 +107,7 @@
* 64-bit int -> fpn.
*/
int
-fpu_xtof(struct fpn *fp, u_int64_t i)
+fpu_xtof(struct fpn *fp, uint64_t i)
{
if (i == 0)
@@ -209,9 +209,9 @@
fpu_explode(struct fpemu *fe, struct fpn *fp, int type, int reg)
{
u_int s, *space;
- u_int64_t l, *xspace;
+ uint64_t l, *xspace;
- xspace = (u_int64_t *)&fe->fe_fpstate->fpreg[reg];
+ xspace = (uint64_t *)&fe->fe_fpstate->fpreg[reg];
l = xspace[0];
space = (u_int *)&fe->fe_fpstate->fpreg[reg];
s = space[0];
diff -r f142e8485859 -r 9b58f127b6d5 sys/arch/powerpc/fpu/fpu_extern.h
--- a/sys/arch/powerpc/fpu/fpu_extern.h Sun Aug 28 22:09:26 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_extern.h Sun Aug 28 22:22:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_extern.h,v 1.5 2012/07/23 04:13:06 matt Exp $ */
+/* $NetBSD: fpu_extern.h,v 1.6 2022/08/28 22:22:41 rin Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
/* fpu_explode.c */
int fpu_itof(struct fpn *, u_int);
-int fpu_xtof(struct fpn *, u_int64_t);
+int fpu_xtof(struct fpn *, uint64_t);
int fpu_stof(struct fpn *, u_int);
int fpu_dtof(struct fpn *, u_int, u_int);
void fpu_explode(struct fpemu *, struct fpn *, int, int);
diff -r f142e8485859 -r 9b58f127b6d5 sys/arch/powerpc/fpu/fpu_implode.c
--- a/sys/arch/powerpc/fpu/fpu_implode.c Sun Aug 28 22:09:26 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_implode.c Sun Aug 28 22:22:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_implode.c,v 1.7 2020/06/27 03:07:57 rin Exp $ */
+/* $NetBSD: fpu_implode.c,v 1.8 2022/08/28 22:22:41 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.7 2020/06/27 03:07:57 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.8 2022/08/28 22:22:41 rin Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -245,7 +245,7 @@
u_int
fpu_ftox(struct fpemu *fe, struct fpn *fp, u_int *res)
{
- u_int64_t i;
+ uint64_t i;
int sign, exp;
sign = fp->fp_sign;
@@ -271,8 +271,8 @@
/* NB: the following includes exp < 0 cases */
if (fpu_shr(fp, FP_NMANT - 1 - exp) != 0)
fe->fe_cx |= FPSCR_UX;
- i = ((u_int64_t)fp->fp_mant[2]<<32)|fp->fp_mant[3];
- if (i >= ((u_int64_t)0x8000000000000000LL + sign))
+ i = ((uint64_t)fp->fp_mant[2]<<32)|fp->fp_mant[3];
+ if (i >= ((uint64_t)0x8000000000000000LL + sign))
break;
return (sign ? -i : i);
Home |
Main Index |
Thread Index |
Old Index