From owner-freebsd-questions Fri Jan 14 11:19:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from speedbuggy.telerama.com (speedbuggy.telerama.com [205.201.1.216]) by hub.freebsd.org (Postfix) with SMTP id 855E81576E for ; Fri, 14 Jan 2000 11:16:05 -0800 (PST) (envelope-from evs@telerama.com) Received: (qmail 19422 invoked by uid 65534); 14 Jan 2000 19:15:55 -0000 Message-ID: <20000114191555.19421.qmail@speedbuggy.telerama.com> Date: 14 Jan 2000 14:15:55 -0500 From: evs@telerama.com To: keramida@ceid.upatras.gr, Giorgos Keramidas Reply-To: evs@telerama.com Cc: Mikhail Evstiounin , freebsd-questions@FreeBSD.ORG References: <010701bf5e3b$a6dac5e0$a9353018@evstiouninadelphia.net.pit.adelphia.net> <20000114194012.B31079@hades.hell.gr> In-Reply-To: <20000114194012.B31079@hades.hell.gr> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: IMP/PHP3 Imap webMail Program 2.0.9 X-Originating-IP: 141.202.248.55 Subject: Re: Volatile variables Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Quoting Giorgos Keramidas : > definition of sig_atomic_t is `int', as in: > > typedef int sig_atomic_t; it's exactly what I expected. Thanx. > > I did try to change `volatile int k' to `volatile sig_atomic_t k' and > the generated code did not have any difference from before. The same > sequence of `movl $0,k ; movl $1,k' statements was produced. > > Since in FreeBSD, the sizeof(int) returns 4, and the system runs on a > machine with 32-bits, the size of a word is apparently the largest > value that can be atomically set from the underlying hardware. Not sure, starting from 8087, and looking at PIII - you can operate with 64 bits integer. It's very easy to implement 64 bit integer arithmetics using either FPU only, or FPU/double word combination and adc/subc commands. Implicit conclusion - you do have underlying hardware to set 64 bit value. > > Ciao. > > -- > Giorgos Keramidas, < keramida @ ceid . upatras . gr > > "What we have to learn to do, we learn by doing." [Aristotle] > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Sincerely yours Mikhail Evstiounin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message