Supress a few lint warnings. s/u_int64_t/uint64_t/

This commit is contained in:
matt 2004-04-04 19:27:19 +00:00
parent acdea83164
commit fb0f2fdab6
3 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetmask.c,v 1.4 2004/04/02 22:55:19 matt Exp $ */
/* $NetBSD: fpgetmask.c,v 1.5 2004/04/04 19:27:19 matt Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -50,11 +50,12 @@ __weak_alias(fpgetmask,_fpgetmask)
#define MASKBITS (FPSCR_VE|FPSCR_OE|FPSCR_UE|FPSCR_ZE|FPSCR_XE)
#define MASKSHFT 3
fp_except
fpgetmask(void)
{
u_int64_t fpscr;
uint64_t fpscr;
__asm__ __volatile("mffs %0" : "=f"(fpscr));
return (((fp_except)fpscr & MASKBITS) >> MASKSHFT);
return (((uint32_t)fpscr & MASKBITS) >> MASKSHFT);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetround.c,v 1.4 2004/04/02 22:55:19 matt Exp $ */
/* $NetBSD: fpgetround.c,v 1.5 2004/04/04 19:27:19 matt Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -52,10 +52,10 @@ __weak_alias(fpgetround,_fpgetround)
#define ROUNDSHFT 0
fp_rnd
fpgetround()
fpgetround(void)
{
u_int64_t fpscr;
uint64_t fpscr;
__asm__ __volatile("mffs %0" : "=f"(fpscr));
return (((fp_rnd)fpscr & ROUNDBITS) >> ROUNDSHFT);
return (((uint32_t)fpscr & ROUNDBITS) >> ROUNDSHFT);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetsticky.c,v 1.4 2004/04/02 22:55:19 matt Exp $ */
/* $NetBSD: fpgetsticky.c,v 1.5 2004/04/04 19:27:19 matt Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -54,8 +54,8 @@ __weak_alias(fpgetsticky,_fpgetsticky)
fp_except
fpgetsticky(void)
{
u_int64_t fpscr;
uint64_t fpscr;
__asm__ __volatile("mffs %0" : "=f"(fpscr));
return (((fp_except)fpscr & STICKYBITS) >> STICKYSHFT);
return (((uint32_t)fpscr & STICKYBITS) >> STICKYSHFT);
}