From: Erik Faye-Lund <kusmabite@googlemail.com>
To: Ludvig Strigeus <ludde@spotify.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Use faster byte swapping when compiling with MSVC
Date: Tue, 20 Oct 2009 14:44:10 +0200 [thread overview]
Message-ID: <40aa078e0910200544i3d8aadc1ud62cf62a6964dd5@mail.gmail.com> (raw)
In-Reply-To: <loom.20091020T141138-782@post.gmane.org>
On Tue, Oct 20, 2009 at 2:20 PM, Ludvig Strigeus <ludde@spotify.com> wrote:
> unsigned long (as used by _byteswap_ulong) is 64 bits on x64, right? Then it
> doesn't make sense to use _byteswap_ulong to swap 32-bit quantities (assuming
> that's what bswap32 does) would it?
No, unsigned long is 32bit on x64 on Windows.
--->8---
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
printf("sizeof(void *) = %d\n", sizeof(void *));
printf("sizeof(unsigned long) = %d\n", sizeof(unsigned long));
return 0;
}
--->8---
sizeof(void *) = 8
sizeof(unsigned long) = 4
--
Erik "kusma" Faye-Lund
prev parent reply other threads:[~2009-10-20 12:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-19 16:37 [PATCH] Use faster byte swapping when compiling with MSVC Sebastian Schuberth
2009-10-20 7:04 ` Junio C Hamano
2009-10-20 8:56 ` Sebastian Schuberth
2009-10-20 9:53 ` Johannes Schindelin
2009-10-20 16:55 ` Junio C Hamano
2009-10-20 12:20 ` Ludvig Strigeus
2009-10-20 12:44 ` Erik Faye-Lund [this message]
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=40aa078e0910200544i3d8aadc1ud62cf62a6964dd5@mail.gmail.com \
--to=kusmabite@googlemail.com \
--cc=git@vger.kernel.org \
--cc=kusmabite@gmail.com \
--cc=ludde@spotify.com \
/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).