- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: large integer in C
Operating System - Linux
1748265
Members
4095
Online
108760
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2007 11:19 AM
тАО02-12-2007 11:19 AM
Re: large integer in C
>Laurent: It will work better because the calculation is made in int until we * by a LL
It may work better for variables but for constants that are evaluated at compile time, it may not make a difference. I.e. all internal calculations may be done in long double then truncated.
It may work better for variables but for constants that are evaluated at compile time, it may not make a difference. I.e. all internal calculations may be done in long double then truncated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2007 08:17 PM
тАО02-12-2007 08:17 PM
Re: large integer in C
on on hpux compiler when you define a constant as 4096 it is an int,
so if you multiply int*int*int it gives an int
and you get an overflow warning at compilation.
so if you multiply int*int*int it gives an int
and you get an overflow warning at compilation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2007 08:25 PM
тАО02-12-2007 08:25 PM
Re: large integer in C
>Laurent: on on hpux compiler when you define a constant as 4096 it is an int,
If this was in regards to my comment, you misunderstood. I meant that you won't always benefit by using LL on the third constant, instead of the first.
If this was in regards to my comment, you misunderstood. I meant that you won't always benefit by using LL on the third constant, instead of the first.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP