vorbis: Modify function name styles to make golint happy

This commit is contained in:
Hajime Hoshi 2016-05-14 03:41:48 +09:00
parent 971b42856a
commit 1fa89776fc

View File

@ -28,46 +28,46 @@ import (
/* /*
extern double go_ldexp(double x, int n); extern double goLdexp(double x, int n);
extern double go_floor(double x); extern double goFloor(double x);
extern double go_exp(double x); extern double goExp(double x);
extern double go_log(double x); extern double goLog(double x);
extern double go_pow(double x, double y); extern double goPow(double x, double y);
extern double go_cos(double x); extern double goCos(double x);
extern double go_sin(double x); extern double goSin(double x);
extern void go_assert(int x, char* sentence); extern void goAssert(int x, char* sentence);
static inline double ldexp(double x, int n) { static inline double ldexp(double x, int n) {
return go_ldexp(x, n); return goLdexp(x, n);
} }
static inline double floor(double x) { static inline double floor(double x) {
return go_floor(x); return goFloor(x);
} }
static inline double exp(double x) { static inline double exp(double x) {
return go_exp(x); return goExp(x);
} }
static inline double log(double x) { static inline double log(double x) {
return go_log(x); return goLog(x);
} }
static inline double pow(double x, double y) { static inline double pow(double x, double y) {
return go_pow(x, y); return goPow(x, y);
} }
static inline double cos(double x) { static inline double cos(double x) {
return go_cos(x); return goCos(x);
} }
static inline double sin(double x) { static inline double sin(double x) {
return go_sin(x); return goSin(x);
} }
static inline void assert_impl(int x, const char* sentence) { static inline void assert_impl(int x, const char* sentence) {
// const cast // const cast
go_assert(x, (char*)sentence); goAssert(x, (char*)sentence);
} }
#define assert(x) assert_impl(x, #x) #define assert(x) assert_impl(x, #x)
@ -5496,43 +5496,43 @@ int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, in
*/ */
import "C" import "C"
//export go_ldexp //export goLdexp
func go_ldexp(x C.double, n C.int) C.double { func goLdexp(x C.double, n C.int) C.double {
return C.double(math.Ldexp(float64(x), int(n))) return C.double(math.Ldexp(float64(x), int(n)))
} }
//export go_floor //export goFloor
func go_floor(x C.double) C.double { func goFloor(x C.double) C.double {
return C.double(math.Floor(float64(x))) return C.double(math.Floor(float64(x)))
} }
//export go_exp //export goExp
func go_exp(x C.double) C.double { func goExp(x C.double) C.double {
return C.double(math.Exp(float64(x))) return C.double(math.Exp(float64(x)))
} }
//export go_log //export goLog
func go_log(x C.double) C.double { func goLog(x C.double) C.double {
return C.double(math.Log(float64(x))) return C.double(math.Log(float64(x)))
} }
//export go_pow //export goPow
func go_pow(x, y C.double) C.double { func goPow(x, y C.double) C.double {
return C.double(math.Pow(float64(x), float64(y))) return C.double(math.Pow(float64(x), float64(y)))
} }
//export go_cos //export goCos
func go_cos(x C.double) C.double { func goCos(x C.double) C.double {
return C.double(math.Cos(float64(x))) return C.double(math.Cos(float64(x)))
} }
//export go_sin //export goSin
func go_sin(x C.double) C.double { func goSin(x C.double) C.double {
return C.double(math.Sin(float64(x))) return C.double(math.Sin(float64(x)))
} }
//export go_assert //export goAssert
func go_assert(x C.int, sentence *C.char) { func goAssert(x C.int, sentence *C.char) {
if x != 0 { if x != 0 {
return return
} }