~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/math/sin_386.s

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        FSTSW   AX           // AX=status word
10
10
        ANDW    $0x0400, AX
11
11
        JNE     3(PC)        // jump if x outside range
12
 
        FMOVDP  F0, r+8(FP)
 
12
        FMOVDP  F0, ret+8(FP)
13
13
        RET
14
14
        FLDPI                // F0=Pi, F1=x
15
15
        FADDD   F0, F0       // F0=2*Pi, F1=x
20
20
        JNE     -3(PC)       // jump if reduction incomplete
21
21
        FMOVDP  F0, F1       // F0=reduced_x
22
22
        FCOS                 // F0=cos(reduced_x)
23
 
        FMOVDP  F0, r+8(FP)
 
23
        FMOVDP  F0, ret+8(FP)
24
24
        RET
25
25
        
26
26
// func Sin(x float64) float64
30
30
        FSTSW   AX           // AX=status word
31
31
        ANDW    $0x0400, AX
32
32
        JNE     3(PC)        // jump if x outside range
33
 
        FMOVDP  F0, r+8(FP)
 
33
        FMOVDP  F0, ret+8(FP)
34
34
        RET
35
35
        FLDPI                // F0=Pi, F1=x
36
36
        FADDD   F0, F0       // F0=2*Pi, F1=x
41
41
        JNE     -3(PC)       // jump if reduction incomplete
42
42
        FMOVDP  F0, F1       // F0=reduced_x
43
43
        FSIN                 // F0=sin(reduced_x)
44
 
        FMOVDP  F0, r+8(FP)
 
44
        FMOVDP  F0, ret+8(FP)
45
45
        RET