49d1a4c562
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
24 lines
538 B
C
24 lines
538 B
C
/**
|
|
* This file is part of the mingw-w64 runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER within this package.
|
|
*/
|
|
#define _NEW_COMPLEX_FLOAT 1
|
|
|
|
#include "../complex/complex_internal.h"
|
|
#include <errno.h>
|
|
#include <math.h>
|
|
|
|
float hypotf (float x, float y)
|
|
{
|
|
int x_class = fpclassify (x);
|
|
int y_class = fpclassify (y);
|
|
|
|
if (x_class == FP_INFINITE || y_class == FP_INFINITE)
|
|
return __FLT_HUGE_VAL;
|
|
else if (x_class == FP_NAN || y_class == FP_NAN)
|
|
return __FLT_NAN;
|
|
|
|
return (float) _hypot (x, y);
|
|
}
|
|
|