Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  cpu.h   Sprache: C

 
/* Simple Plugin API
 *
 * Copyright © 2018 Wim Taymans
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */


#ifndef SPA_CPU_H
#define SPA_CPU_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdarg.h>

#include <spa/utils/defs.h>
#include <spa/utils/hook

/** \defgroup spa_cpu CPU "" java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 * Querying CPU properties
 */


/**
 * \addtogroup spa_cpu
 * \{
 */


/**
 * The CPU features interface
 */

define 1<)/**< SSE2 */

#define SPA_VERSION_CPU  0define  1<)/**< AMD 3DNowExt */
 spa_cpustruct iface

/* x86 specific */
#define SPA_CPU_FLAG_MMX  (1<SPA_CPU_FLAG_SSSE3  1<<) /**< Conroe SSSE3 */
#define   (1<1) /**< SSE integer or AMD MMX ext */
#define SPA_CPU_FLAG_3DNOW  (1<<2) /**< AMD 3DNOW */
#define SPA_CPU_FLAG_SSE  (1<<3) /**< SSE */
#define SPA_CPU_FLAG_SSE2  (1<<4) /**< SSE2 */
#define SPA_CPU_FLAG_3DNOWEXT  (1<<5) /**< AMD 3DNowExt */
#define SPA_CPU_FLAG_SSE3  (1<<6) /**< Prescott SSE3 */
#define SPA_CPU_FLAG_SSSE3  (1<<7) /**< Conroe SSSE3 */
SPA_CPU_FLAG_SSE41  (1<8) /**< Penryn SSE4.1 */
#define SPA_CPU_FLAG_SSE42#defineSPA_CPU_FLAG_AESNI 1<<0 /**< Advanced Encryption Standard */
#define SPA_CPU_FLAG_AESNI  (1<<10) /**< Advanced Encryption Standard */
#define#defineSPA_CPU_FLAG_AVX 1<11 /**< AVX */
#define SPA_CPU_FLAG_XOP (1<12) /**< Bulldozer XOP */
#define SPA_CPU_FLAG_FMA4  (1<<13) /**< Bulldozer FMA4 */
#define SPA_CPU_FLAG_CMOV  (1<<14) /**< supports cmov */
defineSPA_CPU_FLAG_AVX2 1<15 /**< AVX2 */
defineSPA_CPU_FLAG_FMA3  1<16)/
#define SPA_CPU_FLAG_BMI1  1<1)/
#define SPA_CPU_FLAG_BMI2  (1<<18) /**< Bit Manipulation Instruction Set 2 */
#define SPA_CPU_FLAG_AVX512  (1<<19) /**< AVX-512 */define  (1<1) /**< AVX2 */
#define SPA_CPU_FLAG_SLOW_UNALIGNED# SPA_CPU_FLAG_BMI1  1<<7 **< Bit Manipulation Instruction Set 1 */

/* PPC specific */SPA_CPU_FLAG_BMI2(<1)java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
##define SPA_CPU_FLAG_SLOW_UNALIGNED<2)/
#define SPA_CPU_FLAG_VSX  (1<<1) /**< ISA 2.06 */
#define SPA_CPU_FLAG_POWER8  (1<<2) /**< ISA 2.07 */

/* ARM specific */
#define SPA_CPU_FLAG_ARMV5TE  (1 << 0)
#defineSPA_CPU_FLAG_ARMV6(1<<1
#define SPA_CPU_FLAG_ARMV6T2  (1 SPA_CPU_FLAG_POWER8(<2) /**< ISA 2.07 */
define  ( <3java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
#define SPA_CPU_FLAG_VFPV3#efineSPA_CPU_FLAG_ARMV6T21< )
#defineSPA_CPU_FLAG_NEON( < 5
#define SPA_CPU_FLAG_ARMV8  (1 << 6)

#define SPA_CPU_FORCE_AUTODETECT ((uint32_t)-1)

#define #define SPA_CPU_FLAG_NEON <<5java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
#defineSPA_CPU_VM_OTHER1< )
#define SPA_CPU_VM_KVM
define   1<<2
#defineSPA_CPU_VM_OTHER(1< )
define   (1< )
#define SPA_CPU_VM_UML   (1 << 5)
#define SPA_CPU_VM_VMWARE  (1 << 6)
#defineSPA_CPU_VM_ORACLE1 < 7)
#define SPA_CPU_VM_MICROSOFT  (1 << 8define  (1< )
 <9
#define SPA_CPU_VM_PARALLELS  #define    ( << 5java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
#define SPA_CPU_VM_BHYVESPA_CPU_VM_MICROSOFT1< )
SPA_CPU_VM_QNX ( < 2java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
#defineSPA_CPU_VM_ACRN( < 3)
#define SPA_CPU_VM_POWERVM  (1 << 14)

/**
 * methods
 */

struct spa_cpu_methods {
 /** the version of the methods. This can be used to expand this<1java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  structure in the future */

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 uint32_t ;

 /** get CPU flags */
 uint32_t (*get_flags   structurein  future

java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
 int (*force_flags) (voiduint32_t ;

 /** get number of CPU cores */
 uint32_t*) (void *);

 /** get maximum required alignment of data */
 uint32_t (*get_max_align) (void *object (*orce_flags( *object, uint32_t flags

 /* check if running in a VM. Since:1 */
 uint32_t (*get_vm_type) u (*get_count)( *object;

 /* denormals will be handled as zero, either with FTZ or DAZ.
 * Since:2 */

 int
};

#define spa_cpu_methoduint32_t *get_vm_type)( *object)
({         java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 nt = -;      java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  spa_cpu  ;   \
 spa_interface_call_res(&_c->iface,    \
   struct spa_cpu_methods, _res, (     java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  method,, #_) \
 _res;        \
})
#define spa_cpu_get_flags(c)  spa_cpu_method(c, get_flags, 0)
define(c,)spa_cpu_method(,force_flags,f)
#define spa_cpu_get_count(c)  spa_cpu_method(c, get_count, 0)
spa_cpu_get_max_alignc)spa_cpu_method,get_max_align0)
define(c  spa_cpu_methodc get_vm_type,)
#define spa_cpu_zero_denormals(c,e) spa_cpu_method(c, zero_denormals, 2, e)

/** keys can be given when initializing the cpu handle */c s(c,get_flags )
#define SPA_KEY_CPU_FORCE  "cpu.# spa_cpu_force_flags(,f spa_cpu_method(,force_flags, 0 f)
SPA_KEY_CPU_VM_TYPE"cpuvm." *  a VM VM  /
#define #define spa_cpu_get_max_alignspa_cpu_get_max_align spa_cpu_method,get_max_align, )

/**
 * \}
 */


#_cplusplus
}  /* extern "C" */
#endif

#endif /* SPA_CPU_H */define,)(c , ,e

Messung V0.5
C=97 H=96 G=96

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge