1840b91ccSNathan Whitehorn/* 2840b91ccSNathan Whitehorn * Copyright (c) 2004 Peter Grehan. 3840b91ccSNathan Whitehorn * All rights reserved. 4840b91ccSNathan Whitehorn * 5840b91ccSNathan Whitehorn * Redistribution and use in source and binary forms, with or without 6840b91ccSNathan Whitehorn * modification, are permitted provided that the following conditions 7840b91ccSNathan Whitehorn * are met: 8840b91ccSNathan Whitehorn * 1. Redistributions of source code must retain the above copyright 9840b91ccSNathan Whitehorn * notice, this list of conditions and the following disclaimer. 10840b91ccSNathan Whitehorn * 2. Redistributions in binary form must reproduce the above copyright 11840b91ccSNathan Whitehorn * notice, this list of conditions and the following disclaimer in the 12840b91ccSNathan Whitehorn * documentation and/or other materials provided with the distribution. 13840b91ccSNathan Whitehorn * 14840b91ccSNathan Whitehorn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15840b91ccSNathan Whitehorn * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16840b91ccSNathan Whitehorn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17840b91ccSNathan Whitehorn * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18840b91ccSNathan Whitehorn * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19840b91ccSNathan Whitehorn * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20840b91ccSNathan Whitehorn * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21840b91ccSNathan Whitehorn * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22840b91ccSNathan Whitehorn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23840b91ccSNathan Whitehorn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24840b91ccSNathan Whitehorn * SUCH DAMAGE. 25840b91ccSNathan Whitehorn */ 26840b91ccSNathan Whitehorn 27840b91ccSNathan Whitehorn#include <machine/asm.h> 28840b91ccSNathan Whitehorn/* 29840b91ccSNathan Whitehorn * double fabs(double) 30840b91ccSNathan Whitehorn */ 31840b91ccSNathan WhitehornENTRY(fabs) 32840b91ccSNathan Whitehorn fabs %f1,%f1 33840b91ccSNathan Whitehorn blr 34*ad9bbe98SBaptiste DaroussinEND(fabs) 358f861da9SKonstantin Belousov 368f861da9SKonstantin Belousov .section .note.GNU-stack,"",%progbits 37