Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!mentor.cc.purdue.edu!l.cc.purdue.edu!cik From: cik@l.cc.purdue.edu (Herman Rubin) Newsgroups: comp.lang.c Subject: Re: Type punning in C Summary: Integer <-> floating point Message-ID: <1656@l.cc.purdue.edu> Date: 13 Oct 89 12:57:21 GMT References: <475@idacrd.UUCP> <10950@riks.csl.sony.co.jp> Organization: Purdue University Statistics Department Lines: 20 In article <10950@riks.csl.sony.co.jp>, diamond@csl.sony.co.jp (Norman Diamond) writes: ............................ > On the other hand, how many hardware architectures have instructions > to transfer directly between integer registers and floating registers? > Usually you have to store it to RAM and load it back anyway. ............................ Most of the machines I am familiar with either have registers which can be used for integer or floating point arguments. Some of them have an index type (shorter integer) but those can convert between short integer and long.. These machines include VAX, PYRAMID, CDC 6x00 and descendents, CRAY, CYBER 205 and ETA 10, and even vector mode on the IBM 3090. -- Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907 Phone: (317)494-6054 hrubin@l.cc.purdue.edu (Internet, bitnet, UUCP)