From: Justin Seyster Date: Tue, 24 Aug 2010 22:38:05 +0000 (-0400) Subject: Added specific types for different sized fp types. X-Git-Tag: release-v1.0~58 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=a1b16d7a05a4913cac5d414fa477d3e403eabe16;p=interaspect.git Added specific types for different sized fp types. --- diff --git a/src/aop-type.c b/src/aop-type.c index 36df28c..d6ec8ca 100644 --- a/src/aop-type.c +++ b/src/aop-type.c @@ -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. */ /** * \} diff --git a/src/aop.h b/src/aop.h index edf1ebd..eff2ab3 100644 --- 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,