printer: shorten text size when argsize is zero

This commit is contained in:
Michael McLoughlin
2018-12-27 13:48:31 -08:00
parent 9243d299e6
commit 5dea46407c
12 changed files with 158 additions and 35 deletions

View File

@@ -3,19 +3,19 @@
#include "textflag.h"
// func Real(x complex128) float64
TEXT ·Real(SB),0,$0-24
TEXT ·Real(SB), 0, $0-24
MOVSD x_real(FP), X0
MOVSD X0, ret+16(FP)
RET
// func Imag(x complex128) float64
TEXT ·Imag(SB),0,$0-24
TEXT ·Imag(SB), 0, $0-24
MOVSD x_imag+8(FP), X0
MOVSD X0, ret+16(FP)
RET
// func Norm(x complex128) float64
TEXT ·Norm(SB),0,$0-24
TEXT ·Norm(SB), 0, $0-24
MOVSD x_real(FP), X0
MOVSD x_imag+8(FP), X1
MULSD X0, X0