Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!ncoast!catfood From: catfood@NCoast.ORG (Mark W. Schumann) Newsgroups: comp.lang.c Subject: Re: # to the nth power Message-ID: <1990Nov3.204327.19057@NCoast.ORG> Date: 3 Nov 90 20:43:27 GMT References: <522@ssp9.idca.tds.philips.nl> <1990Nov2.182217.13958@NCoast.ORG> Organization: North Coast Public Access *NIX, Cleveland, OH Lines: 21 In article enag@ifi.uio.no (Erik Naggum) writes: >In article <1990Nov2.182217.13958@NCoast.ORG> catfood@NCoast.ORG (Mark W. Schumann) writes: > > Spiffy, but it does depend on (exponent & 1) being the same as saying > "exponent is odd." Most implementations support this, though. > Again, neither solution supports negative exponents. > >Which are the implementations that doesn't? There may be none. You are simply not allowed to assume *anything* about the internal representation of integers if your programs are to be 100% portable ANSI. I realize this is an extremely conservative application of the principle, but "all the machines we know about" is not the same as "all the machines that could ever possibly be." -- ============================================================ Mark W. Schumann 3111 Mapledale Avenue, Cleveland 44109 USA Domain: catfood@ncoast.org UUCP: ...!mailrus!usenet.ins.cwru.edu!ncoast!catfood ============================================================