comparison gen/runtime.cpp @ 741:4ac97ec7c18e

Applied easy part from wilsonk's x86-64 patch in #107
author Christian Kamm <kamm incasoftware de>
date Thu, 30 Oct 2008 11:08:34 +0100
parents 635f91212b78
children 661384d6a936
comparison
equal deleted inserted replaced
740:96484f5bf5af 741:4ac97ec7c18e
145 const LLType* sizeTy = DtoSize_t(); 145 const LLType* sizeTy = DtoSize_t();
146 146
147 const LLType* floatTy = LLType::FloatTy; 147 const LLType* floatTy = LLType::FloatTy;
148 const LLType* doubleTy = LLType::DoubleTy; 148 const LLType* doubleTy = LLType::DoubleTy;
149 const LLType* realTy; 149 const LLType* realTy;
150 if (global.params.cpu == ARCHx86) 150 if ((global.params.cpu == ARCHx86) || (global.params.cpu == ARCHx86_64))
151 realTy = LLType::X86_FP80Ty; 151 realTy = LLType::X86_FP80Ty;
152 else 152 else
153 realTy = LLType::DoubleTy; 153 realTy = LLType::DoubleTy;
154 154
155 const LLType* cfloatTy = llvm::StructType::get(floatTy, floatTy, 0); 155 const LLType* cfloatTy = llvm::StructType::get(floatTy, floatTy, 0);