Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [SOLVED] Why long long int seems to be 32 bit longer?
Re: Why long long int seems to be 32 bit longer? [message #52148 is a reply to message #52145] Mon, 29 July 2019 10:17 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hi Luigi

Yes. I would declare n like this:
long long int setKthBit(unsigned long long n, int k) 
int getKthBit(unsigned long long n, int k)

In addition, maybe it should be used
1ULL << k

instead of
1 << k


Best regards
IƱaki

[Updated on: Mon, 29 July 2019 10:18]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with LanguageInfo
Next Topic: Implementation of Vector::Add()
Goto Forum:
  


Current Time: Thu Aug 21 09:00:36 CEST 2025

Total time taken to generate the page: 0.07307 seconds