Changes between Version 18 and Version 19 of SIMD


Ignore:
Timestamp:
Nov 11, 2011 5:52:11 PM (2 years ago)
Author:
duncan
Comment:

list all vec size constants

Legend:

Unmodified
Added
Removed
Modified
  • SIMD

    v18 v19  
    256256and there are some top level constants describing the vector size so as to enable their portable use 
    257257{{{ 
    258 intVecSize :: Int 
    259 wordVecSize :: Int 
    260 floatVecSize :: Int 
    261 doubleVecSize :: Int 
    262 }}} 
     258intVecSize, int8VecSize, int16VecSize, int32VecSize, int64VecSize :: Int 
     259wordVecSize, word8VecSize, word16VecSize, word32VecSize, word64VecSize :: Int 
     260floatVecSize, doubleVecSize :: Int 
     261}}} 
     262Note that these constants are of type Int since top level values of type Int# are not currently supported. This should not be a problem as they should always get inlined and unboxed where it matters. 
     263 
    263264The native-sized vector types are distinct types from the explicit-sized vector types, not type aliases for the corresponding explicit-sized vector. This is to support and encourage portable code. 
    264265