My company's experience is that "likely" is not available on 
the GCC compiler that we have for Solaris sparc.
So, somewhere in our headers we have something like...

#ifndef likely

#define likely(x)  (x)

#endif


wr

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Christian
Kaiser
Sent: Wednesday, September 24, 2008 7:55 AM
To: opensolaris-code@opensolaris.org
Subject: [osol-code] compiler instruction likely

Hi all,

I am currently porting a driver from Linux to Solaris. The driver code
makes use of the likely macro that is defined on Linux to tell the
compiler that the code inside the likely call is the most likely code
path to optimize it.

Does someone know if it is available on Solaris as well and where I can
find some information/documentation on this.

Regards,
Christian

--
Christian Kaiser, Software Engineer, Dolphin Interconnect Solutions
http//www.dolphinics.com _______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to