s_finite.S revision 22993
176195Sbrian/*
276195Sbrian * Copyright (c) 1993,94 Winning Strategies, Inc.
376195Sbrian * All rights reserved.
476195Sbrian *
576195Sbrian * Redistribution and use in source and binary forms, with or without
676195Sbrian * modification, are permitted provided that the following conditions
776195Sbrian * are met:
876195Sbrian * 1. Redistributions of source code must retain the above copyright
976195Sbrian *    notice, this list of conditions and the following disclaimer.
1076195Sbrian * 2. Redistributions in binary form must reproduce the above copyright
1176195Sbrian *    notice, this list of conditions and the following disclaimer in the
1276195Sbrian *    documentation and/or other materials provided with the distribution.
1376195Sbrian * 3. All advertising materials mentioning features or use of this software
1476195Sbrian *    must display the following acknowledgement:
1576195Sbrian *      This product includes software developed by Winning Strategies, Inc.
1676195Sbrian * 4. The name of the author may not be used to endorse or promote products
1776195Sbrian *    derived from this software without specific prior written permission
1876195Sbrian *
1976195Sbrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2076195Sbrian * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2176195Sbrian * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2276195Sbrian * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2376195Sbrian * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2476195Sbrian * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2576195Sbrian * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2676195Sbrian * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2776195Sbrian * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2876195Sbrian * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2976195Sbrian */
30145975Sanholt
3176195Sbrian/*
3276195Sbrian * Written by:
3376195Sbrian *	J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc.
3476195Sbrian */
3576195Sbrian
3676195Sbrian#include <machine/asmacros.h>
3776195Sbrian
3876195SbrianRCSID("$Id$")
3976195Sbrian
4076195SbrianENTRY(finite)
4176195Sbrian	movl	8(%esp),%eax
4276195Sbrian	andl	$0x7ff00000, %eax
4376195Sbrian	cmpl	$0x7ff00000, %eax
4476195Sbrian	setnel	%al
4576195Sbrian	andl	$0x000000ff, %eax
4676195Sbrian	ret
4776195Sbrian