1 .\" $OpenBSD: feenableexcept.3,v 1.3 2013/06/05 03:40:26 tedu Exp $
3 .\" Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: June 5 2013 $
24 .Nd control floating-point exception masks
28 .Fn feenableexcept "int excepts"
30 .Fn fedisableexcept "int excepts"
34 These functions provide control of the floating-point exception
38 input argument is a bitmask specifying an exception type and
39 containing any of the values listed in
44 function unmasks the floating-point exceptions represented by
46 The future floating-point operations that produce
50 will be delivered to the process.
54 function masks the floating-point exceptions represented by
56 All exceptions are masked by default.
60 function returns the current exception mask.
66 functions return the previous exception mask.
69 function returns the current exception mask.
85 These functions first appeared in