Added specific types for different sized fp types.
authorJustin Seyster <jseyster@cs.sunysb.edu>
Tue, 24 Aug 2010 22:38:05 +0000 (18:38 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Tue, 24 Aug 2010 22:38:05 +0000 (18:38 -0400)
src/aop-type.c
src/aop.h

index 36df28c0e3d8812ed950af492dd46fadd4bb6a36..d6ec8ca36728668bd5df0f463d5b9be1160cbcf1 100644 (file)
@@ -145,6 +145,30 @@ static struct aop_type _aop_t_unsigned128 = {
   .size = 16,
 };
 
+static struct aop_type _aop_t_float32 = {
+  .kind = ATK_FP,
+  .pointer_levels = 0,
+  .tag = NULL,
+
+  .size = 4,
+};
+
+static struct aop_type _aop_t_float64 = {
+  .kind = ATK_FP,
+  .pointer_levels = 0,
+  .tag = NULL,
+
+  .size = 8,
+};
+
+static struct aop_type _aop_t_float128 = {
+  .kind = ATK_FP,
+  .pointer_levels = 0,
+  .tag = NULL,
+
+  .size = 16,
+};
+
 /**
  * \defgroup type InterAspect Types
  * \{
@@ -324,6 +348,24 @@ aop_t_unsigned128 ()
   return &_aop_t_unsigned128;
 }
 
+const struct aop_type *
+aop_t_float32 ()
+{
+  return &_aop_t_float32;
+}
+
+const struct aop_type *
+aop_t_float64 ()
+{
+  return &_aop_t_float64;
+}
+
+const struct aop_type *
+aop_t_float128 ()
+{
+  return &_aop_t_float128;
+}
+
 /* Close Doxygen defgroup block. */
 /**
  * \}
index edf1ebdb9d16690b1d298f6a303121d8b30af63c..eff2ab342e7f9959e2e0feafc7d455c24059efaf 100644 (file)
--- a/src/aop.h
+++ b/src/aop.h
@@ -177,6 +177,9 @@ extern const struct aop_type *aop_t_unsigned16 ();
 extern const struct aop_type *aop_t_unsigned32 ();
 extern const struct aop_type *aop_t_unsigned64 ();
 extern const struct aop_type *aop_t_unsigned128 ();
+extern const struct aop_type *aop_t_float32 ();
+extern const struct aop_type *aop_t_float64 ();
+extern const struct aop_type *aop_t_float128 ();
 
 extern void aop_register_pass (const char *pass_name, pass_callback callback);
 extern void aop_join_on (struct aop_pointcut *pc, join_callback callback,