summaryrefslogtreecommitdiff
path: root/lib/libm/arch/amd64/s_llrint.S
blob: 4c974b8c79e8ce56c10a2fdb58da2e3784a4fecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$OpenBSD: s_llrint.S,v 1.3 2018/07/03 22:43:34 mortimer Exp $	*/

/*
 * Written by Martynas Venckus.  Public domain
 */

#include <machine/asm.h>

ENTRY(llrint)
	RETGUARD_SETUP(llrint, r11)
	cvtsd2si %xmm0, %rax
	RETGUARD_CHECK(llrint, r11)
	ret
END(llrint)