blob: a4b07411c1ef545fd8b68e7eb284bed4981e04db [file] [log] [blame]
/*
* Copyright (c) 2015 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "int_math.h"
double __compilerrt_fmax(double x, double y)
{
if (crt_isnan(x))
return y;
if (crt_isnan(y))
return x;
return x > y ? x : y;
}