1139749Simp/* 218781Sgibbs * Copyright (c) 2011 Jonathan A. Kollasch 318781Sgibbs * All rights reserved. 418781Sgibbs * 518781Sgibbs * Redistribution and use in source and binary forms, with or without 618781Sgibbs * modification, are permitted provided that the following conditions 739217Sgibbs * are met: 855945Sgibbs * 1. Redistributions of source code must retain the above copyright 918781Sgibbs * notice, this list of conditions and the following disclaimer. 1039217Sgibbs * 2. Redistributions in binary form must reproduce the above copyright 1118781Sgibbs * notice, this list of conditions and the following disclaimer in the 1218781Sgibbs * documentation and/or other materials provided with the distribution. 1318781Sgibbs * 1418781Sgibbs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1518781Sgibbs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1618781Sgibbs * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17119418Sobrien * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 18119418Sobrien * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 19119418Sobrien * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 2018781Sgibbs * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 2118781Sgibbs * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 2218781Sgibbs * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 2318781Sgibbs * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 2455945Sgibbs * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2555945Sgibbs */ 2655945Sgibbs 2755945Sgibbs#include <sys/cdefs.h> 2855945Sgibbs#if defined(LIBM_SCCS) && !defined(lint) 2955945Sgibbs__RCSID("$NetBSD$"); 3055945Sgibbs#endif 3155945Sgibbs 3255945Sgibbs#include <math.h> 3355945Sgibbs 3455945Sgibbsfloat 3555945Sgibbsfmaxf(float x, float y) 3655945Sgibbs{ 3755945Sgibbs return x > y ? x : y; 3855945Sgibbs} 3955945Sgibbs