From d7d055d8ad72127a630eda29b50c20fa2885a2c3 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Wed, 31 Jan 2018 17:41:33 -0800 Subject: [PATCH] Update Usage information This change includes the import of pprint module as well as updates the information retrieved. Change-Id: Ie2b0e734912bbd2a41ac4f324d61e8312203d723 --- doc/source/user/index.rst | 73 ++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/doc/source/user/index.rst b/doc/source/user/index.rst index f826571..c394f38 100644 --- a/doc/source/user/index.rst +++ b/doc/source/user/index.rst @@ -20,39 +20,40 @@ You can get a list of the ``os_traits`` symbols by simply doing a Want to see the trait strings for a subset of traits? There's a method for that too:: - >>> pprint.pprint(ot.get_traits(ot.NAMESPACES['X86'])) - ['HW_CPU_X86_AES-NI', - 'HW_CPU_X86_AVX512ER', - 'HW_CPU_X86_AVX512CD', - 'HW_CPU_X86_TBM', - 'HW_CPU_X86_TSX', - 'HW_CPU_X86_FMA3', - 'HW_CPU_X86_SVM', - 'HW_CPU_X86_FMA4', - 'HW_CPU_X86_MPX', - 'HW_CPU_X86_SSE2', - 'HW_CPU_X86_SSE3', - 'HW_CPU_X86_MMX', - 'HW_CPU_X86_SSSE3', - 'HW_CPU_X86_SSE4A', - 'HW_CPU_X86_AVX2', - 'HW_CPU_X86_SGX', - 'HW_CPU_X86_AVX', - 'HW_CPU_X86_AVX512BW', - 'HW_CPU_X86_AVX512DQ', - 'HW_CPU_X86_SSE', - 'HW_CPU_X86_SHA', - 'HW_CPU_X86_AVX512F', - 'HW_CPU_X86_F16C', - 'HW_CPU_X86_SSE41', - 'HW_CPU_X86_SSE42', - 'HW_CPU_X86_VMX', - 'HW_CPU_X86_ASF', - 'HW_CPU_X86_BMI2', - 'HW_CPU_X86_CLMUL', - 'HW_CPU_X86_AVX512VL', - 'HW_CPU_X86_AVX512PF', - 'HW_CPU_X86_XOP', - 'HW_CPU_X86_BMI', - 'HW_CPU_X86_ABM', - 'HW_CPU_X86_3DNOW'] + >>> import pprint + >>> pprint.pprint(ot.get_traits(prefix='HW_CPU_X86_')) + ['HW_CPU_X86_FMA3', + 'HW_CPU_X86_AVX', + 'HW_CPU_X86_MMX', + 'HW_CPU_X86_MPX', + 'HW_CPU_X86_CLMUL', + 'HW_CPU_X86_AVX512VL', + 'HW_CPU_X86_AVX512CD', + 'HW_CPU_X86_BMI', + 'HW_CPU_X86_AVX512DQ', + 'HW_CPU_X86_SSE3', + 'HW_CPU_X86_ABM', + 'HW_CPU_X86_SSE4A', + 'HW_CPU_X86_AESNI', + 'HW_CPU_X86_F16C', + 'HW_CPU_X86_VMX', + 'HW_CPU_X86_SVM', + 'HW_CPU_X86_TSX', + 'HW_CPU_X86_AVX512PF', + 'HW_CPU_X86_SSE41', + 'HW_CPU_X86_ASF', + 'HW_CPU_X86_SGX', + 'HW_CPU_X86_SSE', + 'HW_CPU_X86_SSSE3', + 'HW_CPU_X86_SHA', + 'HW_CPU_X86_TBM', + 'HW_CPU_X86_SSE42', + 'HW_CPU_X86_3DNOW', + 'HW_CPU_X86_BMI2', + 'HW_CPU_X86_AVX512BW', + 'HW_CPU_X86_XOP', + 'HW_CPU_X86_AVX2', + 'HW_CPU_X86_AVX512F', + 'HW_CPU_X86_SSE2', + 'HW_CPU_X86_FMA4', + 'HW_CPU_X86_AVX512ER']