Re: Computer programmers' habits in electronics



Geoff wrote:
> On 20 Dec 2005 11:24:45 -0800, "PeteS" <ps@xxxxxxxxxxxxxxxxxxx> wrote:
>
> >I love the C construct 'where(x)' :)

>


--
> There's a 'where(x)' construct in C? How is it implemented?
> Where is this documented?
This was a custom compiler for parallel C. With parallel processors
(SIMD architecture) one could do this

where(x == active)
{
do_something;
}

which would run on the procs that x == active was true and run noops on
others.

Cheers

PeteS


>
> Surely you mean "while(x)", yes?
>
> Methinks you have been programming Fortran or LISP too much.

.