HP3000-L Archives

September 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Tue, 26 Sep 2000 19:58:01 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
Re:
> inet_addr() may be the function you're looking for. It's usually called from C
...
> ipaddr := '192.255.255.255';

Be sure to null/blank terminate the ipaddr you pass to inet_addr...
it seems to loop on the fourth part, until it finds a non digit.

Also, HP, I looked at inet_addr, and was a bit surprised:

   1) the multiply by 10 ought to be inline.
      A failure of the optimizer?  (*10 can be done here in
      two instructions (SH1ADD     r, 0, r;
                        SH2ADD     r, r, t)

   2) is_digit ought to be inline...not an external procedure.


Stan Sieler                                           [log in to unmask]
www.allegro.com/sieler/wanted/index.html          www.allegro.com/sieler

ATOM RSS1 RSS2