<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>I think you wrote the most recent version of that code. Can you take a look?</div></span></span></span></span></span></span></span></span></div></span> </div><br><div><div>On 26 Feb 2009, at 04:30, Jay wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Hm, scan_float is probably wrong, when crossing that changes endianness.<br>PA is big endian.<br>Crossing from little endian Cygwin, in TimePosix.ms I have:<br> <br>L$C0003:<br> .word 0<br> .word 1093567616<br><br>TimePosix__FromUtime<br> .PROC<br> .CALLINFO FRAME=64,NO_CALLS,SAVE_SP,ENTRY_GR=3<br> .ENTRY<br> copy %r3,%r1<br> copy %r30,%r3<br> stwm %r1,64(%r30)<br> stw %r3,-4(%r30)<br> stw %r19,-32(%r30)<br> stw %r26,-36(%r3)<br>L$M0009:<br> ldw -36(%r3),%r28<br> fldws 0(%r28),%fr22L<br> fcnvxf,sgl,dbl %fr22L,%fr24<br> ldw -36(%r3),%r28<br> ldo 4(%r28),%r28<br> fldws 0(%r28),%fr22L<br> fcnvxf,sgl,dbl %fr22L,%fr23<br> addil LT'L$C0003,%r19<br> ldw RT'L$C0003(%r1),%r28<br> fldds 0(%r28),%fr22<br> fdiv,dbl %fr23,%fr22,%fr22<br> fadd,dbl %fr24,%fr22,%fr22<br><br> <br>and Utime_M3 hangs.<br> <br> <br>Yet it I write the equivalent C code on the target system I get:<br> <br> <br>L$C0000:<br> .word 1093567616<br> .word 0<br> .SPACE $TEXT$<br> .NSUBSPA $CODE$<br> .align 4<br> .EXPORT FromUtime,ENTRY,PRIV_LEV=3,ARGW0=GR,RTNVAL=FU<br>FromUtime:<br> .PROC<br> .CALLINFO FRAME=0,NO_CALLS<br> .ENTRY<br> fldws 4(%r26),%fr22L<br> fcnvxf,sgl,dbl %fr22L,%fr4<br> ldil LR'L$C0000,%r28<br> fldws 0(%r26),%fr23L<br> ldo RR'L$C0000(%r28),%r28<br> fldds 0(%r28),%fr22<br> fdiv,dbl %fr4,%fr22,%fr4<br> fcnvxf,sgl,dbl %fr23L,%fr24<br> bv %r0(%r2)<br> fadd,dbl %fr24,%fr4,%fr4<br> <br> <br>I'll dig into it more later..<br> <br> <br> - Jay<br></div></span></blockquote></div><br></body></html>