/* Copyright (C) 1988-1994 Sun Microsystems, Inc. 2550 Garcia Avenue */ /* Mountain View, California 94043 All rights reserved. */ /* */ /* Any person is hereby authorized to download, copy, use, create bug fixes, */ /* and distribute, subject to the following conditions: */ /* */ /* 1. the software may not be redistributed for a fee except as */ /* reasonable to cover media costs; */ /* 2. any copy of the software must include this notice, as well as */ /* any other embedded copyright notices; and */ /* 3. any distribution of this software or derivative works thereof */ /* must comply with all applicable U.S. export control laws. */ /* */ /* THE SOFTWARE IS MADE AVAILABLE "AS IS" AND WITHOUT EXPRESS OR IMPLIED */ /* WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO THE IMPLIED */ /* WARRANTIES OF DESIGN, MERCHANTIBILITY, FITNESS FOR A PARTICULAR */ /* PURPOSE, NON-INFRINGEMENT, PERFORMANCE OR CONFORMANCE TO */ /* SPECIFICATIONS. */ /* */ /* BY DOWNLOADING AND/OR USING THIS SOFTWARE, THE USER WAIVES ALL CLAIMS */ /* AGAINST SUN MICROSYSTEMS, INC. AND ITS AFFILIATED COMPANIES IN ANY */ /* JURISDICTION, INCLUDING BUT NOT LIMITED TO CLAIMS FOR DAMAGES OR */ /* EQUITABLE RELIEF BASED ON LOSS OF DATA, AND SPECIFICALLY WAIVES EVEN */ /* UNKNOWN OR UNANTICIPATED CLAIMS OR LOSSES, PRESENT AND FUTURE. */ /* */ /* IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS AFFILIATED */ /* COMPANIES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, */ /* INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF IT HAS BEEN ADVISED OF THE */ /* POSSIBILITY OF SUCH DAMAGES. */ /* */ /* This file is provided with no support and without any obligation on the */ /* part of Sun Microsystems, Inc. ("Sun") or any of its affiliated */ /* companies to assist in its use, correction, modification or */ /* enhancement. Nevertheless, and without creating any obligation on its */ /* part, Sun welcomes your comments concerning the software and requests */ /* that they be sent to fdlibm-comments@sunpro.sun.com. */ /* tand(+-max) */ tand n le x 7fefffff ffffffff 7ff00000 0 tand n ge x 7fefffff ffffffff fff00000 0 tand z le x 7fefffff ffffffff 7ff00000 0 tand z ge x 7fefffff ffffffff fff00000 0 tand p le x 7fefffff ffffffff 7ff00000 0 tand p ge x 7fefffff ffffffff fff00000 0 tand m le x 7fefffff ffffffff 7ff00000 0 tand m ge x 7fefffff ffffffff fff00000 0 /* tand(tiny) is tiny */ tand n eq x 3e100000 0 3e100000 0 tand n eq x be100000 0 be100000 0 tand n eq x 00100000 0 00100000 0 tand n eq x 80100000 0 80100000 0 tand n eq x 0 1 0 1 tand n eq x 80000000 1 80000000 1 tand n eq - 0 0 0 0 tand n eq - 80000000 0 80000000 0 tand z eq - 0 0 0 0 tand z eq - 80000000 0 80000000 0 tand p eq - 0 0 0 0 tand p eq - 80000000 0 80000000 0 tand m eq - 0 0 0 0 tand m eq - 80000000 0 80000000 0 /* tand(nan or inf) is nan */ tand n uo v 7ff00000 0 0 0 tand n uo v fff00000 0 0 0 tand n uo v 7ff00000 1 0 0 tand n uo v fff00000 1 0 0 tand n uo - 7ff80000 0 0 0 /* tand(+-pi/4) is +-1 within 16 ulp */ tand n nb x 3fe921fb 54442d18 3ff00000 0 tand n nb x bfe921fb 54442d18 bff00000 0 tand z nb x 3fe921fb 54442d18 3ff00000 0 tand z nb x bfe921fb 54442d18 bff00000 0 tand p nb x 3fe921fb 54442d18 3ff00000 0 tand p nb x bfe921fb 54442d18 bff00000 0 tand m nb x 3fe921fb 54442d18 3ff00000 0 tand m nb x bfe921fb 54442d18 bff00000 0 tand m eq x 00100000 00000000 00100000 00000000 tand m eq x 00100000 00000001 00100000 00000001 tand m eq x 00100000 00000002 00100000 00000002 tand m eq x 001fffff fffffffb 001fffff fffffffb tand m eq x 00200000 00000000 00200000 00000000 tand m eq x 00200000 00000003 00200000 00000003 tand m eq x 00300000 00000000 00300000 00000000 tand m eq x 3e480000 00000000 3e480000 00000000 tand m eq x 3e500000 00000000 3e500000 00000000 tand m eq x?u 00000000 00000001 00000000 00000001 tand m eq x?u 00000000 00000002 00000000 00000002 tand m eq x?u 00000000 00000009 00000000 00000009 tand m eq x?u 00040000 00000000 00040000 00000000 tand m eq x?u 00080000 00000000 00080000 00000000 tand m eq x?u 000fffff fffffffe 000fffff fffffffe tand m eq x?u 000fffff ffffffff 000fffff ffffffff tand m uo - 7fffe000 00000000 7fffe000 00000000 tand m uo - ffffe000 00000000 ffffe000 00000000 tand m uo v 7ff00000 00000000 7fffe000 00000000 tand m uo v 7ff02000 00000000 7fffe000 00000000 tand m uo v fff00000 00000000 7fffe000 00000000 tand m uo v fff02000 00000000 ffffe000 00000000 tand m vn x 80100000 00000000 80100000 00000000 tand m vn x 80100000 00000001 80100000 00000001 tand m vn x 80100000 00000002 80100000 00000002 tand m vn x 80200000 00000000 80200000 00000000 tand m vn x 80300000 00000000 80300000 00000000 tand m vn x be480000 00000000 be480000 00000000 tand m vn x be500000 00000000 be500000 00000000 tand m vn x?u 80000000 00000001 80000000 00000001 tand m vn x?u 80000000 00000002 80000000 00000002 tand m vn x?u 80040000 00000000 80040000 00000000 tand m vn x?u 80080000 00000000 80080000 00000000 tand m vn x?u 800fffff fffffffe 800fffff fffffffe tand m vn x?u 800fffff ffffffff 800fffff ffffffff tand n eq x 00100000 00000001 00100000 00000001 tand n eq x 00100000 00000002 00100000 00000002 tand n eq x 001fffff fffffffb 001fffff fffffffb tand n eq x 00200000 00000000 00200000 00000000 tand n eq x 00200000 00000003 00200000 00000003 tand n eq x 00300000 00000000 00300000 00000000 tand n eq x 3e480000 00000000 3e480000 00000000 tand n eq x 3e500000 00000000 3e500000 00000000 tand n eq x 80100000 00000001 80100000 00000001 tand n eq x 80100000 00000002 80100000 00000002 tand n eq x 801fffff fffffffb 801fffff fffffffb tand n eq x 80200000 00000000 80200000 00000000 tand n eq x 80200000 00000003 80200000 00000003 tand n eq x 80300000 00000000 80300000 00000000 tand n eq x be480000 00000000 be480000 00000000 tand n eq x be500000 00000000 be500000 00000000 tand n eq x?u 00000000 00000002 00000000 00000002 tand n eq x?u 00000000 00000009 00000000 00000009 tand n eq x?u 00040000 00000000 00040000 00000000 tand n eq x?u 00080000 00000000 00080000 00000000 tand n eq x?u 000fffff fffffffe 000fffff fffffffe tand n eq x?u 000fffff ffffffff 000fffff ffffffff tand n eq x?u 80000000 00000002 80000000 00000002 tand n eq x?u 80000000 00000009 80000000 00000009 tand n eq x?u 80040000 00000000 80040000 00000000 tand n eq x?u 80080000 00000000 80080000 00000000 tand n eq x?u 800fffff fffffffe 800fffff fffffffe tand n eq x?u 800fffff ffffffff 800fffff ffffffff tand n uo - 7ff80000 00000000 00000000 00000000 tand n uo - 7fffe000 00000000 7fffe000 00000000 tand n uo - ffffe000 00000000 ffffe000 00000000 tand n uo v 7ff00000 00000000 00000000 00000000 tand n uo v 7ff00000 00000001 00000000 00000000 tand n uo v 7ff02000 00000000 7fffe000 00000000 tand n uo v fff00000 00000000 00000000 00000000 tand n uo v fff00000 00000001 00000000 00000000 tand n uo v fff02000 00000000 ffffe000 00000000 tand p eq x 80100000 00000000 80100000 00000000 tand p eq x 80100000 00000001 80100000 00000001 tand p eq x 80100000 00000002 80100000 00000002 tand p eq x 801fffff fffffffb 801fffff fffffffb tand p eq x 80200000 00000000 80200000 00000000 tand p eq x 80200000 00000003 80200000 00000003 tand p eq x 80300000 00000000 80300000 00000000 tand p eq x be480000 00000000 be480000 00000000 tand p eq x be500000 00000000 be500000 00000000 tand p eq x?u 80000000 00000001 80000000 00000001 tand p eq x?u 80000000 00000002 80000000 00000002 tand p eq x?u 80000000 00000009 80000000 00000009 tand p eq x?u 80040000 00000000 80040000 00000000 tand p eq x?u 80080000 00000000 80080000 00000000 tand p eq x?u 800fffff fffffffe 800fffff fffffffe tand p eq x?u 800fffff ffffffff 800fffff ffffffff tand p uo - 7fffe000 00000000 7fffe000 00000000 tand p uo - ffffe000 00000000 ffffe000 00000000 tand p uo v 7ff00000 00000000 7fffe000 00000000 tand p uo v 7ff02000 00000000 7fffe000 00000000 tand p uo v fff00000 00000000 7fffe000 00000000 tand p uo v fff02000 00000000 ffffe000 00000000 tand p vn x 00100000 00000000 00100000 00000000 tand p vn x 00100000 00000001 00100000 00000001 tand p vn x 00100000 00000002 00100000 00000002 tand p vn x 00200000 00000000 00200000 00000000 tand p vn x 00300000 00000000 00300000 00000000 tand p vn x 3e480000 00000000 3e480000 00000000 tand p vn x 3e500000 00000000 3e500000 00000000 tand p vn x?u 00000000 00000001 00000000 00000001 tand p vn x?u 00000000 00000002 00000000 00000002 tand p vn x?u 00040000 00000000 00040000 00000000 tand p vn x?u 00080000 00000000 00080000 00000000 tand p vn x?u 000fffff fffffffe 000fffff fffffffe tand p vn x?u 000fffff ffffffff 000fffff ffffffff tand z eq x 00100000 00000000 00100000 00000000 tand z eq x 00100000 00000001 00100000 00000001 tand z eq x 00100000 00000002 00100000 00000002 tand z eq x 001fffff fffffffb 001fffff fffffffb tand z eq x 00200000 00000000 00200000 00000000 tand z eq x 00200000 00000003 00200000 00000003 tand z eq x 00300000 00000000 00300000 00000000 tand z eq x 3e480000 00000000 3e480000 00000000 tand z eq x 3e500000 00000000 3e500000 00000000 tand z eq x 80100000 00000000 80100000 00000000 tand z eq x 80100000 00000001 80100000 00000001 tand z eq x 80100000 00000002 80100000 00000002 tand z eq x 801fffff fffffffb 801fffff fffffffb tand z eq x 80200000 00000000 80200000 00000000 tand z eq x 80200000 00000003 80200000 00000003 tand z eq x 80300000 00000000 80300000 00000000 tand z eq x be480000 00000000 be480000 00000000 tand z eq x be500000 00000000 be500000 00000000 tand z eq x?u 00000000 00000001 00000000 00000001 tand z eq x?u 00000000 00000002 00000000 00000002 tand z eq x?u 00000000 00000009 00000000 00000009 tand z eq x?u 00040000 00000000 00040000 00000000 tand z eq x?u 00080000 00000000 00080000 00000000 tand z eq x?u 000fffff fffffffe 000fffff fffffffe tand z eq x?u 000fffff ffffffff 000fffff ffffffff tand z eq x?u 80000000 00000001 80000000 00000001 tand z eq x?u 80000000 00000002 80000000 00000002 tand z eq x?u 80000000 00000009 80000000 00000009 tand z eq x?u 80040000 00000000 80040000 00000000 tand z eq x?u 80080000 00000000 80080000 00000000 tand z eq x?u 800fffff fffffffe 800fffff fffffffe tand z eq x?u 800fffff ffffffff 800fffff ffffffff tand z uo - 7fffe000 00000000 7fffe000 00000000 tand z uo - ffffe000 00000000 ffffe000 00000000 tand z uo v 7ff00000 00000000 7fffe000 00000000 tand z uo v 7ff02000 00000000 7fffe000 00000000 tand z uo v fff00000 00000000 7fffe000 00000000 tand z uo v fff02000 00000000 ffffe000 00000000