Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/machine/amdgcn/v64sf_finite.c')
-rw-r--r--newlib/libm/machine/amdgcn/v64sf_finite.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/newlib/libm/machine/amdgcn/v64sf_finite.c b/newlib/libm/machine/amdgcn/v64sf_finite.c
new file mode 100644
index 000000000..b1efd5b6e
--- /dev/null
+++ b/newlib/libm/machine/amdgcn/v64sf_finite.c
@@ -0,0 +1,23 @@
+/*
+ * ====================================================
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ *
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
+ * Permission to use, copy, modify, and distribute this
+ * software is freely granted, provided that this notice
+ * is preserved.
+ * ====================================================
+ */
+
+/* Based on newlib/libm/common/v64sf_finite.c in Newlib. */
+
+#include "amdgcnmach.h"
+
+DEF_VS_MATH_FUNC (v64si, finitef, v64sf x)
+{
+ v64si ix = CAST_VECTOR (v64si, x);
+ ix &= 0x7fffffff;
+ return FLT_UWORD_IS_FINITE(ix);
+}
+
+DEF_VARIANTS (finitef, si, sf)