KallistiOS
git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
math.h
Go to the documentation of this file.
1
/* KallistiOS ##version##
2
3
dc/math.h
4
Copyright (C) 2023 Paul Cercueil
5
6
*/
7
8
/**
9
\file dc/math.h
10
\brief Prototypes for optimized math functions written in ASM
11
\ingroup math_general
12
13
\author Paul Cercueil
14
*/
15
16
#ifndef __DC_MATH_H
17
#define __DC_MATH_H
18
19
#include <sys/cdefs.h>
20
__BEGIN_DECLS
21
22
/** \defgroup math_general General
23
\brief Optimized general-purpose math utilities
24
\ingroup math
25
@{
26
*/
27
28
/**
29
\brief Returns the bit-reverse value of the argument (where MSB
30
becomes LSB and vice-versa).
31
32
\return the bit-reverse value of the argument.
33
*/
34
unsigned
int
bit_reverse
(
unsigned
int
value);
35
36
/** @} */
37
38
__END_DECLS
39
40
#endif
/* __DC_MATH_H */
bit_reverse
unsigned int bit_reverse(unsigned int value)
Returns the bit-reverse value of the argument (where MSB becomes LSB and vice-versa).
kernel
arch
dreamcast
include
dc
math.h
Generated by
1.11.0