I guess I'm too used to dealing with dumb compilers.

1. Does it work with the C89 restrictions turned on?

2. Does C89 support inline functions?

3. If not, will it handle the folowing correctly?
       #define rotateLeft(x,n) { unsigned int t; t = x >> (SIZEOFINT -
n); x = (x << n) | t; } /* bitwise rotate x by n bits left */

On Tue, Sep 6, 2011 at 5:47 PM, Dmitry Chestnykh
<[email protected]> wrote:
> FYI,
>
> $ gcc -O2 -S rotate.c
> $ cat rotate.s
> …
> _rotateLeft:
> Leh_func_begin1:
>        pushq   %rbp
> Ltmp0:
>        movq    %rsp, %rbp
> Ltmp1:
>        movb    %sil, %cl
>        movl    %edi, %eax
>        roll    %cl, %eax
>        popq    %rbp
>        ret
> Leh_func_end1:
> ..
>
> $ gcc --version
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
> (LLVM build 2335.15.00)
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to