linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit 262599be3ebf9879f62fb75f523fddc5c2aa4d9f parent 0f3e9a26710d90a5f63c080141f9d971a23ba401 Author: Jul <jul@9o.is> Date: Thu, 6 Nov 2025 00:07:58 -0500 complete probe pkg Diffstat:
| A | pkg/probe/HAVE_IMMINTRIN_H | | | 4 | ++++ |
| A | pkg/probe/HAVE__MM_CLMULEPI64_SI128 | | | 7 | +++++++ |
| A | pkg/probe/HAVE__MM_MOVEMASK_EPI8 | | | 6 | ++++++ |
| A | pkg/probe/HAVE___BUILTIN_ASSUME_ALIGNED | | | 4 | ++++ |
| A | pkg/probe/HAVE___BUILTIN_BSWAP16 | | | 4 | ++++ |
| A | pkg/probe/SIZEOF_SIZE_T | | | 2 | ++ |
| M | pkg/probe/gen.sh | | | 6 | ++++++ |
7 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/pkg/probe/HAVE_IMMINTRIN_H b/pkg/probe/HAVE_IMMINTRIN_H @@ -0,0 +1,4 @@ +#include <immintrin.h> +int main(void) { + return 0; +} diff --git a/pkg/probe/HAVE__MM_CLMULEPI64_SI128 b/pkg/probe/HAVE__MM_CLMULEPI64_SI128 @@ -0,0 +1,7 @@ +#include <immintrin.h> +static __m128i x, y; +__attribute__((__target__("pclmul"))) +int main(void) { + _mm_clmulepi64_si128(x, y, 0); + return 0; +} diff --git a/pkg/probe/HAVE__MM_MOVEMASK_EPI8 b/pkg/probe/HAVE__MM_MOVEMASK_EPI8 @@ -0,0 +1,6 @@ +#include <immintrin.h> +static __m128i x; +int main(void) { + _mm_movemask_epi8(x); + return 0; +} diff --git a/pkg/probe/HAVE___BUILTIN_ASSUME_ALIGNED b/pkg/probe/HAVE___BUILTIN_ASSUME_ALIGNED @@ -0,0 +1,4 @@ +void *x; +int main(void) { + return __builtin_assume_aligned(x, 8) == x; +} diff --git a/pkg/probe/HAVE___BUILTIN_BSWAP16 b/pkg/probe/HAVE___BUILTIN_BSWAP16 @@ -0,0 +1,4 @@ +unsigned x = 0xff; +int main(void) { + return __builtin_bswap16(x) & 0xff; +} diff --git a/pkg/probe/SIZEOF_SIZE_T b/pkg/probe/SIZEOF_SIZE_T @@ -0,0 +1,2 @@ +#include <stddef.h> +_Static_assert(SIZEOF_SIZE_T == sizeof(size_t), "incorrect size"); diff --git a/pkg/probe/gen.sh b/pkg/probe/gen.sh @@ -15,6 +15,12 @@ probesize() { } probe HAVE__THREAD_LOCAL +probe HAVE_IMMINTRIN_H +probe HAVE__MM_CLMULEPI64_SI128 +probe HAVE__MM_MOVEMASK_EPI8 +probe HAVE___BUILTIN_ASSUME_ALIGNED +probe HAVE___BUILTIN_BSWAP16 +probesize SIZEOF_SIZE_T probesize SIZEOF_LONG probesize SIZEOF_TIME_T