Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ike Naar Newsgroups: comp.lang.c,comp.lang.javascript Subject: Re: "i = i|0" Date: Wed, 11 Jun 2014 21:09:12 +0000 (UTC) Organization: A noiseless patient Spider Lines: 8 Message-ID: References: <44f393c9-8b85-4da8-8618-6b11dd3954b2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Wed, 11 Jun 2014 21:09:12 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="0be15772a183805a7eecac7d41b73a46"; logging-data="29136"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hgck7waBh0IFy494S0q5L" User-Agent: slrn/0.9.9p1 (NetBSD) Cancel-Lock: sha1:nA/+ZTK6WSpYe9WaQAk5zMx1wy4= Xref: csiph.com comp.lang.c:45814 comp.lang.javascript:24748 On 2014-06-11, Stefan Ram wrote: > When they then call the function with non-integer arguments > its their fault. (Or they can write a |0 wrapper instead > of requiring each and every function to do |0 and thereby > possibly slowing down execution and enlarging code size.) With a decent optimizing compiler, do you think that |0 would slow down execution or enlarge code size?