Xref: utzoo comp.lang.c:20008 comp.unix.cray:14 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!ucbvax!agate!apple!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c,comp.unix.cray Subject: Re: Vectorizing C compilers Message-ID: <10548@smoke.BRL.MIL> Date: 19 Jul 89 05:45:28 GMT References: <15388@ut-emx.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <15388@ut-emx.UUCP> eric@chaos.utexas.edu () writes: >but never a C compiler that can vectorize something like > for(j = 0; j < n; j++) > y[j] = sqrt(x[j]); I would be surprised to find that the ANSI-compatible C compiler for the Cray-2 fails to vectorize such a loop. It vectorizes in analogous cases.