Ignore:
Timestamp:
Dec 22, 2011, 8:33:21 PM (8 years ago)
Author:
cameron
Message:

New store/load op syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/idisa_cpp/idisa_neon.cpp

    r1767 r1807  
    9191{
    9292public:
    93         static IDISA_ALWAYS_INLINE bitblock128_t load_unaligned(uint64_t const* arg1);
     93        static IDISA_ALWAYS_INLINE bitblock128_t load_unaligned(const uint64_t const* arg1);
    9494        template <uint64_t sh> static IDISA_ALWAYS_INLINE bitblock128_t srli(bitblock128_t arg1);
    95         static IDISA_ALWAYS_INLINE void store_aligned(uint64_t* arg1, bitblock128_t arg2);
     95        static IDISA_ALWAYS_INLINE void store_aligned(bitblock128_t arg1, uint64_t* arg2);
    9696        static IDISA_ALWAYS_INLINE bool all(bitblock128_t arg1);
    9797        static IDISA_ALWAYS_INLINE bool any(bitblock128_t arg1);
    9898        static IDISA_ALWAYS_INLINE uint64_t popcount(bitblock128_t arg1);
    9999        template <uint64_t sh> static IDISA_ALWAYS_INLINE bitblock128_t slli(bitblock128_t arg1);
    100         static IDISA_ALWAYS_INLINE bitblock128_t load_aligned(uint64_t const* arg1);
    101         static IDISA_ALWAYS_INLINE void store_unaligned(uint64_t* arg1, bitblock128_t arg2);
     100        static IDISA_ALWAYS_INLINE bitblock128_t load_aligned(const uint64_t const* arg1);
     101        static IDISA_ALWAYS_INLINE void store_unaligned(bitblock128_t arg1, uint64_t* arg2);
    102102};
    103103
     
    28002800
    28012801//The total number of operations is 1.0
    2802 IDISA_ALWAYS_INLINE bitblock128_t bitblock128::load_unaligned(uint64_t const* arg1)
     2802IDISA_ALWAYS_INLINE bitblock128_t bitblock128::load_unaligned(const uint64_t const* arg1)
    28032803{
    28042804        return vld1q_u64((uint64_t const*)(arg1));
     
    28122812
    28132813//The total number of operations is 1.0
    2814 IDISA_ALWAYS_INLINE void bitblock128::store_aligned(uint64_t* arg1, bitblock128_t arg2)
     2814IDISA_ALWAYS_INLINE void bitblock128::store_aligned(bitblock128_t arg1, uint64_t* arg2)
    28152815{
    28162816        vst1q_u64((uint64_t*)(arg1), arg2);
     
    28422842
    28432843//The total number of operations is 1.0
    2844 IDISA_ALWAYS_INLINE bitblock128_t bitblock128::load_aligned(uint64_t const* arg1)
     2844IDISA_ALWAYS_INLINE bitblock128_t bitblock128::load_aligned(const uint64_t const* arg1)
    28452845{
    28462846        return vld1q_u64((uint64_t const*)(arg1));
     
    28482848
    28492849//The total number of operations is 1.0
    2850 IDISA_ALWAYS_INLINE void bitblock128::store_unaligned(uint64_t* arg1, bitblock128_t arg2)
     2850IDISA_ALWAYS_INLINE void bitblock128::store_unaligned(bitblock128_t arg1, uint64_t* arg2)
    28512851{
    28522852        vst1q_u64((uint64_t*)(arg1), arg2);
Note: See TracChangeset for help on using the changeset viewer.