Monday, May 2, 2011

comp.lang.c - 4 new messages in 3 topics - digest

comp.lang.c
http://groups.google.com/group/comp.lang.c?hl=en

comp.lang.c@googlegroups.com

Today's topics:

* KISS4691, a potentially top-ranked RNG. - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c/t/232e89dd4cc3c154?hl=en
* warning message about "operation may be undefined" - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c/t/83fc1562bc80ae03?hl=en
* malloc - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c/t/8318873a727bc67d?hl=en

==============================================================================
TOPIC: KISS4691, a potentially top-ranked RNG.
http://groups.google.com/group/comp.lang.c/t/232e89dd4cc3c154?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, May 1 2011 7:50 pm
From: glen herrmannsfeldt


In comp.lang.fortran Ian Collins <ian-news@hotmail.com> wrote:

(snip, someone wrote)
>> Because, in C at least, it's not mandatory for a conforming
>> implementation to support any of the fixed-width types.

> But it's hardly rocket science to declare them for implementations that
> lack them.

With the assumption that the fixed-width is one implemented on
the host machine. Neither Fortran nor C require a machine to
support a 32 bit type. (Java does.)

-- glen


== 2 of 2 ==
Date: Sun, May 1 2011 9:21 pm
From: Thad Smith


On 5/1/2011 12:58 PM, Ian Collins wrote:
> On 05/ 2/11 03:31 AM, Thad Smith wrote:
>>
>> Here is a modification of the program with masking to produce correct results
>> with any conforming C implementation. It truncates where when required. A good
>> optimizer should eliminate the unneeded masking for 32-bit unsigned long.
>
> Why oh why can't people just use fixed width types? What's the obsession with
> unsigned long and masking?

In my case, I work with a lot of compilers not supporting C99. The code is thus
more portable to existing applications. Standard C doesn't guarantee the
existence of a 32-bit integer type.

--
Thad

==============================================================================
TOPIC: warning message about "operation may be undefined"
http://groups.google.com/group/comp.lang.c/t/83fc1562bc80ae03?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, May 1 2011 10:19 pm
From: Peter Nilsson


miloody <milo...@gmail.com> wrote:
>         idx0 = (++idx0)%2;
> ...
> test.c:12: warning: operation on "idx0" may be undefined
> ...
> why does the operation in line 12 get warning?

This is a FAQ: <http://c-faq.com/expr/ieqiplusplus.html>

--
Peter

==============================================================================
TOPIC: malloc
http://groups.google.com/group/comp.lang.c/t/8318873a727bc67d?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 2 2011 12:05 am
From: luser- -droog


BartC wrote:
> "luser- -droog" <mijoryx@yahoo.com> wrote in message
> news:baab1bba-f3f2-40da-a179-929e02556344@c41g2000yqm.googlegroups.com...
> > On May 1, 12:01 am, "Bill Cunningham" <nos...@nspam.invalid> wrote:
> >> I have this unfinished untested code that I would like to enquire
> > ^
> > You need a comma between |
> > two adjectives that modify |
> > the same noun. |
> > ,___________________________|
>
> Will a conjunction do?

I think so. (Linking up phrases and something and something and
something...)

I gave up trying to spot all the errors so I tried to find the first
one.

--
lothario draganeti


==============================================================================

You received this message because you are subscribed to the Google Groups "comp.lang.c"
group.

To post to this group, visit http://groups.google.com/group/comp.lang.c?hl=en

To unsubscribe from this group, send email to comp.lang.c+unsubscribe@googlegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.c/subscribe?hl=en

To report abuse, send email explaining the problem to abuse@googlegroups.com

==============================================================================
Google Groups: http://groups.google.com/?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate