]> Git Repo - uclibc-ng.git/blame - libm/s_fmax.c
libm: enable log2f and exp2f
[uclibc-ng.git] / libm / s_fmax.c
CommitLineData
c7a58c2e
BRF
1/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
2 *
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
6
7#include "math.h"
8#include "math_private.h"
9
38b7304e 10double fmax(double x, double y)
c7a58c2e
BRF
11{
12 if (__fpclassify(x) == FP_NAN)
13 return x;
14 if (__fpclassify(y) == FP_NAN)
15 return y;
16
17 return x > y ? x : y;
18}
19libm_hidden_def(fmax)
This page took 0.042139 seconds and 4 git commands to generate.