diff mbox

[02/14] target-sparc: Fix mixup of uint64 and uint64_t

Message ID 1326674823-13069-3-git-send-email-afaerber@suse.de
State New
Headers show

Commit Message

Andreas Färber Jan. 16, 2012, 12:46 a.m. UTC
Commit 793a137a41ad4125011c7022cf16a1baa40a5ab6 (target-sparc:
Implement BMASK/BSHUFFLE.) introduced a stray usage of softfloat uint64
type.

Use uint64_t instead.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Blue Swirl <blauwirbel@gmail.com>
---
 target-sparc/vis_helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Blue Swirl Jan. 21, 2012, 6:51 p.m. UTC | #1
On Mon, Jan 16, 2012 at 00:46, Andreas Färber <afaerber@suse.de> wrote:
> Commit 793a137a41ad4125011c7022cf16a1baa40a5ab6 (target-sparc:
> Implement BMASK/BSHUFFLE.) introduced a stray usage of softfloat uint64
> type.
>
> Use uint64_t instead.
>
> Signed-off-by: Andreas Färber <afaerber@suse.de>
> Cc: Richard Henderson <rth@twiddle.net>
> Cc: Blue Swirl <blauwirbel@gmail.com>

Good catch,
Reviewed-by: Blue Swirl <blauwirbel@gmail.com>

> ---
>  target-sparc/vis_helper.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/target-sparc/vis_helper.c b/target-sparc/vis_helper.c
> index a992c29..9d2edb0 100644
> --- a/target-sparc/vis_helper.c
> +++ b/target-sparc/vis_helper.c
> @@ -459,7 +459,7 @@ uint32_t helper_fpackfix(uint64_t gsr, uint64_t rs2)
>     return ret;
>  }
>
> -uint64 helper_bshuffle(uint64_t gsr, uint64_t src1, uint64_t src2)
> +uint64_t helper_bshuffle(uint64_t gsr, uint64_t src1, uint64_t src2)
>  {
>     union {
>         uint64_t ll[2];
> --
> 1.7.7
>
Andreas Färber Jan. 22, 2012, 2:03 a.m. UTC | #2
Am 21.01.2012 19:51, schrieb Blue Swirl:
> On Mon, Jan 16, 2012 at 00:46, Andreas Färber <afaerber@suse.de> wrote:
>> Commit 793a137a41ad4125011c7022cf16a1baa40a5ab6 (target-sparc:
>> Implement BMASK/BSHUFFLE.) introduced a stray usage of softfloat uint64
>> type.
>>
>> Use uint64_t instead.
>>
>> Signed-off-by: Andreas Färber <afaerber@suse.de>
>> Cc: Richard Henderson <rth@twiddle.net>
>> Cc: Blue Swirl <blauwirbel@gmail.com>
> 
> Good catch,
> Reviewed-by: Blue Swirl <blauwirbel@gmail.com>

Feel free to apply this patch if Richard doesn't comment. The rest of
the series needs some more review and benchmarking.

Is there maybe a way to poison these types outside fpu/ meanwhile?

Andreas
Blue Swirl Jan. 22, 2012, 8:09 a.m. UTC | #3
On Sun, Jan 22, 2012 at 02:03, Andreas Färber <afaerber@suse.de> wrote:
> Am 21.01.2012 19:51, schrieb Blue Swirl:
>> On Mon, Jan 16, 2012 at 00:46, Andreas Färber <afaerber@suse.de> wrote:
>>> Commit 793a137a41ad4125011c7022cf16a1baa40a5ab6 (target-sparc:
>>> Implement BMASK/BSHUFFLE.) introduced a stray usage of softfloat uint64
>>> type.
>>>
>>> Use uint64_t instead.
>>>
>>> Signed-off-by: Andreas Färber <afaerber@suse.de>
>>> Cc: Richard Henderson <rth@twiddle.net>
>>> Cc: Blue Swirl <blauwirbel@gmail.com>
>>
>> Good catch,
>> Reviewed-by: Blue Swirl <blauwirbel@gmail.com>
>
> Feel free to apply this patch if Richard doesn't comment. The rest of
> the series needs some more review and benchmarking.
>
> Is there maybe a way to poison these types outside fpu/ meanwhile?

Maybe there could be, but wasn't one part of the problem that OSX uses
the same type names?
Blue Swirl Jan. 22, 2012, 10:02 a.m. UTC | #4
On Mon, Jan 16, 2012 at 00:46, Andreas Färber <afaerber@suse.de> wrote:
> Commit 793a137a41ad4125011c7022cf16a1baa40a5ab6 (target-sparc:
> Implement BMASK/BSHUFFLE.) introduced a stray usage of softfloat uint64
> type.
>
> Use uint64_t instead.
>
> Signed-off-by: Andreas Färber <afaerber@suse.de>
> Cc: Richard Henderson <rth@twiddle.net>
> Cc: Blue Swirl <blauwirbel@gmail.com>

Thanks, applied.

> ---
>  target-sparc/vis_helper.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/target-sparc/vis_helper.c b/target-sparc/vis_helper.c
> index a992c29..9d2edb0 100644
> --- a/target-sparc/vis_helper.c
> +++ b/target-sparc/vis_helper.c
> @@ -459,7 +459,7 @@ uint32_t helper_fpackfix(uint64_t gsr, uint64_t rs2)
>     return ret;
>  }
>
> -uint64 helper_bshuffle(uint64_t gsr, uint64_t src1, uint64_t src2)
> +uint64_t helper_bshuffle(uint64_t gsr, uint64_t src1, uint64_t src2)
>  {
>     union {
>         uint64_t ll[2];
> --
> 1.7.7
>
diff mbox

Patch

diff --git a/target-sparc/vis_helper.c b/target-sparc/vis_helper.c
index a992c29..9d2edb0 100644
--- a/target-sparc/vis_helper.c
+++ b/target-sparc/vis_helper.c
@@ -459,7 +459,7 @@  uint32_t helper_fpackfix(uint64_t gsr, uint64_t rs2)
     return ret;
 }
 
-uint64 helper_bshuffle(uint64_t gsr, uint64_t src1, uint64_t src2)
+uint64_t helper_bshuffle(uint64_t gsr, uint64_t src1, uint64_t src2)
 {
     union {
         uint64_t ll[2];