diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-23 04:31:11 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-23 04:31:11 +0000 |
commit | fb08d0057f91d420b6f48c112264fc87dc91b532 (patch) | |
tree | 46bb86f514fbf6bad82da48e69a18fb09d878834 /libgo/runtime/print.c | |
parent | f507227a181bb31fa87d23a082485f99f3ef9183 (diff) | |
download | gcc-fb08d0057f91d420b6f48c112264fc87dc91b532.tar.gz |
libgo: Update to current sources.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192704 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/print.c')
-rw-r--r-- | libgo/runtime/print.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libgo/runtime/print.c b/libgo/runtime/print.c index 5a8e47e5373..690bcaf0331 100644 --- a/libgo/runtime/print.c +++ b/libgo/runtime/print.c @@ -156,15 +156,16 @@ runtime_printfloat(double v) int32 e, s, i, n; float64 h; - if(runtime_isNaN(v)) { + if(ISNAN(v)) { gwrite("NaN", 3); return; } - if(runtime_isInf(v, 1)) { + i = __builtin_isinf_sign(v); + if(i > 0) { gwrite("+Inf", 4); return; } - if(runtime_isInf(v, -1)) { + if(i < 0) { gwrite("-Inf", 4); return; } @@ -290,8 +291,8 @@ runtime_printstring(String v) // extern uint32 runtime_maxstring; // if(v.len > runtime_maxstring) { - // gwrite("[invalid string]", 16); - // return; + // gwrite("[string too long]", 17); + // return; // } if(v.__length > 0) gwrite(v.__data, v.__length); |