PSPSDK 2024-12-16
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
16extern "C" {
17#endif
18
19struct pspvfpu_context;
20typedef 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
41
48void pspvfpu_deletecontext(struct pspvfpu_context *context);
49
68void pspvfpu_use_matrices(struct pspvfpu_context *context,
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* __PSPVFPU_H__ */
float x
Definition psptypes.h:0
void pspvfpu_use_matrices(struct pspvfpu_context *context, vfpumatrixset_t keepset, vfpumatrixset_t tempset)
Use a set of VFPU matrices.
Definition pspvfpu.c:92
void pspvfpu_deletecontext(struct pspvfpu_context *context)
Delete a VFPU context.
Definition pspvfpu.c:170
struct pspvfpu_context * pspvfpu_initcontext(void)
Prepare to use the VFPU.
Definition pspvfpu.c:152
unsigned char vfpumatrixset_t
Definition pspvfpu.h:20
Definition pspvfpu.c:19