mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-01 11:52:47 +00:00
19 lines
427 B
C
19 lines
427 B
C
/* Copyright (C) 2015 by Red Hat, Incorporated. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software
|
|
* is freely granted, provided that this notice is preserved.
|
|
*/
|
|
|
|
#include "fdlibm.h"
|
|
|
|
long double
|
|
__ieee754_hypotl (long double x, long double y)
|
|
{
|
|
#ifdef _LDBL_EQ_DBL
|
|
return __ieee754_hypot (x, y);
|
|
#else
|
|
/* Keep it simple for now... */
|
|
return sqrtl ((x * x) + (y * y));
|
|
#endif
|
|
}
|