Re: VAX <--> IEEE FP
Mouse <[email protected]> Sun, 25 Jul 2021 12:04:50 -0400 (EDT)
| Newsgroups | gmane.os.netbsd.ports.alpha,gmane.os.netbsd.ports.vax |
|---|---|
| Message-ID | <[email protected]> |
> So my question for the DEC hive mind is: When we get a VAX FP software compl$ > A- Convert the in-register VAX format to IEEE. > B- Then use the IEEE soft float library to execute the operation. > C- Then convert the in-register IEEE format back to VAX. > ? I don't have enough details in my head to be certain, but it seems to me that, for each conversion step (A and C, above), you have to either lose some range or lose some precision, depending on how many exponent vs mantissa bits the formats have. VAX FP is specified to have fairly tight error bounds, error bounds I'm not sure you can preserve through the above process. It probably will be good enough for almost all purposes; most code doesn't care about an error bound changing from, say, .5 ULP to 2 ULP (correspnoding to two bits lost/gained. Other code may care about the range being reduced by a factor of (say) 4. Seriously careful numeric code is likely to care about both. Only you can decide whether that's reason enough to bother fully simulating VAX FP. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML [email protected] / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B