anlongstar

Hexadecimal conversion

Discussion created by anlongstar on May 18, 2009
Latest reply on May 18, 2009 by MicahVillmow
Hexadecimal conversion

In atical/samples/languages/IL/float_instr_IL(Linux)/float_instr_IL.h, some code in the kernel like this:

// l0 = 0.2, 3.5, 4.4, 5.5
"dcl_literal l0, 0x3E4CCCCD, 0x40000000, 0x40600000, 0x408CCCCD         \n"
// l1 = 1.1,-2.2,3000.3,0.0001
"dcl_literal l1, 0x3F8CCCCD, 0xC00CCCCD, 0x453B84CD, 0x38D1B717         \n"
// l2 = 1.2, 3.5, 4.4, 5.5
"dcl_literal l2, 0x3F99999A, 0x40000000, 0x40600000, 0x408CCCCD         \n"

how to do the Hexadecimal conversion? like 5.5 to 0x408CCCCD?

Thank u!

Outcomes