xref: /freebsd/lib/msun/amd64/s_logbl.S (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
16821aba9SDavid Schultz/*
26821aba9SDavid Schultz * Copyright (c) 1993,94 Winning Strategies, Inc.
36821aba9SDavid Schultz * All rights reserved.
46821aba9SDavid Schultz *
56821aba9SDavid Schultz * Redistribution and use in source and binary forms, with or without
66821aba9SDavid Schultz * modification, are permitted provided that the following conditions
76821aba9SDavid Schultz * are met:
86821aba9SDavid Schultz * 1. Redistributions of source code must retain the above copyright
96821aba9SDavid Schultz *    notice, this list of conditions and the following disclaimer.
106821aba9SDavid Schultz * 2. Redistributions in binary form must reproduce the above copyright
116821aba9SDavid Schultz *    notice, this list of conditions and the following disclaimer in the
126821aba9SDavid Schultz *    documentation and/or other materials provided with the distribution.
136821aba9SDavid Schultz * 3. All advertising materials mentioning features or use of this software
146821aba9SDavid Schultz *    must display the following acknowledgement:
156821aba9SDavid Schultz *      This product includes software developed by Winning Strategies, Inc.
166821aba9SDavid Schultz * 4. The name of the author may not be used to endorse or promote products
176821aba9SDavid Schultz *    derived from this software without specific prior written permission
186821aba9SDavid Schultz *
196821aba9SDavid Schultz * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
206821aba9SDavid Schultz * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
216821aba9SDavid Schultz * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
226821aba9SDavid Schultz * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
236821aba9SDavid Schultz * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
246821aba9SDavid Schultz * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
256821aba9SDavid Schultz * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
266821aba9SDavid Schultz * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
276821aba9SDavid Schultz * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
286821aba9SDavid Schultz * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
296821aba9SDavid Schultz */
306821aba9SDavid Schultz
316821aba9SDavid Schultz/*
326821aba9SDavid Schultz * Written by:
336821aba9SDavid Schultz *	J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc.
346821aba9SDavid Schultz */
356821aba9SDavid Schultz
366821aba9SDavid Schultz#include <machine/asm.h>
376821aba9SDavid SchultzENTRY(logbl)
38a18b106fSBruce Evans	fldt	8(%rsp)
396821aba9SDavid Schultz	fxtract
406821aba9SDavid Schultz	fstp	%st
416821aba9SDavid Schultz	ret
42*168f19a5SConrad MeyerEND(logbl)
438997563cSKonstantin Belousov
448997563cSKonstantin Belousov	.section .note.GNU-stack,"",%progbits
45