cpu_capabilities(3alleg4) Allegro manual cpu_capabilities(3alleg4)NAME
cpu_capabilities - Contains the capability flags of the CPU. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
extern int cpu_capabilities;
DESCRIPTION
Contains CPU flags indicating what features are available on the current CPU. The flags can be any combination of these:
CPU_ID - Indicates that the "cpuid" instruction is
available. If this is set, then all Allegro CPU
variables are 100% reliable, otherwise there
may be some mistakes.
CPU_FPU - An FPU is available.
CPU_IA64 - Running on Intel 64 bit CPU
CPU_AMD64 - Running on AMD 64 bit CPU
CPU_MMX - Intel MMX instruction set is available.
CPU_MMXPLUS - Intel MMX+ instruction set is available.
CPU_SSE - Intel SSE instruction set is available.
CPU_SSE2 - Intel SSE2 instruction set is available.
CPU_SSE3 - Intel SSE3 instruction set is available.
CPU_3DNOW - AMD 3DNow! instruction set is available.
CPU_ENH3DNOW - AMD Enhanced 3DNow! instruction set is
available.
CPU_CMOV - Pentium Pro "cmov" instruction is available.
You can check for multiple features by OR-ing the flags together. For example, to check if the CPU has an FPU and MMX instructions avail-
able, you'd do:
if ((cpu_capabilities & (CPU_FPU | CPU_MMX)) ==
(CPU_FPU | CPU_MMX)) {
printf("CPU has both an FPU and MMX instructions!
");
}
You can read this variable after you have called check_cpu() (which is automatically called by allegro_init()).
SEE ALSO check_cpu(3alleg4), cpu_vendor(3alleg4), cpu_family(3alleg4), cpu_model(3alleg4), cpu_capabilities(3alleg4), allegro_init(3alleg4)Allegro version 4.4.2 cpu_capabilities(3alleg4)
Hello All
I'm looking to buy a new motherboard because my current one (ABIT BE6-II v1.1) doesn't support the installation of Unix. I'd like to keep my CPU (Genuine Intel PIII 800 Mhz) and memory (512 Meg) to use on the new motherboard.
My CPU is one of those cartridge types which is mounted... (5 Replies)
Is there a program on Linux that allows you to monitor Hard Disk, RAM, and CPU Usage. (Would be nice to see CPU Temp as well).
We have a Linux firewall, with an AMD Duron 950 CPU, 256MB RAM. It seems to fall over when too many people access the website. It is maintained by another company and... (5 Replies)
i have a generated file as a o/p called file1.txt
the contents of that file is
---------------------------------
AdapterCCProvisioningInterface is Running
Archiver1 is Running
Archiver2 is Running
DBMaint is Running
DBSyncListener is Running
ImportAdapter.CCMeterRead is Running... (5 Replies)
I am new to Unix. I want to be able to do shell scripting. I have installed Vmware Server on my PC. Please see my PC specs below:
Processor: Intel Core Duo CPU @ 2.2 GHz
Memory: 2GB
System Type: 32-bit OS
How can I use Unix-Linux on my PC and learn Unix? (9 Replies)
Please let me know if there is any way I can find out (either via command line or SMF) the following:
1.CPU model (eg. Pentium 4,Celeron)
2.CPU speed (eg. 1GHz)
for this I could get the output through psrinfo -v, but still is there any other way?
3.Hard disk model (eg. Seagate).
When I... (9 Replies)
I have two laptops on which I've installed Ubuntu Studio 9.04. The first laptop (Acer) has a Centrino 32-bit Intel CPU in it and the second (HP) has a 64-bit dual core Intel CPU. I'm running the 32-bit version of Ubuntu Studio on the Acer and the 64-bit version on the HP. While testing the... (5 Replies)
Hi there,
I'm in the process of choosing a machine to be a server and I was wondering how to interpret CPU description.
Example1:
Intel® Pentium® G6950, 2C, 2.80GHz, 3M Cache
I understarnd there are 2 cores, each running at 2.80 GHz.
Example2:
Intel® Core™ i3-530, 2C/4T, 2.93GHz, 4M... (4 Replies)
Hi Guys,
I have a very limited knowledge on shell scripting.
When I execute dspmq, I get either
" Running" or "Running in Standby" as output
$dspmq
QM1 Running
QM2 Running as StandByI want my script to run only if the output of dspmq is "Running".
I executed the below... (6 Replies)
I have searched and searched this topic but without looking at source code ; my next step maybe , I find the same ambiguous information.
My main question is how is the target code translated? It is stated that there are variables created that hold the data that the emulated CPU would hold in... (12 Replies)
Hi all, newbie here.
Does anyone know if it is possible to use GCC or Clang to multiply
two unsigned numbers and have it use for intel instructions, the mull instruction or an imul. I can't figure how to word this to accomplish this task:
(int)(((unsigned long long)result * (unsigned)2290649225)... (4 Replies)
Failed to recover lost root password for Solaris SunSparc
(On Sun Ultra10 - SPARC CPU Hardware, not x86 Intel CPU nor x64 AMD CPU)
This Sun Ultra10 workstation comes with an old 6-in wafer probing station purchased from a Surplus equipment vendor.
Computer: Sun Ultra 5/10 UPA/PCI... (21 Replies)
Slow runnin script. The problem seems to be the sed calls.
In summary the script reads list of users in file1. For each
username search two files (file 1 & file2) for the username
and get the value in the next line after "=". Compare these
values with each other.
If the same then output... (9 Replies)
I may be able to get a Sunfire X2200 server from work. Dual quad code AMD Opeteron CPU's, 32GB RAM, etc. Since it is a 1U server, its pretty loud. I was thinking that if I could put in a water cooling setup, it would make a better desktop server. Does anyone have experience doing this? Thanks (5 Replies)
This seems a bit serious:
Meltdown, Spectre: The password theft bugs at the heart of Intel CPUs • The Register
Vulnerability Note VU#584653 - CPU hardware vulnerable to side-channel attacks
Project Zero: Reading privileged memory with a side-channel (8 Replies)