raaz-0.2.1: The raaz cryptographic library.

Safe Haskell | None
Language | Haskell2010

Raaz.Core.CpuSupports

Description

This module gives functions that check at runtime whether the underlying cpu supports given features. CPU features are architecture specific. However, functions from this module are guaranteed to be defined always -- they return `False` for incompatible architecture. For example, the flag `avx2` is relevant only for a an X86 architecture. So it is defined false, for say the ARM architecture.

Synopsis

- sse :: Bool
- sse2 :: Bool
- sse3 :: Bool
- sse4_1 :: Bool
- sse4_2 :: Bool
- avx :: Bool
- avx2 :: Bool

# Documentation

sse :: Bool Source #

Check whether the cpu supports sse extension.

sse2 :: Bool Source #

Check whether the cpu supports sse2 extension.

sse3 :: Bool Source #

Check whether the cpu supports sse3 extension.

sse4_1 :: Bool Source #

Check whether the cpu supports sse4_1 extension.

sse4_2 :: Bool Source #

Check whether the cpu supports sse-4.2 extension.

avx :: Bool Source #

Check whether the cpu supports avx extension.

avx2 :: Bool Source #

Check whether the cpu supports avx2 extension.