9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 8c (pcc)
@ 2005-01-21  7:18 cej
  2005-01-21  7:27 ` Russ Cox
  2005-01-23 20:35 ` Bruce Ellis
  0 siblings, 2 replies; 6+ messages in thread
From: cej @ 2005-01-21  7:18 UTC (permalink / raw)
  To: 9fans


//1:
  result = MIN(tuplerow1[col][plane1], tuplerow2[col][plane2]);
//2:
   x=tuplerow1[col][plane1];
   y=tuplerow2[col][plane2];
   result = MIN(x, y);
   if((int)tuplerow1[col][plane1] > (int)tuplerow2[col][plane2] ) 
    result =  (int)tuplerow1[col][plane1] - (int)tuplerow2[col][plane2];
   else
    result =  (int)tuplerow2[col][plane2] - (int)tuplerow1[col][plane1];
//1:
result =  (int)tuplerow1[col][plane1] > (int)tuplerow2[col][plane2] ? (int)tuplerow1[col][plane1] - (int)tuplerow2[col][plane2] : (int)tuplerow2[col][plane2] - (int)tuplerow1[col][plane1];

//2:
   if((int)tuplerow1[col][plane1] > (int)tuplerow2[col][plane2] ) 
    result =  (int)tuplerow1[col][plane1] - (int)tuplerow2[col][plane2];
   else
    result =  (int)tuplerow2[col][plane2] - (int)tuplerow1[col][plane1];

1's die with error message : <eof> out of fixed registers, while 2's are OK.
Could someone explain, why?
Thanks, regards,
++pac.

 

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [9fans] 8c(pcc)
@ 2005-02-07  7:13 tapique
  2005-02-08  4:55 ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: tapique @ 2005-02-07  7:13 UTC (permalink / raw)
  To: 9fans

pcc complains:
	sigsetjmp: DoPlot: not defined

i found the following in /sys/src/ape/lib/ap/plan9/signal.c
/* BAD CODE - see /sys/src/ape/lib/ap/$objtype/setjmp.s for real code

does it mean i need to recompile libap.a before i can use it? Or what am
i missing??

Thanks a lot,
++pac.




--------------------------
Posílejte SMS přes internet zdarma a bez reklamy. Pouze s TISCALI.
Více na http://www.tiscali.cz





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-08  4:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-21  7:18 [9fans] 8c (pcc) cej
2005-01-21  7:27 ` Russ Cox
2005-01-21 22:42   ` Bruce Ellis
2005-01-23 20:35 ` Bruce Ellis
2005-02-07  7:13 [9fans] 8c(pcc) tapique
2005-02-08  4:55 ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).