PSPSDK
2024-10-31
Loading...
Searching...
No Matches
pspvfpu.h
Go to the documentation of this file.
1
/*
2
* PSP Software Development Kit - https://github.com/pspdev
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
*/
11
#ifndef __PSPVFPU_H__
12
#define __PSPVFPU_H__
13
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
struct
pspvfpu_context
;
20
typedef
unsigned
char
vfpumatrixset_t
;
21
22
#define VMAT0 (1<<0)
23
#define VMAT1 (1<<1)
24
#define VMAT2 (1<<2)
25
#define VMAT3 (1<<3)
26
#define VMAT4 (1<<4)
27
#define VMAT5 (1<<5)
28
#define VMAT6 (1<<6)
29
#define VMAT7 (1<<7)
30
31
#define VFPU_ALIGNMENT (sizeof(float) * 4)
/* alignment required for VFPU matrix loads and stores */
32
40
struct
pspvfpu_context
*
pspvfpu_initcontext
(
void
);
41
48
void
pspvfpu_deletecontext
(
struct
pspvfpu_context
*context);
49
68
void
pspvfpu_use_matrices
(
struct
pspvfpu_context
*context,
69
vfpumatrixset_t
keepset
,
vfpumatrixset_t
tempset
);
70
71
#ifdef __cplusplus
72
}
73
#endif
74
75
#endif
/* __PSPVFPU_H__ */
x
float x
Definition
psptypes.h:0
pspvfpu_use_matrices
void pspvfpu_use_matrices(struct pspvfpu_context *context, vfpumatrixset_t keepset, vfpumatrixset_t tempset)
Use a set of VFPU matrices.
Definition
pspvfpu.c:92
pspvfpu_deletecontext
void pspvfpu_deletecontext(struct pspvfpu_context *context)
Delete a VFPU context.
Definition
pspvfpu.c:170
pspvfpu_initcontext
struct pspvfpu_context * pspvfpu_initcontext(void)
Prepare to use the VFPU.
Definition
pspvfpu.c:152
vfpumatrixset_t
unsigned char vfpumatrixset_t
Definition
pspvfpu.h:20
pspvfpu_context
Definition
pspvfpu.c:19
vfpu
pspvfpu.h
Generated on Thu Oct 31 2024 23:08:43 for PSPSDK by
1.9.8