gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: PATCH: Add x86 integer intrinsics

Subject: Re: PATCH: Add x86 integer intrinsics
From: Paul Brook
Date: Wed, 10 Jun 2009 16:43:52 +0100
> Well, it isn't the case. At -O2, I got
>
> #include <x86intrin.h>
>
> int
> rol(int x, int y)
> {
>  return (x << y) | (x >> (32 - y));
>  }

Your code is bogus. Use unsigned int.

Paul

<Prev in Thread] Current Thread [Next in Thread>