|
|
1.1 root 1: /* modf.s 4.1 83/06/27 */
2:
3: /*
4: * double modf (value, iptr)
5: * double value, *iptr;
6: *
7: * Modf returns the fractional part of "value",
8: * and stores the integer part indirectly through "iptr".
9: */
10:
11: #include "DEFS.h"
12:
13: ENTRY(modf)
14: emodd 4(ap),$0,$0f1.0,r2,r0
15: jvs 1f # integer overflow
16: cvtld r2,*12(ap)
17: ret
18: 1:
19: subd3 r0,4(ap),*12(ap)
20: ret
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.