Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cpu_capabilities(3alleg4) [opendarwin man page]

cpu_capabilities(3alleg4)					  Allegro manual					 cpu_capabilities(3alleg4)

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)

Check Out this Related Man Page

exzbuf(3alleg4) 						  Allegro manual						   exzbuf(3alleg4)

exzbuf - Z-buffered polygons demo. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exzbuf DESCRIPTION
This program demonstrates how to use Z-buffered polygons and floating point 3D math routines. It also provides a simple way to compute fps (frames per second) using a timer. After selecting a screen resolution through the standard GUI dialog, the example shows two 3D cubes rotating and intersecting each other. Rather than having full polygons incorrectly overlap other polygons due to per-polygon sorting, each pixel is drawn at the correct depth. SEE ALSO
BITMAP(3alleg4), END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), LOCK_VARIABLE(3alleg4), MATRIX_f(3alleg4), PAL- ETTE(3alleg4), POLYTYPE_GCOL(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), V3D_f(3alleg4), ZBUFFER(3alleg4), allegro_error(3alleg4), allegro_exit(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), apply_matrix_f(3alleg4), bitmap_color_depth(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), clear_zbuffer(3alleg4), create_bitmap(3alleg4), create_zbuffer(3alleg4), desktop_palette(3alleg4), destroy_bitmap(3alleg4), destroy_zbuffer(3alleg4), font(3alleg4), get_transformation_matrix_f(3alleg4), gfx_mode_select_ex(3alleg4), install_int(3alleg4), install_keyboard(3alleg4), install_mouse(3alleg4), install_timer(3alleg4), keypressed(3alleg4), pal- ette_color(3alleg4), persp_project_f(3alleg4), polygon_z_normal_f(3alleg4), quad3d_f(3alleg4), readkey(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), set_palette_range(3alleg4), set_projection_viewport(3alleg4), set_zbuffer(3alleg4), textprintf_ex(3alleg4), vsync(3alleg4) Allegro version 4.4.2 exzbuf(3alleg4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Computer Usage

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)
Discussion started by: potter
5 Replies

2. Linux Benchmarks

AMD 2500 / 1G RAM / Soyo KT600 Ultra MB

System Notes: CPU/Speed: AMD Athlon 2500+ 1.8Ghz Ram: 1 GB DDR 333 PC2700 Motherboard: Soyo KT600 Dragon Ultra Bus: PCI Cache: 512KB (corrected earlier error stating 512MB!) HD Controller: EIDE Benchmarks: ... (5 Replies)
Discussion started by: Neo
5 Replies

3. Linux Benchmarks

Dual Intel Xeon 2.4Ghz - Linux 2.4.26 SMP

System: CPU/Speed: Dual Intel Xeon 2.4Ghz Ram: 2 GB DDR 266 SDRAM Motherboard: SuperMicro X5DE8-GG Bus: 533MHz/400MHz system bus - Cache: 512KB HD Controller: EIDE Serverworks™ GC-SL Chipset Extra GCC compiler flags: -s... (3 Replies)
Discussion started by: Neo
3 Replies

4. Programming

multiple forks and printf question

Hello *NIX gurus, I have a slight perplexing problem with multiple forks giving different results... Here is the deal. From what I undestand, a fork() call starts executing from the next instruction that follows the fork() call. That means it inherits the PC counter register value of the... (4 Replies)
Discussion started by: navigator
4 Replies

5. Shell Programming and Scripting

file help

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)
Discussion started by: ali560045
5 Replies

6. UNIX for Dummies Questions & Answers

Installing Unix

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)
Discussion started by: abou202
9 Replies

7. Solaris

Solaris10 x86 - How to find out the CPU model and speed?

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)
Discussion started by: saagar
9 Replies

8. Ubuntu

Data Transfers Lock System Up Completely

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)
Discussion started by: deckard
5 Replies

9. Ubuntu

Xorg is taking System Resources.

Hi All, I am facing System Speed problem.i saw in top command Xorg process was taking most of the time 20% of CPU and Memory.How to make it normal. Currently i am using AMD Athlon 64 HT technology processor(Socket 939) 512 DDR1 RAM Nvidia 5200 GeForce 128 MB Graphic card. i need help in... (2 Replies)
Discussion started by: arvindk.monu
2 Replies

10. SCO

hwconfig CPU model wrong

Hello, I am running SCO Opensever 5.0.7 on a Intel Duo Core system. When I enter hwconfig -h the CPU info is displayed as: cpu - - - unit-1 family-6 type Pentium III (model 7) Is there a way to update this so it is current to the cpu I am using? Does this cause any performance issues? ... (3 Replies)
Discussion started by: ewerezak
3 Replies

11. Hardware

What is a CPU with 2C/4T?

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)
Discussion started by: chebarbudo
4 Replies

12. UNIX Desktop Questions & Answers

grep function

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)
Discussion started by: vandi
6 Replies

13. Programming

C multiplication with GCC

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)
Discussion started by: pheonix
4 Replies

14. Solaris

Failed to recover root password in Solaris 10 on Sparc CPU Sun Ultra10

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)
Discussion started by: fromtexas0
21 Replies

15. Hardware

Water cooled 1U server

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)
Discussion started by: gandolf989
5 Replies

Featured Tech Videos