void line_nabs(x1_out, y1_out, x2_out, y2_out) float x1_out, y1_out, x2_out,
    y2_out;
{
  int xp1, yp1, xp2, yp2;
  scale_to_screen(x1_out, y1_out, &xp1, &yp1);
  scale_to_screen(x2_out, y2_out, &xp2, &yp2);
  line(xp1, yp1, xp2, yp2);
}


x86 assembly (clang, -O0):
<line_nabs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm2,-0x30(%rbp)
movaps %xmm1,%xmm2
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x28(%rbp),%xmm0
cvtsd2ss %xmm3,%xmm3
cvtsd2ss %xmm2,%xmm2
cvtsd2ss %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm0
movss  %xmm3,-0x4(%rbp)
movss  %xmm2,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  %xmm0,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x2,%al
call   1030 <scale_to_screen@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    -0x1c(%rbp),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x2,%al
call   1030 <scale_to_screen@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    $0x0,%al
call   1040 <line@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<line_nabs>:
sub    $0x18,%rsp
cvtsd2ss %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm1
cvtsd2ss %xmm2,%xmm2
movss  %xmm2,0x4(%rsp)
xorps  %xmm2,%xmm2
cvtsd2ss %xmm3,%xmm2
movss  %xmm2,(%rsp)
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    $0x2,%al
call   1030 <scale_to_screen@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    $0x2,%al
call   1030 <scale_to_screen@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
mov    0x8(%rsp),%ecx
xor    %eax,%eax
call   1040 <line@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @line_nabs(double %0, double %1, double %2, double %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = fptrunc double %0 to float
%14 = fptrunc double %1 to float
%15 = fptrunc double %2 to float
%16 = fptrunc double %3 to float
store float %13, float* %5
store float %14, float* %6
store float %15, float* %7
store float %16, float* %8
%17 = load float, float* %5
%18 = fpext float %17 to double
%19 = load float, float* %6
%20 = fpext float %19 to double
%21 = call i32 (double, double, i32*, i32*, ...) bitcast (i32 (...)* @scale_to_screen to i32 (double, double, i32*, i32*, ...)*)(double %18, double %20, i32* %9, i32* %10)
%22 = load float, float* %7
%23 = fpext float %22 to double
%24 = load float, float* %8
%25 = fpext float %24 to double
%26 = call i32 (double, double, i32*, i32*, ...) bitcast (i32 (...)* @scale_to_screen to i32 (double, double, i32*, i32*, ...)*)(double %23, double %25, i32* %11, i32* %12)
%27 = load i32, i32* %9
%28 = load i32, i32* %10
%29 = load i32, i32* %11
%30 = load i32, i32* %12
%31 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @line to i32 (i32, i32, i32, i32, ...)*)(i32 %27, i32 %28, i32 %29, i32 %30)
ret void
}

LLVM IR (-O2):
define void @line_nabs(double %0, double %1, double %2, double %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = fptrunc double %0 to float
%10 = fptrunc double %1 to float
%11 = fptrunc double %2 to float
%12 = fptrunc double %3 to float
%13 = bitcast i32* %5 to i8*
%14 = bitcast i32* %6 to i8*
%15 = bitcast i32* %7 to i8*
%16 = bitcast i32* %8 to i8*
%17 = fpext float %9 to double
%18 = fpext float %10 to double
%19 = call i32 (double, double, i32*, i32*, ...) bitcast (i32 (...)* @scale_to_screen to i32 (double, double, i32*, i32*, ...)*)(double %17, double %18, i32* %5, i32* %6)
%20 = fpext float %11 to double
%21 = fpext float %12 to double
%22 = call i32 (double, double, i32*, i32*, ...) bitcast (i32 (...)* @scale_to_screen to i32 (double, double, i32*, i32*, ...)*)(double %20, double %21, i32* %7, i32* %8)
%23 = load i32, i32* %5
%24 = load i32, i32* %6
%25 = load i32, i32* %7
%26 = load i32, i32* %8
%27 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @line to i32 (i32, i32, i32, i32, ...)*)(i32 %23, i32 %24, i32 %25, i32 %26)
ret void
}