raaz-0.3.6: Fast and type safe cryptography.
Copyright(c) Piyush P Kurur 2017
LicenseApache-2.0 OR BSD-3-Clause
MaintainerPiyush P Kurur <ppk@iitpkd.ac.in>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Documentation

sse :: IO Bool Source #

Check whether the cpu supports sse extension.

sse2 :: IO Bool Source #

Check whether the cpu supports sse2 extension.

sse3 :: IO Bool Source #

Check whether the cpu supports sse3 extension.

sse4_1 :: IO Bool Source #

Check whether the cpu supports sse4_1 extension.

sse4_2 :: IO Bool Source #

Check whether the cpu supports sse-4.2 extension.

avx :: IO Bool Source #

Check whether the cpu supports avx extension.

avx2 :: IO Bool Source #

Check whether the cpu supports avx2 extension.