site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 17 Mar 2005, at 22:25, Aaron Jackson wrote: On Mar 17, 2005, at 4:55 PM, Matt Watson wrote: [...] _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This is not a bug. Per the ISO/IEC 9899:1999 C Standard (ยง6.5.5): 5 The result of the / operator is the quotient from the division of the first operand by the second; the result of the % operator is the remainder. In both operations, if the value of the second operand is zero, the behavior is undefined. Division by zero results in undefined behavior and the compiler is free to do whatever it likes, including crashing the program, or setting the result to zero and continuing. Unfortunately, the fpsetmask function doesn't seem to exist on my mac, or at least ieeefp.h doesn't. Is there an equivalent function I can use on my mac? Thanks. Does /usr/include/architecture/`arch`/fenv.h do the same? I haven't programmed for FreeBSD. -- Graham Lee GPG Key ID: 01D5B9D8 UNIX Systems Manager, Oxford Physics Practical Course Coordinator, UKUUG Apple SIG (apple-sig-request@lists.ukuug.org) Technical bod, Oxford Mac Users' Group (http://www.oxmug.org) This email sent to site_archiver@lists.apple.com
participants (1)
-
Graham J Lee