163eb84dchristos/*
263eb84dchristos * CDDL HEADER START
363eb84dchristos *
463eb84dchristos * The contents of this file are subject to the terms of the
563eb84dchristos * Common Development and Distribution License (the "License").
663eb84dchristos * You may not use this file except in compliance with the License.
763eb84dchristos *
863eb84dchristos * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
963eb84dchristos * or http://www.opensolaris.org/os/licensing.
1063eb84dchristos * See the License for the specific language governing permissions
1163eb84dchristos * and limitations under the License.
1263eb84dchristos *
1363eb84dchristos * When distributing Covered Code, include this CDDL HEADER in each
1463eb84dchristos * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1563eb84dchristos * If applicable, add the following below this CDDL HEADER, with the
1663eb84dchristos * fields enclosed by brackets "[]" replaced with your own identifying
1763eb84dchristos * information: Portions Copyright [yyyy] [name of copyright owner]
1863eb84dchristos *
1963eb84dchristos * CDDL HEADER END
2063eb84dchristos */
2163eb84dchristos/*
2263eb84dchristos * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
2363eb84dchristos */
2463eb84dchristos/*
2563eb84dchristos * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2663eb84dchristos * Use is subject to license terms.
2763eb84dchristos */
2863eb84dchristos
2963eb84dchristos	.file	"logl.s"
3063eb84dchristos
3163eb84dchristos#include "libm.h"
3263eb84dchristosLIBM_ANSI_PRAGMA_WEAK(logl,function)
3363eb84dchristos
3463eb84dchristos	ENTRY(logl)
3563eb84dchristos	fldln2
3663eb84dchristos	fldt	8(%rsp)			/ st = arg, st(1) = loge(2)
3763eb84dchristos	fyl2x				/ st = ln(arg) = loge(2)*log2(arg)
3863eb84dchristos	ret
3963eb84dchristos	.align	16
4063eb84dchristos	SET_SIZE(logl)
4163eb84dchristos