Re: [PATCH 1/2] system_data_types.7: Add 'fexcept_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/22/20 10:32 PM, Alejandro Colomar wrote:
> Actually, POSIX already ripped (part of) the description from the C 
> standard:
> 
>  > Represents the floating-point status flags collectively,
>  > including any status the implementation associates with the flags.
> 
> This part is in the C standard (and POSIX also has it).

I think they probably have an agreement for this :-).

>  > A floating-point status flag is a system variable
>  > whose value is set (but never cleared)
>  > when a floating-point exception is raised,
>  > which occurs as a side-effect of
>  > exceptional floating-point arithmetic to provide auxiliary information.
>  > A floating-point control mode is a system variable whose
>  > value may be set by the user to affect
>  > the subsequent behavior of floating-point arithmetic.
> 
> And this is from POSIX only.
> 
> How would you go about it?

Just quote POSIX (no need to mention the C standard
when quoting, I think).

>  > Represents the floating-point status flags collectively,
>  > including any status the implementation associates with the flags.
> POSIX describes a
>  > [s/A//] floating-point status flag [s/is/as] a system variable
>  > whose value is set (but never cleared)
>  > when a floating-point exception is raised,
>  > which occurs as a side-effect of
>  > exceptional floating-point arithmetic to provide auxiliary information.
> According to POSIX,
>  > [s/A/a/] floating-point control mode is a system variable whose
>  > value may be set by the user to affect
>  > the subsequent behavior of floating-point arithmetic.

I think so. 

Thanks,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux