⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modf.s

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 S
字号:
/*	@(#)modf.s	4.1	(ULTRIX)	7/3/90				      *//* ------------------------------------------------------------------ *//* | Copyright Unpublished, MIPS Computer Systems, Inc.  All Rights | *//* | Reserved.  This software contains proprietary and confidential | *//* | information of MIPS and its suppliers.  Use, disclosure or     | *//* | reproduction is prohibited without the prior express written   | *//* | consent of MIPS.                                               | *//* ------------------------------------------------------------------ *//* $Header: modf.s,v 1.1 87/02/16 11:17:33 dce Exp $ */#include <mips/regdef.h>/* * modf(value, iptr) returns the signed fractional part of value * and stores the integer part indirectly through iptr. *double modf(value, iptr)    double value;    double *iptr; */.sdata.align 3one:	.double 1.0#if MOXIEmaxint:	.double 36028797018963968.0	# 2**55#elsemaxint:	.double 4503599627370496.0	# 2**52#endif.text.globl modf.ent modfmodf:	.frame	sp, 0, ra#ifdef MOXIE	mfc1	t0, $f12	sll	t0, 16#else	mfc1	t0, $f13#endif	abs.d	$f0, $f12	l.d	$f6, maxint	c.lt.d	$f0, $f6	bc1f	modf2	add.d	$f2, $f0, $f6	sub.d	$f2, $f6	c.le.d	$f2, $f0	bc1t	modf0	l.d	$f6, one	sub.d	$f2, $f6modf0:	bge	t0, 0, modf1	neg.d	$f2modf1:	s.d	$f2, (a2)	sub.d	$f0, $f12, $f2	j	ramodf2:	s.d	$f12, (a2)	c.un.d	$f12, $f12		# if NaN return NaN	bc1f	1f	mov.d	$f0, $f12	j	ra1:	mtc1	$0, $f0	mtc1	$0, $f1	j	ra.end modf

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -