[LinuxBIOS] Another dumb C question

Joseph Smith joe at smittys.pointclark.net
Thu Jul 12 11:00:23 CEST 2007


Hello,
I have another newbie C question.
Is this the same as 2^9 ??

value = 9

(2 << (value - 1))

This will give me 512, but will it work no matter what "value" is?
Or does linuxbios already have a "to the power of" global function?

Thanks - Joe




More information about the coreboot mailing list