}
static gboolean
-type_is_unsigned (MonoType *type) {
+type_is_unsigned (MonoType *type)
+{
MonoClass *klass = mono_class_from_mono_type_internal (type);
MonoType *etype = mono_class_get_context (klass)->class_inst->type_argv [0];
return type_enum_is_unsigned (etype->type);
}
static gboolean
-type_is_float (MonoType *type) {
+type_is_float (MonoType *type)
+{
MonoClass *klass = mono_class_from_mono_type_internal (type);
MonoType *etype = mono_class_get_context (klass)->class_inst->type_argv [0];
return type_enum_is_float (etype->type);
klass = cmethod->klass;
type = m_class_get_byval_arg (klass);
etype = mono_class_get_context (klass)->class_inst->type_argv [0];
+
+ if (!MONO_TYPE_IS_VECTOR_PRIMITIVE (etype))
+ return NULL;
+
size = mono_class_value_size (mono_class_from_mono_type_internal (etype), NULL);
g_assert (size);
len = register_size / size;
- if (!MONO_TYPE_IS_VECTOR_PRIMITIVE (etype))
- return NULL;
if (cfg->verbose_level > 1) {
char *name = mono_method_full_name (cmethod, TRUE);
klass = cmethod->klass;
etype = mono_class_get_context (klass)->class_inst->type_argv [0];
- size = mono_class_value_size (mono_class_from_mono_type_internal (etype), NULL);
- g_assert (size);
- len = 32 / size;
if (!MONO_TYPE_IS_VECTOR_PRIMITIVE (etype))
return NULL;
+ size = mono_class_value_size (mono_class_from_mono_type_internal (etype), NULL);
+ g_assert (size);
+ len = 32 / size;
+
if (cfg->verbose_level > 1) {
char *name = mono_method_full_name (cmethod, TRUE);
printf (" SIMD intrinsic %s\n", name);