The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/libb2/blake2s-load-sse2.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2    BLAKE2 reference source code package - optimized C implementations
    3 
    4    Written in 2012 by Samuel Neves <sneves@dei.uc.pt>
    5 
    6    To the extent possible under law, the author(s) have dedicated all copyright
    7    and related and neighboring rights to this software to the public domain
    8    worldwide. This software is distributed without any warranty.
    9 
   10    You should have received a copy of the CC0 Public Domain Dedication along with
   11    this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
   12 */
   13 #pragma once
   14 #ifndef __BLAKE2S_LOAD_SSE2_H__
   15 #define __BLAKE2S_LOAD_SSE2_H__
   16 
   17 #define LOAD_MSG_0_1(buf) buf = _mm_set_epi32(m6,m4,m2,m0)
   18 #define LOAD_MSG_0_2(buf) buf = _mm_set_epi32(m7,m5,m3,m1)
   19 #define LOAD_MSG_0_3(buf) buf = _mm_set_epi32(m14,m12,m10,m8)
   20 #define LOAD_MSG_0_4(buf) buf = _mm_set_epi32(m15,m13,m11,m9)
   21 #define LOAD_MSG_1_1(buf) buf = _mm_set_epi32(m13,m9,m4,m14)
   22 #define LOAD_MSG_1_2(buf) buf = _mm_set_epi32(m6,m15,m8,m10)
   23 #define LOAD_MSG_1_3(buf) buf = _mm_set_epi32(m5,m11,m0,m1)
   24 #define LOAD_MSG_1_4(buf) buf = _mm_set_epi32(m3,m7,m2,m12)
   25 #define LOAD_MSG_2_1(buf) buf = _mm_set_epi32(m15,m5,m12,m11)
   26 #define LOAD_MSG_2_2(buf) buf = _mm_set_epi32(m13,m2,m0,m8)
   27 #define LOAD_MSG_2_3(buf) buf = _mm_set_epi32(m9,m7,m3,m10)
   28 #define LOAD_MSG_2_4(buf) buf = _mm_set_epi32(m4,m1,m6,m14)
   29 #define LOAD_MSG_3_1(buf) buf = _mm_set_epi32(m11,m13,m3,m7)
   30 #define LOAD_MSG_3_2(buf) buf = _mm_set_epi32(m14,m12,m1,m9)
   31 #define LOAD_MSG_3_3(buf) buf = _mm_set_epi32(m15,m4,m5,m2)
   32 #define LOAD_MSG_3_4(buf) buf = _mm_set_epi32(m8,m0,m10,m6)
   33 #define LOAD_MSG_4_1(buf) buf = _mm_set_epi32(m10,m2,m5,m9)
   34 #define LOAD_MSG_4_2(buf) buf = _mm_set_epi32(m15,m4,m7,m0)
   35 #define LOAD_MSG_4_3(buf) buf = _mm_set_epi32(m3,m6,m11,m14)
   36 #define LOAD_MSG_4_4(buf) buf = _mm_set_epi32(m13,m8,m12,m1)
   37 #define LOAD_MSG_5_1(buf) buf = _mm_set_epi32(m8,m0,m6,m2)
   38 #define LOAD_MSG_5_2(buf) buf = _mm_set_epi32(m3,m11,m10,m12)
   39 #define LOAD_MSG_5_3(buf) buf = _mm_set_epi32(m1,m15,m7,m4)
   40 #define LOAD_MSG_5_4(buf) buf = _mm_set_epi32(m9,m14,m5,m13)
   41 #define LOAD_MSG_6_1(buf) buf = _mm_set_epi32(m4,m14,m1,m12)
   42 #define LOAD_MSG_6_2(buf) buf = _mm_set_epi32(m10,m13,m15,m5)
   43 #define LOAD_MSG_6_3(buf) buf = _mm_set_epi32(m8,m9,m6,m0)
   44 #define LOAD_MSG_6_4(buf) buf = _mm_set_epi32(m11,m2,m3,m7)
   45 #define LOAD_MSG_7_1(buf) buf = _mm_set_epi32(m3,m12,m7,m13)
   46 #define LOAD_MSG_7_2(buf) buf = _mm_set_epi32(m9,m1,m14,m11)
   47 #define LOAD_MSG_7_3(buf) buf = _mm_set_epi32(m2,m8,m15,m5)
   48 #define LOAD_MSG_7_4(buf) buf = _mm_set_epi32(m10,m6,m4,m0)
   49 #define LOAD_MSG_8_1(buf) buf = _mm_set_epi32(m0,m11,m14,m6)
   50 #define LOAD_MSG_8_2(buf) buf = _mm_set_epi32(m8,m3,m9,m15)
   51 #define LOAD_MSG_8_3(buf) buf = _mm_set_epi32(m10,m1,m13,m12)
   52 #define LOAD_MSG_8_4(buf) buf = _mm_set_epi32(m5,m4,m7,m2)
   53 #define LOAD_MSG_9_1(buf) buf = _mm_set_epi32(m1,m7,m8,m10)
   54 #define LOAD_MSG_9_2(buf) buf = _mm_set_epi32(m5,m6,m4,m2)
   55 #define LOAD_MSG_9_3(buf) buf = _mm_set_epi32(m13,m3,m9,m15)
   56 #define LOAD_MSG_9_4(buf) buf = _mm_set_epi32(m0,m12,m14,m11)
   57 
   58 
   59 #endif

Cache object: 9f84c41fd2a075edf7af69490e1d7c4b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.