asm_book/section_1/float/test.cpp
Perry Kivolowitz 0a4faac56a more code
2022-07-21 11:12:41 -05:00

21 lines
310 B
C++

#include <cinttypes>
extern "C" uint32_t T1(double d) {
return uint32_t(d);
}
extern "C" uint32_t T2(float f) {
return uint32_t(f);
}
extern "C" int32_t T3(double d) {
return int32_t(d);
}
extern "C" int32_t T4(float f) {
return int32_t(f);
}
extern "C" uint64_t T5(double d) {
return uint64_t(d);
}