Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted
##

chauvjo

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-07-2016
08:49 AM

1 View

Integer Size

4 Replies

Highlighted
##

Steven_L_Intel1

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-07-2016
09:02 AM

1 View

No, assuming that the integer

No, assuming that the integer size's range is sufficient. For example, if you are using a variable to keep track of indexes or sizes of an object whose size can exceed 2GB, then you'll want it to be the larger size (like C's size_t).

Retired 12/31/2016

Highlighted
##

chauvjo

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-07-2016
09:11 AM

1 View

Thanks Steve. Just to be

Thanks Steve. Just to be sure I understand. There is no performance penalty in using an integer size small than INTEGER*4.

Do most people bother to tailor the size of their integer variables?

Highlighted
##

chauvjo

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-07-2016
09:20 AM

1 View

Thanks Steve. Just to be

Thanks Steve. Just to be sure I understand. There is no performance penalty in using an integer size small than INTEGER*4.

Do most people bother to tailor the size of their integer variables?

Highlighted
##

Steven_L_Intel1

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-07-2016
09:28 AM

1 View

Smaller than INTEGER(4)? No,

Smaller than INTEGER(4)? No, don't do that - there is a performance penalty. I thought you were asking about using INTEGER(8) on a 64-bit platform. Use INTEGER(4) unless you require a different size.

Retired 12/31/2016