Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1057419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:51:53+00:00 2026-05-16T17:51:53+00:00

I hope this has not been covered before, but if I compile a 32-bit

  • 0

I hope this has not been covered before, but if I compile a 32-bit program in C++ that uses 64-bit floating point numbers (double), and run it on a 64-bit OS, will it still take as many clock cycles to move the 64-bit float to the CPU and back to RAM as it would on a 32-bit OS because it’s compiled for 32-bit. Or would it take less clock cycles to because the OS moves in 64-bit at a time, even though the program is compiled in 32-bit compiler.

The reason I ask is because I’m using VS express which has 32-bit only, and I’m wondering if I can use 64-bit floats while maintaining speed or if 32-bit floats will be faster, even though I’m using a 64-bit OS, and trust me, the program that I want to write will use tens of thousand of floating-point numbers that will have many calculations and bitwise operations performed on them (looking into neural networks).

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:51:54+00:00Added an answer on May 16, 2026 at 5:51 pm

    The 32 vs 64 bits you’re hearing about is how many bits are in the address. It has little to do with how many bits are used to represent a double. In particular, 32-bit programs still represent a double in 64 bits, and modern processors have hardware that can process 64 bit floats natively (even if they can only process 32 bit integers natively).

    So to answer your question, no it shouldn’t matter. The speed of floating point operations should not depend on the 32 or 64 -bitness of either the OS or the compiler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This has been driving me nuts. I hope it's not been asked before but
I know this question has been asked here before, but I don't think those
I hope this question is not considered too basic for this forum, but we'll
I hope this isn't too off topic for this forum, but I have been
I hope someone can help... This issue has been discussed here and I have
I hope this question does not come off as broad as it may seem
I hope this question is not a RTFM one. I am trying to write
I hope you can help me with this. I've been using jquery datepicker in
This Jquery problem has been bugging me for a while now. I developed a
Update: I can't delete this question, because the answer has been upvoted, yet it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.