blob: ac8e8ba5409520a1274bef266789b43240532caf [file] [log] [blame]
Charles L. Dorianc3fa32c2010-02-18 23:33:15 -08001// Copyright 2010 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Rob Pike8bca1482014-08-12 17:04:45 -07005#include "textflag.h"
Keith Randall1f796632013-08-12 10:25:18 -07006
Russ Cox85729502012-09-21 00:35:56 -04007// func Ldexp(frac float64, exp int) float64
Keith Randall1f796632013-08-12 10:25:18 -07008TEXT ·Ldexp(SB),NOSPLIT,$0
Russ Cox85729502012-09-21 00:35:56 -04009 FMOVL exp+8(FP), F0 // F0=exp
10 FMOVD frac+0(FP), F0 // F0=frac, F1=e
Charles L. Dorianc3fa32c2010-02-18 23:33:15 -080011 FSCALE // F0=x*2**e, F1=e
12 FMOVDP F0, F1 // F0=x*2**e
Russ Cox07720b62013-03-22 12:57:55 -040013 FMOVDP F0, ret+12(FP)
Charles L. Dorianc3fa32c2010-02-18 23:33:15 -080014 RET