Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 083527b

Browse files
authored
Merge pull request #2113 from kinke/patch-1
[Trivial] core.stdc.math: Remove duplicate CRuntime_UClibc block
2 parents 2d87bb9 + 8272de5 commit 083527b

File tree

1 file changed

+0
-116
lines changed

1 file changed

+0
-116
lines changed

src/core/stdc/math.d

Lines changed: 0 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -891,122 +891,6 @@ else version( CRuntime_UClibc )
891891
}
892892
}
893893
}
894-
else version( CRuntime_UClibc )
895-
{
896-
enum
897-
{
898-
///
899-
FP_NAN,
900-
///
901-
FP_INFINITE,
902-
///
903-
FP_ZERO,
904-
///
905-
FP_SUBNORMAL,
906-
///
907-
FP_NORMAL,
908-
}
909-
910-
enum
911-
{
912-
///
913-
FP_FAST_FMA = 0,
914-
///
915-
FP_FAST_FMAF = 0,
916-
///
917-
FP_FAST_FMAL = 0,
918-
}
919-
920-
int __fpclassifyf(float x);
921-
int __fpclassify(double x);
922-
int __fpclassifyl(real x);
923-
924-
int __finitef(float x);
925-
int __finite(double x);
926-
int __finitel(real x);
927-
928-
int __isinff(float x);
929-
int __isinf(double x);
930-
int __isinfl(real x);
931-
932-
int __isnanf(float x);
933-
int __isnan(double x);
934-
int __isnanl(real x);
935-
936-
int __signbitf(float x);
937-
int __signbit(double x);
938-
int __signbitl(real x);
939-
940-
extern (D)
941-
{
942-
///
943-
int fpclassify(float x) { return __fpclassifyf(x); }
944-
///
945-
int fpclassify(double x) { return __fpclassify(x); }
946-
///
947-
int fpclassify(real x)
948-
{
949-
return (real.sizeof == double.sizeof)
950-
? __fpclassify(x)
951-
: __fpclassifyl(x);
952-
}
953-
954-
///
955-
int isfinite(float x) { return __finitef(x); }
956-
///
957-
int isfinite(double x) { return __finite(x); }
958-
///
959-
int isfinite(real x)
960-
{
961-
return (real.sizeof == double.sizeof)
962-
? __finite(x)
963-
: __finitel(x);
964-
}
965-
966-
///
967-
int isinf(float x) { return __isinff(x); }
968-
///
969-
int isinf(double x) { return __isinf(x); }
970-
///
971-
int isinf(real x)
972-
{
973-
return (real.sizeof == double.sizeof)
974-
? __isinf(x)
975-
: __isinfl(x);
976-
}
977-
978-
///
979-
int isnan(float x) { return __isnanf(x); }
980-
///
981-
int isnan(double x) { return __isnan(x); }
982-
///
983-
int isnan(real x)
984-
{
985-
return (real.sizeof == double.sizeof)
986-
? __isnan(x)
987-
: __isnanl(x);
988-
}
989-
990-
///
991-
int isnormal(float x) { return fpclassify(x) == FP_NORMAL; }
992-
///
993-
int isnormal(double x) { return fpclassify(x) == FP_NORMAL; }
994-
///
995-
int isnormal(real x) { return fpclassify(x) == FP_NORMAL; }
996-
997-
///
998-
int signbit(float x) { return __signbitf(x); }
999-
///
1000-
int signbit(double x) { return __signbit(x); }
1001-
///
1002-
int signbit(real x)
1003-
{
1004-
return (real.sizeof == double.sizeof)
1005-
? __signbit(x)
1006-
: __signbitl(x);
1007-
}
1008-
}
1009-
}
1010894
else version( MinGW )
1011895
{
1012896
enum

0 commit comments

Comments
 (0)