pspsdk-1.0+beta2
pspvfpu.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * pspvfpu.h - Prototypes for the VFPU library
7  *
8  * Copyright (c) 2005 Jeremy Fitzhardinge <jeremy@goop.org>
9  *
10  * $Id: pspvfpu.h 1751 2006-01-26 01:42:38Z jsgf $
11  */
12 #ifndef __PSPVFPU_H__
13 #define __PSPVFPU_H__
14 
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
21 typedef unsigned char vfpumatrixset_t;
22 
23 #define VMAT0 (1<<0)
24 #define VMAT1 (1<<1)
25 #define VMAT2 (1<<2)
26 #define VMAT3 (1<<3)
27 #define VMAT4 (1<<4)
28 #define VMAT5 (1<<5)
29 #define VMAT6 (1<<6)
30 #define VMAT7 (1<<7)
31 
32 #define VFPU_ALIGNMENT (sizeof(float) * 4) /* alignment required for VFPU matrix loads and stores */
33 
42 
49 void pspvfpu_deletecontext(struct pspvfpu_context *context);
50 
69 void pspvfpu_use_matrices(struct pspvfpu_context *context,
70  vfpumatrixset_t keepset, vfpumatrixset_t tempset);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* __PSPVFPU_H__ */