Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cpu_capabilities(3alleg4) [debian man page]

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)

Check Out this Related Man Page

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

NAME
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

Which motherboard???

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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. UNIX for Dummies Questions & Answers

Advanced info on CPU Emulators

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)
Discussion started by: theKbStockpiler
12 Replies

11. 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

12. 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

13. Shell Programming and Scripting

Slow Running Script (Reading 8000 lines)

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

14. 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

15. What is on Your Mind?

Meltdown and Spectre CPU bugs

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)
Discussion started by: Scrutinizer
8 Replies