Changeset 40 for trunk/lib


Ignore:
Timestamp:
Feb 10, 2008, 9:28:05 PM (12 years ago)
Author:
cameron
Message:

fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/altivec_simd.h

    r34 r40  
    11/*  Idealized SIMD Operations with Altivec, SSE and MMX versions
    2     Copyright (C) 2006, 2007, 2008, Robert D. Cameron
     2    Copyright (C) 2006, Robert D. Cameron
    33    Licensed to International Characters Inc.
    44       under the Academic Free License version 3.0.
    5 */
     5       October 30, 2006 */
    66
    77/*------------------------------------------------------------*/
     
    171171#define simd_himask_8 vec_splat_u8(-16)
    172172
    173 
    174 
    175173#define simd_const_8(n) \
    176174  ((n) >= -16 && (n) < 15 ? vec_splat_u8(n):\
    177    vec_or(vec_sl(vec_splat_u8((n)>>4), vec_splat_u8(4), vec_splat_u8((n)&15))))
     175   vec_or(vec_sl(vec_splat_u8(((n)>>4)&15), vec_splat_u8(4)), vec_splat_u8((n)&15)))
     176
    178177
    179178#define simd_const_16(n) \
Note: See TracChangeset for help on using the changeset viewer.