[LLVMdev] Truncate float to int?

Mark Leone markleone at gmail.com
Tue Jun 3 11:32:43 PDT 2008


Newbie question here:  what's the best way to truncate a float to a
signed int?  The fptosi instruction rounds, and the fptrunc
instruction simply truncates from a large float type to a smaller
float type.

Mark



More information about the llvm-dev mailing list