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