~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
 
5
 
// func Ldexp(f float64, e int) float64
 
5
// func Ldexp(frac float64, exp int) float64
6
6
TEXT ·Ldexp(SB),7,$0
7
 
        FMOVL   e+8(FP), F0   // F0=e
8
 
        FMOVD   x+0(FP), F0   // F0=x, F1=e
 
7
        FMOVL   exp+8(FP), F0   // F0=exp
 
8
        FMOVD   frac+0(FP), F0   // F0=frac, F1=e
9
9
        FSCALE                // F0=x*2**e, F1=e
10
10
        FMOVDP  F0, F1        // F0=x*2**e
11
 
        FMOVDP  F0, r+12(FP)
 
11
        FMOVDP  F0, ret+12(FP)
12
12
        RET