diff options
| author | Russ Cox <rsc@golang.org> | 2009-01-22 16:23:44 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-01-22 16:23:44 -0800 |
| commit | 1f8a40d85c3bb7a1cf3113e7ab1afdb44f6c0e4d (patch) | |
| tree | ece2442553c8681e8134d2201e6201e1e429adb8 /src/runtime/runtime.h | |
| parent | 8c5bc7e93adae7546b4f1520d1b20f18ebe95d88 (diff) | |
| download | go-1f8a40d85c3bb7a1cf3113e7ab1afdb44f6c0e4d.tar.xz | |
move math routines from package sys to package math,
though they still build in src/runtime.
use cgo instead of hand-written wrappers.
R=r
DELTA=740 (289 added, 300 deleted, 151 changed)
OCL=23326
CL=23331
Diffstat (limited to 'src/runtime/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 735f1aa9ce..bc6b2f76d5 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -370,15 +370,12 @@ void notewakeup(Note*); #define sys_printpointer sys·printpointer #define sys_printstring sys·printstring #define sys_printuint sys·printuint -#define sys_readfile sys·readfile -#define sys_semacquire sys·semacquire -#define sys_semrelease sys·semrelease #define sys_setcallerpc sys·setcallerpc #define sys_slicestring sys·slicestring #endif /* - * low level go -called + * low level go-called */ void sys_Goexit(void); void sys_Gosched(void); @@ -407,12 +404,20 @@ void sys_cmpstring(string, string, int32); void sys_slicestring(string, int32, int32, string); void sys_indexstring(string, int32, byte); void sys_intstring(int64, string); -bool isInf(float64, int32); -bool isNaN(float64); /* - * User go-called + * wrapped for go users */ -void sys_readfile(string, string, bool); -void sys_semacquire(uint32*); -void sys_semrelease(uint32*); +float64 Inf(int32 sign); +float64 NaN(void); +float32 float32frombits(uint32 i); +uint32 float32tobits(float32 f); +float64 float64frombits(uint64 i); +uint64 float64tobits(float64 f); +float64 frexp(float64 d, int32 *ep); +bool isInf(float64 f, int32 sign); +bool isNaN(float64 f); +float64 ldexp(float64 d, int32 e); +float64 modf(float64 d, float64 *ip); +void semacquire(uint32*); +void semrelease(uint32*); |
