Date: Thu, 20 Jul 95 16:19:02 MDT From: terry@cs.weber.edu (Terry Lambert) To: bde@zeta.org.au (Bruce Evans) Cc: dillon@blob.best.net, bugs@freebsd.org, davidg@Root.COM, mckusick@McKusick.COM Subject: Re: possible ffs_vget() race condition Message-ID: <9507202219.AA03618@cs.weber.edu> In-Reply-To: <199507201832.EAA04386@godzilla.zeta.org.au> from "Bruce Evans" at Jul 21, 95 04:32:13 am
next in thread | previous in thread | raw e-mail | index | archive | help
> The shift method has the advantage of giving the correct result :-). > You meant ((~(u_quad_t)0) >> 1). This depends on u_quad_t being > larger than int. I don't understand why this would depend on quad being larger than int; because the naked 1 is of type int? Then quad would need to be >= int, not necessarily larger. I think we can guarantee quad >= long >= int. 8-). Better than depending on quad == 64 bits in any case. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9507202219.AA03618>