mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 06:20:19 +01:00
gallium: insert __cplusplus/extern wrappings
This commit is contained in:
parent
a22bdd42d7
commit
f9c04d55d0
1 changed files with 9 additions and 0 deletions
|
|
@ -44,12 +44,17 @@
|
|||
#include "util/u_math.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#define POW2_TABLE_SIZE 256
|
||||
#define POW2_TABLE_SCALE ((float) (POW2_TABLE_SIZE-1))
|
||||
extern float pow2_table[POW2_TABLE_SIZE];
|
||||
|
||||
|
||||
|
||||
extern void
|
||||
util_init_math(void);
|
||||
|
||||
|
|
@ -190,4 +195,8 @@ util_iround(float f)
|
|||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* U_MATH_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue