Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #20376

Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name.

From Malcolm McLean <malcolm.mclean5@btinternet.com>
Newsgroups comp.lang.c
Subject Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name.
Date 2012-05-04 00:30 -0700
Organization http://groups.google.com
Message-ID <3328648.45.1336116639044.JavaMail.geo-discussion-forums@ynje14> (permalink)
References <3b194163-c8e2-4250-864a-d3f0a1324677@f5g2000vby.googlegroups.com> <858f1f2a-5c55-439b-b83d-3d4d6efcb150@f5g2000vby.googlegroups.com>

Show all headers | View raw


בתאריך יום שני, 23 באפריל 2012 21:28:21 UTC+1, מאת John Reye:
>
> Writing portable C-code that works across different word-sizes must be
> a real horror!
>
Mostly integers count things. That usually means things in memory.

Even a char integer, if you think about it, is ultimately going to be used as an index into a table of  glyphs. 

So basically you need an integer that can index the largest array you have in memory.

-- 
Basic Algorithms: now also available as an iBook
http://www.malcolmmclean.site11.com/www

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. John Reye <jononanon@googlemail.com> - 2012-04-23 12:38 -0700
  Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. Thomas Richter <thor@math.tu-berlin.de> - 2012-04-23 22:08 +0200
    Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. James Kuyper <jameskuyper@verizon.net> - 2012-04-23 16:45 -0400
  Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. John Reye <jononanon@googlemail.com> - 2012-04-23 13:28 -0700
    Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. James Kuyper <jameskuyper@verizon.net> - 2012-04-23 17:01 -0400
    Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-05-04 00:30 -0700
  Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. Ben Pfaff <blp@cs.stanford.edu> - 2012-04-23 13:36 -0700
  Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. James Kuyper <jameskuyper@verizon.net> - 2012-04-23 17:11 -0400
  Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. John Gordon <gordon@panix.com> - 2012-04-23 22:03 +0000
  Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. John Reye <jononanon@googlemail.com> - 2012-05-03 15:35 -0700
    Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. Jens Gustedt <jens.gustedt@loria.fr> - 2012-05-04 09:00 +0200
      Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. James Kuyper <jameskuyper@verizon.net> - 2012-05-04 07:54 -0400
  Re: Generates integer literal of the largest value a variable can hold. Macro takes only variable-name. Tim Rentsch <txr@alumni.caltech.edu> - 2012-05-07 21:40 -0700

csiph-web