TRUE -> true, FALSE -> false

This commit is contained in:
thorpej 2007-02-22 05:46:28 +00:00
parent 16ed6645b5
commit f5d6b882ad
31 changed files with 204 additions and 204 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.11 2007/02/21 23:48:11 thorpej Exp $ */
/* $NetBSD: db_interface.c,v 1.12 2007/02/22 05:46:28 thorpej Exp $ */
/* $OpenBSD: db_interface.c,v 1.16 2001/03/22 23:31:45 mickey Exp $ */
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.11 2007/02/21 23:48:11 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.12 2007/02/22 05:46:28 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -186,9 +186,9 @@ kdb_trap(int type, int code, db_regs_t *regs)
s = splhigh();
db_active++;
cnpollc(TRUE);
cnpollc(true);
db_trap(type, code);
cnpollc(FALSE);
cnpollc(false);
db_active--;
splx(s);
@ -213,9 +213,9 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
{
register_t *fp, pc, rp, nargs, *argp;
char **argnp, *argnames[HPPA_FRAME_NARGS];
bool kernel_only = TRUE;
bool trace_thread = FALSE;
bool lwpaddr = FALSE;
bool kernel_only = true;
bool trace_thread = false;
bool lwpaddr = false;
db_sym_t sym;
db_expr_t off;
const char *name;
@ -227,13 +227,13 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
while ((c = *cp++) != 0) {
if (c == 'a') {
lwpaddr = TRUE;
trace_thread = TRUE;
lwpaddr = true;
trace_thread = true;
}
if (c == 't')
trace_thread = TRUE;
trace_thread = true;
if (c == 'u')
kernel_only = FALSE;
kernel_only = false;
}
if (!have_addr) {
@ -308,7 +308,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
for (argp = &fp[-9]; nargs--; argp--) {
if (argnp)
pr("%s=", *argnp++);
pr("%lx%s", db_get_value((int)argp, 4, FALSE),
pr("%lx%s", db_get_value((int)argp, 4, false),
nargs? ",":"");
}
pr(") at ");

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.32 2007/02/21 22:59:43 thorpej Exp $ */
/* $NetBSD: pmap.c,v 1.33 2007/02/22 05:46:28 thorpej Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@ -171,7 +171,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.32 2007/02/21 22:59:43 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.33 2007/02/22 05:46:28 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -260,7 +260,7 @@ static u_int *page_aliased_bitmap;
struct pmap kernel_pmap_store;
pmap_t kernel_pmap;
bool pmap_initialized = FALSE;
bool pmap_initialized = false;
TAILQ_HEAD(, pmap) pmap_freelist; /* list of free pmaps */
u_int pmap_nfree;
@ -285,7 +285,7 @@ vsize_t hpt_mask;
* Reference Manual" (HP part number 09740-90039) defines equivalent
* and non-equivalent virtual addresses in the cache.
*
* This macro evaluates to TRUE iff the two space/virtual address
* This macro evaluates to true iff the two space/virtual address
* combinations are non-equivalent aliases, and therefore will find
* two different locations in the cache.
*
@ -511,7 +511,7 @@ pmap_pv_check_alias(paddr_t pa)
u_int *aliased_word, aliased_bit;
/* By default we find no aliasing. */
aliased = FALSE;
aliased = false;
/*
* We should never get called on I/O pages.
@ -539,7 +539,7 @@ pmap_pv_check_alias(paddr_t pa)
pv = pv->pv_next) {
if (NON_EQUIVALENT_ALIAS(space, va,
pv->pv_space, pv->pv_va)) {
aliased = TRUE;
aliased = true;
break;
}
}
@ -822,7 +822,7 @@ pmap_bootstrap(vaddr_t *vstart, vaddr_t *vend)
*/
kernel_pmap = &kernel_pmap_store;
#if NCPUS > 1
lock_init(&pmap_lock, FALSE, ETAP_VM_PMAP_SYS, ETAP_VM_PMAP_SYS_I);
lock_init(&pmap_lock, false, ETAP_VM_PMAP_SYS, ETAP_VM_PMAP_SYS_I);
#endif /* NCPUS > 1 */
simple_lock_init(&kernel_pmap->pmap_lock);
simple_lock_init(&pmap_freelock);
@ -1201,7 +1201,7 @@ pmap_init(void)
(paddr_t)&gateway_page,
TLB_GATE_PROT | TLB_UNMANAGED | TLB_WIRED);
pmap_initialized = TRUE;
pmap_initialized = true;
}
/*
@ -1396,7 +1396,7 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags)
*/
pv = pmap_pv_enter(pmap, space, va, pa, tlbprot);
pmap->pmap_stats.resident_count++;
waswired = FALSE;
waswired = false;
} else {
KASSERT((pv->pv_tlbprot & TLB_UNMANAGED) == 0);
waswired = pv->pv_tlbprot & TLB_WIRED;
@ -1633,8 +1633,8 @@ pmap_unwire(pmap_t pmap, vaddr_t va)
* pmap_extract(pmap, va, pap)
* fills in the physical address corrsponding to the
* virtual address specified by pmap and va into the
* storage pointed to by pap and returns TRUE if the
* virtual address is mapped. returns FALSE in not mapped.
* storage pointed to by pap and returns true if the
* virtual address is mapped. returns false in not mapped.
*/
bool
pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
@ -1775,7 +1775,7 @@ pmap_test_bit(paddr_t pa, u_int tlbprot_bit)
if ((pv->pv_tlbprot & (TLB_UNMANAGED | tlbprot_bit)) ==
tlbprot_bit) {
hpv->pv_head_writable_dirty_ref |= pv_head_bit;
ret = TRUE;
ret = true;
break;
}
}
@ -1802,7 +1802,7 @@ pmap_clear_modify(struct vm_page *pg)
/*
* pmap_is_modified(pa)
* returns TRUE if the given physical page has been modified
* returns true if the given physical page has been modified
* since the last call to pmap_clear_modify().
*/
bool
@ -1833,7 +1833,7 @@ pmap_clear_reference(struct vm_page *pg)
/*
* pmap_is_referenced(pa)
* returns TRUE if the given physical page has been referenced
* returns true if the given physical page has been referenced
* since the last call to pmap_clear_reference().
*/
bool

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.21 2007/02/09 21:55:04 ad Exp $ */
/* $NetBSD: vm_machdep.c,v 1.22 2007/02/22 05:46:28 thorpej Exp $ */
/* $OpenBSD: vm_machdep.c,v 1.25 2001/09/19 20:50:56 mickey Exp $ */
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.21 2007/02/09 21:55:04 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.22 2007/02/22 05:46:28 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -271,7 +271,7 @@ vmapbuf(struct buf *bp, vsize_t len)
bp->b_data = (caddr_t)(kva + off);
npf = btoc(size);
while (npf--) {
if (pmap_extract(upmap, uva, &pa) == FALSE)
if (pmap_extract(upmap, uva, &pa) == false)
panic("vmapbuf: null page frame");
pmap_enter(kpmap, kva, pa,
VM_PROT_READ | VM_PROT_WRITE, PMAP_WIRED);

View File

@ -1,4 +1,4 @@
/* $NetBSD: cnv_float.h,v 1.1 2002/06/05 01:04:24 fredette Exp $ */
/* $NetBSD: cnv_float.h,v 1.2 2007/02/22 05:46:28 thorpej Exp $ */
/* $OpenBSD: cnv_float.h,v 1.5 2001/03/29 03:58:17 mickey Exp $ */
@ -73,7 +73,7 @@
#define Sgl_isinexact_to_fix(sgl_value,exponent) \
((exponent < (SGL_P - 1)) ? \
(Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : FALSE)
(Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : false)
#define Int_isinexact_to_sgl(int_value) (int_value << (33 - SGL_EXP_LENGTH))
@ -103,7 +103,7 @@
#define Sgl_isone_stickybit(sgl_value,exponent) \
(exponent < (SGL_P - 2) ? \
Sall(sgl_value) << (SGL_EXP_LENGTH + 2 + exponent) : FALSE)
Sall(sgl_value) << (SGL_EXP_LENGTH + 2 + exponent) : false)
/*
@ -122,7 +122,7 @@
#define Dbl_to_sgl_denormalized(srcA,srcB,exp,dest,inexact,guard,sticky,odd,tiny) \
Deposit_dexponent(srcA,1); \
tiny = TRUE; \
tiny = true; \
if (exp >= -2) { \
if (exp == 0) { \
inexact = Dallp2(srcB) << 3; \
@ -136,7 +136,7 @@
if (Dbl_iszero_sign(srcA)) { \
dest++; \
if (Sgl_isone_hidden(dest)) \
tiny = FALSE; \
tiny = false; \
dest--; \
} \
break; \
@ -144,7 +144,7 @@
if (Dbl_isone_sign(srcA)) { \
dest++; \
if (Sgl_isone_hidden(dest)) \
tiny = FALSE; \
tiny = false; \
dest--; \
} \
break; \
@ -152,7 +152,7 @@
if (guard && (sticky || odd)) { \
dest++; \
if (Sgl_isone_hidden(dest)) \
tiny = FALSE; \
tiny = false; \
dest--; \
} \
break; \
@ -207,7 +207,7 @@
(exponent < (DBL_P-33) ? \
Dallp2(dbl_valueB) || Dallp1(dbl_valueA) << (DBL_EXP_LENGTH+1+exponent) : \
(exponent < (DBL_P-1) ? Dallp2(dbl_valueB) << (exponent + (33-DBL_P)) : \
FALSE))
false))
#define Dbl_isoverflow_to_int(exponent,dbl_valueA,dbl_valueB) \
((exponent > SGL_FX_MAX_EXP + 1) || Dsign(dbl_valueA)==0 || \
@ -222,7 +222,7 @@
(exponent < (DBL_P-34) ? \
(Dallp2(dbl_valueB) || Dallp1(dbl_valueA)<<(DBL_EXP_LENGTH+2+exponent)) : \
(exponent<(DBL_P-2) ? (Dallp2(dbl_valueB) << (exponent + (34-DBL_P))) : \
FALSE))
false))
/* Int macros */

View File

@ -1,4 +1,4 @@
/* $NetBSD: dfadd.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: dfadd.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: dfadd.c,v 1.4 2001/03/29 03:58:17 mickey Exp $ */
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dfadd.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dfadd.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/dbl_float.h"
@ -60,7 +60,7 @@ dbl_fadd(leftptr, rightptr, dstptr, status)
register int result_exponent, right_exponent, diff_exponent;
register int sign_save, jumpsize;
register int inexact = FALSE;
register int inexact = false;
register int underflowtrap;
/* Create local copies of the numbers */
@ -210,7 +210,7 @@ dbl_fadd(leftptr, rightptr, dstptr, status)
Dbl_set_sign(leftp1,/*using*/sign_save);
Dbl_setwrapped_exponent(leftp1,result_exponent,unfl);
Dbl_copytoptr(leftp1,leftp2,dstptr);
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
}
@ -262,7 +262,7 @@ dbl_fadd(leftptr, rightptr, dstptr, status)
Dbl_set_sign(resultp1,/*using*/sign_save);
Dbl_setwrapped_exponent(resultp1,result_exponent,unfl);
Dbl_copytoptr(resultp1,resultp2,dstptr);
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
Dbl_copytoptr(resultp1,resultp2,dstptr);
@ -426,7 +426,7 @@ dbl_fadd(leftptr, rightptr, dstptr, status)
Dbl_set_sign(resultp1,sign_save);
Dbl_setwrapped_exponent(resultp1,result_exponent,unfl);
Dbl_copytoptr(resultp1,resultp2,dstptr);
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
/*
@ -461,7 +461,7 @@ dbl_fadd(leftptr, rightptr, dstptr, status)
round:
if(Ext_isnotzero(extent))
{
inexact = TRUE;
inexact = true;
switch(Rounding_mode())
{
case ROUNDNEAREST: /* The default. */
@ -514,7 +514,7 @@ dbl_fadd(leftptr, rightptr, dstptr, status)
}
else
{
inexact = TRUE;
inexact = true;
Set_overflowflag();
Dbl_setoverflow(resultp1,resultp2);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dfdiv.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: dfdiv.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: dfdiv.c,v 1.4 2001/03/29 03:58:17 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dfdiv.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dfdiv.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/dbl_float.h"
@ -60,7 +60,7 @@ unsigned int *status;
register unsigned int opnd1p1, opnd1p2, opnd2p1, opnd2p2;
register unsigned int opnd3p1, opnd3p2, resultp1, resultp2;
register int dest_exponent, count;
register int inexact = FALSE, guardbit = FALSE, stickybit = FALSE;
register int inexact = false, guardbit = false, stickybit = false;
int is_tiny;
Dbl_copyfromptr(srcptr1,opnd1p1,opnd1p2);
@ -263,7 +263,7 @@ unsigned int *status;
}
dest_exponent--;
}
if (Dbl_iszero_sign(opnd1p1)) guardbit = TRUE;
if (Dbl_iszero_sign(opnd1p1)) guardbit = true;
stickybit = Dbl_allp1(opnd1p1) || Dbl_allp2(opnd1p2);
}
inexact = guardbit | stickybit;
@ -314,7 +314,7 @@ unsigned int *status;
Set_overflowflag();
/* set result to infinity or largest number */
Dbl_setoverflow(resultp1,resultp2);
inexact = TRUE;
inexact = true;
}
/*
* Test for underflow
@ -337,14 +337,14 @@ unsigned int *status;
}
/* Determine if should set underflow flag */
is_tiny = TRUE;
is_tiny = true;
if (dest_exponent == 0 && inexact) {
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Dbl_iszero_sign(resultp1)) {
Dbl_increment(opnd3p1,opnd3p2);
if (Dbl_isone_hiddenoverflow(opnd3p1))
is_tiny = FALSE;
is_tiny = false;
Dbl_decrement(opnd3p1,opnd3p2);
}
break;
@ -352,7 +352,7 @@ unsigned int *status;
if (Dbl_isone_sign(resultp1)) {
Dbl_increment(opnd3p1,opnd3p2);
if (Dbl_isone_hiddenoverflow(opnd3p1))
is_tiny = FALSE;
is_tiny = false;
Dbl_decrement(opnd3p1,opnd3p2);
}
break;
@ -361,7 +361,7 @@ unsigned int *status;
Dbl_isone_lowmantissap2(opnd3p2))) {
Dbl_increment(opnd3p1,opnd3p2);
if (Dbl_isone_hiddenoverflow(opnd3p1))
is_tiny = FALSE;
is_tiny = false;
Dbl_decrement(opnd3p1,opnd3p2);
}
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dfmpy.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: dfmpy.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: dfmpy.c,v 1.4 2001/03/29 03:58:17 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dfmpy.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dfmpy.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/dbl_float.h"
@ -60,7 +60,7 @@ unsigned int *status;
register unsigned int opnd1p1, opnd1p2, opnd2p1, opnd2p2;
register unsigned int opnd3p1, opnd3p2, resultp1, resultp2;
register int dest_exponent, count;
register int inexact = FALSE, guardbit = FALSE, stickybit = FALSE;
register int inexact = false, guardbit = false, stickybit = false;
int is_tiny;
Dbl_copyfromptr(srcptr1,opnd1p1,opnd1p2);
@ -303,7 +303,7 @@ unsigned int *status;
}
return (OVERFLOWEXCEPTION);
}
inexact = TRUE;
inexact = true;
Set_overflowflag();
/* set result to infinity or largest number */
Dbl_setoverflow(resultp1,resultp2);
@ -329,14 +329,14 @@ unsigned int *status;
}
/* Determine if should set underflow flag */
is_tiny = TRUE;
is_tiny = true;
if (dest_exponent == 0 && inexact) {
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Dbl_iszero_sign(resultp1)) {
Dbl_increment(opnd3p1,opnd3p2);
if (Dbl_isone_hiddenoverflow(opnd3p1))
is_tiny = FALSE;
is_tiny = false;
Dbl_decrement(opnd3p1,opnd3p2);
}
break;
@ -344,7 +344,7 @@ unsigned int *status;
if (Dbl_isone_sign(resultp1)) {
Dbl_increment(opnd3p1,opnd3p2);
if (Dbl_isone_hiddenoverflow(opnd3p1))
is_tiny = FALSE;
is_tiny = false;
Dbl_decrement(opnd3p1,opnd3p2);
}
break;
@ -353,7 +353,7 @@ unsigned int *status;
Dbl_isone_lowmantissap2(opnd3p2))) {
Dbl_increment(opnd3p1,opnd3p2);
if (Dbl_isone_hiddenoverflow(opnd3p1))
is_tiny = FALSE;
is_tiny = false;
Dbl_decrement(opnd3p1,opnd3p2);
}
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dfrem.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: dfrem.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: dfrem.c,v 1.4 2001/03/29 03:58:17 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dfrem.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dfrem.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/dbl_float.h"
@ -59,7 +59,7 @@ unsigned int *status;
register unsigned int opnd1p1, opnd1p2, opnd2p1, opnd2p2;
register unsigned int resultp1, resultp2;
register int opnd1_exponent, opnd2_exponent, dest_exponent, stepcount;
register int roundup = FALSE;
register int roundup = false;
Dbl_copyfromptr(srcptr1,opnd1p1,opnd1p2);
Dbl_copyfromptr(srcptr2,opnd2p1,opnd2p2);
@ -237,7 +237,7 @@ unsigned int *status;
*/
if (Dbl_isnotlessthan(opnd1p1,opnd1p2,opnd2p1,opnd2p2)) {
Dbl_subtract(opnd1p1,opnd1p2,opnd2p1,opnd2p2,opnd1p1,opnd1p2);
roundup = TRUE;
roundup = true;
}
if (stepcount > 0 || Dbl_iszero(opnd1p1,opnd1p2)) {
/* division is exact, remainder is zero */

View File

@ -1,4 +1,4 @@
/* $NetBSD: dfsqrt.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: dfsqrt.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: dfsqrt.c,v 1.5 2001/03/29 03:58:17 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dfsqrt.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dfsqrt.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/dbl_float.h"
@ -61,7 +61,7 @@ unsigned int *status;
register unsigned int srcp1, srcp2, resultp1, resultp2;
register unsigned int newbitp1, newbitp2, sump1, sump2;
register int src_exponent;
register int guardbit = FALSE, even_exponent;
register int guardbit = false, even_exponent;
Dbl_copyfromptr(srcptr,srcp1,srcp2);
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: dfsub.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: dfsub.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: dfsub.c,v 1.4 2001/03/29 03:58:17 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dfsub.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dfsub.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/dbl_float.h"
@ -61,7 +61,7 @@ dbl_fsub(leftptr, rightptr, dstptr, status)
register int result_exponent, right_exponent, diff_exponent;
register int sign_save, jumpsize;
register int inexact = FALSE, underflowtrap;
register int inexact = false, underflowtrap;
/* Create local copies of the numbers */
Dbl_copyfromptr(leftptr,leftp1,leftp2);
@ -213,7 +213,7 @@ dbl_fsub(leftptr, rightptr, dstptr, status)
Dbl_set_sign(leftp1,/*using*/sign_save);
Dbl_setwrapped_exponent(leftp1,result_exponent,unfl);
Dbl_copytoptr(leftp1,leftp2,dstptr);
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
}
@ -265,7 +265,7 @@ dbl_fsub(leftptr, rightptr, dstptr, status)
Dbl_set_sign(resultp1,/*using*/sign_save);
Dbl_setwrapped_exponent(resultp1,result_exponent,unfl);
Dbl_copytoptr(resultp1,resultp2,dstptr);
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
Dbl_copytoptr(resultp1,resultp2,dstptr);
@ -425,7 +425,7 @@ dbl_fsub(leftptr, rightptr, dstptr, status)
Dbl_set_sign(resultp1,sign_save);
Dbl_setwrapped_exponent(resultp1,result_exponent,unfl);
Dbl_copytoptr(resultp1,resultp2,dstptr);
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
/*
@ -460,7 +460,7 @@ dbl_fsub(leftptr, rightptr, dstptr, status)
round:
if(Ext_isnotzero(extent))
{
inexact = TRUE;
inexact = true;
switch(Rounding_mode())
{
case ROUNDNEAREST: /* The default. */
@ -513,7 +513,7 @@ dbl_fsub(leftptr, rightptr, dstptr, status)
}
else
{
inexact = TRUE;
inexact = true;
Set_overflowflag();
Dbl_setoverflow(resultp1,resultp2);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: divsfm.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: divsfm.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: divsfm.c,v 1.4 2001/03/29 03:58:17 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: divsfm.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: divsfm.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "md.h"
@ -56,7 +56,7 @@ struct mdsfu_register *result;
/* check divisor for zero */
if (opnd2 == 0) {
overflow = TRUE;
overflow = true;
return;
}
@ -66,9 +66,9 @@ struct mdsfu_register *result;
/* get absolute value of operands */
if (opnd1 < 0) {
opnd1 = -opnd1;
op1_sign = TRUE;
op1_sign = true;
}
else op1_sign = FALSE;
else op1_sign = false;
if (opnd2 < 0) opnd2 = -opnd2;
/*
@ -84,7 +84,7 @@ struct mdsfu_register *result;
result_lo = opnd1 << 1;
}
else {
overflow = TRUE;
overflow = true;
return;
}
}
@ -101,10 +101,10 @@ struct mdsfu_register *result;
/* check for overflow */
if (result_lo < 0) {
overflow = TRUE;
overflow = true;
return;
}
overflow = FALSE;
overflow = false;
/* return appropriately signed result */
if (sign<0) result_lo = -result_lo;

View File

@ -1,4 +1,4 @@
/* $NetBSD: divsfr.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: divsfr.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: divsfr.c,v 1.4 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: divsfr.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: divsfr.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "md.h"
@ -56,7 +56,7 @@ struct mdsfu_register *result;
/* check divisor for zero */
if (opnd2 == 0) {
overflow = TRUE;
overflow = true;
return;
}
@ -66,9 +66,9 @@ struct mdsfu_register *result;
/* get absolute value of operands */
if (opnd1 < 0) {
opnd1 = -opnd1;
op1_sign = TRUE;
op1_sign = true;
}
else op1_sign = FALSE;
else op1_sign = false;
if (opnd2 < 0) opnd2 = -opnd2;
/*
@ -84,7 +84,7 @@ struct mdsfu_register *result;
result_lo = opnd1 << 1;
}
else {
overflow = TRUE;
overflow = true;
return;
}
}
@ -95,10 +95,10 @@ struct mdsfu_register *result;
/* check for overflow */
if (result_lo < 0) {
overflow = TRUE;
overflow = true;
return;
}
overflow = FALSE;
overflow = false;
/* return appropriately signed remainder and result */
if (op1_sign) result_hi = -result_hi;

View File

@ -1,4 +1,4 @@
/* $NetBSD: divsim.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: divsim.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: divsim.c,v 1.4 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: divsim.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: divsim.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "md.h"
@ -56,7 +56,7 @@ struct mdsfu_register *result;
/* check divisor for zero */
if (opnd2 == 0) {
overflow = TRUE;
overflow = true;
return;
}
@ -66,9 +66,9 @@ struct mdsfu_register *result;
/* get absolute value of operands */
if (opnd1 < 0) {
opnd1 = -opnd1;
op1_sign = TRUE;
op1_sign = true;
}
else op1_sign = FALSE;
else op1_sign = false;
if (opnd2 < 0) opnd2 = -opnd2;
/* check for opnd2 == -2**31 */
@ -93,17 +93,17 @@ struct mdsfu_register *result;
* is with opnd1 = -2**31 and opnd2 = -1
*/
if (sign>0 && result_lo<0) {
overflow = TRUE;
overflow = true;
return;
}
}
overflow = FALSE;
overflow = false;
/* return positive residue */
if (op1_sign && result_hi) {
result_hi = opnd2 - result_hi;
if (++result_lo < 0) {
overflow = TRUE;
overflow = true;
return;
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: divsir.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: divsir.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: divsir.c,v 1.5 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: divsir.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: divsir.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "md.h"
@ -56,7 +56,7 @@ struct mdsfu_register *result;
/* check divisor for zero */
if (opnd2 == 0) {
overflow = TRUE;
overflow = true;
return;
}
@ -66,9 +66,9 @@ struct mdsfu_register *result;
/* get absolute value of operands */
if (opnd1 < 0) {
opnd1 = -opnd1;
op1_sign = TRUE;
op1_sign = true;
}
else op1_sign = FALSE;
else op1_sign = false;
if (opnd2 < 0) opnd2 = -opnd2;
/* check for opnd2 = -2**31 */
@ -93,11 +93,11 @@ struct mdsfu_register *result;
* is with opnd1 = -2**31 and opnd2 = -1
*/
if (sign>0 && result_lo<0) {
overflow = TRUE;
overflow = true;
return;
}
}
overflow = FALSE;
overflow = false;
/* return appropriately signed remainder and result */
if (op1_sign) result_hi = -result_hi;

View File

@ -1,4 +1,4 @@
/* $NetBSD: divufr.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: divufr.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $ */
/* $OpenBSD: divufr.c,v 1.5 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: divufr.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: divufr.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
#include "md.h"
@ -54,16 +54,16 @@ struct mdsfu_register *result;
{
/* check divisor for zero */
if (opnd2 == 0) {
overflow = TRUE;
overflow = true;
return;
}
/* check for overflow */
if (opnd1 >= opnd2) {
overflow = TRUE;
overflow = true;
return;
}
overflow = FALSE;
overflow = false;
/* do the divide */
divu(opnd1,0,opnd2,result);

View File

@ -1,4 +1,4 @@
/* $NetBSD: divuir.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: divuir.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: divuir.c,v 1.5 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: divuir.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: divuir.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "md.h"
@ -54,10 +54,10 @@ struct mdsfu_register *result;
{
/* get source operands, check divisor for zero */
if (opnd2 == 0) {
overflow = TRUE;
overflow = true;
return;
}
overflow = FALSE;
overflow = false;
/* do the divide */
divu(0,opnd1,opnd2,result);

View File

@ -1,4 +1,4 @@
/* $NetBSD: fcnvff.c,v 1.4 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: fcnvff.c,v 1.5 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: fcnvff.c,v 1.5 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fcnvff.c,v 1.4 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: fcnvff.c,v 1.5 2007/02/22 05:46:30 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -149,9 +149,9 @@ unsigned int *status;
{
register unsigned int srcp1, srcp2, result;
register int src_exponent, dest_exponent, dest_mantissa;
register int inexact = FALSE, guardbit = FALSE, stickybit = FALSE;
register int lsb_odd = FALSE;
int is_tiny = FALSE;
register int inexact = false, guardbit = false, stickybit = false;
register int lsb_odd = false;
int is_tiny = false;
Dbl_copyfromptr(srcptr,srcp1,srcp2);
src_exponent = Dbl_exponent(srcp1);
@ -270,7 +270,7 @@ unsigned int *status;
return(OVERFLOWEXCEPTION);
}
Set_overflowflag();
inexact = TRUE;
inexact = true;
/* set result to infinity or largest number */
Sgl_setoverflow(result);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: fcnvfx.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: fcnvfx.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: fcnvfx.c,v 1.5 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fcnvfx.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: fcnvfx.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -62,7 +62,7 @@ unsigned int *status;
{
register unsigned int src, temp;
register int src_exponent, result;
register int inexact = FALSE;
register int inexact = false;
src = *srcptr;
src_exponent = Sgl_exponent(src) - SGL_BIAS;
@ -94,7 +94,7 @@ unsigned int *status;
/* check for inexact */
if (Sgl_isinexact_to_fix(src,src_exponent)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -119,7 +119,7 @@ unsigned int *status;
/* check for inexact */
if (Sgl_isnotzero_exponentmantissa(src)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -158,7 +158,7 @@ unsigned int *status;
{
register int src_exponent, resultp1;
register unsigned int src, temp, resultp2;
register int inexact = FALSE;
register int inexact = false;
src = *srcptr;
src_exponent = Sgl_exponent(src) - SGL_BIAS;
@ -194,7 +194,7 @@ unsigned int *status;
/* check for inexact */
if (Sgl_isinexact_to_fix(src,src_exponent)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -226,7 +226,7 @@ unsigned int *status;
/* check for inexact */
if (Sgl_isnotzero_exponentmantissa(src)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -273,7 +273,7 @@ unsigned int *status;
{
register unsigned int srcp1,srcp2, tempp1,tempp2;
register int src_exponent, result;
register int inexact = FALSE;
register int inexact = false;
Dbl_copyfromptr(srcptr,srcp1,srcp2);
src_exponent = Dbl_exponent(srcp1) - DBL_BIAS;
@ -306,7 +306,7 @@ unsigned int *status;
/* check for inexact */
if (Dbl_isinexact_to_fix(srcp1,srcp2,src_exponent)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -335,7 +335,7 @@ unsigned int *status;
/* check for inexact */
if (Dbl_isnotzero_exponentmantissa(srcp1,srcp2)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -374,7 +374,7 @@ unsigned int *status;
{
register int src_exponent, resultp1;
register unsigned int srcp1, srcp2, tempp1, tempp2, resultp2;
register int inexact = FALSE;
register int inexact = false;
Dbl_copyfromptr(srcptr,srcp1,srcp2);
src_exponent = Dbl_exponent(srcp1) - DBL_BIAS;
@ -410,7 +410,7 @@ unsigned int *status;
/* check for inexact */
if (Dbl_isinexact_to_fix(srcp1,srcp2,src_exponent)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -442,7 +442,7 @@ unsigned int *status;
/* check for inexact */
if (Dbl_isnotzero_exponentmantissa(srcp1,srcp2)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:

View File

@ -1,4 +1,4 @@
/* $NetBSD: frnd.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: frnd.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: frnd.c,v 1.5 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: frnd.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: frnd.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -63,7 +63,7 @@ unsigned int *status;
{
register unsigned int src, result;
register int src_exponent;
register int inexact = FALSE;
register int inexact = false;
src = *srcptr;
/*
@ -102,7 +102,7 @@ unsigned int *status;
Sgl_rightshift(result,(SGL_P-1) - (src_exponent));
/* check for inexact */
if (Sgl_isinexact_to_fix(src,src_exponent)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -128,7 +128,7 @@ unsigned int *status;
Sgl_setzero_exponentmantissa(result);
/* check for inexact */
if (Sgl_isnotzero_exponentmantissa(src)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -167,7 +167,7 @@ unsigned int *status;
{
register unsigned int srcp1, srcp2, resultp1, resultp2;
register int src_exponent;
register int inexact = FALSE;
register int inexact = false;
Dbl_copyfromptr(srcptr,srcp1,srcp2);
/*
@ -207,7 +207,7 @@ unsigned int *status;
Dbl_rightshift(resultp1,resultp2,(DBL_P-1) - (src_exponent));
/* check for inexact */
if (Dbl_isinexact_to_fix(srcp1,srcp2,src_exponent)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
@ -235,7 +235,7 @@ unsigned int *status;
Dbl_setzero_exponentmantissa(resultp1,resultp2);
/* check for inexact */
if (Dbl_isnotzero_exponentmantissa(srcp1,srcp2)) {
inexact = TRUE;
inexact = true;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpyaccs.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: mpyaccs.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: mpyaccs.c,v 1.4 2001/03/29 03:58:18 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mpyaccs.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: mpyaccs.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "md.h"
@ -65,7 +65,7 @@ struct mdsfu_register *result;
/* get result of high word add, and determine overflow status */
sign = result_hi ^ temp.rslt_hi;
result_hi += temp.rslt_hi + carry;
if (sign >= 0 && (temp.rslt_hi ^ result_hi) < 0) overflow = TRUE;
if (sign >= 0 && (temp.rslt_hi ^ result_hi) < 0) overflow = true;
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpyaccu.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: mpyaccu.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: mpyaccu.c,v 1.5 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mpyaccu.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: mpyaccu.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "md.h"
@ -64,7 +64,7 @@ struct mdsfu_register *result;
/* get result of high word add, and determine overflow status */
if ((result_hi += (unsigned)temp.rslt_hi + carry) <
(unsigned)temp.rslt_hi) overflow = TRUE;
(unsigned)temp.rslt_hi) overflow = true;
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpys.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: mpys.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: mpys.c,v 1.5 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mpys.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: mpys.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "md.h"
@ -56,7 +56,7 @@ struct mdsfu_register *result;
/* determine overflow status */
if ((result_hi == 0 && result_lo >= 0) ||
(result_hi == -1 && result_lo < 0)) overflow = FALSE;
else overflow = TRUE;
(result_hi == -1 && result_lo < 0)) overflow = false;
else overflow = true;
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpyscv.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: mpyscv.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: mpyscv.c,v 1.5 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mpyscv.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: mpyscv.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "md.h"
@ -53,6 +53,6 @@ int opnd1, opnd2;
struct mdsfu_register *result;
{
impys(&opnd1,&opnd2,result);
overflow = FALSE;
overflow = false;
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpyu.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: mpyu.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: mpyu.c,v 1.4 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mpyu.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: mpyu.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "md.h"
@ -54,7 +54,7 @@ struct mdsfu_register *result;
{
impyu(&opnd1,&opnd2,result);
/* determine overflow status */
if (result_hi) overflow = TRUE;
else overflow = FALSE;
if (result_hi) overflow = true;
else overflow = false;
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpyucv.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: mpyucv.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: mpyucv.c,v 1.4 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mpyucv.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: mpyucv.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "md.h"
@ -53,6 +53,6 @@ unsigned int opnd1, opnd2;
struct mdsfu_register *result;
{
impyu(&opnd1,&opnd2,result);
overflow = FALSE;
overflow = false;
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: sfadd.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: sfadd.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: sfadd.c,v 1.4 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sfadd.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sfadd.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -61,7 +61,7 @@ sgl_fadd(leftptr, rightptr, dstptr, status)
register int result_exponent, right_exponent, diff_exponent;
register int sign_save, jumpsize;
register int inexact = FALSE;
register int inexact = false;
register int underflowtrap;
/* Create local copies of the numbers */
@ -421,7 +421,7 @@ sgl_fadd(leftptr, rightptr, dstptr, status)
Sgl_set_sign(result,sign_save);
Sgl_setwrapped_exponent(result,result_exponent,unfl);
*dstptr = result;
/* inexact = FALSE; */
/* inexact = false; */
return(UNDERFLOWEXCEPTION);
}
/*
@ -456,7 +456,7 @@ sgl_fadd(leftptr, rightptr, dstptr, status)
round:
if(Ext_isnotzero(extent))
{
inexact = TRUE;
inexact = true;
switch(Rounding_mode())
{
case ROUNDNEAREST: /* The default. */
@ -509,7 +509,7 @@ sgl_fadd(leftptr, rightptr, dstptr, status)
else
{
Set_overflowflag();
inexact = TRUE;
inexact = true;
Sgl_setoverflow(result);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: sfdiv.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: sfdiv.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: sfdiv.c,v 1.4 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sfdiv.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sfdiv.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -58,7 +58,7 @@ unsigned int *status;
{
register unsigned int opnd1, opnd2, opnd3, result;
register int dest_exponent, count;
register int inexact = FALSE, guardbit = FALSE, stickybit = FALSE;
register int inexact = false, guardbit = false, stickybit = false;
int is_tiny;
opnd1 = *srcptr1;
@ -256,7 +256,7 @@ unsigned int *status;
else Sgl_addition(opnd1,opnd2,opnd1);
dest_exponent--;
}
if (Sgl_iszero_sign(opnd1)) guardbit = TRUE;
if (Sgl_iszero_sign(opnd1)) guardbit = true;
stickybit = Sgl_all(opnd1);
}
inexact = guardbit | stickybit;
@ -305,7 +305,7 @@ unsigned int *status;
Set_overflowflag();
/* set result to infinity or largest number */
Sgl_setoverflow(result);
inexact = TRUE;
inexact = true;
}
/*
* Test for underflow
@ -327,14 +327,14 @@ unsigned int *status;
}
/* Determine if should set underflow flag */
is_tiny = TRUE;
is_tiny = true;
if (dest_exponent == 0 && inexact) {
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Sgl_iszero_sign(result)) {
Sgl_increment(opnd3);
if (Sgl_isone_hiddenoverflow(opnd3))
is_tiny = FALSE;
is_tiny = false;
Sgl_decrement(opnd3);
}
break;
@ -342,7 +342,7 @@ unsigned int *status;
if (Sgl_isone_sign(result)) {
Sgl_increment(opnd3);
if (Sgl_isone_hiddenoverflow(opnd3))
is_tiny = FALSE;
is_tiny = false;
Sgl_decrement(opnd3);
}
break;
@ -351,7 +351,7 @@ unsigned int *status;
Sgl_isone_lowmantissa(opnd3))) {
Sgl_increment(opnd3);
if (Sgl_isone_hiddenoverflow(opnd3))
is_tiny = FALSE;
is_tiny = false;
Sgl_decrement(opnd3);
}
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sfmpy.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: sfmpy.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: sfmpy.c,v 1.4 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sfmpy.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sfmpy.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -58,7 +58,7 @@ unsigned int *status;
{
register unsigned int opnd1, opnd2, opnd3, result;
register int dest_exponent, count;
register int inexact = FALSE, guardbit = FALSE, stickybit = FALSE;
register int inexact = false, guardbit = false, stickybit = false;
int is_tiny;
opnd1 = *srcptr1;
@ -287,7 +287,7 @@ unsigned int *status;
}
return(OVERFLOWEXCEPTION);
}
inexact = TRUE;
inexact = true;
Set_overflowflag();
/* set result to infinity or largest number */
Sgl_setoverflow(result);
@ -312,14 +312,14 @@ unsigned int *status;
}
/* Determine if should set underflow flag */
is_tiny = TRUE;
is_tiny = true;
if (dest_exponent == 0 && inexact) {
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Sgl_iszero_sign(result)) {
Sgl_increment(opnd3);
if (Sgl_isone_hiddenoverflow(opnd3))
is_tiny = FALSE;
is_tiny = false;
Sgl_decrement(opnd3);
}
break;
@ -327,7 +327,7 @@ unsigned int *status;
if (Sgl_isone_sign(result)) {
Sgl_increment(opnd3);
if (Sgl_isone_hiddenoverflow(opnd3))
is_tiny = FALSE;
is_tiny = false;
Sgl_decrement(opnd3);
}
break;
@ -336,7 +336,7 @@ unsigned int *status;
Sgl_isone_lowmantissa(opnd3))) {
Sgl_increment(opnd3);
if (Sgl_isone_hiddenoverflow(opnd3))
is_tiny = FALSE;
is_tiny = false;
Sgl_decrement(opnd3);
}
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sfrem.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: sfrem.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $ */
/* $OpenBSD: sfrem.c,v 1.4 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sfrem.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sfrem.c,v 1.4 2007/02/22 05:46:30 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -58,7 +58,7 @@ unsigned int *status;
{
register unsigned int opnd1, opnd2, result;
register int opnd1_exponent, opnd2_exponent, dest_exponent, stepcount;
register int roundup = FALSE;
register int roundup = false;
opnd1 = *srcptr1;
opnd2 = *srcptr2;
@ -232,7 +232,7 @@ unsigned int *status;
*/
if (Sgl_isnotlessthan(opnd1,opnd2)) {
Sgl_subtract(opnd1,opnd2,opnd1);
roundup = TRUE;
roundup = true;
}
if (stepcount > 0 || Sgl_iszero(opnd1)) {
/* division is exact, remainder is zero */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sfsqrt.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: sfsqrt.c,v 1.4 2007/02/22 05:46:31 thorpej Exp $ */
/* $OpenBSD: sfsqrt.c,v 1.5 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sfsqrt.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sfsqrt.c,v 1.4 2007/02/22 05:46:31 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -60,7 +60,7 @@ unsigned int *status;
{
register unsigned int src, result;
register int src_exponent, newbit, sum;
register int guardbit = FALSE, even_exponent;
register int guardbit = false, even_exponent;
src = *srcptr;
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: sfsub.c,v 1.3 2005/12/11 12:17:40 christos Exp $ */
/* $NetBSD: sfsub.c,v 1.4 2007/02/22 05:46:31 thorpej Exp $ */
/* $OpenBSD: sfsub.c,v 1.4 2001/03/29 03:58:19 mickey Exp $ */
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sfsub.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sfsub.c,v 1.4 2007/02/22 05:46:31 thorpej Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@ -60,7 +60,7 @@ sgl_fsub(leftptr, rightptr, dstptr, status)
register int result_exponent, right_exponent, diff_exponent;
register int sign_save, jumpsize;
register int inexact = FALSE, underflowtrap;
register int inexact = false, underflowtrap;
/* Create local copies of the numbers */
left = *leftptr;
@ -211,7 +211,7 @@ sgl_fsub(leftptr, rightptr, dstptr, status)
Sgl_set_sign(left,/*using*/sign_save);
Sgl_setwrapped_exponent(left,result_exponent,unfl);
*dstptr = left;
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
}
@ -261,7 +261,7 @@ sgl_fsub(leftptr, rightptr, dstptr, status)
Sgl_set_sign(result,/*using*/sign_save);
Sgl_setwrapped_exponent(result,result_exponent,unfl);
*dstptr = result;
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
*dstptr = result;
@ -424,7 +424,7 @@ sgl_fsub(leftptr, rightptr, dstptr, status)
Sgl_set_sign(result,sign_save);
Sgl_setwrapped_exponent(result,result_exponent,unfl);
*dstptr = result;
/* inexact = FALSE */
/* inexact = false */
return(UNDERFLOWEXCEPTION);
}
/*
@ -459,7 +459,7 @@ sgl_fsub(leftptr, rightptr, dstptr, status)
round:
if(Ext_isnotzero(extent))
{
inexact = TRUE;
inexact = true;
switch(Rounding_mode())
{
case ROUNDNEAREST: /* The default. */
@ -512,7 +512,7 @@ sgl_fsub(leftptr, rightptr, dstptr, status)
else
{
Set_overflowflag();
inexact = TRUE;
inexact = true;
Sgl_setoverflow(result);
}
}