Home | History | Annotate | Download | only in libm
      1 /*-
      2  * Copyright (c) 2003, Steven G. Kargl
      3  * All rights reserved.
      4  *
      5  * Redistribution and use in source and binary forms, with or without
      6  * modification, are permitted provided that the following conditions
      7  * are met:
      8  * 1. Redistributions of source code must retain the above copyright
      9  *    notice unmodified, this list of conditions, and the following
     10  *    disclaimer.
     11  * 2. Redistributions in binary form must reproduce the above copyright
     12  *    notice, this list of conditions and the following disclaimer in the
     13  *    documentation and/or other materials provided with the distribution.
     14  *
     15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     16  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     17  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     18  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     19  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     20  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     21  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     22  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     24  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     25  */
     26 
     27 /*-
     28  * Copyright (c) 2003 Mike Barcroft <mike (at) FreeBSD.org>
     29  * Copyright (c) 2002, 2003 David Schultz <das (at) FreeBSD.ORG>
     30  * Copyright (c) 2003 David Schultz <das (at) FreeBSD.ORG>
     31  * Copyright (c) 2004 David Schultz <das (at) FreeBSD.ORG>
     32  * Copyright (c) 2004-2005 David Schultz <das (at) FreeBSD.ORG>
     33  * Copyright (c) 2005 David Schultz <das (at) FreeBSD.ORG>
     34  * Copyright (c) 2002 David Schultz <das (at) FreeBSD.ORG>
     35  * All rights reserved.
     36  *
     37  * Redistribution and use in source and binary forms, with or without
     38  * modification, are permitted provided that the following conditions
     39  * are met:
     40  * 1. Redistributions of source code must retain the above copyright
     41  *    notice, this list of conditions and the following disclaimer.
     42  * 2. Redistributions in binary form must reproduce the above copyright
     43  *    notice, this list of conditions and the following disclaimer in the
     44  *    documentation and/or other materials provided with the distribution.
     45  *
     46  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
     47  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     48  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     49  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
     50  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     51  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     52  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     53  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     54  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     55  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     56  * SUCH DAMAGE.
     57  */
     58 
     59 /*-
     60  * Copyright (c) 2004 Stefan Farfeleder
     61  * All rights reserved.
     62  *
     63  * Redistribution and use in source and binary forms, with or without
     64  * modification, are permitted provided that the following conditions
     65  * are met:
     66  * 1. Redistributions of source code must retain the above copyright
     67  *    notice, this list of conditions and the following disclaimer.
     68  * 2. Redistributions in binary form must reproduce the above copyright
     69  *    notice, this list of conditions and the following disclaimer in the
     70  *    documentation and/or other materials provided with the distribution.
     71  *
     72  * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
     73  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     74  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     75  * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
     76  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     77  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     78  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     79  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     80  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     81  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     82  * SUCH DAMAGE.
     83  *
     84  */
     85 
     86 /*-
     87  * Copyright (c) 2003 Dag-Erling Codan Smrgrav
     88  * All rights reserved.
     89  *
     90  * Redistribution and use in source and binary forms, with or without
     91  * modification, are permitted provided that the following conditions
     92  * are met:
     93  * 1. Redistributions of source code must retain the above copyright
     94  *    notice, this list of conditions and the following disclaimer
     95  *    in this position and unchanged.
     96  * 2. Redistributions in binary form must reproduce the above copyright
     97  *    notice, this list of conditions and the following disclaimer in the
     98  *    documentation and/or other materials provided with the distribution.
     99  * 3. The name of the author may not be used to endorse or promote products
    100  *    derived from this software without specific prior written permission.
    101  *
    102  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    103  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    104  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    105  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    106  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    107  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    108  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    109  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    110  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    111  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    112  *
    113  */
    114 
    115 /*-
    116  * Copyright (c) 1996 The NetBSD Foundation, Inc.
    117  * All rights reserved.
    118  *
    119  * This code is derived from software contributed to The NetBSD Foundation
    120  * by J.T. Conklin.
    121  *
    122  * Redistribution and use in source and binary forms, with or without
    123  * modification, are permitted provided that the following conditions
    124  * are met:
    125  * 1. Redistributions of source code must retain the above copyright
    126  *    notice, this list of conditions and the following disclaimer.
    127  * 2. Redistributions in binary form must reproduce the above copyright
    128  *    notice, this list of conditions and the following disclaimer in the
    129  *    documentation and/or other materials provided with the distribution.
    130  * 3. All advertising materials mentioning features or use of this software
    131  *    must display the following acknowledgement:
    132  *        This product includes software developed by the NetBSD
    133  *        Foundation, Inc. and its contributors.
    134  * 4. Neither the name of The NetBSD Foundation nor the names of its
    135  *    contributors may be used to endorse or promote products derived
    136  *    from this software without specific prior written permission.
    137  *
    138  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    139  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    140  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    141  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    142  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    143  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    144  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    145  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    146  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    147  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    148  * POSSIBILITY OF SUCH DAMAGE.
    149  */
    150 
    151 /*-
    152  * Copyright (c) 1985, 1993
    153  * Copyright (c) 1988, 1993
    154  * Copyright (c) 1992, 1993
    155  *	The Regents of the University of California.  All rights reserved.
    156  *
    157  * Redistribution and use in source and binary forms, with or without
    158  * modification, are permitted provided that the following conditions
    159  * are met:
    160  * 1. Redistributions of source code must retain the above copyright
    161  *    notice, this list of conditions and the following disclaimer.
    162  * 2. Redistributions in binary form must reproduce the above copyright
    163  *    notice, this list of conditions and the following disclaimer in the
    164  *    documentation and/or other materials provided with the distribution.
    165  * 3. All advertising materials mentioning features or use of this software
    166  *    must display the following acknowledgement:
    167  *	This product includes software developed by the University of
    168  *	California, Berkeley and its contributors.
    169  * 4. Neither the name of the University nor the names of its contributors
    170  *    may be used to endorse or promote products derived from this software
    171  *    without specific prior written permission.
    172  *
    173  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    174  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    175  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    176  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    177  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    178  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    179  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    180  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    181  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    182  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    183  * SUCH DAMAGE.
    184  */
    185 
    186 /*
    187  * Copyright (c) 1993,94 Winning Strategies, Inc.
    188  * Copyright (c) 1994 Winning Strategies, Inc.
    189  * All rights reserved.
    190  *
    191  * Redistribution and use in source and binary forms, with or without
    192  * modification, are permitted provided that the following conditions
    193  * are met:
    194  * 1. Redistributions of source code must retain the above copyright
    195  *    notice, this list of conditions and the following disclaimer.
    196  * 2. Redistributions in binary form must reproduce the above copyright
    197  *    notice, this list of conditions and the following disclaimer in the
    198  *    documentation and/or other materials provided with the distribution.
    199  * 3. All advertising materials mentioning features or use of this software
    200  *    must display the following acknowledgement:
    201  *      This product includes software developed by Winning Strategies, Inc.
    202  * 4. The name of the author may not be used to endorse or promote products
    203  *    derived from this software without specific prior written permission.
    204  *
    205  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    206  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    207  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    208  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    209  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    210  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    211  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    212  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    213  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    214  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    215  */
    216 
    217 /*
    218  * ====================================================
    219  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
    220  *
    221  * Developed at SunSoft, a Sun Microsystems, Inc. business.
    222  * Permission to use, copy, modify, and distribute this
    223  * software is freely granted, provided that this notice
    224  * is preserved.
    225  * ====================================================
    226  */
    227 
    228 /*
    229  * ====================================================
    230  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
    231  *
    232  * Developed at SunPro, a Sun Microsystems, Inc. business.
    233  * Permission to use, copy, modify, and distribute this
    234  * software is freely granted, provided that this notice
    235  * is preserved.
    236  * ====================================================
    237  */
    238 
    239 /*
    240  * ====================================================
    241  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
    242  *
    243  * Developed at SunPro, a Sun Microsystems, Inc. business.
    244  * Permission to use, copy, modify, and distribute this
    245  * software is freely granted, provided that this notice
    246  * is preserved.
    247  * ====================================================
    248  *
    249  * Optimized by Bruce D. Evans.
    250  */
    251 
    252 /*
    253  * ====================================================
    254  * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
    255  *
    256  * Permission to use, copy, modify, and distribute this
    257  * software is freely granted, provided that this notice
    258  * is preserved.
    259  * ====================================================
    260  */
    261 
    262 /*
    263  * Based on code written by J.T. Conklin <jtc (at) netbsd.org>.
    264  * Public domain.
    265  */
    266 
    267 /*
    268  * Written by J.T. Conklin <jtc (at) netbsd.org>.
    269  * Public domain.
    270  */
    271 
    272 .\" Copyright (c) 2004 Stefan Farfeleder
    273 .\" Copyright (c) 2004 David Schultz <das (at) FreeBSD.org>
    274 .\" Copyright (c) 2004, 2005 David Schultz <das (at) FreeBSD.org>
    275 .\" Copyright (c) 2003 Mike Barcroft <mike (at) FreeBSD.org>
    276 .\" Copyright (c) 2005 David Schultz <das (at) FreeBSD.org>
    277 .\" All rights reserved.
    278 .\"
    279 .\" Redistribution and use in source and binary forms, with or without
    280 .\" modification, are permitted provided that the following conditions
    281 .\" are met:
    282 .\" 1. Redistributions of source code must retain the above copyright
    283 .\"    notice, this list of conditions and the following disclaimer.
    284 .\" 2. Redistributions in binary form must reproduce the above copyright
    285 .\"    notice, this list of conditions and the following disclaimer in the
    286 .\"    documentation and/or other materials provided with the distribution.
    287 .\"
    288 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    289 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    290 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    291 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    292 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    293 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    294 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    295 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    296 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    297 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    298 .\" SUCH DAMAGE.
    299 .\"
    300 
    301 .\" Copyright (c) 2003, Steven G. Kargl
    302 .\" All rights reserved.
    303 .\"
    304 .\" Redistribution and use in source and binary forms, with or without
    305 .\" modification, are permitted provided that the following conditions
    306 .\" are met:
    307 .\" 1. Redistributions of source code must retain the above copyright
    308 .\"    notice, this list of conditions and the following disclaimer.
    309 .\" 2. Redistributions in binary form must reproduce the above copyright
    310 .\"    notice, this list of conditions and the following disclaimer in the
    311 .\"    documentation and/or other materials provided with the distribution.
    312 .\"
    313 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    314 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    315 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    316 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    317 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    318 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    319 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    320 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    321 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    322 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    323 .\" SUCH DAMAGE.
    324 .\"
    325 
    326 .\" Copyright (c) 1991 The Regents of the University of California.
    327 .\" All rights reserved.
    328 .\"
    329 .\" Redistribution and use in source and binary forms, with or without
    330 .\" modification, are permitted provided that the following conditions
    331 .\" are met:
    332 .\" 1. Redistributions of source code must retain the above copyright
    333 .\"    notice, this list of conditions and the following disclaimer.
    334 .\" 2. Redistributions in binary form must reproduce the above copyright
    335 .\"    notice, this list of conditions and the following disclaimer in the
    336 .\"    documentation and/or other materials provided with the distribution.
    337 .\" 3. All advertising materials mentioning features or use of this software
    338 .\"    must display the following acknowledgement:
    339 .\"	This product includes software developed by the University of
    340 .\"	California, Berkeley and its contributors.
    341 .\" 4. Neither the name of the University nor the names of its contributors
    342 .\"    may be used to endorse or promote products derived from this software
    343 .\"    without specific prior written permission.
    344 .\"
    345 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    346 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    347 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    348 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    349 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    350 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    351 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    352 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    353 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    354 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    355 .\" SUCH DAMAGE.
    356 .\"
    357 
    358