Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8)

Delta Between Two Patch Sets: src/pkg/math/frexp_386.s

Issue 160200044: [dev.power64] code review 160200044: build: merge default into dev.power64 (Closed)
Left Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 months ago
Right Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/math/floor_arm.s ('k') | src/pkg/math/frexp_amd64.s » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "../../cmd/ld/textflag.h" 5 #include "textflag.h"
6 6
7 // func Frexp(f float64) (frac float64, exp int) 7 // func Frexp(f float64) (frac float64, exp int)
8 TEXT ·Frexp(SB),NOSPLIT,$0 8 TEXT ·Frexp(SB),NOSPLIT,$0
9 FMOVD f+0(FP), F0 // F0=f 9 FMOVD f+0(FP), F0 // F0=f
10 FXAM 10 FXAM
11 FSTSW AX 11 FSTSW AX
12 SAHF 12 SAHF
13 JNP nan_zero_inf 13 JNP nan_zero_inf
14 JCS nan_zero_inf 14 JCS nan_zero_inf
15 FXTRACT // F0=f (0<=f<1), F1=e 15 FXTRACT // F0=f (0<=f<1), F1=e
16 FMULD $(0.5), F0 // F0=f (0.5<=f<1), F1=e 16 FMULD $(0.5), F0 // F0=f (0.5<=f<1), F1=e
17 FMOVDP F0, frac+8(FP) // F0=e 17 FMOVDP F0, frac+8(FP) // F0=e
18 FLD1 // F0=1, F1=e 18 FLD1 // F0=1, F1=e
19 FADDDP F0, F1 // F0=e+1 19 FADDDP F0, F1 // F0=e+1
20 FMOVLP F0, exp+16(FP) // (int=int32) 20 FMOVLP F0, exp+16(FP) // (int=int32)
21 RET 21 RET
22 nan_zero_inf: 22 nan_zero_inf:
23 FMOVDP F0, frac+8(FP) // F0=e 23 FMOVDP F0, frac+8(FP) // F0=e
24 MOVL $0, exp+16(FP) // exp=0 24 MOVL $0, exp+16(FP) // exp=0
25 RET 25 RET
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b