9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@9fans.net
Subject: Re: [9fans] What's so special about seek() ?
Date: Mon, 20 Oct 2008 22:11:22 +0100	[thread overview]
Message-ID: <244fbb7370d6d3e7069c3e06c1116877@terzarima.net> (raw)
In-Reply-To: <20081020072645.GJ4216@masters10.cs.jhu.edu>

>Forgive my ignorance, but I don't see how the code in question relates to
>returning a 64-bit value?
				MOVL a+0(FP),CX
				MOVL AX,0(CX)
				MOVL AX,4(CX)

that's how a 64-bit value is returned on 32-bit machines:
similar to returning a structure, the caller passes a
hidden first argument referring to the 64-bit return location.
in this case, since -1 is already in AX, storing that in both 32-bit
parts of the 64-bit value produces -1LL



  parent reply	other threads:[~2008-10-20 21:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-20  7:26 Nathaniel W Filardo
2008-10-20  8:19 ` C H Forsyth
2008-10-20 20:30   ` Nathaniel W Filardo
2008-10-20 20:50     ` Steve Simon
2008-10-20 21:11 ` Charles Forsyth [this message]
2008-10-20 21:03   ` Nathaniel W Filardo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=244fbb7370d6d3e7069c3e06c1116877@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).