X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Futil.h;h=d84b0e345fe05598f34187026def2f1c96080f52;hb=1a1bad41337d53922fde2abf8645de006c871965;hp=875203bd4213cf9411f2b5f82fa11934f433b803;hpb=588927eced2aa02855723750217fe3fc26404da9;p=libc-test diff --git a/src/math/util.h b/src/math/util.h index 875203b..d84b0e3 100644 --- a/src/math/util.h +++ b/src/math/util.h @@ -116,3 +116,10 @@ static int checkulp(float d, int r) return 1; } +static int checkcr(long double y, long double ywant, int r) +{ + if (isnan(ywant)) + return isnan(y); + return y == ywant; +} +