e_remainder.S (176227) | e_remainder.S (217108) |
---|---|
1/* 2 * Copyright (c) 1993,94 Winning Strategies, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31/* 32 * Based on the i387 version written by: 33 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 34 */ 35 36#include <machine/asm.h> 37 38RCSID("from: FreeBSD: src/lib/msun/i387/e_remainder.S,v 1.8 2005/02/04 14:08:32 das Exp") | 1/* 2 * Copyright (c) 1993,94 Winning Strategies, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31/* 32 * Based on the i387 version written by: 33 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 34 */ 35 36#include <machine/asm.h> 37 38RCSID("from: FreeBSD: src/lib/msun/i387/e_remainder.S,v 1.8 2005/02/04 14:08:32 das Exp") |
39__FBSDID("$FreeBSD: head/lib/msun/amd64/e_remainder.S 176227 2008-02-13 06:01:48Z bde $") | 39__FBSDID("$FreeBSD: head/lib/msun/amd64/e_remainder.S 217108 2011-01-07 16:13:12Z kib $") |
40 41ENTRY(remainder) 42 movsd %xmm0,-8(%rsp) 43 movsd %xmm1,-16(%rsp) 44 fldl -16(%rsp) 45 fldl -8(%rsp) 461: fprem1 47 fstsw %ax 48 testw $0x400,%ax 49 jne 1b 50 fstpl -8(%rsp) 51 movsd -8(%rsp),%xmm0 52 fstp %st 53 ret | 40 41ENTRY(remainder) 42 movsd %xmm0,-8(%rsp) 43 movsd %xmm1,-16(%rsp) 44 fldl -16(%rsp) 45 fldl -8(%rsp) 461: fprem1 47 fstsw %ax 48 testw $0x400,%ax 49 jne 1b 50 fstpl -8(%rsp) 51 movsd -8(%rsp),%xmm0 52 fstp %st 53 ret |
54 55 .section .note.GNU-stack,"",%progbits |
|