From 208b417fd51829221fffd59648ad89cfcae00c55 Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Thu, 25 Oct 2001 19:36:44 +0000 Subject: [PATCH] Aargh. I really shouldn't do late night commits. Remove a floating point multiply, and replace it with a close equivalent. 1.488 =~ 1.5 --- sys/dev/fxp/if_fxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 2d0837f6e439..fe1c891b4c13 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -2117,7 +2117,7 @@ fxp_load_ucode(struct fxp_softc *sc) memcpy(cbp->ucode, uc->ucode, uc->length); if (uc->int_delay_offset) *(u_short *)&cbp->ucode[uc->int_delay_offset] = - sc->tunable_int_delay * 1.4881; + sc->tunable_int_delay + sc->tunable_int_delay / 2; if (uc->bundle_max_offset) *(u_short *)&cbp->ucode[uc->bundle_max_offset] = sc->tunable_bundle_max;