Target FP: Introduce target-float.{c,h}
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index 73d445361dd1028695447e141a6bcabb3a2422b5..01ab6fa8c7683427d88d0df3fdc9ffb13439de20 100644 (file)
@@ -2935,6 +2935,16 @@ is_integral_type (struct type *t)
         || (TYPE_CODE (t) == TYPE_CODE_BOOL)));
 }
 
+int
+is_floating_type (struct type *t)
+{
+  t = check_typedef (t);
+  return
+    ((t != NULL)
+     && ((TYPE_CODE (t) == TYPE_CODE_FLT)
+        || (TYPE_CODE (t) == TYPE_CODE_DECFLOAT)));
+}
+
 /* Return true if TYPE is scalar.  */
 
 int
This page took 0.022876 seconds and 4 git commands to generate.