]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - coverity-gcc-hack.h
gcc-8 coverity hack
[thirdparty/mdadm.git] / coverity-gcc-hack.h
diff --git a/coverity-gcc-hack.h b/coverity-gcc-hack.h
new file mode 100644 (file)
index 0000000..2d94a8b
--- /dev/null
@@ -0,0 +1,10 @@
+#if !defined(__KERNEL__) && defined(__x86_64__) && defined(__COVERITY_GCC_VERSION_AT_LEAST)
+#if __COVERITY_GCC_VERSION_AT_LEAST(7, 0)
+typedef float _Float128 __attribute__((__vector_size__(128)));
+typedef float _Float64 __attribute__((__vector_size__(64)));
+typedef float _Float32 __attribute__((__vector_size__(32)));
+typedef float _Float128x __attribute__((__vector_size__(128)));
+typedef float _Float64x __attribute__((__vector_size__(64)));
+typedef float _Float32x __attribute__((__vector_size__(32)));
+#endif
+#endif