blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
a068de3e19291707a4a49948d7c7e97e47cdd93f
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/chromium/chrome/browser/ui/gtk/html_dialog_gtk.cc
8cfe1e00b5457be50d43da00af7f1978c3079abb
[ "MIT", "BSD-3-Clause" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
C++
false
false
5,483
cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/gtk/html_dialog_gtk.h" #include <gtk/gtk.h> #include "base/utf_string_conversions.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_dialogs.h" #include "chrome/browser/ui/browser_window.h" #include "chrome/browser/ui/gtk/gtk_util.h" #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/browser/ui/webui/html_dialog_ui.h" #include "content/browser/tab_contents/tab_contents.h" #include "content/common/native_web_keyboard_event.h" namespace browser { gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent, Profile* profile, HtmlDialogUIDelegate* delegate) { HtmlDialogGtk* html_dialog = new HtmlDialogGtk(profile, delegate, parent); return html_dialog->InitDialog(); } } // namespace browser //////////////////////////////////////////////////////////////////////////////// // HtmlDialogGtk, public: HtmlDialogGtk::HtmlDialogGtk(Profile* profile, HtmlDialogUIDelegate* delegate, gfx::NativeWindow parent_window) : HtmlDialogTabContentsDelegate(profile), delegate_(delegate), parent_window_(parent_window), dialog_(NULL) { } HtmlDialogGtk::~HtmlDialogGtk() { } //////////////////////////////////////////////////////////////////////////////// // HtmlDialogUIDelegate implementation: bool HtmlDialogGtk::IsDialogModal() const { return delegate_ ? delegate_->IsDialogModal() : false; } std::wstring HtmlDialogGtk::GetDialogTitle() const { return delegate_ ? delegate_->GetDialogTitle() : L""; } GURL HtmlDialogGtk::GetDialogContentURL() const { if (delegate_) return delegate_->GetDialogContentURL(); else return GURL(); } void HtmlDialogGtk::GetWebUIMessageHandlers( std::vector<WebUIMessageHandler*>* handlers) const { if (delegate_) delegate_->GetWebUIMessageHandlers(handlers); else handlers->clear(); } void HtmlDialogGtk::GetDialogSize(gfx::Size* size) const { if (delegate_) delegate_->GetDialogSize(size); else *size = gfx::Size(); } std::string HtmlDialogGtk::GetDialogArgs() const { if (delegate_) return delegate_->GetDialogArgs(); else return std::string(); } void HtmlDialogGtk::OnDialogClosed(const std::string& json_retval) { DCHECK(dialog_); Detach(); if (delegate_) { HtmlDialogUIDelegate* dialog_delegate = delegate_; delegate_ = NULL; // We will not communicate further with the delegate. dialog_delegate->OnDialogClosed(json_retval); } gtk_widget_destroy(dialog_); delete this; } bool HtmlDialogGtk::ShouldShowDialogTitle() const { return true; } //////////////////////////////////////////////////////////////////////////////// // TabContentsDelegate implementation: void HtmlDialogGtk::MoveContents(TabContents* source, const gfx::Rect& pos) { // The contained web page wishes to resize itself. We let it do this because // if it's a dialog we know about, we trust it not to be mean to the user. } // A simplified version of BrowserWindowGtk::HandleKeyboardEvent(). // We don't handle global keyboard shortcuts here, but that's fine since // they're all browser-specific. (This may change in the future.) void HtmlDialogGtk::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { GdkEventKey* os_event = event.os_event; if (!os_event || event.type == WebKit::WebInputEvent::Char) return; // To make sure the default key bindings can still work, such as Escape to // close the dialog. gtk_bindings_activate_event(GTK_OBJECT(dialog_), os_event); } //////////////////////////////////////////////////////////////////////////////// // HtmlDialogGtk: gfx::NativeWindow HtmlDialogGtk::InitDialog() { tab_.reset(new TabContentsWrapper( new TabContents(profile(), NULL, MSG_ROUTING_NONE, NULL, NULL))); tab_->tab_contents()->set_delegate(this); // This must be done before loading the page; see the comments in // HtmlDialogUI. HtmlDialogUI::GetPropertyAccessor().SetProperty( tab_->tab_contents()->property_bag(), this); tab_->controller().LoadURL(GetDialogContentURL(), GURL(), PageTransition::START_PAGE); GtkDialogFlags flags = GTK_DIALOG_NO_SEPARATOR; if (delegate_->IsDialogModal()) flags = static_cast<GtkDialogFlags>(flags | GTK_DIALOG_MODAL); dialog_ = gtk_dialog_new_with_buttons( WideToUTF8(delegate_->GetDialogTitle()).c_str(), parent_window_, flags, NULL); g_signal_connect(dialog_, "response", G_CALLBACK(OnResponseThunk), this); tab_contents_container_.reset(new TabContentsContainerGtk(NULL)); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog_)->vbox), tab_contents_container_->widget(), TRUE, TRUE, 0); tab_contents_container_->SetTab(tab_.get()); gfx::Size dialog_size; delegate_->GetDialogSize(&dialog_size); gtk_widget_set_size_request(GTK_WIDGET(tab_contents_container_->widget()), dialog_size.width(), dialog_size.height()); gtk_widget_show_all(dialog_); return GTK_WINDOW(dialog_); } void HtmlDialogGtk::OnResponse(GtkWidget* dialog, int response_id) { OnDialogClosed(std::string()); }
6ed9f698bc9c337b8f63384c100d9f2138fc49d4
c050f65fe558b9571d7069b94085ae3fa6ad8706
/inc/PolyEdge.hpp
f0f8ea8e5fcf857344ea9012cabaf6d473c72431
[]
no_license
etcwilde/MarchingTriangles
7f8082c24b6656ca1c63b6c6268f722ec64ffe2b
5e62fd1e50a4a566e89e9e3dede2af953a096d3d
refs/heads/master
2020-05-25T13:36:06.491648
2015-05-13T01:48:06
2015-05-13T01:48:06
29,259,268
6
0
null
null
null
null
UTF-8
C++
false
false
314
hpp
#ifndef POLYEDGE_HPP #define POLYEDGE_HPP class Edge { public: Edge(unsigned int v1, unsigned int v2) { m_vertIndex[0] = v1; m_vertIndex[1] = v2; } // index: 0 or 1 unsigned int get(unsigned char index) const { return m_vertIndex[index]; } private: unsigned int m_vertIndex[2]; }; #endif//POLYEDGE_HPP
1e5efa95700f57dd000d0a64c8fdbd7b04b45123
ffe41ee617249ced8f2e1cf065984fd98930e286
/Assignment5/main.cpp
7f7fbe5808206e82a5d364a567f5418ed4a80d25
[ "MIT" ]
permissive
maodougansidui/ucsb_cmpsc180
b98f0f98e101c40d670fdb02e81ef2366e1483cb
2a207838ce269c27fa0f9a601b5633e4327a6e3b
refs/heads/main
2023-03-20T20:42:38.803325
2021-03-20T09:37:45
2021-03-20T09:37:45
349,659,044
0
0
null
null
null
null
UTF-8
C++
false
false
2,441
cpp
#include <iostream> #include <opencv2/opencv.hpp> std::vector<cv::Point2i> control_points; void mouse_handler(int event, int x, int y, int flags, void* userdata) { if ( event == cv::EVENT_LBUTTONDOWN && control_points.size() < 4) { std::cout << "Left button of the mouse is clicked - position (" << x << ", " << y << ")" << '\n'; control_points.emplace_back(x, y); } } void naive_bezier(const std::vector<cv::Point2i>& points, cv::Mat& window) { auto& p_0 = points[0]; auto& p_1 = points[1]; auto& p_2 = points[2]; auto& p_3 = points[3]; for (double t = 0.0; t <= 1.0; t += 0.001) { auto point = std::pow(1-t, 3) * p_0 + 3 * t * std::pow(1 - t, 2) * p_1 + 3 * std::pow(t, 2) * (1 - t) * p_2 + std::pow(t, 3) * p_3; window.at<cv::Vec3b>(point.y, point.x)[2] = 255; } } cv::Point2i recursive_bezier(const std::vector<cv::Point2i>& points, float t) { // TODO - Implement this function // p_x= (1-t)p_0+t*p_1; if (points.size()==1){ return points[0]; } std::vector<cv::Point2i> newPoints(points.size()-1); for (int i=0; i<newPoints.size(); ++i){ auto p_x=(1-t)*points[i]+t*points[i+1]; newPoints[i]=p_x; } return recursive_bezier(newPoints,t); } void bezier(const std::vector<cv::Point2i>& points, cv::Mat& window) { // TODO - Implement this function for (double t=0.0; t<=1.0;t+=0.001){ auto point=recursive_bezier(points,t); window.at<cv::Vec3b>(point.y, point.x)[1] = 255; } } int main() { cv::Mat window = cv::Mat(700, 700, CV_8UC3, cv::Scalar(0)); cv::cvtColor(window, window, cv::COLOR_BGR2RGB); cv::namedWindow("Bezier Curve", cv::WINDOW_AUTOSIZE); cv::setMouseCallback("Bezier Curve", mouse_handler, nullptr); int key = -1; while(key != 27) { for (auto& point : control_points) { cv::circle(window, point, 3, {255, 255, 255}, 3); } if (control_points.size() == 4) { naive_bezier(control_points, window); bezier(control_points, window); cv::imshow("Bezier Curve", window); cv::imwrite("my_bezier_curve.png", window); key = cv::waitKey(0); return 0; } cv::imshow("Bezier Curve", window); key = cv::waitKey(20); } return 0; }
a6f94b1436e51b7c2973eb76847dfce887285621
fc3ab2d3883c122d3bd4743687c6828367a1b92e
/CodeForces/cf-687b.cpp
49a43d67058b6fee26447102274c1e3194193831
[]
no_license
TowhidKhan01/Competitive-Programming
917f3257c7a03843bc8218cbcb8b39cdc48f6c3c
19b4bfc95a7e97954dd56b0d937e55c54465bc5e
refs/heads/master
2022-04-06T04:16:08.405979
2019-02-24T15:29:10
2019-02-24T15:29:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,827
cpp
#include <iostream> #include <cstdio> #include <string> #include <sstream> #include <vector> #include <list> #include <set> #include <map> #include <queue> #include <stack> #include <bitset> #include <numeric> #include <iterator> #include <algorithm> #include <cmath> #include <chrono> #include <cassert> using namespace std; using ll = long long; using ld = long double; using ii = pair<ll, ll>; using vi = vector<ll>; using vb = vector<bool>; using vvi = vector<vi>; using vii = vector<ii>; using vvii = vector<vii>; const int INF = 2000000000; const ll LLINF = 9000000000000000000; ll gcd(ll a, ll b) { while (b) { a %= b; swap(a, b); } return a; } ll SIZE; vector<bool> bs; vector<ll> primes, mf;// mf[i]==i when prime void sieve2(ll size=1e6) { // call at start in main! SIZE = size; mf.assign(SIZE+1,-1); mf[0] = mf[1] = 1; for (ll i = 2; i <= SIZE; i++) if (mf[i] < 0) { mf[i] = i; for (ll j = i * i; j <= SIZE; j += i) if(mf[j] < 0) mf[j] = i; primes.push_back(i); } } void madd(map<ll, ll> &m, ll v) { auto it = m.find(v); if (it == m.end()) m.insert({v, 1}); else it->second++; } int main() { ios::sync_with_stdio(false); cin.tie(NULL); sieve2(1e6+3); ll n, k; cin >> n >> k; map<ll, ll> kfactors; ll kk = k; while (kk > 1) { madd(kfactors, mf[kk]); kk /= mf[kk]; } map<ll, ll> tfactors; while (n--) { ll v; cin >> v; while (v > 1) { ii pr = {mf[v], 0}; while (v % pr.first == 0) v /= pr.first, ++pr.second; auto it = tfactors.find(pr.first); if (it == tfactors.end()) tfactors.insert(pr); else it->second = max(it->second, pr.second); } } bool y = true; for (ii pr : kfactors) { auto it = tfactors.find(pr.first); y = y && (it != tfactors.end() && it->second >= pr.second); } cout << (y ? "Yes" : "No") << endl; return 0; }
200f6c90fa4ad52d3d470c6eb8e00a405cab6345
c1295c0968dd0f7889b5062a98758372e97173a9
/classes/Die.cpp
915955a9a46ba5baf254bda30b644da2660468e0
[]
no_license
Arnaldoeloi/dice-game-oopclass
bd5d0f1e206bfbae7aceb89ee92276ec5331ec26
811c17c1b0ae41be29d09962cb9624723ebf95c2
refs/heads/master
2020-05-01T23:37:46.453445
2019-03-31T13:36:09
2019-03-31T13:36:09
177,666,976
0
0
null
null
null
null
UTF-8
C++
false
false
148
cpp
#include "Die.h" Die::Die(int n_sides):rd(),gen(rd()),dis(1, n_sides){} int Die::roll(){ int n = dis(gen); std::cout<<n; return n; }
927f14ffd60936cd4c005863c9dd0a5cdd5b5dfb
d9697757f238a22f99b426feb893e4a3cb2d32c8
/eulerangle.h
35b0c31044908f9e91223a17451fc8311206c78e
[]
no_license
GPUWorks/calliper
e99625f286966361235b6b3694ac14ba8fdfdce4
79ed247c539a4d6d67bd93282df1127a2968ca04
refs/heads/master
2021-01-15T16:15:00.844289
2016-02-21T13:31:04
2016-02-21T13:31:04
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,460
h
#ifndef EULERANGLE_H #define EULERANGLE_H #include <QtDebug> /* * The following specification is written to imitate how Euler angles work in Hammer. * The left-handed Hammer co-ordinate system is used: X points right, Z points up, Y points away. * * (0, 0, 0) points down the positive X axis, with the up vector pointing up the positive vertical Z axis. * (-90, 0, 0) points straight up the positive Z axis, with the up vector pointing down the negative X axis. * (90, 0, 0) points straight down the negative Z axis, with the up vector pointing up the positive X axis. * (0, 90, 0) points up the positive Y axis, with the up vector still pointing up the positive vertical Z axis. * (0, 0, 90) points up the positive X axis with the up vector pointing down the negative Y axis. * (0, 0, -90) points up the positive X axis with the up vector pointing up the positive Y axis. * * Therefore the pitch, yaw and roll can be thought of in the following way: * * Yaw should always be applied around the world Z axis. A yaw of 0 points down the world X axis; increasing the yaw * rotates anticlockwise around the world Z axis as viewed normally. * * Pitch is applied after yaw, from the object's perspective. Negative pitch values rotate upwards to point up the Z axis; * positive values rotate downwards. * * Roll is applied after pitch, from the object's perspective. Positive roll values rotate clockwise around the vector * specified by pitch and yaw; negative values rotate anticlockwise. * * Therefore, we can think of Euler angles in the following way: * - Each angle is specified as a clockwise number of degrees when looking along the * specified axis in the positive direction. * - Since from the object's perspective the order of transformations is YPR, when rotating with matrices we * perform them in the order RPY. */ class EulerAngle { public: EulerAngle(); EulerAngle(float pitch, float yaw, float roll); float pitch() const; void setPitch(float p); float yaw() const; void setYaw(float y); float roll() const; void setRoll(float r); inline bool operator ==(const EulerAngle &other) const { return m_flPitch == other.m_flPitch && m_flYaw == other.m_flYaw && m_flRoll == other.m_flRoll; } inline EulerAngle operator +(const EulerAngle &other) const { return EulerAngle(m_flPitch + other.m_flPitch, m_flYaw + other.m_flYaw, m_flRoll + other.m_flRoll); } inline EulerAngle operator -(const EulerAngle &other) const { return EulerAngle(m_flPitch - other.m_flPitch, m_flYaw - other.m_flYaw, m_flRoll - other.m_flRoll); } inline float& operator [](int index) { switch (index) { case 0: return m_flPitch; case 1: return m_flYaw; case 2: return m_flRoll; default: Q_ASSERT(false); return m_flPitch; } } inline const float& operator [](int index) const { switch (index) { case 0: return m_flPitch; case 1: return m_flYaw; case 2: return m_flRoll; default: Q_ASSERT(false); return m_flPitch; } } private: float m_flPitch; float m_flYaw; float m_flRoll; }; QDebug& operator <<(QDebug &debug, const EulerAngle &angle); #endif // EULERANGLE_H
0e6fe08178ddc818812e57543b9ba0116bfb9880
af6477da701ede3758888f9429040ea6685e2cf3
/TriSpark_Slot/_src/_header/keyexport.h
ca348de0111f09fe2fb926d49026461cef379a18
[]
no_license
M1spark20/TriSpark_Slot_VC2019
393014a84b737948e5ce06136c805efb186e5fb7
0bd3c4405a7f00035de1a4a035360dc14852a730
refs/heads/master
2023-06-15T07:37:39.824821
2021-07-09T15:04:43
2021-07-09T15:04:43
282,438,584
0
0
null
null
null
null
UTF-8
C++
false
false
1,238
h
#pragma once #include "ISingleton.h" #include "keyinput.h" #include "STouchInputList.hpp" enum class EKeyExportStatus { eGameMain, eMenu, eStateMax }; class CKeyExport_S : public ISingleton<CKeyExport_S>{ // [act]各クラスへのキー入力状態を出力 // シングルトンで管理されている(_Sの意味) friend ISingleton<CKeyExport_S>; // CKeyInput_SでKeyStateUpdate関数を使用させるためのfriend宣言 friend CKeyInput_S; CKeyExport_S(); ~CKeyExport_S(){}; void KeyStateUpdate(char* pInput, const STouchInputList& pTouch); bool CheckTouchRange(const STouchInput& pTouch, int xLow, int xHigh, int yLow, int yHigh); // DxLibのキーボード取得時の配列マジックナンバー(m1) static const int GetInputArrayMax_C = 256; // キーが連続で入力されているフレーム(m2) int m_NowKeyState[GetInputArrayMax_C]; // キーボード入力モード(ゲーム, メニュー, etc...) EKeyExportStatus mStatus; public: bool ExportKeyState(int KeyHandle,int LessFrame=1,int MaxFrame=1) const; int ExportKeyStateFrame(int KeyHandle) const; void SetExportStatus(EKeyExportStatus pSetStatus) { mStatus = pSetStatus; } EKeyExportStatus GetExportStatus() const { return mStatus; } };
6a4bc04d397465f2d5d385493c972910bf35080b
651685524875863115934abfa7c1a664c88e9e2b
/components/include/Sequence/SequenceChecking.hpp
509b35ba3592c1ff9efe1f2852916e1c40980e7e
[]
no_license
webbryan92/Data-Structures-Projects
d900237c78bd4619a2338c6d6d894a375c15760b
30931b86d5f35a3595fb9af7a1947d72a3e39375
refs/heads/master
2021-01-01T16:38:06.383236
2017-07-20T22:46:22
2017-07-20T22:46:22
97,878,554
0
0
null
null
null
null
UTF-8
C++
false
false
3,034
hpp
#pragma once // // checking Version for Sequence // author: Dr. Holly // template < template <class> class Sequence, class T > class SequenceChecking1: public Sequence <T> { typedef Sequence <T> SequenceOfT; public: //----------------------------------------------------------------------- void add ( preserves Integer pos, alters T& x ) { // assert that 0 <= pos <= s.length if (pos < 0) { OutputDebugString ("Operation: Add\n"); OutputDebugString ("Assertion failed: 0 <= pos\n"); DebugBreak (); } // end if if (pos > SequenceOfT::length ()) { OutputDebugString ("Operation: Add\n"); OutputDebugString ("Assertion failed: pos <= |s|\n"); DebugBreak (); } // end if SequenceOfT::add (pos, x); } // add //----------------------------------------------------------------------- void remove ( preserves Integer pos, alters T& x ) { // assert that 0 <= pos < s.length if (pos < 0) { OutputDebugString ("Operation: Remove\n"); OutputDebugString ("Assertion failed: 0 <= pos\n"); DebugBreak (); } // end if if (SequenceOfT::length () <= pos) { OutputDebugString ("Operation: Remove\n"); OutputDebugString ("Assertion failed: pos < |s|\n"); DebugBreak (); } // end if SequenceOfT::remove (pos, x); } // remove //----------------------------------------------------------------------- void replaceEntry ( preserves Integer pos, alters T& x ) { // assert that 0 <= pos < s.length if (pos < 0) { OutputDebugString ("Operation: replaceEntry\n"); OutputDebugString ("Assertion failed: 0 <= pos\n"); DebugBreak (); } // end if if (SequenceOfT::length () <= pos) { OutputDebugString ("Operation: replaceEntry\n"); OutputDebugString ("Assertion failed: pos < |s|\n"); DebugBreak (); } // end if SequenceOfT::replaceEntry (pos, x); } // swapItem //----------------------------------------------------------------------- void split ( preserves Integer pos, produces SequenceChecking1& otherS ) { // assert that 0 <= pos <= s.length if (pos < 0) { OutputDebugString ("Operation: Split\n"); OutputDebugString ("Assertion failed: 0 <= pos\n"); DebugBreak (); } // end if if (pos > SequenceOfT::length ()) { OutputDebugString ("Operation: Split\n"); OutputDebugString ("Assertion failed: pos <= |s|\n"); DebugBreak (); } // end if SequenceOfT::split (pos, otherS); } // split //----------------------------------------------------------------------- T& entry ( preserves Integer pos ) { // assert that 0 <= pos < s.length if (pos < 0) { OutputDebugString ("Operation: operator []\n"); OutputDebugString ("Assertion failed: 0 <= pos\n"); DebugBreak (); } // end if if (SequenceOfT::length () <= pos) { OutputDebugString ("Operation: operator []\n"); OutputDebugString ("Assertion failed: pos < |s|\n"); DebugBreak (); } // end if return (SequenceOfT::entry (pos)); } // entry };
dd4514033c65a583dac3cc99b2c7a36baf28888d
de9ac40cb8c7509c0372f96eec23f243349bedb1
/plugins/samplesource/testsource/testsourceplugin.cpp
f0994e2031626eacb31bd53f23504824231561c5
[]
no_license
gaspar1987/sdrangel
260709c43cf8a9abbfe1c1cd0b9ad566abe1d767
e37c90c8d0ff246573380a0a3187579fe231ce63
refs/heads/master
2021-07-22T04:53:53.994410
2018-07-21T20:28:35
2018-07-21T20:28:35
143,798,261
3
0
null
2021-07-04T09:36:10
2018-08-07T00:35:17
C
UTF-8
C++
false
false
3,490
cpp
/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2018 Edouard Griffiths, F4EXB // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////////// #include <QtPlugin> #include "plugin/pluginapi.h" #include "util/simpleserializer.h" #include <device/devicesourceapi.h> #ifdef SERVER_MODE #include "testsourceinput.h" #else #include "testsourcegui.h" #endif #include "testsourceplugin.h" const PluginDescriptor TestSourcePlugin::m_pluginDescriptor = { QString("Test Source input"), QString("4.0.0"), QString("(c) Edouard Griffiths, F4EXB"), QString("https://github.com/f4exb/sdrangel"), true, QString("https://github.com/f4exb/sdrangel") }; const QString TestSourcePlugin::m_hardwareID = "TestSource"; const QString TestSourcePlugin::m_deviceTypeID = TESTSOURCE_DEVICE_TYPE_ID; TestSourcePlugin::TestSourcePlugin(QObject* parent) : QObject(parent) { } const PluginDescriptor& TestSourcePlugin::getPluginDescriptor() const { return m_pluginDescriptor; } void TestSourcePlugin::initPlugin(PluginAPI* pluginAPI) { pluginAPI->registerSampleSource(m_deviceTypeID, this); } PluginInterface::SamplingDevices TestSourcePlugin::enumSampleSources() { SamplingDevices result; result.append(SamplingDevice( "TestSource", m_hardwareID, m_deviceTypeID, QString::null, 0, PluginInterface::SamplingDevice::BuiltInDevice, true, 1, 0)); return result; } #ifdef SERVER_MODE PluginInstanceGUI* TestSourcePlugin::createSampleSourcePluginInstanceGUI( const QString& sourceId __attribute((unused)), QWidget **widget __attribute((unused)), DeviceUISet *deviceUISet __attribute((unused))) { return 0; } #else PluginInstanceGUI* TestSourcePlugin::createSampleSourcePluginInstanceGUI( const QString& sourceId, QWidget **widget, DeviceUISet *deviceUISet) { if(sourceId == m_deviceTypeID) { TestSourceGui* gui = new TestSourceGui(deviceUISet); *widget = gui; return gui; } else { return 0; } } #endif DeviceSampleSource *TestSourcePlugin::createSampleSourcePluginInstanceInput(const QString& sourceId, DeviceSourceAPI *deviceAPI) { if (sourceId == m_deviceTypeID) { TestSourceInput* input = new TestSourceInput(deviceAPI); return input; } else { return 0; } }
bcf442bb481cd17260922f76d9c309766255fd63
b932c07a65eab1f5eec89907e351dfc056a44997
/Sources/Errors/Errors.hpp
29244b65b37d92c5db4579a306a019a91dfef6ee
[]
no_license
SachsA/Bomberman
bc9922d9f731441b43a7f4e51dcf983f5d1b2a13
29b286bfa7769d1f4b7d7a32228466e34a7a86ae
refs/heads/master
2020-03-21T07:58:46.917494
2019-12-02T16:25:50
2019-12-02T16:25:50
138,311,749
1
3
null
null
null
null
UTF-8
C++
false
false
539
hpp
/* ** EPITECH PROJECT, 2018 ** cpp_indie_studio ** File description: ** Errors.hpp for cpp_indie_studio */ #ifndef ERRORS_HPP_ #define ERRORS_HPP_ #include <exception> #include <iostream> #include <string> /*! \class Errors * \brief Classe used to handle custom error. * * */ class Errors: public std::exception { public: Errors(std::ostream &, const std::string &) throw(); virtual ~Errors(void) throw(); const char *what(void) const throw(); private: std::string _message; std::ostream &_os; }; #endif /* !ERRORS_HPP_ */
cd9fe68153cf441b6f28075b8892ef81d78c6556
e0dd552392a8b6f790c19ecef251071c24b023e8
/CSE332S-Object-OrientedSoftwareDevelopmentLab/Lab1/Lab1/Functions.cpp
36c2718195d3c6212ebc405c8b6258691d732dd3
[]
no_license
NikkiWines/WUSTL-ProjectsRepository
2a158c07c8aa72e1e4f81946accb4bc8ea3168a7
fb7efa8b52e48182c93260b10da4b99e9934e8a1
refs/heads/master
2021-01-17T08:41:49.570873
2017-04-24T19:44:21
2017-04-24T19:44:21
83,940,318
0
0
null
null
null
null
UTF-8
C++
false
false
722
cpp
// to lowercase // enums for program name and err codes #include "stdafx.h" #include "Functions.h" // only called when you have the incorrect number of args // c = "game.txt" -- checkers or chess int usage(char * program_name, string c) { // give args cout << "Usage: " << program_name << " " << c << endl; // print out usage, program name, and direct them to input file return failureNumArgs; } //define to lowercase in here string toLower(string input) { //check if in range // check if theyre all chars not other char c; for (unsigned int i = 0; i < input.size(); ++i) { // iterate across string c = input[i]; if ((c > 64) && (c < 91)) { c = c + 32; } input[i] = c; } return input; }
1160027abcf15fb8ff8633c757c1362ca5026575
12a35046e0bd567b2687bf2cd8dfa06022acd0be
/server/src/common/lib/ui/CPictureEx_CPictureExWnd/atl/demo/PictureExDlg.cpp
50ebfd337e49034bfca1b6157ec4b74c98702def
[ "MIT" ]
permissive
ngphloc/agmagic
71e4e5a51faa37645136deeaf85f7976f172ed52
65d3ad6aeda3431e998e7f23aaa93381dcd10746
refs/heads/master
2022-05-18T22:37:33.142198
2022-05-03T02:49:48
2022-05-03T02:49:48
41,147,766
0
1
null
null
null
null
UTF-8
C++
false
false
1,823
cpp
// PictureExDlg.cpp : Implementation of CPictureExDlg #include "stdafx.h" #include "PictureExDlg.h" #include "AboutDlg.h" #include "shellapi.h" // for ShellExecute ///////////////////////////////////////////////////////////////////////////// // CPictureExDlg CPictureExDlg::CPictureExDlg() : m_hCursor(NULL) { } CPictureExDlg::~CPictureExDlg() { } LRESULT CPictureExDlg::OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { EndDialog(wID); return 0; } LRESULT CPictureExDlg::OnAbout(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { CAboutDlg dlg; dlg.DoModal(); return 0; } LRESULT CPictureExDlg::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { // Set application icon HICON hIcon = LoadIcon(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDI_PICTUREEXDEMO)); SetIcon(hIcon); CenterWindow(); m_hCursor = LoadCursor(_Module.GetResourceInstance(),MAKEINTRESOURCE(IDC_HAND)); HWND hWnd = GetDlgItem(IDC_BANNER); if (hWnd) { m_wndBanner.SubclassWindow(hWnd); if (m_wndBanner.Load(MAKEINTRESOURCE(IDR_BANNER),_T("GIF"))) m_wndBanner.Draw(); }; return 1; // Let the system set the focus } LRESULT CPictureExDlg::OnSetCursor(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { RECT rect; ::GetWindowRect(m_wndBanner.m_hWnd,&rect); POINT point; GetCursorPos(&point); if (PtInRect(&rect,point)) { if (m_hCursor) SetCursor(m_hCursor); bHandled = TRUE; return S_OK; }; bHandled = FALSE; return S_OK; } LRESULT CPictureExDlg::OnLButtonDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { RECT rect; ::GetWindowRect(m_wndBanner.m_hWnd,&rect); POINT point; GetCursorPos(&point); if (PtInRect(&rect,point)) { ShellExecute(m_hWnd,_T("open"),_T("http://www.rsdn.ru"),_T(""),NULL,0); }; return S_OK; }
5a0fc6591b2fd297110ee745fc6abb84202bf639
f2620b0bdf587b02ff7ff4d52d8a40681ea55248
/392-is_Subsequence.cpp
b92516013ad07ac391118b1346400e26425bc51e
[]
no_license
Stephhh-Lee/Leetcode
67387e429efd128d768079c7373671798e430758
f773101398000d8833546f9af018218f7085f9f6
refs/heads/master
2021-10-07T09:14:44.713837
2018-12-04T12:59:27
2018-12-04T12:59:27
160,357,301
0
0
null
null
null
null
UTF-8
C++
false
false
1,066
cpp
class Solution { public: void helper(int& loc, bool& tmp, vector<int> vec){ for(int i=0; i<vec.size(); i++){ if(vec[i]>loc){ loc=vec[i]; tmp=true; break; } } } bool isSubsequence(string s, string t) { unordered_map<char, vector<int>> map; for(int i=0; i<t.size(); i++){ map[t[i]].push_back(i); } //for(auto x:map){ // sort(x.second.begin(), x.second.end()); //} bool tmp; int loc=-1; for(int i=0; i<s.size(); i++){ tmp=false; helper(loc,tmp,map[s[i]]); if(!tmp) return false; } return true; } }; class Solution { public: bool isSubsequence(string s, string t) { int i=0,j=0; while(i<s.size()){ while(j<t.size() && s[i]!=t[j]) j++; if(j>=t.size()) return false; i++; j++; } return true; } };
4289e8c629a143d4aae2f3fe67ba93f35ddce94d
8567438779e6af0754620a25d379c348e4cd5a5d
/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.h
ceb9d63e64389f54d7ef4cec4ed2bf23c86c38de
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
thngkaiyuan/chromium
c389ac4b50ccba28ee077cbf6115c41b547955ae
dab56a4a71f87f64ecc0044e97b4a8f247787a68
refs/heads/master
2022-11-10T02:50:29.326119
2017-04-08T12:28:57
2017-04-08T12:28:57
84,073,924
0
1
BSD-3-Clause
2022-10-25T19:47:15
2017-03-06T13:04:15
null
UTF-8
C++
false
false
7,602
h
/* * Copyright (C) 2009, 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef SerializedScriptValue_h #define SerializedScriptValue_h #include <memory> #include "bindings/core/v8/ScriptValue.h" #include "bindings/core/v8/Transferables.h" #include "core/CoreExport.h" #include "v8/include/v8.h" #include "wtf/HashMap.h" #include "wtf/ThreadSafeRefCounted.h" #include "wtf/allocator/Partitions.h" #include "wtf/typed_arrays/ArrayBufferContents.h" namespace blink { class BlobDataHandle; class Transferables; class ExceptionState; class StaticBitmapImage; class WebBlobInfo; typedef HashMap<String, RefPtr<BlobDataHandle>> BlobDataHandleMap; typedef Vector<WebBlobInfo> WebBlobInfoArray; class CORE_EXPORT SerializedScriptValue : public ThreadSafeRefCounted<SerializedScriptValue> { public: using ArrayBufferContentsArray = Vector<WTF::ArrayBufferContents, 1>; using ImageBitmapContentsArray = Vector<RefPtr<StaticBitmapImage>, 1>; // Increment this for each incompatible change to the wire format. // Version 2: Added StringUCharTag for UChar v8 strings. // Version 3: Switched to using uuids as blob data identifiers. // Version 4: Extended File serialization to be complete. // Version 5: Added CryptoKeyTag for Key objects. // Version 6: Added indexed serialization for File, Blob, and FileList. // Version 7: Extended File serialization with user visibility. // Version 8: File.lastModified in milliseconds (seconds-based in earlier // versions.) // Version 9: Added Map and Set support. static const uint32_t wireFormatVersion = 9; // VarInt encoding constants. static const int varIntShift = 7; static const int varIntMask = (1 << varIntShift) - 1; static PassRefPtr<SerializedScriptValue> serialize(v8::Isolate*, v8::Local<v8::Value>, Transferables*, WebBlobInfoArray*, ExceptionState&); static PassRefPtr<SerializedScriptValue> serializeAndSwallowExceptions( v8::Isolate*, v8::Local<v8::Value>); static PassRefPtr<SerializedScriptValue> create(); static PassRefPtr<SerializedScriptValue> create(const String&); static PassRefPtr<SerializedScriptValue> create(const char* data, size_t length); ~SerializedScriptValue(); static PassRefPtr<SerializedScriptValue> nullValue(); String toWireString() const; void toWireBytes(Vector<char>&) const; // Deserializes the value (in the current context). Returns a null value in // case of failure. v8::Local<v8::Value> deserialize(MessagePortArray* = 0); v8::Local<v8::Value> deserialize(v8::Isolate*, MessagePortArray* = 0, const WebBlobInfoArray* = 0); // Helper function which pulls the values out of a JS sequence and into a // MessagePortArray. Also validates the elements per sections 4.1.13 and // 4.1.15 of the WebIDL spec and section 8.3.3 of the HTML5 spec and generates // exceptions as appropriate. // Returns true if the array was filled, or false if the passed value was not // of an appropriate type. static bool extractTransferables(v8::Isolate*, v8::Local<v8::Value>, int, Transferables&, ExceptionState&); // Helper function which pulls ArrayBufferContents out of an ArrayBufferArray // and neuters the ArrayBufferArray. Returns nullptr if there is an // exception. static std::unique_ptr<ArrayBufferContentsArray> transferArrayBufferContents( v8::Isolate*, const ArrayBufferArray&, ExceptionState&); static std::unique_ptr<ImageBitmapContentsArray> transferImageBitmapContents( v8::Isolate*, const ImageBitmapArray&, ExceptionState&); // Informs the V8 about external memory allocated and owned by this object. // Large values should contribute to GC counters to eventually trigger a GC, // otherwise flood of postMessage() can cause OOM. // Ok to invoke multiple times (only adds memory once). // The memory registration is revoked automatically in destructor. void registerMemoryAllocatedWithCurrentScriptContext(); const uint8_t* data() const { return m_dataBuffer.get(); } size_t dataLengthInBytes() const { return m_dataBufferSize; } BlobDataHandleMap& blobDataHandles() { return m_blobDataHandles; } ArrayBufferContentsArray* getArrayBufferContentsArray() { return m_arrayBufferContentsArray.get(); } ImageBitmapContentsArray* getImageBitmapContentsArray() { return m_imageBitmapContentsArray.get(); } private: friend class ScriptValueSerializer; friend class V8ScriptValueSerializer; struct BufferDeleter { void operator()(uint8_t* buffer) { WTF::Partitions::bufferFree(buffer); } }; using DataBufferPtr = std::unique_ptr<uint8_t[], BufferDeleter>; SerializedScriptValue(); explicit SerializedScriptValue(const String& wireData); void setData(DataBufferPtr data, size_t size) { m_dataBuffer = std::move(data); m_dataBufferSize = size; } void transferArrayBuffers(v8::Isolate*, const ArrayBufferArray&, ExceptionState&); void transferImageBitmaps(v8::Isolate*, const ImageBitmapArray&, ExceptionState&); void transferOffscreenCanvas(v8::Isolate*, const OffscreenCanvasArray&, ExceptionState&); DataBufferPtr m_dataBuffer; size_t m_dataBufferSize = 0; std::unique_ptr<ArrayBufferContentsArray> m_arrayBufferContentsArray; std::unique_ptr<ImageBitmapContentsArray> m_imageBitmapContentsArray; BlobDataHandleMap m_blobDataHandles; intptr_t m_externallyAllocatedMemory; }; } // namespace blink #endif // SerializedScriptValue_h
d73c14afbda335c2f86160855e305a5a9834cf3c
f4a7ac5bee43a03157f05692768ce5828f4062ad
/dist/wcdx/src/resource.h
d4acff985b505f541254fe5adbec005ee5746530
[ "MIT" ]
permissive
Bekenn/wcdx
04680e9d915f9dc5d8e10e69e09b183f05adc40d
e1aa43a17fce2f966235e6424be8042810d2fe5e
refs/heads/master
2022-08-23T19:14:49.379094
2022-03-07T08:37:49
2022-03-07T08:37:49
28,391,855
20
1
null
null
null
null
UTF-8
C++
false
false
1,684
h
#ifndef RESOURCE_INCLUDED #define RESOURCE_INCLUDED #pragma once #include <stdext/traits.h> #include <functional> template <class Handle> class SmartResource { public: using Deleter = std::function<void (Handle)>; public: template <class H = Handle, STDEXT_REQUIRES(std::is_default_constructible_v<H>)> SmartResource() : handle(), deleter() { } template <class H, STDEXT_REQUIRES(std::is_constructible_v<Handle, decltype(std::forward<H>(std::declval<H&&>()))>)> explicit SmartResource(H&& handle, Deleter deleter) : handle(std::forward<H>(handle)), deleter(std::move(deleter)) { } SmartResource(const SmartResource&) = delete; SmartResource& operator = (const SmartResource&) = delete; SmartResource(SmartResource&& other) : handle(std::move(other.handle)), deleter(std::move(other.deleter)) { } SmartResource& operator = (SmartResource&& other) { if (deleter != nullptr) deleter(handle); handle = std::move(other.handle); deleter = std::move(other.deleter); } ~SmartResource() { if (deleter != nullptr) deleter(handle); } public: operator Handle () const { return handle; } Handle Get() const { return handle; } template <class H, STDEXT_REQUIRES(std::is_assignable_v<Handle&, decltype(std::forward<H>(std::declval<H&&>()))>)> void Reset(H&& handle, Deleter deleter) { this->handle = std::forward<H>(handle); this->deleter = std::move(deleter); } void Invalidate() { deleter = nullptr; } private: Handle handle; Deleter deleter; }; #endif
67f2543773ba713bd6e146ee71519253f8104db4
5456502f97627278cbd6e16d002d50f1de3da7bb
/chrome/browser/chromeos/file_manager/path_util.h
8cd6d4875517fd3dfea0d2b957347339ac82bf73
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/Chromium_7C66
72d108a413909eb3bd36c73a6c2f98de1573b6e5
c8649ab2a0f5a747369ed50351209a42f59672ee
refs/heads/master
2023-03-16T12:51:40.231959
2017-12-20T10:38:26
2017-12-20T10:38:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,909
h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_PATH_UTIL_H_ #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_PATH_UTIL_H_ #include <string> class GURL; class Profile; namespace base { class FilePath; } namespace file_manager { namespace util { // Gets the absolute path for the 'Downloads' folder for the |profile|. base::FilePath GetDownloadsFolderForProfile(Profile* profile); // Converts |old_path| to |new_path| and returns true, if the old path points // to an old location of user folders (in "Downloads" or "Google Drive"). // The |profile| argument is used for determining the location of the // "Downloads" folder. // // As of now (M40), the conversion is used only during initialization of // download_prefs, where profile unaware initialization precedes profile // aware stage. Below are the list of relocations we have made in the past. // // M27: crbug.com/229304, for supporting {offline, recent, shared} folders // in Drive. Migration code for this is removed in M34. // M34-35: crbug.com/313539, 356322, for supporting multi profiles. // Migration code is removed in M40. bool MigratePathFromOldFormat(Profile* profile, const base::FilePath& old_path, base::FilePath* new_path); // The canonical mount point name for "Downloads" folder. std::string GetDownloadsMountPointName(Profile* profile); // Converts a Chrome OS file path to an ARC file URL. Returns true if the path // was converted successfully and false otherwise. bool ConvertPathToArcUrl(const base::FilePath& path, GURL* arc_url_out); } // namespace util } // namespace file_manager #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_PATH_UTIL_H_
7712298d9480ab5f65b3a2da2a8ccd65f737e8ec
abfd99772caedc3e948d46fd1c8a653ad222f4a4
/perusal/sii_colors_stuff.hh
39dc4e463367b65fa9627518a580226c35c29ba3
[ "BSD-3-Clause" ]
permissive
NCAR/lrose-solo3
cc15bf5afd2ed21afff572cbaaf488c6f485aa1d
a6cddbe0b5919a8e24d9a74fff55ccec0333db85
refs/heads/master
2023-05-13T21:29:05.426032
2023-05-05T20:44:23
2023-05-05T20:44:23
69,918,956
10
8
null
null
null
null
UTF-8
C++
false
false
304
hh
/* created using cproto */ /* Thu Jul 7 17:55:01 UTC 2011*/ #ifndef sii_colors_stuff_hh #define sii_colors_stuff_hh extern void sii_set_default_colors(void); gboolean sii_print_str( gpointer a_str, gpointer nada ); void sii_print_hash_str( gpointer key, gpointer value, gpointer user_data ); #endif
[ "burghart@f31e7c6d-f41f-0410-9234-e4ad7f416ffa" ]
burghart@f31e7c6d-f41f-0410-9234-e4ad7f416ffa
ba7b07047dd8478011b0a01d2957e2ec4dff2044
c1989280a0fc4594e23641d5f124e904d393f3f9
/dmap_adv_markers/11/d_map_adv_markers/d_map_adv_markers/code/addon.hpp
82fe6990be03455af6414b0aeaa405f0fca23191
[]
no_license
TheDrill/d-arma-3-addons
f4dc20ce74a4ff85ebd029f3322a53a811da8ce2
f52cdb4470fb7653c848e0d27918fb063f75645b
refs/heads/master
2021-01-01T15:18:05.011532
2015-04-23T12:36:31
2015-04-23T12:36:31
34,455,099
0
0
null
null
null
null
UTF-8
C++
false
false
536
hpp
#ifndef __ADDON_HPP_ #define __ADDON_HPP_ #define __ADDON_NAME__ d_map_adv_markers #define __BASENAME__ Addons__##__ADDON_NAME__ #define __PREFIX__ "\xx\addons\d_map_adv_markers" #define __PREFIXC__ "\xx\addons\d_map_adv_markers\code\" #define FUNC(x) fnc_##__BASENAME__##_##x #define CFUNC(x) __ADDON_NAME__##_fnc_##x #define GVAR(x) __BASENAME__##_##x #define LOCALIZE_PREFIX "STR_Addons__d_map_adv_markers__" #define LOCALIZE(x) (localize (LOCALIZE_PREFIX + (x))) #define PV(x) private ['x']; x #endif
c65eadeb4b840ac208ef11b80aaf9a7fbf597475
4f4dce5de08b7e5e0523ebb30f6001008b612fab
/Plugins/AbilityFramework/Source/AbilityFramework/Public/Abilities/Tasks/GAAbilityTask_TargetData.h
2546286f7ac6511b0c72f49da2dc773f34db618d
[]
no_license
Sariohara/ActionRPGGame
98ec3abfb66cbacaa8414ad3ec5453221afc6290
9656224f96ab7195a516021128361530617fa152
refs/heads/master
2022-08-24T02:16:03.090127
2022-07-07T05:15:31
2022-07-07T05:15:31
118,512,251
0
0
null
2018-01-22T20:39:10
2018-01-22T20:39:09
null
UTF-8
C++
false
false
1,697
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "GAAbilityTask.h" #include "GAAbilityTask_TargetData.generated.h" DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FGASOnReceiveTargetData, const FHitResult&, HitResult); UENUM() enum class EGASConfirmType : uint8 { Instant, WaitForConfirm }; /** * */ UCLASS() class ABILITYFRAMEWORK_API UGAAbilityTask_TargetData : public UGAAbilityTask, public FTickableGameObject { GENERATED_BODY() public: UPROPERTY(BlueprintAssignable) FGASOnReceiveTargetData OnConfirmed; UPROPERTY(BlueprintAssignable) FGASOnReceiveTargetData OnReceiveTargetData; EGASConfirmType ConfirmType; float Range; bool bIsTickable; bool bDrawDebug; bool bDrawCorrectedDebug; bool bUseCorrectedTrace; public: UFUNCTION(BlueprintCallable, meta = (HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject", BlueprintInternalUseOnly = "true"), Category = "AbilityFramework|Abilities|Tasks") static UGAAbilityTask_TargetData* CreateTargetDataTask(UGAAbilityBase* WorldContextObject, FName InTaskName, bool bDrawDebug, bool bDrawCorrectedDebug, bool bUseCorrectedTrace, EGASConfirmType ConfirmTypeIn, float Range); virtual void Activate() override; UFUNCTION() virtual void OnConfirm(); UFUNCTION() void OnCastEndedConfirm(); /* FTickableGameObject Begin */ virtual void Tick(float DeltaTime) override; virtual bool IsTickable() const override { return bIsTickable; } virtual TStatId GetStatId() const override { RETURN_QUICK_DECLARE_CYCLE_STAT(UGAAbilityTask_TargetData, STATGROUP_Tickables); }; /* FTickableGameObject End */ protected: FHitResult LineTrace(); };
6487260a5a1c2074f7f15c0358851dbd87484237
7f63e777763ff9086da5fa3ce979f3f5baa7bf4a
/pose_graph.h
b35563cd5e993eab9b1dcf1ccd3fa9e2516c4c6c
[]
no_license
johnwlambert/pgo-speed-benchmark
d702c71be449c2bdb72952d1a47e41bc5e856f4b
eece6943e906c909e1c1429d0650fc3d6eacbd99
refs/heads/master
2020-05-15T14:42:40.283663
2019-04-23T04:06:19
2019-04-23T04:06:19
182,346,460
1
0
null
null
null
null
UTF-8
C++
false
false
1,668
h
// // Created by John Lambert-Admin on 4/19/19. // #pragma once #include <string> #include <cmath> #include <map> #include <vector> #include <Eigen/Dense> #include "string_utils.h" using VectorXd = Eigen::VectorXd; // equiv. to Matrix<double,Dynamic,1> using MatrixXd = Eigen::MatrixXd; // equiv. to Matrix<double,Dynamic,Dynamic> /* * Pose Graph Vertex * v_id is "vertex ID" */ class VertexPGO { public: size_t v_id_; size_t x_offset_idx_; size_t dim_; VertexPGO(size_t v_id, size_t x_offset_idx, size_t dim); }; /* * Pose Graph Edge * "from_v_id" is "from" vertex ID * "to_v_id" is "to" vertex ID */ class EdgePGO{ public: std::string edge_type_; size_t from_v_id_; size_t to_v_id_; Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> measurement_; Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> information_; EdgePGO(std::string edge_type, size_t from_v_id, size_t to_v_id, VectorXd measurement, MatrixXd information); }; class PoseGraph2D { public: PoseGraph2D(std::string dataset_name); void get_poses_landmarks(); std::string dataset_name_; std::vector<EdgePGO> edges_; std::map<size_t, VertexPGO*> vertex_map_; // state vector (concatenated pose vectors) VectorXd x_; VectorXd pose_start_idxs_; VectorXd landmark_start_idxs_; private: void read_vertex_data(std::string vertices_fpath); void read_edge_data(std::string edges_fpath); void read_initial_state_vector(std::string initial_state_fpath); };
807b69eab935cf35215c78a5839a67028f267465
6a594317c53aa467aa85f66b79f0a1accf1a9354
/stdafx.cpp
2402857bc495bb85f2db91509dd2883c14e69e7a
[]
no_license
davepie101/SFML-pong
ccea06bbaacffe16779c3602e00525dcd1fd9131
113a8e37090d8339121d365a2000c53490f42cde
refs/heads/master
2020-07-09T17:50:34.613171
2020-01-01T15:44:19
2020-01-01T15:44:19
204,038,935
0
0
null
null
null
null
UTF-8
C++
false
false
326
cpp
// stdafx.cpp : source file that includes just the standard includes // pang.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" //exists to ensure that stdafx.h is called // TODO: reference any additional headers you need in STDAFX.H // and not in this file
dd4604ea41282fc6f6c1e4b77adee92b1b2f104f
d0fb46aecc3b69983e7f6244331a81dff42d9595
/cloudwf/include/alibabacloud/cloudwf/model/GetGroupApRepairProgressResult.h
8b438c7bd7dd55668a47bf0b6c80d141b76b1a24
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-cpp-sdk
3d8d051d44ad00753a429817dd03957614c0c66a
e862bd03c844bcb7ccaa90571bceaa2802c7f135
refs/heads/master
2023-08-29T11:54:00.525102
2023-08-29T03:32:48
2023-08-29T03:32:48
115,379,460
104
82
NOASSERTION
2023-09-14T06:13:33
2017-12-26T02:53:27
C++
UTF-8
C++
false
false
1,677
h
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ALIBABACLOUD_CLOUDWF_MODEL_GETGROUPAPREPAIRPROGRESSRESULT_H_ #define ALIBABACLOUD_CLOUDWF_MODEL_GETGROUPAPREPAIRPROGRESSRESULT_H_ #include <string> #include <vector> #include <utility> #include <alibabacloud/core/ServiceResult.h> #include <alibabacloud/cloudwf/CloudwfExport.h> namespace AlibabaCloud { namespace Cloudwf { namespace Model { class ALIBABACLOUD_CLOUDWF_EXPORT GetGroupApRepairProgressResult : public ServiceResult { public: GetGroupApRepairProgressResult(); explicit GetGroupApRepairProgressResult(const std::string &payload); ~GetGroupApRepairProgressResult(); std::string getMessage()const; std::string getErrorMsg()const; std::string getData()const; int getErrorCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; std::string errorMsg_; std::string data_; int errorCode_; bool success_; }; } } } #endif // !ALIBABACLOUD_CLOUDWF_MODEL_GETGROUPAPREPAIRPROGRESSRESULT_H_
bd7d82b86a2f85b169c20cb62e1e2bd2518030f1
93a14329c5c21a132d9ba37d069d315910da9429
/Branch Prediction/extracredit.cpp
04a12870bea7c773712ef39cf83703cc05a44ae6
[]
no_license
aceetheridge/Cpp-BranchPredictionMethods
707f503217096e4e9856e11edb2b782c9193ae2d
5a1e4c1bed702bcece951ea55d1b579b4f4465b4
refs/heads/master
2020-06-24T08:24:01.455891
2019-07-25T23:17:29
2019-07-25T23:17:29
198,912,334
1
0
null
null
null
null
UTF-8
C++
false
false
6,466
cpp
// Aaron Etheridge // 800936351 [email protected] // #include <iostream> #include <unordered_map> #include <vector> #include <algorithm> #include <string> #include <iostream> #include <fstream> #include <stdio.h> #include <math.h> #include <sstream> #include <typeinfo> using namespace std; int argument_to_int(char *arg[]); int main(int argc, char *argv[]){ int statebits = (pow(2,argument_to_int(&argv[1])))/2; int bht[4096]; int bias[4096]; int meta[4096]; //int finmeta[4096]; for(int i = 0; i< 4096; i++){ // starts all tables at strongly not taken bht[i] = -1; // bias[i] = 0; meta[i] = -1; //finmeta[i] = -1; } string address; string take; string condition; string empty1; string empty2; string empty3; string empty4; string empty5; // empty strings to read in data properly string empty6; string empty7; string empty8; string empty9; string empty10; string bhtstr = "000000000000"; int biasindex; string result1; string result2; string resultfinal; string select; string combine; string metastr; string taken; string biasstr; long int hit = 0; long int count = 0; ifstream input; input.open("branch-trace-gcc.trace"); while (true) { // comment these two if statements to run pin.trace input input >> address >> taken; if(taken == "T"){ take = "1"; } if(taken == "N"){ take = "0"; } // uncomment this code to run the pin files // input >> empty1 >> take >> condition >> empty4 >> empty5 >> empty6 >> empty7 >> address >> empty9 >> empty2 >> empty3; // if (empty3 == "ret") // { // } // else // { // input >> empty10; // if (empty10 == "qword") // { // input >> empty2 >> empty2; // all this sorts the valuable data // } // else if (empty10 == "jmp") // { // input >> empty2; // } // } //if (condition == "1") //{ address = address.substr(2,12); int x = stoi(bhtstr,nullptr,2); long long y = stoll(address,nullptr,16); biasindex = y % 4096; int z = (x^y) % 4096; if(bht[x%4096] > 0){ //another prediction result result2 = "1"; } else if(bht[x%4096] < 1){ result2 = "0"; } if(meta[z] > 0 && bias[biasindex] > 0){ // combines two predictions and outputs a prediction result1 = "1"; } else if(meta[z] > 0 && bias[biasindex] < 1){ result1 = "1"; } else if(meta[z] <= 0 && bias[biasindex] > 0){ result1 = "1"; } else if(meta[z] <= 0 && bias[biasindex] < 1){ result1 = "0"; } // if(finmeta[biasindex] > 0){ // select = 1; // } // else if(finmeta[biasindex] < 1){ // select = 0; // } // This just shifts the counters for next iteration if(take == "T" || take == "1" ){ if(meta[z] < statebits){ meta[z]++; } if(bht[x%4096] < statebits){ bht[biasindex]++; } bias[biasindex] = 1; } else if(take == "N" || take == "0"){ if(meta[z] > (statebits *(-1)+ 1)){ meta[z]--; } if(bht[x%4096] > (statebits *(-1)+ 1)){ bht[biasindex]--; } bias[biasindex] = 0; } // converts two predictions to strings if(meta[z] > 0){ metastr = "1"; } else if(meta[z] < 1){ metastr = "0"; } if(bias[biasindex] >0){ biasstr = "1"; } else if(bias[biasindex] < 1){ biasstr = "0"; } // combines all the results from all of the predictors into one predictor combine = result1 + result2 + metastr + biasstr; ///////////3/////////2//////////1/////////1 /// these comments tell the weights of the predictions // if the total is greater than 3 then its a T if(combine == "0000" || combine == "0001" || combine == "0010" || combine == "0011" || combine == "0100"|| combine == "1000"){ resultfinal = "0"; } else if(combine == "0101"|| combine == "0110" || combine == "0111" || combine == "1001" || combine =="1010" || combine == "1011" // if less than 4 its a N || combine == "1100" || combine == "1101" || combine == "1110" || combine == "1111"){ resultfinal = "1"; } // if(select > 1){ // resultfinal = result1; // } // else if(select < 2){ // resultfinal == result2; // } if(take == resultfinal){ //if(finmeta[biasindex] < statebits){ // finmeta[biasindex]++; //} hit++; count++; } else if(take != resultfinal){ //if(finmeta[biasindex] > (statebits *(-1)+ 1)){ // finmeta[biasindex]--; //} count++; } if(take == "T" || take == "1"){ //shifts the past history table string bhtstr = bhtstr + "1"; } else if(take == "N" || take == "0" ){ bhtstr = bhtstr + "0"; } bhtstr = bhtstr.substr(1,12); //} if(input.eof()){ break; } } cout << "Hit: " << hit << " Count: " << count << " Miss Rate: " << (1-((double)hit/(double)count))*100 << endl; input.close(); return 0; } int argument_to_int(char *arg[]){ // Takes in the arguments int result = 0; result = (atoi(arg[0]))*(1); cout << result << endl; return result; }
f835add4f53e0138227d2930d200a4d079af129a
863335e067b1389cd5ae337eac669daf90d77dec
/love_o_meter/love_o_meter.ino
9fc0772bcfd36fc41c81dadf82a14ccc89962a8f
[]
no_license
marcinb/arduino
ef83a934380c37ff623167df7927200db591c034
1f4bffc0256efdbecf9188693bedad26800bdebd
refs/heads/master
2021-01-01T06:54:32.914372
2014-01-26T22:18:48
2014-01-26T22:18:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
826
ino
float baselineTemp = 20.0; float currentDiff = 0.0; void setup() { pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); Serial.begin(9600); baselineTemp = getTemperature(); } void loop() { currentDiff = getTemperatureDifference(); if(currentDiff >= 6.0) { setLEDsState(3, HIGH); } else if(currentDiff >= 4.0) { setLEDsState(2, HIGH); } else if(currentDiff >= 2.0) { setLEDsState(1, HIGH); } else { setLEDsState(3, LOW); } delay(1); } float getTemperatureDifference() { return getTemperature() - baselineTemp; } float getTemperature() { int sensorVal = analogRead(A0); float voltage = (sensorVal/1024.0) * 5.0; return (voltage - 0.5) * 100.0; } void setLEDsState(int count, int state){ for(int i = 3; i <= i + count; i++) { digitalWrite(i, state); } }
f37b431b65c38ffc2ddcc93854765b779f1050eb
8567438779e6af0754620a25d379c348e4cd5a5d
/third_party/WebKit/Source/platform/fonts/FontFallbackIterator.h
4b8f30ccb7f92630cf40fec895b49eb9d929f326
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause" ]
permissive
thngkaiyuan/chromium
c389ac4b50ccba28ee077cbf6115c41b547955ae
dab56a4a71f87f64ecc0044e97b4a8f247787a68
refs/heads/master
2022-11-10T02:50:29.326119
2017-04-08T12:28:57
2017-04-08T12:28:57
84,073,924
0
1
BSD-3-Clause
2022-10-25T19:47:15
2017-03-06T13:04:15
null
UTF-8
C++
false
false
2,908
h
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef FontFallbackIterator_h #define FontFallbackIterator_h #include "platform/fonts/FontDataForRangeSet.h" #include "platform/fonts/FontFallbackPriority.h" #include "wtf/HashMap.h" #include "wtf/PassRefPtr.h" #include "wtf/RefCounted.h" #include "wtf/RefPtr.h" #include "wtf/Vector.h" #include "wtf/text/Unicode.h" namespace blink { using namespace WTF; class FontDescription; class FontFallbackList; class SimpleFontData; class FontFallbackIterator : public RefCounted<FontFallbackIterator> { WTF_MAKE_NONCOPYABLE(FontFallbackIterator); public: static PassRefPtr<FontFallbackIterator> create(const FontDescription&, PassRefPtr<FontFallbackList>, FontFallbackPriority); bool hasNext() const { return m_fallbackStage != OutOfLuck; }; // Some system fallback APIs (Windows, Android) require a character, or a // portion of the string to be passed. On Mac and Linux, we get a list of // fonts without passing in characters. PassRefPtr<FontDataForRangeSet> next(const Vector<UChar32>& hintList); private: FontFallbackIterator(const FontDescription&, PassRefPtr<FontFallbackList>, FontFallbackPriority); bool rangeSetContributesForHint(const Vector<UChar32> hintList, const FontDataForRangeSet*); bool alreadyLoadingRangeForHintChar(UChar32 hintChar); void willUseRange(const AtomicString& family, const FontDataForRangeSet&); PassRefPtr<FontDataForRangeSet> uniqueOrNext( PassRefPtr<FontDataForRangeSet> candidate, const Vector<UChar32>& hintList); PassRefPtr<SimpleFontData> fallbackPriorityFont(UChar32 hint); PassRefPtr<SimpleFontData> uniqueSystemFontForHintList( const Vector<UChar32>& hintList); const FontDescription& m_fontDescription; RefPtr<FontFallbackList> m_fontFallbackList; int m_currentFontDataIndex; unsigned m_segmentedFaceIndex; enum FallbackStage { FallbackPriorityFonts, FontGroupFonts, SegmentedFace, PreferencesFonts, SystemFonts, OutOfLuck }; FallbackStage m_fallbackStage; HashSet<UChar32> m_previouslyAskedForHint; // FontFallbackIterator is meant for single use by HarfBuzzShaper, // traversing through the fonts for shaping only once. We must not return // duplicate FontDataForRangeSet objects from the next() iteration functions // as returning a duplicate value causes a shaping run that won't return any // results. HashSet<uint32_t> m_uniqueFontDataForRangeSetsReturned; Vector<RefPtr<FontDataForRangeSet>> m_trackedLoadingRangeSets; FontFallbackPriority m_fontFallbackPriority; }; } // namespace blink #endif
8e208eaeda293c94089166287275d1729ecbeefb
8f72438d5f4ca7219df3ae7799c3282faab5e33e
/C++ Programming/Glut/First/main.cpp
5387c6027cbbdcc0674ec43cd2dd4ee3dff7c38d
[]
no_license
mdzobayer/Problem-Solving
01eda863ef2f1e80aedcdc59bbaa48bcaeef9430
a5b129b6817d9ec7648150f01325d9dcad282aed
refs/heads/master
2022-08-15T22:04:18.161409
2022-08-08T11:46:00
2022-08-08T11:46:00
165,687,520
0
1
null
null
null
null
UTF-8
C++
false
false
2,066
cpp
#include<windows.h> #include <GL/glut.h> #include <stdlib.h> void displayWindow(float x, float y) { //glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //glBegin(GL_LINES); glVertex2f(x, y); glVertex2f(x + 1.5,y); glVertex2f(x, y); glVertex2f(x,y - 1.5); glVertex2f(x,y - 1.5); glVertex2f(x + 1.5,y - 1.5); glVertex2f(x + 1.5,y); glVertex2f(x + 1.5,y - 1.5); } void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glBegin(GL_LINES); /// For X // glVertex2f(-10,0); // glVertex2f(10,0); // /// Y Axix // glVertex2f(0,10); // glVertex2f(0,-10); glColor3d(0,1,0); /// A glVertex2f(-4.5,3); glVertex2f(2,3); /// B glVertex2f(-4.5,3); glVertex2f(-6,1); /// C glVertex2f(2,3); glVertex2f(1,1); /// D glVertex2f(2,3); glVertex2f(3,1); /// E glVertex2f(3,1); glVertex2f(-6,1); /// F glVertex2f(-6,1); glVertex2f(-6,-3); /// G glVertex2f(-6,-3); glVertex2f(3,-3); /// H glVertex2f(3,1); glVertex2f(3,-3); /// I glVertex2f(1,1); glVertex2f(1,-3); /// Now Door glVertex2f(-1.5,-2.9); glVertex2f(-1.5,-0.1); glVertex2f(-3,-2.9); glVertex2f(-3,-0.1); glVertex2f(-1.5,-0.1); glVertex2f(-3,-0.1); glVertex2f(-3,-2.9); glVertex2f(-1.5,-2.9); /// Now Windows displayWindow(-5.2, -0.3); displayWindow(-1, -0.3); displayWindow(1.3, -0.3); glEnd(); glRotatef(45,0,1,0); /*glBegin(GL_LINES); glVertex2f (1 , 1); glVertex2f (-1, 1); glVertex2f (1, 1); glVertex2f (2, 2); glVertex2f (-1, 1); glVertex2f (2, 2); glEnd();*/ glFlush(); } int main() { glutInitWindowSize(640,480); glutInitWindowPosition(10,10); glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE); glutCreateWindow("Sweet Home :)"); glOrtho(-8, 8, -4, 4, -4, 4); glutDisplayFunc(display); glClearColor(0,0,0,1); glutMainLoop(); return 0; }
cab20f771d7759b3d3f41b84f4e6e906bf628a38
afd3373700f1d35d5deed49e4d9a4de7cb2bbf22
/Template.cpp
412f98f99302dc9fb2a4f12d4d27f9d2eee5773d
[]
no_license
chim4us/CPlusPlus
0955c84a44512d913a282fde4b7bb3a81d6d3123
bb7c9987413998010fcee90d1bbce6b9f19d1f6a
refs/heads/main
2023-02-09T15:54:53.891938
2021-01-09T11:41:46
2021-01-09T11:41:46
323,581,109
0
0
null
null
null
null
UTF-8
C++
false
false
463
cpp
#include <iostream> using namespace std; template <class T> class MathTools{ public: T multiply(T a, T b){ return a*b; } T divide(T a, T b){ return a/b; } T add(T a, T b){ return a+b; } T subtract(T a, T b){ return a-b; } }; typedef MathTools<int> IntTools; typedef MathTools<double> DoubleTools; int main() { IntTools intMathTools; DoubleTools doubleMathTools; cout<<doubleMathTools.add(3.7,2.1); return 0; }
f5835ee41f8c21f872e73861dddf97d5691b865c
7faf0b230746fd24722059bd5f09755a06cff2ed
/Socket-Programming-Casino/Gamblers.cpp
8e5da67f819f7897565e96c2ad80f8ea9ac281f3
[ "MIT" ]
permissive
Marteeen23/KRSSG
666de3e7dc166ae64192fe898eaafe25e9435bc4
0a4a8b2a61a3f2f81869e08e3f83bd7c0def4295
refs/heads/main
2023-05-07T12:34:17.096928
2021-05-24T18:07:35
2021-05-24T18:07:35
369,503,291
0
0
null
null
null
null
UTF-8
C++
false
false
1,949
cpp
#include <bits/stdc++.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> using namespace std; int _round(int cards[], int card[]); int main() { int sockfd, portno, n; struct sockaddr_in serv_addr; int i, temp; portno = 8080; sockfd = socket(AF_INET, SOCK_STREAM, 0); if (sockfd < 0){ cout<<"Error opening socket"<<endl; exit(-1); } bzero((char *) &serv_addr, sizeof(serv_addr)); serv_addr.sin_family = AF_INET; serv_addr.sin_port = htons(portno); serv_addr.sin_addr.s_addr = INADDR_ANY; if (connect(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) { cout<<"Error connecting"<<endl; exit(-1); } cout<<"\n\t ****** Welcome to The Birmingham Gamblers ****** "<<endl<<endl; int p, r; read(sockfd, &r, sizeof(r)); read(sockfd, &p, sizeof(p)); char welcome[100]; read(sockfd, &welcome, sizeof(welcome)); cout<<welcome<<endl; cout<<"There will be "<<r<<" rounds."<<endl; cout<<"You have "<<p-1<<" opponents."<<endl<<endl; int q=0; while(q<r){ int a[3], b[3]; read(sockfd, &a, sizeof(a)); cout<<"Round #"<<q+1<<"."<<endl; cout<<"Your Cards are: "; for(int i=0;i<3;i++){ cout<<a[i]<<" "; } cout<<endl; int k = _round(a, b); cout<<"Your chosen card is: "<<a[k]<<endl<<endl; send(sockfd, &b[k], sizeof(b[k]), 0); q++; } char str[100]; memset ( str, 0, 100 ); read(sockfd, &str, sizeof(str)); cout<<str<<endl; close(sockfd); } int _round(int cards[], int card[]) { for(int i=0;i<3;i++){ card[i]=cards[i]%13; if(card[i]==0){ card[i]=13; } } int k=(max_element(card, card+3)-card); return k; }
6414a68e5b15b80f4728b74154c644fdaa2b1805
9bb5dd6f2d782d26b1b30b8d3721bf9e71dda8b5
/mediastreamer2/src/videofilters/mslive_rtsp.cc
b6555de46fdb0517c3effa05215df365ffc748db
[]
no_license
jiayangang/linphone-sdk-patch
b3440bd13373100b7ff96fc655b942ab431315e6
46546e9131f3ca17ca67d304fc762d84e4101010
refs/heads/main
2023-02-04T16:19:14.378138
2020-12-19T14:34:33
2020-12-19T14:34:33
322,823,478
1
0
null
null
null
null
UTF-8
C++
false
false
6,879
cc
/***************************************************************************** 版权所有 (C), 2001-2050, ****************************************************************************** 文件名称 : mslive_rtsp.cpp 作者 : 贾延刚 创建日期 : 2020-11-03 版本 : 1.0 功能描述 : 来自RTSP服务的实时流 说明 : ******************************************************************************/ #include "mslive_rtsp.h" CExitMark::CExitMark() { ms_mutex_init(&_mutex, NULL); m_bExit = false; } CExitMark::~CExitMark() { ms_mutex_destroy(&_mutex); } bool CExitMark::IsToExit() { ms_mutex_lock(&_mutex); bool result = m_bExit; ms_mutex_unlock(&_mutex); return result; } void CExitMark::SetExit() { ms_mutex_lock(&_mutex); m_bExit = true; ms_mutex_unlock(&_mutex); } // 单位毫秒 class timeout_handler { public: timeout_handler(int64_t TimeoutMs) :timeout_ms_(TimeoutMs) {} void reset(int64_t TimeoutMs) { timeout_ms_ = TimeoutMs; lastTime_ = av_gettime() / 1000; } bool is_timeout() { int64_t actualDelay = av_gettime() / 1000 - lastTime_; return actualDelay > timeout_ms_; } // 返回1,阻塞结束 static int check_interrupt(void * t) { int result = (t && static_cast<timeout_handler *>(t)->is_timeout()) ? 1 : 0; return result; } public: int64_t timeout_ms_; int64_t lastTime_; }; CamRTSP::CamRTSP() { m_callback = NULL; m_userData = NULL; m_bDecode = false; m_st_video = NULL; m_ixVideo = -1; m_formatCtx = NULL; m_th = NULL; m_frame = NULL; } CamRTSP::~CamRTSP() { } void *CamRTSP::ThreadFunc(void *lpParam) { CamRTSP *l = (CamRTSP *)lpParam; l->Run(); return NULL; } void CamRTSP::Terminate() { } bool CamRTSP::WaitTimeout(DWORD dwMilliseconds) { if (m_thread) ms_thread_join(m_thread, NULL); return true; } bool CamRTSP::Start() { ms_thread_create(&m_thread, NULL, ThreadFunc, this); return true; } bool CamRTSP::ReadPacket(AVPacket *packet) { if (m_th) m_th->reset(m_timeout); if (av_read_frame(m_formatCtx, packet) >= 0) { if (packet->stream_index == m_ixVideo) { return true; } else { #ifdef _WIN32 av_packet_unref(packet); // TODO: 需要检查 #endif av_free_packet(packet); } } else { if (m_formatCtx->pb && m_formatCtx->pb->error) { ms_usleep(10*1000); } } return false; } void CamRTSP::Run() { YuvBuf yuv420p; while (1) { if (m_exitMark.IsToExit()) break; AVPacket *src_pkt = &m_packet; bool b = ReadPacket(src_pkt); if (b) { if (m_bDecode) { AVFrame *picture = m_frame; int got_picture; int ret = avcodec_decode_video2(m_st_video->codec, picture, &got_picture, src_pkt); // 关闭时,会异常 if (ret < 0) { ms_error("Decode Error.\n"); continue; } if (got_picture) { yuv420p.w = m_st_video->codec->width; yuv420p.h = m_st_video->codec->height; yuv420p.planes[0] = picture->data[0]; yuv420p.planes[1] = picture->data[1]; yuv420p.planes[2] = picture->data[2]; yuv420p.strides[0] = picture->linesize[0]; yuv420p.strides[1] = picture->linesize[1]; yuv420p.strides[2] = picture->linesize[2]; if (m_callback) m_callback(CAM_LIVE_TYPE_YUV420P, &yuv420p, m_userData); } } else { yuv420p.w = m_st_video->codec->width; yuv420p.h = m_st_video->codec->height; yuv420p.strides[0] = src_pkt->size; yuv420p.planes[0] = src_pkt->data; if (m_callback) m_callback(CAM_LIVE_TYPE_H264, &yuv420p, m_userData); } } } } void CamRTSP::Close() { m_exitMark.SetExit(); if (!WaitTimeout(1000)) //TODO : 异常 { Terminate(); } CloseRtsp(); } /* timeout 等待时间,毫秒 */ bool CamRTSP::OpenRtspAddr2(const char *url, int timeout) { if (!url || *url == '\0') return false; av_register_all(); avformat_network_init(); m_formatCtx = avformat_alloc_context(); if (!m_th) m_th = new timeout_handler(timeout); m_formatCtx->interrupt_callback.callback = &timeout_handler::check_interrupt; m_formatCtx->interrupt_callback.opaque = (void*)m_th; //AVFMT_FLAG_NONBLOCK m_th->reset(timeout); m_timeout = timeout; AVDictionary *options = NULL; av_dict_set(&options, "analyzeduration", "1000000", 0); // 单位微秒 av_dict_set(&options, "probesize", "100000", 0); // 100 * 1000 av_dict_set(&options, "buffer_size", "1024000", 0); av_dict_set(&options, "stimeout", "20000000", 0); //设置超时断开连接时间 毫秒 max_delay 2020-7-16 该项之前是禁用的,打开后rtmp才正常播放 if (avformat_open_input(&m_formatCtx, url, NULL, &options) != 0) //if (avformat_open_input(&m_formatCtx, url, NULL, &options) != 0) { av_dict_free(&options); ms_error("Couldn't open input stream.\n"); return false; } av_dict_free(&options); m_formatCtx->max_analyze_duration = 1000; //m_formatCtx->max_analyze_duration2 = 1000; if (avformat_find_stream_info(m_formatCtx, NULL) < 0) { ms_error("Couldn't find stream information.\n"); return false; } int ixVideo = -1; for (int k = 0; k< (int)m_formatCtx->nb_streams; k++) if (m_formatCtx->streams[k]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { ixVideo = k; m_st_video = m_formatCtx->streams[k]; break; } if (ixVideo == -1) { ms_error("Didn't find a video stream.\n"); return false; } //av_dump_format(m_formatCtx, 0, url, 0); m_ixVideo = ixVideo; m_st_video = m_formatCtx->streams[ixVideo]; return true; } unsigned int CamRTSP::support_fmts() { unsigned int result = CAM_LIVE_TYPE_YUV420P; if (0 == strncmp(m_url, "rtsp", 4)) { if (AV_CODEC_ID_H264 == m_st_video->codec->codec_id) result |= CAM_LIVE_TYPE_H264; } return result; } bool CamRTSP::read_stream(CB_Live_StreamData callback, void *userData, bool decode) { m_callback = callback; m_userData = userData; m_bDecode = decode; if (m_bDecode) { AVStream *st = m_formatCtx->streams[m_ixVideo]; AVCodec *codec = avcodec_find_decoder(st->codec->codec_id); if (!codec) return false; if (avcodec_open2(st->codec, codec, NULL) != 0) return false; m_frame = av_frame_alloc();// avcodec_alloc_frame(); m_st_video = st; } this->Start(); return true; } bool CamRTSP::CloseRtsp() { if (m_formatCtx) { if (m_st_video) avcodec_close(m_st_video->codec); avformat_close_input(&m_formatCtx); m_formatCtx = NULL; } if (m_frame) av_frame_free(&m_frame); m_frame = NULL; if (m_th) delete m_th; m_th = NULL; return true; } bool CamRTSP::open(const char *addr) { strncpy(m_url, addr, 255); return OpenRtspAddr2(addr, 10 * 1000); }
1f195f9f311c2f8353d76ab8bdf555a3deef53a5
e96ffcc42c3c03ccab74622007921783005c00bd
/05_QMainWindow/mainwindow.cpp
77791e97e54cf0a8b4e9c81f417308b17fa172e5
[]
no_license
cedricxs/QT
1635290f8bccb88b5fc7c52b736d2e7bb985b909
b3670d94f4397fb428035a0bede8ac4786e9aefb
refs/heads/master
2020-03-10T06:37:09.119847
2018-11-03T13:24:03
2018-11-03T13:24:03
128,939,908
0
0
null
null
null
null
UTF-8
C++
false
false
1,418
cpp
#include "mainwindow.h" #include<QMenuBar> #include<QMenu> #include<QAction> #include<QDebug> #include<QToolBar> #include<QPushButton> #include<QStatusBar> #include<QLabel> #include<QTextEdit> #include<QDockWidget> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { //menu QMenuBar *mbar=this->menuBar(); QMenu*pfile=mbar->addMenu("File"); QAction*pnew =pfile->addAction("new file"); connect(pnew,&QAction::triggered,[=](){qDebug()<<"is triggered";}); pfile->addSeparator(); QAction*popen=pfile->addAction("open"); connect(popen,&QAction::triggered,this,&MainWindow::close); //tools QToolBar *toolbar=this->addToolBar("tools"); toolbar->addAction(pnew); QPushButton *b=new QPushButton(this); b->setText("^_^"); connect(b,&QPushButton::clicked,[=](){b->setText("^v^");}); toolbar->addWidget(b); //zhuangtai QStatusBar*statu=this->statusBar(); QLabel*label=new QLabel(this); label->setText("normal text file"); statu->addWidget(label); statu->addWidget(new QLabel("2",this)); statu->addPermanentWidget(new QLabel("3",this)); //hexinkongjian QTextEdit*text=new QTextEdit(this); this->setCentralWidget(text); //fudongchuangkou QDockWidget*dock=new QDockWidget(this); this->addDockWidget(Qt::RightDockWidgetArea,dock); QTextEdit*text1=new QTextEdit(this); dock->setWidget(text1); } MainWindow::~MainWindow() { }
ec33f7f34762e9c31a261b0e6a9dac84986548ab
981e80bf5b9835b08778e0c3aeebd9e6d424ff04
/chaining/yas_observing_vector_holder.h
5abde95097d496cf71d65b2d2c06c1f88a227e45
[ "MIT" ]
permissive
objective-audio/chaining
9b88bb6cec34d29edbbba5689f15f747a22e47f8
8fbafa73ee0de0a9d9d226bd48c7e61e2b6b1943
refs/heads/master
2021-06-13T04:11:43.552013
2021-03-03T12:45:54
2021-03-03T12:45:54
143,808,444
0
0
MIT
2021-03-03T12:45:55
2018-08-07T02:29:57
C++
UTF-8
C++
false
false
1,880
h
// // yas_observing_vector_holder.h // #pragma once #include <chaining/yas_observing_caller.h> #include <vector> namespace yas::observing::vector { template <typename T> class holder; template <typename T> using holder_ptr = std::shared_ptr<holder<T>>; enum class event_type { any, replaced, inserted, erased, }; template <typename T> struct holder final { struct event { event_type type; std::vector<T> const &elements; T const *element = nullptr; // replaced, inserted, erased std::optional<std::size_t> index = std::nullopt; // replaced, inserted, erased }; [[nodiscard]] std::vector<T> const &value() const; [[nodiscard]] T const &at(std::size_t const) const; [[nodiscard]] std::size_t size() const; void replace(std::vector<T> const &); void replace(std::vector<T> &&); void replace(T const &, std::size_t const); void replace(T &&, std::size_t const); void push_back(T const &); void push_back(T &&); void insert(T const &, std::size_t const); void insert(T &&, std::size_t const); T erase(std::size_t const); void clear(); [[nodiscard]] canceller_ptr observe(typename caller<event>::handler_f &&, bool const sync); [[nodiscard]] static holder_ptr<T> make_shared(); [[nodiscard]] static holder_ptr<T> make_shared(std::vector<T> &&); [[nodiscard]] static holder_ptr<T> make_shared(std::vector<T> const &); private: std::vector<T> _raw; caller<event> _caller; holder(std::vector<T> const &); holder(std::vector<T> &&); void _call_any(); void _call_replaced(std::size_t const idx); void _call_inserted(std::size_t const idx); void _call_erased(T const *, std::size_t const idx); }; } // namespace yas::observing::vector #include <chaining/yas_observing_vector_holder_private.h>
ca359d69822598b4cc9c6262611abc5f5a6543e3
de29671134ea5f48a6a42177a10c59e6ce0c2f57
/Advance IoT/firebaseOta/firebaseOta.ino
64e3b7b02b848e0e3bfa3def69fe2ef9172bd5ed
[]
no_license
deepak4395/Teaching-material
ced412140fb0701446fd7078e917036cf96c612e
e1ac6a9256f145e06de83444eb69718717587821
refs/heads/master
2023-02-13T16:32:03.753803
2021-01-15T12:50:23
2021-01-15T12:50:23
307,067,237
0
1
null
null
null
null
UTF-8
C++
false
false
2,033
ino
#define FIREBASE_HOST "ble-beacon-a5913.firebaseio.com" #define FIREBASE_AUTH "uOIi0l52NWuMmY0HFBhFbVXQvC9ONrPhIY5tJnfw" #define WIFI_SSID "M 57" #define WIFI_PASSWORD "8376918157" #define FIREBASE_UPDATE_AVAILABLE "/firmware/updateAvailable" #define FIREBASE_FIRMWARE_URL "/firmware/URL" long UPDATE_CHECK_TIME = 5000; String ver = "3.0.0.0"; #include <firebaseOTA.h> #include <WiFi.h> #include <FirebaseESP32.h> FirebaseData firebaseData; void setup() { Serial.begin(115200); Serial.print("Running Firmware Ver: "); Serial.println(ver); WiFi.mode(WIFI_STA); WiFi.begin(WIFI_SSID, WIFI_PASSWORD); Serial.print("Connecting to Wi-Fi"); while (WiFi.status() != WL_CONNECTED) { Serial.print("."); delay(300); } Serial.println(); Serial.print("Connected with IP: "); Serial.println(WiFi.localIP()); Serial.println(); Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); } void loop() { checkUpdate(); Serial.println(" Advance iot batch is great"); delay(1000); } long lastUpdateCheck = millis(); void checkUpdate() { if (millis() - lastUpdateCheck > UPDATE_CHECK_TIME) { lastUpdateCheck = millis(); if (Firebase.getBool(firebaseData, FIREBASE_UPDATE_AVAILABLE)) { bool b = firebaseData.boolData(); if (b) { Serial.println("Update Available"); if (!Firebase.setBool(firebaseData, FIREBASE_UPDATE_AVAILABLE, false)) { Serial.print("Error in setBool, "); Serial.println(firebaseData.errorReason()); } if (Firebase.getString(firebaseData, FIREBASE_FIRMWARE_URL)) { String s = firebaseData.stringData(); Serial.println("Firmare URL="); Serial.println(s); updateFirmware(s); } else { Serial.print("Error in getString, "); Serial.println(firebaseData.errorReason()); } } else Serial.println("No Updates"); } else { Serial.print("Error in getBool, "); Serial.println(firebaseData.errorReason()); } } }
6e62f557a9f5840bdf2b8805887c18982a1dae82
da04be92e31c812c4086bc6667699cd4bb2551bc
/InnerMsgLib/inc/GenerateMsgParams.h
12a01a94bb9be0a4811c5005670b641f24479128
[]
no_license
woopengcheng/BasicLib
c25e64a8008a44eb926e3fc833b59071490aa634
c7cd63ef40171334306a33a8d0cbd568f4b59aa1
refs/heads/master
2020-12-24T14:17:52.214924
2017-06-13T08:50:20
2017-06-13T08:50:20
23,398,233
2
0
null
null
null
null
UTF-8
C++
false
false
225
h
#ifndef __msg_generate_msg_params_h__ #define __msg_generate_msg_params_h__ namespace Msg { class GenerateMsgParams { public: GenerateMsgParams(){} virtual ~GenerateMsgParams(){} public: }; } #endif
8cfb36aeb5ebfcb5ff49a77c586d1f98eae00b28
93deffee902a42052d9f5fb01e516becafe45b34
/cf/1228/E.cpp
1dfb169e26c22dd917f1cc6539c0e4e95d32e524
[]
no_license
kobortor/Competitive-Programming
1aca670bc37ea6254eeabbe33e1ee016174551cc
69197e664a71a492cb5b0311a9f7b00cf0b1ccba
refs/heads/master
2023-06-25T05:04:42.492243
2023-06-16T18:28:42
2023-06-16T18:28:42
95,998,328
10
0
null
null
null
null
UTF-8
C++
false
false
1,406
cpp
#include<bits/stdc++.h> using namespace std; #define allof(x) (x).begin(), (x).end() typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; const int MAXN = 255; const ll mod = 1e9 + 7; ll dp[MAXN][MAXN]; ll nck[MAXN][MAXN]; ll kpow[MAXN]; ll ksub1pow[MAXN]; int main(){ cin.tie(0); cin.sync_with_stdio(0); nck[0][0] = 1; for (int a = 1; a < MAXN; a++) { nck[a][0] = 1; for (int b = 1; b <= a; b++) { nck[a][b] = (nck[a - 1][b - 1] + nck[a - 1][b]) % mod; } } ll n, k; cin >> n >> k; kpow[0] = 1; ksub1pow[0] = 1; for (int a = 1; a < MAXN; a++) { kpow[a] = kpow[a - 1] * k % mod; ksub1pow[a] = ksub1pow[a - 1] * (k - 1) % mod; } dp[0][0] = 1; for (int a = 1; a <= n; a++) { // row id for (int b = 1; b <= n; b++) { // number of columns with 1 for (int c = 0; c < b; c++) { // number of columns with 1 before ll toadd = dp[a - 1][c] * nck[n - c][b - c] % mod * ksub1pow[n - b] % mod * kpow[c] % mod; dp[a][b] = (dp[a][b] + toadd) % mod; } // make sure we are doing at least 1 on this row ll toadd = dp[a - 1][b] * ksub1pow[n - b] % mod * (kpow[b] - ksub1pow[b] + mod) % mod; dp[a][b] = (dp[a][b] + toadd) % mod; } } cout << dp[n][n]; }
5846fc937357c40cd541e706ec35a777f354acf1
4bd600e65b6555f8a6afbb9775fd4739b7d9e4a2
/Advanced/1010. Radix (25).cpp
88c33d2c3ef465898f969473e2892551e64a134d
[]
no_license
BaldrLector/PAT
b9891fc3d1639e9b04b41a8e27df18e08c5feeb9
a502e362fbc5fcc7ff6df4e950f88aaba82dfbe4
refs/heads/master
2021-01-21T01:20:52.746157
2017-09-13T12:27:37
2017-09-13T12:27:37
101,874,971
0
0
null
null
null
null
UTF-8
C++
false
false
1,708
cpp
#include<cstdio> #include<iostream> #include<algorithm> #include<string> #include<cstring> #include<vector> #include<set> #include<cstdlib> #include<queue> using namespace std; const int maxn=10100; const int INF=1000000000; typedef long long LL; int Map[256]; LL inf=(1LL << 63)-1; void init(){ for(char c='0';c<='9';c++){ Map[c]=c-'0'; } for(char c='a';c<='z';c++){ Map[c]=c-'a'+10; } } LL convertTo10Num(char s[], int redix,LL t){ int len=strlen(s); int sum=0; for(int i=0;i<len;i++){ sum=sum*redix+Map[s[i]]; if(sum<0||sum>t) return -1; } return sum; } int cmp(char s[], int redix,LL t){ LL num=convertTo10Num(s,redix,inf); if(num<0) return 1; if(num<t) return -1; else if(num==t) return 0; else return 1; } LL binarySearch(char N2[],LL left,LL right,LL t){ LL mid; while(left<=right){ mid=(left+right)/2; int flag=cmp(N2,mid,t); if(flag==0) return mid; else if(flag==-1) left=mid+1; else right=mid-1; } return -1; } int findLargestDigit(char N2[]){ int k=-1; int len=strlen(N2); for(int i=0;i<len;i++){ k=max(k,Map[N2[i]]); } return k+1; } char N1[20],N2[20],temp[20]; int tag,redix; int main() { freopen("data.in", "r", stdin); init(); scanf("%s %s %d %d", N1, N2, &tag, &redix); if(tag==2){ strcpy(temp,N1); strcpy(N1,N2); strcpy(N2,temp); } LL t=convertTo10Num(N1,redix,inf); LL low=findLargestDigit(N2); LL high=max(low,t)+1; LL ans=binarySearch(N2,low,high,t); if(ans==-1) printf("Impossible\n"); else printf("%lld\n", ans); return 0; }
f225de7e259a072e2612cd59bc14beceef80b7f5
73ee941896043f9b3e2ab40028d24ddd202f695f
/external/skia/include/device/xps/SkXPSDevice.h
ca6fd7ecf7566221597dff5afda1994110f3b4c6
[ "BSD-3-Clause", "SGI-B-2.0" ]
permissive
CyFI-Lab-Public/RetroScope
d441ea28b33aceeb9888c330a54b033cd7d48b05
276b5b03d63f49235db74f2c501057abb9e79d89
refs/heads/master
2022-04-08T23:11:44.482107
2016-09-22T20:15:43
2016-09-22T20:15:43
58,890,600
5
3
null
null
null
null
UTF-8
C++
false
false
9,626
h
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkXPSDevice_DEFINED #define SkXPSDevice_DEFINED #include "SkTypes.h" #include <ObjBase.h> #include <XpsObjectModel.h> #include "SkAutoCoInitialize.h" #include "SkBitSet.h" #include "SkCanvas.h" #include "SkColor.h" #include "SkDevice.h" #include "SkPaint.h" #include "SkPath.h" #include "SkPoint.h" #include "SkShader.h" #include "SkSize.h" #include "SkTArray.h" #include "SkTScopedComPtr.h" #include "SkTypeface.h" /** \class SkXPSDevice The drawing context for the XPS backend. */ class SkXPSDevice : public SkDevice { public: SK_API SkXPSDevice(); SK_API virtual ~SkXPSDevice(); virtual bool beginPortfolio(SkWStream* outputStream); /** @param unitsPerMeter converts geometry units into physical units. @param pixelsPerMeter resolution to use when geometry must be rasterized. @param trimSize final page size in physical units. The top left of the trim is the origin of physical space. @param mediaBox The size of the physical media in physical units. The top and left must be less than zero. The bottom and right must be greater than the trimSize. The default is to coincide with the trimSize. @param bleedBox The size of the bleed box in physical units. Must be contained within the mediaBox. The default is to coincide with the mediaBox. @param artBox The size of the content box in physical units. Must be contained within the trimSize. The default is to coincide with the trimSize. @param cropBox The size of the recommended view port in physical units. Must be contained within the mediaBox. The default is to coincide with the mediaBox. */ virtual bool beginSheet( const SkVector& unitsPerMeter, const SkVector& pixelsPerMeter, const SkSize& trimSize, const SkRect* mediaBox = NULL, const SkRect* bleedBox = NULL, const SkRect* artBox = NULL, const SkRect* cropBox = NULL); virtual bool endSheet(); virtual bool endPortfolio(); virtual uint32_t getDeviceCapabilities() SK_OVERRIDE; protected: virtual void clear(SkColor color) SK_OVERRIDE; virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; virtual void drawPoints( const SkDraw&, SkCanvas::PointMode mode, size_t count, const SkPoint[], const SkPaint& paint) SK_OVERRIDE; virtual void drawRect( const SkDraw&, const SkRect& r, const SkPaint& paint) SK_OVERRIDE; virtual void drawRRect( const SkDraw&, const SkRRect&, const SkPaint& paint) SK_OVERRIDE; virtual void drawPath( const SkDraw&, const SkPath& platonicPath, const SkPaint& paint, const SkMatrix* prePathMatrix, bool pathIsMutable) SK_OVERRIDE; virtual void drawBitmap( const SkDraw&, const SkBitmap& bitmap, const SkMatrix& matrix, const SkPaint& paint) SK_OVERRIDE; virtual void drawSprite( const SkDraw&, const SkBitmap& bitmap, int x, int y, const SkPaint& paint) SK_OVERRIDE; virtual void drawText( const SkDraw&, const void* text, size_t len, SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERRIDE; virtual void drawPosText( const SkDraw&, const void* text, size_t len, const SkScalar pos[], SkScalar constY, int scalarsPerPos, const SkPaint& paint) SK_OVERRIDE; virtual void drawTextOnPath( const SkDraw&, const void* text, size_t len, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) SK_OVERRIDE; virtual void drawVertices( const SkDraw&, SkCanvas::VertexMode, int vertexCount, const SkPoint verts[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int indexCount, const SkPaint& paint) SK_OVERRIDE; virtual void drawDevice( const SkDraw&, SkDevice* device, int x, int y, const SkPaint& paint) SK_OVERRIDE; virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y, SkCanvas::Config8888) SK_OVERRIDE; virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE; private: class TypefaceUse : ::SkNoncopyable { public: SkFontID typefaceId; int ttcIndex; SkStream* fontData; IXpsOMFontResource* xpsFont; SkBitSet* glyphsUsed; explicit TypefaceUse(); ~TypefaceUse(); }; friend static HRESULT subset_typeface(TypefaceUse* current); SkXPSDevice(IXpsOMObjectFactory* xpsFactory); SkAutoCoInitialize fAutoCo; SkTScopedComPtr<IXpsOMObjectFactory> fXpsFactory; SkTScopedComPtr<IStream> fOutputStream; SkTScopedComPtr<IXpsOMPackageWriter> fPackageWriter; unsigned int fCurrentPage; SkTScopedComPtr<IXpsOMCanvas> fCurrentXpsCanvas; SkSize fCurrentCanvasSize; SkVector fCurrentUnitsPerMeter; SkVector fCurrentPixelsPerMeter; SkTArray<TypefaceUse, true> fTypefaces; HRESULT initXpsDocumentWriter(IXpsOMImageResource* image); HRESULT createXpsPage( const XPS_SIZE& pageSize, IXpsOMPage** page); HRESULT createXpsThumbnail( IXpsOMPage* page, const unsigned int pageNumber, IXpsOMImageResource** image); void internalDrawRect( const SkDraw&, const SkRect& r, bool transformRect, const SkPaint& paint); HRESULT createXpsBrush( const SkPaint& skPaint, IXpsOMBrush** xpsBrush, const SkMatrix* parentTransform = NULL); HRESULT createXpsSolidColorBrush( const SkColor skColor, const SkAlpha alpha, IXpsOMBrush** xpsBrush); HRESULT createXpsImageBrush( const SkBitmap& bitmap, const SkMatrix& localMatrix, const SkShader::TileMode (&xy)[2], const SkAlpha alpha, IXpsOMTileBrush** xpsBrush); HRESULT createXpsLinearGradient( SkShader::GradientInfo info, const SkAlpha alpha, const SkMatrix& localMatrix, IXpsOMMatrixTransform* xpsMatrixToUse, IXpsOMBrush** xpsBrush); HRESULT createXpsRadialGradient( SkShader::GradientInfo info, const SkAlpha alpha, const SkMatrix& localMatrix, IXpsOMMatrixTransform* xpsMatrixToUse, IXpsOMBrush** xpsBrush); HRESULT createXpsGradientStop( const SkColor skColor, const SkScalar offset, IXpsOMGradientStop** xpsGradStop); HRESULT createXpsTransform( const SkMatrix& matrix, IXpsOMMatrixTransform ** xpsTransform); HRESULT createXpsRect( const SkRect& rect, BOOL stroke, BOOL fill, IXpsOMGeometryFigure** xpsRect); HRESULT createXpsQuad( const SkPoint (&points)[4], BOOL stroke, BOOL fill, IXpsOMGeometryFigure** xpsQuad); HRESULT CreateTypefaceUse( const SkPaint& paint, TypefaceUse** fontResource); HRESULT AddGlyphs( const SkDraw& d, IXpsOMObjectFactory* xpsFactory, IXpsOMCanvas* canvas, TypefaceUse* font, LPCWSTR text, XPS_GLYPH_INDEX* xpsGlyphs, UINT32 xpsGlyphsLen, XPS_POINT *origin, FLOAT fontSize, XPS_STYLE_SIMULATION sims, const SkMatrix& transform, const SkPaint& paint); HRESULT addXpsPathGeometry( IXpsOMGeometryFigureCollection* figures, BOOL stroke, BOOL fill, const SkPath& path); HRESULT createPath( IXpsOMGeometryFigure* figure, IXpsOMVisualCollection* visuals, IXpsOMPath** path); HRESULT sideOfClamp( const SkRect& leftPoints, const XPS_RECT& left, IXpsOMImageResource* imageResource, IXpsOMVisualCollection* visuals); HRESULT cornerOfClamp( const SkRect& tlPoints, const SkColor color, IXpsOMVisualCollection* visuals); HRESULT clip( IXpsOMVisual* xpsVisual, const SkDraw& d); HRESULT clipToPath( IXpsOMVisual* xpsVisual, const SkPath& clipPath, XPS_FILL_RULE fillRule); HRESULT drawInverseWindingPath( const SkDraw& d, const SkPath& devicePath, IXpsOMPath* xpsPath); HRESULT shadePath( IXpsOMPath* shadedPath, const SkPaint& shaderPaint, const SkMatrix& matrix, BOOL* fill, BOOL* stroke); void convertToPpm( const SkMaskFilter* filter, SkMatrix* matrix, SkVector* ppuScale, const SkIRect& clip, SkIRect* clipIRect); HRESULT applyMask( const SkDraw& d, const SkMask& mask, const SkVector& ppuScale, IXpsOMPath* shadedPath); // override from SkDevice virtual SkDevice* onCreateCompatibleDevice( SkBitmap::Config config, int width, int height, bool isOpaque, Usage usage) SK_OVERRIDE; // Disable the default copy and assign implementation. SkXPSDevice(const SkXPSDevice&); void operator=(const SkXPSDevice&); typedef SkDevice INHERITED; }; #endif
82459a7e3eba7b83f3a8d8dbf3410b5892d43c29
4af428b2e0812ed4a56454952e365ac66e5166d0
/Bench_Press.cpp
ec4977a6edd9224bb9e29e8a5ba802c475696ff1
[]
no_license
harshit774/cpp
fb18f10290e13dae512e15b8e476db9e877343dc
c6a77d6a8329be33c2b2973c6855a61ae4810f1a
refs/heads/master
2023-08-16T00:13:17.133627
2021-10-14T12:19:50
2021-10-14T12:19:50
367,886,289
3
0
null
null
null
null
UTF-8
C++
false
false
626
cpp
#include<bits/stdc++.h> #include<iostream> #include<algorithm> #include<queue> using namespace std; typedef long long int ll; const int N = 2e3 + 100; const int mod = 1e9 + 7; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll t;cin>>t; while(t--) { ll n,x,y;cin>>n>>x>>y; ll a[n]; for(ll i=0;i<n;i++) { cin>>a[i]; } sort(a,a+n); for(ll i=0;i<n-1;i++) { if(a[i]==a[i+1]) { x-=a[i]*2; i+=1; } } x-=y; if(x<=0) cout<< "YES" <<'\n'; else cout<< "NO" <<'\n'; } return 0; } //Code Contributed by Harshit Varshney
950c725746bc4a5e6ba5a0d8dd972d93dd6566f3
82bd88332c69484293a953cf1fb762f7cc3d7262
/chrome/browser/optimization_guide/page_content_annotations_service_factory.cc
50b50a3c0f3c16bdf0b5dca677871e193db2ec0a
[ "BSD-3-Clause" ]
permissive
pkoarmy/chromium
ab317292d1f877e3d20d1a7f8aa9306860ba949c
2ba933e8b9b404296d3a5d71fbe2abb0fa148544
refs/heads/master
2023-03-09T00:03:01.766283
2021-02-27T00:41:27
2021-02-27T00:41:27
342,725,308
0
0
BSD-3-Clause
2021-02-27T00:41:27
2021-02-26T23:20:15
null
UTF-8
C++
false
false
2,434
cc
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/optimization_guide/page_content_annotations_service_factory.h" #include "chrome/browser/optimization_guide/optimization_guide_keyed_service.h" #include "chrome/browser/optimization_guide/optimization_guide_keyed_service_factory.h" #include "chrome/browser/profiles/profile.h" #include "components/keyed_service/content/browser_context_dependency_manager.h" #include "components/optimization_guide/content/browser/page_content_annotations_service.h" #include "components/optimization_guide/core/optimization_guide_features.h" #include "content/public/browser/browser_context.h" // static optimization_guide::PageContentAnnotationsService* PageContentAnnotationsServiceFactory::GetForProfile(Profile* profile) { return static_cast<optimization_guide::PageContentAnnotationsService*>( GetInstance()->GetServiceForBrowserContext(profile, true)); } // static PageContentAnnotationsServiceFactory* PageContentAnnotationsServiceFactory::GetInstance() { static base::NoDestructor<PageContentAnnotationsServiceFactory> factory; return factory.get(); } PageContentAnnotationsServiceFactory::PageContentAnnotationsServiceFactory() : BrowserContextKeyedServiceFactory( "PageContentAnnotationsService", BrowserContextDependencyManager::GetInstance()) {} PageContentAnnotationsServiceFactory::~PageContentAnnotationsServiceFactory() = default; KeyedService* PageContentAnnotationsServiceFactory::BuildServiceInstanceFor( content::BrowserContext* context) const { Profile* profile = Profile::FromBrowserContext(context); // The optimization guide service must be available for the page content // annotations service to work. OptimizationGuideKeyedService* optimization_guide_keyed_service = OptimizationGuideKeyedServiceFactory::GetForProfile(profile); if (optimization_guide_keyed_service) { return new optimization_guide::PageContentAnnotationsService( optimization_guide_keyed_service); } return nullptr; } bool PageContentAnnotationsServiceFactory::ServiceIsCreatedWithBrowserContext() const { return optimization_guide::features::IsPageContentAnnotationEnabled(); } bool PageContentAnnotationsServiceFactory::ServiceIsNULLWhileTesting() const { return true; }
58f8c4f66211e2e322a4bcd6399a56b3f0d594c7
1446a45de06399c141ad722b70f8a4e2f88f01c8
/boost_1_34_1/boost_1_34_1/libs/python/src/str.cpp
5216cf543fea6be31affa713b83feb4f88c803a2
[ "LicenseRef-scancode-unknown-license-reference", "BSL-1.0" ]
permissive
Thrinaria/Codebase
270d2b837242e113d733a7e6405b5294faede534
85e541a9d1e57f7bf30b5114e5e0a2063275a75d
refs/heads/master
2021-01-01T20:34:47.359877
2015-01-30T06:04:42
2015-01-30T06:04:42
29,504,087
3
4
null
2015-01-25T01:55:41
2015-01-20T00:41:11
C++
UTF-8
C++
false
false
9,400
cpp
// Copyright David Abrahams 2004. Distributed under the Boost // Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/python/str.hpp> #include <boost/python/extract.hpp> #include <boost/python/ssize_t.hpp> namespace boost { namespace python { namespace detail { detail::new_reference str_base::call(object const& arg_) { return (detail::new_reference)PyObject_CallFunction( (PyObject*)&PyString_Type, "(O)", arg_.ptr()); } str_base::str_base() : object(detail::new_reference(::PyString_FromString(""))) {} str_base::str_base(const char* s) : object(detail::new_reference(::PyString_FromString(s))) {} namespace { ssize_t str_size_as_py_ssize_t(std::size_t n) { if (n > ssize_t_max) { throw std::range_error("str size > ssize_t_max"); } return static_cast<ssize_t>(n); } } // namespace <anonymous> str_base::str_base(char const* start, char const* finish) : object( detail::new_reference( ::PyString_FromStringAndSize( start, str_size_as_py_ssize_t(finish - start) ) ) ) {} str_base::str_base(char const* start, std::size_t length) // new str : object( detail::new_reference( ::PyString_FromStringAndSize( start, str_size_as_py_ssize_t(length) ) ) ) {} str_base::str_base(object_cref other) : object(str_base::call(other)) {} #define BOOST_PYTHON_FORMAT_OBJECT(z, n, data) "O" #define BOOST_PYTHON_OBJECT_PTR(z, n, data) , x##n .ptr() #define BOOST_PYTHON_DEFINE_STR_METHOD(name, arity) \ str str_base:: name ( BOOST_PP_ENUM_PARAMS(arity, object_cref x) ) const \ { \ return str(new_reference( \ expect_non_null( \ PyObject_CallMethod( \ this->ptr(), #name, \ "(" BOOST_PP_REPEAT(arity, BOOST_PYTHON_FORMAT_OBJECT, _) ")" \ BOOST_PP_REPEAT_1(arity, BOOST_PYTHON_OBJECT_PTR, _))))); \ } BOOST_PYTHON_DEFINE_STR_METHOD(capitalize, 0) BOOST_PYTHON_DEFINE_STR_METHOD(center, 1) long str_base::count(object_cref sub) const { return extract<long>(this->attr("count")(sub)); } long str_base::count(object_cref sub, object_cref start) const { return extract<long>(this->attr("count")(sub,start)); } long str_base::count(object_cref sub, object_cref start, object_cref end) const { return extract<long>(this->attr("count")(sub,start,end)); } object str_base::decode() const { return this->attr("decode")(); } object str_base::decode(object_cref encoding) const { return this->attr("decode")(encoding); } object str_base::decode(object_cref encoding, object_cref errors) const { return this->attr("decode")(encoding,errors); } object str_base::encode() const { return this->attr("encode")(); } object str_base::encode(object_cref encoding) const { return this->attr("encode")(encoding); } object str_base::encode(object_cref encoding, object_cref errors) const { return this->attr("encode")(encoding,errors); } bool str_base::endswith(object_cref suffix) const { bool result = PyInt_AsLong(this->attr("endswith")(suffix).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } BOOST_PYTHON_DEFINE_STR_METHOD(expandtabs, 0) BOOST_PYTHON_DEFINE_STR_METHOD(expandtabs, 1) long str_base::find(object_cref sub) const { long result = PyInt_AsLong(this->attr("find")(sub).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::find(object_cref sub, object_cref start) const { long result = PyInt_AsLong(this->attr("find")(sub,start).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::find(object_cref sub, object_cref start, object_cref end) const { long result = PyInt_AsLong(this->attr("find")(sub,start,end).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::index(object_cref sub) const { long result = PyInt_AsLong(this->attr("index")(sub).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::index(object_cref sub, object_cref start) const { long result = PyInt_AsLong(this->attr("index")(sub,start).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::index(object_cref sub, object_cref start, object_cref end) const { long result = PyInt_AsLong(this->attr("index")(sub,start,end).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::isalnum() const { bool result = PyInt_AsLong(this->attr("isalnum")().ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::isalpha() const { bool result = PyInt_AsLong(this->attr("isalpha")().ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::isdigit() const { bool result = PyInt_AsLong(this->attr("isdigit")().ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::islower() const { bool result = PyInt_AsLong(this->attr("islower")().ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::isspace() const { bool result = PyInt_AsLong(this->attr("isspace")().ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::istitle() const { bool result = PyInt_AsLong(this->attr("istitle")().ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::isupper() const { bool result = PyInt_AsLong(this->attr("isupper")().ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } BOOST_PYTHON_DEFINE_STR_METHOD(join, 1) BOOST_PYTHON_DEFINE_STR_METHOD(ljust, 1) BOOST_PYTHON_DEFINE_STR_METHOD(lower, 0) BOOST_PYTHON_DEFINE_STR_METHOD(lstrip, 0) BOOST_PYTHON_DEFINE_STR_METHOD(replace, 2) BOOST_PYTHON_DEFINE_STR_METHOD(replace, 3) long str_base::rfind(object_cref sub) const { long result = PyInt_AsLong(this->attr("rfind")(sub).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::rfind(object_cref sub, object_cref start) const { long result = PyInt_AsLong(this->attr("rfind")(sub,start).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::rfind(object_cref sub, object_cref start, object_cref end) const { long result = PyInt_AsLong(this->attr("rfind")(sub,start,end).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::rindex(object_cref sub) const { long result = PyInt_AsLong(this->attr("rindex")(sub).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::rindex(object_cref sub, object_cref start) const { long result = PyInt_AsLong(this->attr("rindex")(sub,start).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } long str_base::rindex(object_cref sub, object_cref start, object_cref end) const { long result = PyInt_AsLong(this->attr("rindex")(sub,start,end).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } BOOST_PYTHON_DEFINE_STR_METHOD(rjust, 1) BOOST_PYTHON_DEFINE_STR_METHOD(rstrip, 0) list str_base::split() const { return list(this->attr("split")()); } list str_base::split(object_cref sep) const { return list(this->attr("split")(sep)); } list str_base::split(object_cref sep, object_cref maxsplit) const { return list(this->attr("split")(sep,maxsplit)); } list str_base::splitlines() const { return list(this->attr("splitlines")()); } list str_base::splitlines(object_cref keepends) const { return list(this->attr("splitlines")(keepends)); } bool str_base::startswith(object_cref prefix) const { bool result = PyInt_AsLong(this->attr("startswith")(prefix).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::startswith(object_cref prefix, object_cref start) const { bool result = PyInt_AsLong(this->attr("startswith")(prefix,start).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } bool str_base::startswith(object_cref prefix, object_cref start, object_cref end) const { bool result = PyInt_AsLong(this->attr("startswith")(prefix,start,end).ptr()); if (PyErr_Occurred()) throw_error_already_set(); return result; } BOOST_PYTHON_DEFINE_STR_METHOD(strip, 0) BOOST_PYTHON_DEFINE_STR_METHOD(swapcase, 0) BOOST_PYTHON_DEFINE_STR_METHOD(title, 0) BOOST_PYTHON_DEFINE_STR_METHOD(translate, 1) BOOST_PYTHON_DEFINE_STR_METHOD(translate, 2) BOOST_PYTHON_DEFINE_STR_METHOD(upper, 0) }}} // namespace boost::python
a98d0ba299b3d1005e64fa034b33bf041c6b2a18
693161124020ceec0730f4cc060cd0a1689a1dbf
/CacheManager.h
142b92fd417859dbb84e51789b834dc8359d0759
[]
no_license
yoelsherwin/FlightGear-Server
9197dd865626cda3a8bb88316ff0a609f88561ab
6f8accbbef7647e813c2e9ba9f1d311e5b633533
refs/heads/master
2022-04-14T15:56:11.963201
2020-04-12T07:10:20
2020-04-12T07:10:20
255,027,842
0
0
null
null
null
null
UTF-8
C++
false
false
538
h
// // Created by yoel on 06/01/2020. // #ifndef MILESTONE2__CACHEMANAGER_H_ #define MILESTONE2__CACHEMANAGER_H_ #include <iostream> #include <fstream> #include <cstring> #include "unordered_map" using namespace std; template<typename Problem,typename Solution> class CacheManager { public: unordered_map<string,string> map; virtual bool isCacheHaveSol(Problem problemThatWeWantToCheck) = 0; virtual void insert(Problem str, Solution val) = 0; virtual Solution get(Problem problem) = 0; }; #endif //MILESTONE2__CACHEMANAGER_H_
200dc455bc36436dbc6f1b6c6e0d4bfac1790ce0
50d9eeacaa38b465f397c5acd8047d6147c2ca72
/exp4/server.cpp
cfb686a17d35e9ceab604f2b124e715a506ea2b3
[]
no_license
errnocc/net-programming
51fab0873459432f745643f79f208e0e7be9ca5d
4c74c5ba49c4a7f768405498b507033249291720
refs/heads/master
2023-06-04T16:55:40.935675
2021-06-28T13:32:04
2021-06-28T13:32:04
363,070,506
0
0
null
null
null
null
UTF-8
C++
false
false
3,604
cpp
#include "../lib/netlib.h" #define PORT 1234 #define BACKLOG 5 #define MAXDATASIZE 1000 typedef struct CLIENT{ int fd; char* name; struct sockaddr_in addr; char* data; }CLIENT; void process_cli(CLIENT *client, char* recvbuf, int len); void savedata(char* recvbuf, int len, char* data); int main() { int i, maxi, maxfd,sockfd; int nready; ssize_t n; fd_set rset, allset; int listenfd, connectfd; struct sockaddr_in server; CLIENT client[FD_SETSIZE]; char recvbuf[MAXDATASIZE]; socklen_t sin_size; if ((listenfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { perror("Creating socket failed."); exit(1); } int opt = SO_REUSEADDR; setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); bzero(&server,sizeof(server)); server.sin_family=AF_INET; server.sin_port=htons(PORT); server.sin_addr.s_addr = htonl (INADDR_ANY); if (bind(listenfd, (struct sockaddr *)&server, sizeof(struct sockaddr)) == -1){ perror("Bind error."); exit(1); } if(listen(listenfd,BACKLOG) == -1){ /* calls listen() */ perror("listen() error\n"); exit(1); } sin_size=sizeof(struct sockaddr_in); maxfd = listenfd; maxi = -1; for (i = 0; i < FD_SETSIZE; i++) { client[i].fd = -1; } FD_ZERO(&allset); FD_SET(listenfd, &allset); while(1) { struct sockaddr_in addr; rset = allset; nready = select(maxfd+1, &rset, NULL, NULL, NULL); if (FD_ISSET(listenfd, &rset)) { connectfd = Accept(listenfd, (SA*)&addr, &sin_size); for (i = 0; i < FD_SETSIZE; i++) if (client[i].fd < 0) { client[i].fd = connectfd; /* save descriptor */ client[i].name = new char[MAXDATASIZE]; client[i].addr = addr; client[i].data = new char[MAXDATASIZE]; client[i].name[0] = '\0'; client[i].data[0] = '\0'; printf("Connection client ip = %s and port = %d\n" ,inet_ntoa(client[i].addr.sin_addr) ,htons(client[i].addr.sin_port)); break; } if (i == FD_SETSIZE) printf("too many clients\n"); FD_SET(connectfd, &allset); /* add new descriptor to set */ if (connectfd > maxfd) maxfd = connectfd; if (i > maxi) maxi = i; if (--nready <= 0) continue; } /* no more readable descriptors */ for (i = 0; i <= maxi; i++) { /* check all clients for data */ if ( (sockfd = client[i].fd) < 0) continue; if (FD_ISSET(sockfd, &rset)) { if ( (n = recv(sockfd, recvbuf, MAXDATASIZE,0)) == 0) { /*connection closed by client */ close(sockfd); printf("Client( %s ) closed connection. User's data:%s\n",client[i].name,client[i].data); FD_CLR(sockfd, &allset); client[i].fd = -1; free(client[i].name); free(client[i].data); } else process_cli(&client[i], recvbuf, n); if (--nready <= 0) break; /* no more readable descriptors */ } } } close(listenfd); /* close listenfd */ } void process_cli(CLIENT *client, char* recvbuf, int len) { char sendbuf[MAXDATASIZE]; recvbuf[len-1] = '\0'; if (strlen(client->name) == 0) { /* Got client's name from client */ memcpy(client->name,recvbuf, len); printf("Client's name is %s.\n",client->name); return; } /* save client's data */ printf("Received client( %s ) message: %s\n",client->name, recvbuf); /* save user's data */ savedata(recvbuf,len, client->data); /* reverse usr's data */ for (int i1 = 0; i1 < len - 1; i1++) { sendbuf[i1] = recvbuf[len - i1 -2]; } sendbuf[len - 1] = '\0'; send(client->fd,sendbuf,strlen(sendbuf),0); } void savedata(char* recvbuf, int len, char* data){ int start = strlen(data); for (int i = 0; i < len; i++) { data[start + i] = recvbuf[i]; } }
b3e51c661d9cf8bb83a2448be06ae268194f6806
73e89812a3e4f979641c7d8765b46ed0226e3dd9
/Urasandesu.Swathe/Urasandesu/Swathe/Metadata/BaseClassPersistedHandler/BaseAssemblyMetadataPersistedHandler.hpp
0cd940b73eac45dafc9d6cffb2a23be2eb113c68
[]
no_license
urasandesu/Swathe
c601244e7339c2d6fe5686a0ee2ca44732007d89
e086ede891a64d991f1f738b00eb158b44537d06
refs/heads/master
2021-01-19T00:52:31.845284
2017-03-17T11:32:51
2017-03-17T11:32:51
6,515,991
3
1
null
null
null
null
UTF-8
C++
false
false
2,636
hpp
/* * File: BaseAssemblyMetadataPersistedHandler.hpp * * Author: Akira Sugiura ([email protected]) * * * Copyright (c) 2014 Akira Sugiura * * This software is MIT License. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #pragma once #ifndef URASANDESU_SWATHE_METADATA_BASECLASSPERSISTEDHANDLER_BASEASSEMBLYMETADATAPERSISTEDHANDLER_HPP #define URASANDESU_SWATHE_METADATA_BASECLASSPERSISTEDHANDLER_BASEASSEMBLYMETADATAPERSISTEDHANDLER_HPP #ifndef URASANDESU_SWATHE_METADATA_BASECLASSPERSISTEDHANDLER_BASEASSEMBLYMETADATAPERSISTEDHANDLER_H #include <Urasandesu/Swathe/Metadata/BaseClassPersistedHandler/BaseAssemblyMetadataPersistedHandler.h> #endif namespace Urasandesu { namespace Swathe { namespace Metadata { namespace BaseClassPersistedHandler { template<class ApiHolder> BaseAssemblyMetadataPersistedHandler<ApiHolder>::BaseAssemblyMetadataPersistedHandler(metadata_dispenser_label_type *pDisp) : m_pDisp(pDisp) { } #define SWATHE_DECLARE_BASE_ASSEMBLY_METADATA_PERSISTED_HANDLER_ADDITIONAL_INSTANTIATION \ template<class ApiHolder> void BaseAssemblyMetadataPersistedHandler<ApiHolder>::operator()(sender_type *pSender, void *pArg) { auto &pAsm = *pSender; m_pDisp->RegisterAssembly(pAsm); } }}}} // namespace Urasandesu { namespace Swathe { namespace Metadata { namespace BaseClassPersistedHandler { #endif // URASANDESU_SWATHE_METADATA_BASECLASSPERSISTEDHANDLER_BASEASSEMBLYMETADATAPERSISTEDHANDLER_HPP
07558371dc98d4e88d9103afc3b0c29106d57489
f7876e8167be27ef95490e6a039baf20d62ba2aa
/examples/filetransfer/download.cpp
95c2990d91f6e37227dd728bd448bdb52aea6876
[]
no_license
Chineseguuys/MUDUO
7604e3ea97b21492bfed887d8f63dd64c5ac2298
467323d93ec89537ea49d66a0e4fdc379774c00f
refs/heads/master
2022-11-29T14:41:50.455096
2020-08-10T12:36:03
2020-08-10T12:36:03
277,271,355
0
0
null
null
null
null
UTF-8
C++
false
false
2,204
cpp
#include "base/Logging.h" #include "net/EventLoop.h" #include "net/TcpServer.h" #include <stdio.h> #include <unistd.h> using namespace muduo; using namespace muduo::net; const char* g_file = NULL; string readFile(const char* filename) { string content; FILE* fp = ::fopen(filename, "rb"); if (fp) { const int kBufSize = 1024 * 1024; char iobuf[kBufSize]; ::setbuffer(fp, iobuf, sizeof iobuf); char buf[kBufSize]; size_t nread = 0; while( (nread = ::fread(buf, 1, sizeof buf, fp)) > 0) { content.append(buf, nread); } ::fclose(fp); } return content; } void quit(EventLoop* loop) { loop->quit(); } void onHighWaterMark(const TcpConnectionPtr& conn, size_t len) { LOG_INFO << "download -- High water mark : " << len; } void onConnection(const TcpConnectionPtr& conn) { LOG_INFO << "download -- FileServer - " << conn->peerAddress().toIpPort() << " -> " << conn->localAddress().toIpPort() << " is " << (conn->connected() ? "UP" : "DOWN"); if (conn->connected()) { LOG_INFO << "download -- FileServer - Sending file " << g_file << " to " << conn->peerAddress().toIpPort(); conn->setHighWaterMarkCallback(onHighWaterMark, 64*1024); string fileContent = readFile(g_file); printf("file contents : \n %s\n", fileContent.c_str()); conn->send(fileContent); conn->shutdown(); LOG_INFO << "FileServer - done"; } if (conn->disconnected()) { LOG_INFO << "download -- FileServer - TcpConnection double direction distoried"; } } int main(int argc, char* argv[]) { LOG_INFO << "download -- pid = " << getpid(); if (argc > 1) { g_file = argv[1]; EventLoop loop; InetAddress listenAddr(2021); /**监控计算机本地的 2021 端口*/ TcpServer server(&loop, listenAddr, "FileServer"); server.setThreadNum(1); server.setConnectionCallback(onConnection); server.start(); loop.loop(); } else { fprintf(stderr, "Usage: %s file_for_downloading\n", argv[0]); } }
6dc2699c4a9988d68fb4fbda2a13b33d6603f8bf
507dd5f19414fe92fc75c7b15d117d9d5faee81f
/bluid1/Classes/Native/Il2CppCompilerCalculateTypeValues_9Table.cpp
d9d5c1ee0201e4e648996a97b6e9365f6b796445
[]
no_license
kai-maker/ARkitGoldFish
e41cc71177f1eef78e993a7c567b05b84024fbee
5195aba06c353d504541b80785502170a77a3755
refs/heads/master
2021-07-06T17:53:22.770980
2017-10-02T15:10:56
2017-10-02T15:10:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
271,675
cpp
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "class-internals.h" #include "codegen/il2cpp-codegen.h" #include "object-internals.h" // System.UInt16[] struct UInt16U5BU5D_t2790432616; // System.Version struct Version_t4238624794; // System.Collections.Hashtable struct Hashtable_t3177941008; // System.Collections.Specialized.ListDictionary struct ListDictionary_t3662519283; // System.Collections.Specialized.ListDictionary/DictionaryNode struct DictionaryNode_t2189986322; // System.Collections.IComparer struct IComparer_t1800547475; // System.Collections.Specialized.NameObjectCollectionBase/_Item struct _Item_t1459211051; // System.Collections.ArrayList struct ArrayList_t474349501; // System.Collections.IHashCodeProvider struct IHashCodeProvider_t975722603; // System.Runtime.Serialization.SerializationInfo struct SerializationInfo_t1531539912; // System.Collections.Specialized.NameObjectCollectionBase/KeysCollection struct KeysCollection_t3069705679; // System.Collections.IEqualityComparer struct IEqualityComparer_t1646332681; // System.String struct String_t; // System.Collections.Specialized.NameObjectCollectionBase struct NameObjectCollectionBase_t3041392021; // System.Uri struct Uri_t3807590358; // System.Net.ICredentials struct ICredentials_t2414506493; // System.Security.Cryptography.AsymmetricAlgorithm struct AsymmetricAlgorithm_t3973620280; // System.Security.Cryptography.AsnEncodedData struct AsnEncodedData_t1941916701; // System.Security.Cryptography.Oid struct Oid_t4268277835; // System.Collections.Generic.Dictionary`2<System.String,System.Int32> struct Dictionary_2_t2296604334; // Mono.Security.X509.X509Certificate struct X509Certificate_t4201304790; // System.Byte[] struct ByteU5BU5D_t2468942659; // System.Runtime.Remoting.ServerIdentity struct ServerIdentity_t1636469776; // System.Collections.IEnumerator struct IEnumerator_t4139174984; // System.Char[] struct CharU5BU5D_t35481994; // System.Security.Cryptography.X509Certificates.X509ExtensionCollection struct X509ExtensionCollection_t1199373738; // System.Security.Cryptography.X509Certificates.PublicKey struct PublicKey_t3765660246; // System.Security.Cryptography.X509Certificates.X500DistinguishedName struct X500DistinguishedName_t3517382345; // Mono.Security.X509.X509Certificate struct X509Certificate_t4201304791; // System.Void struct Void_t898201035; // System.String[] struct StringU5BU5D_t3210853254; // System.Reflection.MethodInfo struct MethodInfo_t; // System.DelegateData struct DelegateData_t4232245420; // System.Collections.Generic.Dictionary`2<System.String,System.Boolean> struct Dictionary_2_t1210700831; // System.Boolean[] struct BooleanU5BU5D_t3895467633; // System.Int32[] struct Int32U5BU5D_t2035612870; // System.Collections.Specialized.HybridDictionary struct HybridDictionary_t1682855100; // System.Net.IWebProxy struct IWebProxy_t2308144797; // System.Security.Cryptography.X509Certificates.X509ChainElementCollection struct X509ChainElementCollection_t938559667; // System.Security.Cryptography.X509Certificates.X509ChainPolicy struct X509ChainPolicy_t1784845061; // System.Security.Cryptography.X509Certificates.X509ChainStatus[] struct X509ChainStatusU5BU5D_t1238689271; // System.Security.Cryptography.X509Certificates.X509ChainElement struct X509ChainElement_t2840812822; // System.Security.Cryptography.X509Certificates.X509Store struct X509Store_t1485675745; // System.Security.Cryptography.X509Certificates.X509Certificate2Collection struct X509Certificate2Collection_t2719121143; // System.Security.Cryptography.OidCollection struct OidCollection_t1575794719; // System.Security.Cryptography.X509Certificates.X509Certificate2 struct X509Certificate2_t2111122295; // System.Net.ICertificatePolicy struct ICertificatePolicy_t3632201623; // System.Net.Security.RemoteCertificateValidationCallback struct RemoteCertificateValidationCallback_t1749327423; // System.IAsyncResult struct IAsyncResult_t2558459998; // System.AsyncCallback struct AsyncCallback_t559532972; // System.Net.WebHeaderCollection struct WebHeaderCollection_t3859060348; // System.EventArgs struct EventArgs_t1177845324; // System.Reflection.Assembly struct Assembly_t1939654549; // System.ResolveEventArgs struct ResolveEventArgs_t1137458854; // System.UnhandledExceptionEventArgs struct UnhandledExceptionEventArgs_t3221293508; // System.Security.Cryptography.X509Certificates.X509CertificateCollection struct X509CertificateCollection_t1754559427; // System.Net.ServicePoint struct ServicePoint_t820026165; // System.AssemblyLoadEventArgs struct AssemblyLoadEventArgs_t1903709615; #ifndef RUNTIMEOBJECT_H #define RUNTIMEOBJECT_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Object #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMEOBJECT_H #ifndef U3CMODULEU3E_T2290809436_H #define U3CMODULEU3E_T2290809436_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t2290809436 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CMODULEU3E_T2290809436_H #ifndef IPV6ADDRESS_T144732066_H #define IPV6ADDRESS_T144732066_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.IPv6Address struct IPv6Address_t144732066 : public RuntimeObject { public: // System.UInt16[] System.Net.IPv6Address::address UInt16U5BU5D_t2790432616* ___address_0; // System.Int32 System.Net.IPv6Address::prefixLength int32_t ___prefixLength_1; // System.Int64 System.Net.IPv6Address::scopeId int64_t ___scopeId_2; public: inline static int32_t get_offset_of_address_0() { return static_cast<int32_t>(offsetof(IPv6Address_t144732066, ___address_0)); } inline UInt16U5BU5D_t2790432616* get_address_0() const { return ___address_0; } inline UInt16U5BU5D_t2790432616** get_address_of_address_0() { return &___address_0; } inline void set_address_0(UInt16U5BU5D_t2790432616* value) { ___address_0 = value; Il2CppCodeGenWriteBarrier((&___address_0), value); } inline static int32_t get_offset_of_prefixLength_1() { return static_cast<int32_t>(offsetof(IPv6Address_t144732066, ___prefixLength_1)); } inline int32_t get_prefixLength_1() const { return ___prefixLength_1; } inline int32_t* get_address_of_prefixLength_1() { return &___prefixLength_1; } inline void set_prefixLength_1(int32_t value) { ___prefixLength_1 = value; } inline static int32_t get_offset_of_scopeId_2() { return static_cast<int32_t>(offsetof(IPv6Address_t144732066, ___scopeId_2)); } inline int64_t get_scopeId_2() const { return ___scopeId_2; } inline int64_t* get_address_of_scopeId_2() { return &___scopeId_2; } inline void set_scopeId_2(int64_t value) { ___scopeId_2 = value; } }; struct IPv6Address_t144732066_StaticFields { public: // System.Net.IPv6Address System.Net.IPv6Address::Loopback IPv6Address_t144732066 * ___Loopback_3; // System.Net.IPv6Address System.Net.IPv6Address::Unspecified IPv6Address_t144732066 * ___Unspecified_4; public: inline static int32_t get_offset_of_Loopback_3() { return static_cast<int32_t>(offsetof(IPv6Address_t144732066_StaticFields, ___Loopback_3)); } inline IPv6Address_t144732066 * get_Loopback_3() const { return ___Loopback_3; } inline IPv6Address_t144732066 ** get_address_of_Loopback_3() { return &___Loopback_3; } inline void set_Loopback_3(IPv6Address_t144732066 * value) { ___Loopback_3 = value; Il2CppCodeGenWriteBarrier((&___Loopback_3), value); } inline static int32_t get_offset_of_Unspecified_4() { return static_cast<int32_t>(offsetof(IPv6Address_t144732066_StaticFields, ___Unspecified_4)); } inline IPv6Address_t144732066 * get_Unspecified_4() const { return ___Unspecified_4; } inline IPv6Address_t144732066 ** get_address_of_Unspecified_4() { return &___Unspecified_4; } inline void set_Unspecified_4(IPv6Address_t144732066 * value) { ___Unspecified_4 = value; Il2CppCodeGenWriteBarrier((&___Unspecified_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // IPV6ADDRESS_T144732066_H #ifndef HTTPVERSION_T2444553122_H #define HTTPVERSION_T2444553122_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.HttpVersion struct HttpVersion_t2444553122 : public RuntimeObject { public: public: }; struct HttpVersion_t2444553122_StaticFields { public: // System.Version System.Net.HttpVersion::Version10 Version_t4238624794 * ___Version10_0; // System.Version System.Net.HttpVersion::Version11 Version_t4238624794 * ___Version11_1; public: inline static int32_t get_offset_of_Version10_0() { return static_cast<int32_t>(offsetof(HttpVersion_t2444553122_StaticFields, ___Version10_0)); } inline Version_t4238624794 * get_Version10_0() const { return ___Version10_0; } inline Version_t4238624794 ** get_address_of_Version10_0() { return &___Version10_0; } inline void set_Version10_0(Version_t4238624794 * value) { ___Version10_0 = value; Il2CppCodeGenWriteBarrier((&___Version10_0), value); } inline static int32_t get_offset_of_Version11_1() { return static_cast<int32_t>(offsetof(HttpVersion_t2444553122_StaticFields, ___Version11_1)); } inline Version_t4238624794 * get_Version11_1() const { return ___Version11_1; } inline Version_t4238624794 ** get_address_of_Version11_1() { return &___Version11_1; } inline void set_Version11_1(Version_t4238624794 * value) { ___Version11_1 = value; Il2CppCodeGenWriteBarrier((&___Version11_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // HTTPVERSION_T2444553122_H #ifndef HTTPREQUESTCREATOR_T288711188_H #define HTTPREQUESTCREATOR_T288711188_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.HttpRequestCreator struct HttpRequestCreator_t288711188 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // HTTPREQUESTCREATOR_T288711188_H #ifndef FTPREQUESTCREATOR_T2795178151_H #define FTPREQUESTCREATOR_T2795178151_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.FtpRequestCreator struct FtpRequestCreator_t2795178151 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // FTPREQUESTCREATOR_T2795178151_H #ifndef FILEWEBREQUESTCREATOR_T1157484927_H #define FILEWEBREQUESTCREATOR_T1157484927_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.FileWebRequestCreator struct FileWebRequestCreator_t1157484927 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // FILEWEBREQUESTCREATOR_T1157484927_H #ifndef IL2CPPCOMOBJECT_H #define IL2CPPCOMOBJECT_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.__Il2CppComObject #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // IL2CPPCOMOBJECT_H #ifndef DEFAULTCERTIFICATEPOLICY_T84124234_H #define DEFAULTCERTIFICATEPOLICY_T84124234_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.DefaultCertificatePolicy struct DefaultCertificatePolicy_t84124234 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DEFAULTCERTIFICATEPOLICY_T84124234_H #ifndef GLOBALPROXYSELECTION_T736222881_H #define GLOBALPROXYSELECTION_T736222881_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.GlobalProxySelection struct GlobalProxySelection_t736222881 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GLOBALPROXYSELECTION_T736222881_H #ifndef LOCALE_T116857866_H #define LOCALE_T116857866_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // Locale struct Locale_t116857866 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LOCALE_T116857866_H #ifndef HYBRIDDICTIONARY_T1682855100_H #define HYBRIDDICTIONARY_T1682855100_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.HybridDictionary struct HybridDictionary_t1682855100 : public RuntimeObject { public: // System.Boolean System.Collections.Specialized.HybridDictionary::caseInsensitive bool ___caseInsensitive_0; // System.Collections.Hashtable System.Collections.Specialized.HybridDictionary::hashtable Hashtable_t3177941008 * ___hashtable_1; // System.Collections.Specialized.ListDictionary System.Collections.Specialized.HybridDictionary::list ListDictionary_t3662519283 * ___list_2; public: inline static int32_t get_offset_of_caseInsensitive_0() { return static_cast<int32_t>(offsetof(HybridDictionary_t1682855100, ___caseInsensitive_0)); } inline bool get_caseInsensitive_0() const { return ___caseInsensitive_0; } inline bool* get_address_of_caseInsensitive_0() { return &___caseInsensitive_0; } inline void set_caseInsensitive_0(bool value) { ___caseInsensitive_0 = value; } inline static int32_t get_offset_of_hashtable_1() { return static_cast<int32_t>(offsetof(HybridDictionary_t1682855100, ___hashtable_1)); } inline Hashtable_t3177941008 * get_hashtable_1() const { return ___hashtable_1; } inline Hashtable_t3177941008 ** get_address_of_hashtable_1() { return &___hashtable_1; } inline void set_hashtable_1(Hashtable_t3177941008 * value) { ___hashtable_1 = value; Il2CppCodeGenWriteBarrier((&___hashtable_1), value); } inline static int32_t get_offset_of_list_2() { return static_cast<int32_t>(offsetof(HybridDictionary_t1682855100, ___list_2)); } inline ListDictionary_t3662519283 * get_list_2() const { return ___list_2; } inline ListDictionary_t3662519283 ** get_address_of_list_2() { return &___list_2; } inline void set_list_2(ListDictionary_t3662519283 * value) { ___list_2 = value; Il2CppCodeGenWriteBarrier((&___list_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // HYBRIDDICTIONARY_T1682855100_H #ifndef LISTDICTIONARY_T3662519283_H #define LISTDICTIONARY_T3662519283_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.ListDictionary struct ListDictionary_t3662519283 : public RuntimeObject { public: // System.Int32 System.Collections.Specialized.ListDictionary::count int32_t ___count_0; // System.Int32 System.Collections.Specialized.ListDictionary::version int32_t ___version_1; // System.Collections.Specialized.ListDictionary/DictionaryNode System.Collections.Specialized.ListDictionary::head DictionaryNode_t2189986322 * ___head_2; // System.Collections.IComparer System.Collections.Specialized.ListDictionary::comparer RuntimeObject* ___comparer_3; public: inline static int32_t get_offset_of_count_0() { return static_cast<int32_t>(offsetof(ListDictionary_t3662519283, ___count_0)); } inline int32_t get_count_0() const { return ___count_0; } inline int32_t* get_address_of_count_0() { return &___count_0; } inline void set_count_0(int32_t value) { ___count_0 = value; } inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(ListDictionary_t3662519283, ___version_1)); } inline int32_t get_version_1() const { return ___version_1; } inline int32_t* get_address_of_version_1() { return &___version_1; } inline void set_version_1(int32_t value) { ___version_1 = value; } inline static int32_t get_offset_of_head_2() { return static_cast<int32_t>(offsetof(ListDictionary_t3662519283, ___head_2)); } inline DictionaryNode_t2189986322 * get_head_2() const { return ___head_2; } inline DictionaryNode_t2189986322 ** get_address_of_head_2() { return &___head_2; } inline void set_head_2(DictionaryNode_t2189986322 * value) { ___head_2 = value; Il2CppCodeGenWriteBarrier((&___head_2), value); } inline static int32_t get_offset_of_comparer_3() { return static_cast<int32_t>(offsetof(ListDictionary_t3662519283, ___comparer_3)); } inline RuntimeObject* get_comparer_3() const { return ___comparer_3; } inline RuntimeObject** get_address_of_comparer_3() { return &___comparer_3; } inline void set_comparer_3(RuntimeObject* value) { ___comparer_3 = value; Il2CppCodeGenWriteBarrier((&___comparer_3), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LISTDICTIONARY_T3662519283_H #ifndef DICTIONARYNODE_T2189986322_H #define DICTIONARYNODE_T2189986322_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.ListDictionary/DictionaryNode struct DictionaryNode_t2189986322 : public RuntimeObject { public: // System.Object System.Collections.Specialized.ListDictionary/DictionaryNode::key RuntimeObject * ___key_0; // System.Object System.Collections.Specialized.ListDictionary/DictionaryNode::value RuntimeObject * ___value_1; // System.Collections.Specialized.ListDictionary/DictionaryNode System.Collections.Specialized.ListDictionary/DictionaryNode::next DictionaryNode_t2189986322 * ___next_2; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(DictionaryNode_t2189986322, ___key_0)); } inline RuntimeObject * get_key_0() const { return ___key_0; } inline RuntimeObject ** get_address_of_key_0() { return &___key_0; } inline void set_key_0(RuntimeObject * value) { ___key_0 = value; Il2CppCodeGenWriteBarrier((&___key_0), value); } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(DictionaryNode_t2189986322, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((&___value_1), value); } inline static int32_t get_offset_of_next_2() { return static_cast<int32_t>(offsetof(DictionaryNode_t2189986322, ___next_2)); } inline DictionaryNode_t2189986322 * get_next_2() const { return ___next_2; } inline DictionaryNode_t2189986322 ** get_address_of_next_2() { return &___next_2; } inline void set_next_2(DictionaryNode_t2189986322 * value) { ___next_2 = value; Il2CppCodeGenWriteBarrier((&___next_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DICTIONARYNODE_T2189986322_H #ifndef DICTIONARYNODEENUMERATOR_T1684680800_H #define DICTIONARYNODEENUMERATOR_T1684680800_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.ListDictionary/DictionaryNodeEnumerator struct DictionaryNodeEnumerator_t1684680800 : public RuntimeObject { public: // System.Collections.Specialized.ListDictionary System.Collections.Specialized.ListDictionary/DictionaryNodeEnumerator::dict ListDictionary_t3662519283 * ___dict_0; // System.Boolean System.Collections.Specialized.ListDictionary/DictionaryNodeEnumerator::isAtStart bool ___isAtStart_1; // System.Collections.Specialized.ListDictionary/DictionaryNode System.Collections.Specialized.ListDictionary/DictionaryNodeEnumerator::current DictionaryNode_t2189986322 * ___current_2; // System.Int32 System.Collections.Specialized.ListDictionary/DictionaryNodeEnumerator::version int32_t ___version_3; public: inline static int32_t get_offset_of_dict_0() { return static_cast<int32_t>(offsetof(DictionaryNodeEnumerator_t1684680800, ___dict_0)); } inline ListDictionary_t3662519283 * get_dict_0() const { return ___dict_0; } inline ListDictionary_t3662519283 ** get_address_of_dict_0() { return &___dict_0; } inline void set_dict_0(ListDictionary_t3662519283 * value) { ___dict_0 = value; Il2CppCodeGenWriteBarrier((&___dict_0), value); } inline static int32_t get_offset_of_isAtStart_1() { return static_cast<int32_t>(offsetof(DictionaryNodeEnumerator_t1684680800, ___isAtStart_1)); } inline bool get_isAtStart_1() const { return ___isAtStart_1; } inline bool* get_address_of_isAtStart_1() { return &___isAtStart_1; } inline void set_isAtStart_1(bool value) { ___isAtStart_1 = value; } inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(DictionaryNodeEnumerator_t1684680800, ___current_2)); } inline DictionaryNode_t2189986322 * get_current_2() const { return ___current_2; } inline DictionaryNode_t2189986322 ** get_address_of_current_2() { return &___current_2; } inline void set_current_2(DictionaryNode_t2189986322 * value) { ___current_2 = value; Il2CppCodeGenWriteBarrier((&___current_2), value); } inline static int32_t get_offset_of_version_3() { return static_cast<int32_t>(offsetof(DictionaryNodeEnumerator_t1684680800, ___version_3)); } inline int32_t get_version_3() const { return ___version_3; } inline int32_t* get_address_of_version_3() { return &___version_3; } inline void set_version_3(int32_t value) { ___version_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DICTIONARYNODEENUMERATOR_T1684680800_H #ifndef NAMEOBJECTCOLLECTIONBASE_T3041392021_H #define NAMEOBJECTCOLLECTIONBASE_T3041392021_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.NameObjectCollectionBase struct NameObjectCollectionBase_t3041392021 : public RuntimeObject { public: // System.Collections.Hashtable System.Collections.Specialized.NameObjectCollectionBase::m_ItemsContainer Hashtable_t3177941008 * ___m_ItemsContainer_0; // System.Collections.Specialized.NameObjectCollectionBase/_Item System.Collections.Specialized.NameObjectCollectionBase::m_NullKeyItem _Item_t1459211051 * ___m_NullKeyItem_1; // System.Collections.ArrayList System.Collections.Specialized.NameObjectCollectionBase::m_ItemsArray ArrayList_t474349501 * ___m_ItemsArray_2; // System.Collections.IHashCodeProvider System.Collections.Specialized.NameObjectCollectionBase::m_hashprovider RuntimeObject* ___m_hashprovider_3; // System.Collections.IComparer System.Collections.Specialized.NameObjectCollectionBase::m_comparer RuntimeObject* ___m_comparer_4; // System.Int32 System.Collections.Specialized.NameObjectCollectionBase::m_defCapacity int32_t ___m_defCapacity_5; // System.Boolean System.Collections.Specialized.NameObjectCollectionBase::m_readonly bool ___m_readonly_6; // System.Runtime.Serialization.SerializationInfo System.Collections.Specialized.NameObjectCollectionBase::infoCopy SerializationInfo_t1531539912 * ___infoCopy_7; // System.Collections.Specialized.NameObjectCollectionBase/KeysCollection System.Collections.Specialized.NameObjectCollectionBase::keyscoll KeysCollection_t3069705679 * ___keyscoll_8; // System.Collections.IEqualityComparer System.Collections.Specialized.NameObjectCollectionBase::equality_comparer RuntimeObject* ___equality_comparer_9; public: inline static int32_t get_offset_of_m_ItemsContainer_0() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___m_ItemsContainer_0)); } inline Hashtable_t3177941008 * get_m_ItemsContainer_0() const { return ___m_ItemsContainer_0; } inline Hashtable_t3177941008 ** get_address_of_m_ItemsContainer_0() { return &___m_ItemsContainer_0; } inline void set_m_ItemsContainer_0(Hashtable_t3177941008 * value) { ___m_ItemsContainer_0 = value; Il2CppCodeGenWriteBarrier((&___m_ItemsContainer_0), value); } inline static int32_t get_offset_of_m_NullKeyItem_1() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___m_NullKeyItem_1)); } inline _Item_t1459211051 * get_m_NullKeyItem_1() const { return ___m_NullKeyItem_1; } inline _Item_t1459211051 ** get_address_of_m_NullKeyItem_1() { return &___m_NullKeyItem_1; } inline void set_m_NullKeyItem_1(_Item_t1459211051 * value) { ___m_NullKeyItem_1 = value; Il2CppCodeGenWriteBarrier((&___m_NullKeyItem_1), value); } inline static int32_t get_offset_of_m_ItemsArray_2() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___m_ItemsArray_2)); } inline ArrayList_t474349501 * get_m_ItemsArray_2() const { return ___m_ItemsArray_2; } inline ArrayList_t474349501 ** get_address_of_m_ItemsArray_2() { return &___m_ItemsArray_2; } inline void set_m_ItemsArray_2(ArrayList_t474349501 * value) { ___m_ItemsArray_2 = value; Il2CppCodeGenWriteBarrier((&___m_ItemsArray_2), value); } inline static int32_t get_offset_of_m_hashprovider_3() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___m_hashprovider_3)); } inline RuntimeObject* get_m_hashprovider_3() const { return ___m_hashprovider_3; } inline RuntimeObject** get_address_of_m_hashprovider_3() { return &___m_hashprovider_3; } inline void set_m_hashprovider_3(RuntimeObject* value) { ___m_hashprovider_3 = value; Il2CppCodeGenWriteBarrier((&___m_hashprovider_3), value); } inline static int32_t get_offset_of_m_comparer_4() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___m_comparer_4)); } inline RuntimeObject* get_m_comparer_4() const { return ___m_comparer_4; } inline RuntimeObject** get_address_of_m_comparer_4() { return &___m_comparer_4; } inline void set_m_comparer_4(RuntimeObject* value) { ___m_comparer_4 = value; Il2CppCodeGenWriteBarrier((&___m_comparer_4), value); } inline static int32_t get_offset_of_m_defCapacity_5() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___m_defCapacity_5)); } inline int32_t get_m_defCapacity_5() const { return ___m_defCapacity_5; } inline int32_t* get_address_of_m_defCapacity_5() { return &___m_defCapacity_5; } inline void set_m_defCapacity_5(int32_t value) { ___m_defCapacity_5 = value; } inline static int32_t get_offset_of_m_readonly_6() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___m_readonly_6)); } inline bool get_m_readonly_6() const { return ___m_readonly_6; } inline bool* get_address_of_m_readonly_6() { return &___m_readonly_6; } inline void set_m_readonly_6(bool value) { ___m_readonly_6 = value; } inline static int32_t get_offset_of_infoCopy_7() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___infoCopy_7)); } inline SerializationInfo_t1531539912 * get_infoCopy_7() const { return ___infoCopy_7; } inline SerializationInfo_t1531539912 ** get_address_of_infoCopy_7() { return &___infoCopy_7; } inline void set_infoCopy_7(SerializationInfo_t1531539912 * value) { ___infoCopy_7 = value; Il2CppCodeGenWriteBarrier((&___infoCopy_7), value); } inline static int32_t get_offset_of_keyscoll_8() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___keyscoll_8)); } inline KeysCollection_t3069705679 * get_keyscoll_8() const { return ___keyscoll_8; } inline KeysCollection_t3069705679 ** get_address_of_keyscoll_8() { return &___keyscoll_8; } inline void set_keyscoll_8(KeysCollection_t3069705679 * value) { ___keyscoll_8 = value; Il2CppCodeGenWriteBarrier((&___keyscoll_8), value); } inline static int32_t get_offset_of_equality_comparer_9() { return static_cast<int32_t>(offsetof(NameObjectCollectionBase_t3041392021, ___equality_comparer_9)); } inline RuntimeObject* get_equality_comparer_9() const { return ___equality_comparer_9; } inline RuntimeObject** get_address_of_equality_comparer_9() { return &___equality_comparer_9; } inline void set_equality_comparer_9(RuntimeObject* value) { ___equality_comparer_9 = value; Il2CppCodeGenWriteBarrier((&___equality_comparer_9), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NAMEOBJECTCOLLECTIONBASE_T3041392021_H #ifndef _ITEM_T1459211051_H #define _ITEM_T1459211051_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.NameObjectCollectionBase/_Item struct _Item_t1459211051 : public RuntimeObject { public: // System.String System.Collections.Specialized.NameObjectCollectionBase/_Item::key String_t* ___key_0; // System.Object System.Collections.Specialized.NameObjectCollectionBase/_Item::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(_Item_t1459211051, ___key_0)); } inline String_t* get_key_0() const { return ___key_0; } inline String_t** get_address_of_key_0() { return &___key_0; } inline void set_key_0(String_t* value) { ___key_0 = value; Il2CppCodeGenWriteBarrier((&___key_0), value); } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(_Item_t1459211051, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((&___value_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // _ITEM_T1459211051_H #ifndef _KEYSENUMERATOR_T1933657994_H #define _KEYSENUMERATOR_T1933657994_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.NameObjectCollectionBase/_KeysEnumerator struct _KeysEnumerator_t1933657994 : public RuntimeObject { public: // System.Collections.Specialized.NameObjectCollectionBase System.Collections.Specialized.NameObjectCollectionBase/_KeysEnumerator::m_collection NameObjectCollectionBase_t3041392021 * ___m_collection_0; // System.Int32 System.Collections.Specialized.NameObjectCollectionBase/_KeysEnumerator::m_position int32_t ___m_position_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(_KeysEnumerator_t1933657994, ___m_collection_0)); } inline NameObjectCollectionBase_t3041392021 * get_m_collection_0() const { return ___m_collection_0; } inline NameObjectCollectionBase_t3041392021 ** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(NameObjectCollectionBase_t3041392021 * value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((&___m_collection_0), value); } inline static int32_t get_offset_of_m_position_1() { return static_cast<int32_t>(offsetof(_KeysEnumerator_t1933657994, ___m_position_1)); } inline int32_t get_m_position_1() const { return ___m_position_1; } inline int32_t* get_address_of_m_position_1() { return &___m_position_1; } inline void set_m_position_1(int32_t value) { ___m_position_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // _KEYSENUMERATOR_T1933657994_H #ifndef SPKEY_T2701363604_H #define SPKEY_T2701363604_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.ServicePointManager/SPKey struct SPKey_t2701363604 : public RuntimeObject { public: // System.Uri System.Net.ServicePointManager/SPKey::uri Uri_t3807590358 * ___uri_0; // System.Boolean System.Net.ServicePointManager/SPKey::use_connect bool ___use_connect_1; public: inline static int32_t get_offset_of_uri_0() { return static_cast<int32_t>(offsetof(SPKey_t2701363604, ___uri_0)); } inline Uri_t3807590358 * get_uri_0() const { return ___uri_0; } inline Uri_t3807590358 ** get_address_of_uri_0() { return &___uri_0; } inline void set_uri_0(Uri_t3807590358 * value) { ___uri_0 = value; Il2CppCodeGenWriteBarrier((&___uri_0), value); } inline static int32_t get_offset_of_use_connect_1() { return static_cast<int32_t>(offsetof(SPKey_t2701363604, ___use_connect_1)); } inline bool get_use_connect_1() const { return ___use_connect_1; } inline bool* get_address_of_use_connect_1() { return &___use_connect_1; } inline void set_use_connect_1(bool value) { ___use_connect_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SPKEY_T2701363604_H #ifndef WEBPROXY_T2297524815_H #define WEBPROXY_T2297524815_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.WebProxy struct WebProxy_t2297524815 : public RuntimeObject { public: // System.Uri System.Net.WebProxy::address Uri_t3807590358 * ___address_0; // System.Boolean System.Net.WebProxy::bypassOnLocal bool ___bypassOnLocal_1; // System.Collections.ArrayList System.Net.WebProxy::bypassList ArrayList_t474349501 * ___bypassList_2; // System.Net.ICredentials System.Net.WebProxy::credentials RuntimeObject* ___credentials_3; // System.Boolean System.Net.WebProxy::useDefaultCredentials bool ___useDefaultCredentials_4; public: inline static int32_t get_offset_of_address_0() { return static_cast<int32_t>(offsetof(WebProxy_t2297524815, ___address_0)); } inline Uri_t3807590358 * get_address_0() const { return ___address_0; } inline Uri_t3807590358 ** get_address_of_address_0() { return &___address_0; } inline void set_address_0(Uri_t3807590358 * value) { ___address_0 = value; Il2CppCodeGenWriteBarrier((&___address_0), value); } inline static int32_t get_offset_of_bypassOnLocal_1() { return static_cast<int32_t>(offsetof(WebProxy_t2297524815, ___bypassOnLocal_1)); } inline bool get_bypassOnLocal_1() const { return ___bypassOnLocal_1; } inline bool* get_address_of_bypassOnLocal_1() { return &___bypassOnLocal_1; } inline void set_bypassOnLocal_1(bool value) { ___bypassOnLocal_1 = value; } inline static int32_t get_offset_of_bypassList_2() { return static_cast<int32_t>(offsetof(WebProxy_t2297524815, ___bypassList_2)); } inline ArrayList_t474349501 * get_bypassList_2() const { return ___bypassList_2; } inline ArrayList_t474349501 ** get_address_of_bypassList_2() { return &___bypassList_2; } inline void set_bypassList_2(ArrayList_t474349501 * value) { ___bypassList_2 = value; Il2CppCodeGenWriteBarrier((&___bypassList_2), value); } inline static int32_t get_offset_of_credentials_3() { return static_cast<int32_t>(offsetof(WebProxy_t2297524815, ___credentials_3)); } inline RuntimeObject* get_credentials_3() const { return ___credentials_3; } inline RuntimeObject** get_address_of_credentials_3() { return &___credentials_3; } inline void set_credentials_3(RuntimeObject* value) { ___credentials_3 = value; Il2CppCodeGenWriteBarrier((&___credentials_3), value); } inline static int32_t get_offset_of_useDefaultCredentials_4() { return static_cast<int32_t>(offsetof(WebProxy_t2297524815, ___useDefaultCredentials_4)); } inline bool get_useDefaultCredentials_4() const { return ___useDefaultCredentials_4; } inline bool* get_address_of_useDefaultCredentials_4() { return &___useDefaultCredentials_4; } inline void set_useDefaultCredentials_4(bool value) { ___useDefaultCredentials_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // WEBPROXY_T2297524815_H #ifndef PUBLICKEY_T3765660246_H #define PUBLICKEY_T3765660246_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.PublicKey struct PublicKey_t3765660246 : public RuntimeObject { public: // System.Security.Cryptography.AsymmetricAlgorithm System.Security.Cryptography.X509Certificates.PublicKey::_key AsymmetricAlgorithm_t3973620280 * ____key_0; // System.Security.Cryptography.AsnEncodedData System.Security.Cryptography.X509Certificates.PublicKey::_keyValue AsnEncodedData_t1941916701 * ____keyValue_1; // System.Security.Cryptography.AsnEncodedData System.Security.Cryptography.X509Certificates.PublicKey::_params AsnEncodedData_t1941916701 * ____params_2; // System.Security.Cryptography.Oid System.Security.Cryptography.X509Certificates.PublicKey::_oid Oid_t4268277835 * ____oid_3; public: inline static int32_t get_offset_of__key_0() { return static_cast<int32_t>(offsetof(PublicKey_t3765660246, ____key_0)); } inline AsymmetricAlgorithm_t3973620280 * get__key_0() const { return ____key_0; } inline AsymmetricAlgorithm_t3973620280 ** get_address_of__key_0() { return &____key_0; } inline void set__key_0(AsymmetricAlgorithm_t3973620280 * value) { ____key_0 = value; Il2CppCodeGenWriteBarrier((&____key_0), value); } inline static int32_t get_offset_of__keyValue_1() { return static_cast<int32_t>(offsetof(PublicKey_t3765660246, ____keyValue_1)); } inline AsnEncodedData_t1941916701 * get__keyValue_1() const { return ____keyValue_1; } inline AsnEncodedData_t1941916701 ** get_address_of__keyValue_1() { return &____keyValue_1; } inline void set__keyValue_1(AsnEncodedData_t1941916701 * value) { ____keyValue_1 = value; Il2CppCodeGenWriteBarrier((&____keyValue_1), value); } inline static int32_t get_offset_of__params_2() { return static_cast<int32_t>(offsetof(PublicKey_t3765660246, ____params_2)); } inline AsnEncodedData_t1941916701 * get__params_2() const { return ____params_2; } inline AsnEncodedData_t1941916701 ** get_address_of__params_2() { return &____params_2; } inline void set__params_2(AsnEncodedData_t1941916701 * value) { ____params_2 = value; Il2CppCodeGenWriteBarrier((&____params_2), value); } inline static int32_t get_offset_of__oid_3() { return static_cast<int32_t>(offsetof(PublicKey_t3765660246, ____oid_3)); } inline Oid_t4268277835 * get__oid_3() const { return ____oid_3; } inline Oid_t4268277835 ** get_address_of__oid_3() { return &____oid_3; } inline void set__oid_3(Oid_t4268277835 * value) { ____oid_3 = value; Il2CppCodeGenWriteBarrier((&____oid_3), value); } }; struct PublicKey_t3765660246_StaticFields { public: // System.Collections.Generic.Dictionary`2<System.String,System.Int32> System.Security.Cryptography.X509Certificates.PublicKey::<>f__switch$map9 Dictionary_2_t2296604334 * ___U3CU3Ef__switchU24map9_4; public: inline static int32_t get_offset_of_U3CU3Ef__switchU24map9_4() { return static_cast<int32_t>(offsetof(PublicKey_t3765660246_StaticFields, ___U3CU3Ef__switchU24map9_4)); } inline Dictionary_2_t2296604334 * get_U3CU3Ef__switchU24map9_4() const { return ___U3CU3Ef__switchU24map9_4; } inline Dictionary_2_t2296604334 ** get_address_of_U3CU3Ef__switchU24map9_4() { return &___U3CU3Ef__switchU24map9_4; } inline void set_U3CU3Ef__switchU24map9_4(Dictionary_2_t2296604334 * value) { ___U3CU3Ef__switchU24map9_4 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__switchU24map9_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PUBLICKEY_T3765660246_H #ifndef VALUETYPE_T1323243792_H #define VALUETYPE_T1323243792_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ValueType struct ValueType_t1323243792 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_t1323243792_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_t1323243792_marshaled_com { }; #endif // VALUETYPE_T1323243792_H #ifndef COLLECTIONBASE_T2230119306_H #define COLLECTIONBASE_T2230119306_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.CollectionBase struct CollectionBase_t2230119306 : public RuntimeObject { public: // System.Collections.ArrayList System.Collections.CollectionBase::list ArrayList_t474349501 * ___list_0; public: inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(CollectionBase_t2230119306, ___list_0)); } inline ArrayList_t474349501 * get_list_0() const { return ___list_0; } inline ArrayList_t474349501 ** get_address_of_list_0() { return &___list_0; } inline void set_list_0(ArrayList_t474349501 * value) { ___list_0 = value; Il2CppCodeGenWriteBarrier((&___list_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COLLECTIONBASE_T2230119306_H #ifndef X509CERTIFICATE_T2430039298_H #define X509CERTIFICATE_T2430039298_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509Certificate struct X509Certificate_t2430039298 : public RuntimeObject { public: // Mono.Security.X509.X509Certificate System.Security.Cryptography.X509Certificates.X509Certificate::x509 X509Certificate_t4201304790 * ___x509_0; // System.Boolean System.Security.Cryptography.X509Certificates.X509Certificate::hideDates bool ___hideDates_1; // System.Byte[] System.Security.Cryptography.X509Certificates.X509Certificate::cachedCertificateHash ByteU5BU5D_t2468942659* ___cachedCertificateHash_2; // System.String System.Security.Cryptography.X509Certificates.X509Certificate::issuer_name String_t* ___issuer_name_3; // System.String System.Security.Cryptography.X509Certificates.X509Certificate::subject_name String_t* ___subject_name_4; public: inline static int32_t get_offset_of_x509_0() { return static_cast<int32_t>(offsetof(X509Certificate_t2430039298, ___x509_0)); } inline X509Certificate_t4201304790 * get_x509_0() const { return ___x509_0; } inline X509Certificate_t4201304790 ** get_address_of_x509_0() { return &___x509_0; } inline void set_x509_0(X509Certificate_t4201304790 * value) { ___x509_0 = value; Il2CppCodeGenWriteBarrier((&___x509_0), value); } inline static int32_t get_offset_of_hideDates_1() { return static_cast<int32_t>(offsetof(X509Certificate_t2430039298, ___hideDates_1)); } inline bool get_hideDates_1() const { return ___hideDates_1; } inline bool* get_address_of_hideDates_1() { return &___hideDates_1; } inline void set_hideDates_1(bool value) { ___hideDates_1 = value; } inline static int32_t get_offset_of_cachedCertificateHash_2() { return static_cast<int32_t>(offsetof(X509Certificate_t2430039298, ___cachedCertificateHash_2)); } inline ByteU5BU5D_t2468942659* get_cachedCertificateHash_2() const { return ___cachedCertificateHash_2; } inline ByteU5BU5D_t2468942659** get_address_of_cachedCertificateHash_2() { return &___cachedCertificateHash_2; } inline void set_cachedCertificateHash_2(ByteU5BU5D_t2468942659* value) { ___cachedCertificateHash_2 = value; Il2CppCodeGenWriteBarrier((&___cachedCertificateHash_2), value); } inline static int32_t get_offset_of_issuer_name_3() { return static_cast<int32_t>(offsetof(X509Certificate_t2430039298, ___issuer_name_3)); } inline String_t* get_issuer_name_3() const { return ___issuer_name_3; } inline String_t** get_address_of_issuer_name_3() { return &___issuer_name_3; } inline void set_issuer_name_3(String_t* value) { ___issuer_name_3 = value; Il2CppCodeGenWriteBarrier((&___issuer_name_3), value); } inline static int32_t get_offset_of_subject_name_4() { return static_cast<int32_t>(offsetof(X509Certificate_t2430039298, ___subject_name_4)); } inline String_t* get_subject_name_4() const { return ___subject_name_4; } inline String_t** get_address_of_subject_name_4() { return &___subject_name_4; } inline void set_subject_name_4(String_t* value) { ___subject_name_4 = value; Il2CppCodeGenWriteBarrier((&___subject_name_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CERTIFICATE_T2430039298_H #ifndef ASNENCODEDDATA_T1941916701_H #define ASNENCODEDDATA_T1941916701_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.AsnEncodedData struct AsnEncodedData_t1941916701 : public RuntimeObject { public: // System.Security.Cryptography.Oid System.Security.Cryptography.AsnEncodedData::_oid Oid_t4268277835 * ____oid_0; // System.Byte[] System.Security.Cryptography.AsnEncodedData::_raw ByteU5BU5D_t2468942659* ____raw_1; public: inline static int32_t get_offset_of__oid_0() { return static_cast<int32_t>(offsetof(AsnEncodedData_t1941916701, ____oid_0)); } inline Oid_t4268277835 * get__oid_0() const { return ____oid_0; } inline Oid_t4268277835 ** get_address_of__oid_0() { return &____oid_0; } inline void set__oid_0(Oid_t4268277835 * value) { ____oid_0 = value; Il2CppCodeGenWriteBarrier((&____oid_0), value); } inline static int32_t get_offset_of__raw_1() { return static_cast<int32_t>(offsetof(AsnEncodedData_t1941916701, ____raw_1)); } inline ByteU5BU5D_t2468942659* get__raw_1() const { return ____raw_1; } inline ByteU5BU5D_t2468942659** get_address_of__raw_1() { return &____raw_1; } inline void set__raw_1(ByteU5BU5D_t2468942659* value) { ____raw_1 = value; Il2CppCodeGenWriteBarrier((&____raw_1), value); } }; struct AsnEncodedData_t1941916701_StaticFields { public: // System.Collections.Generic.Dictionary`2<System.String,System.Int32> System.Security.Cryptography.AsnEncodedData::<>f__switch$mapA Dictionary_2_t2296604334 * ___U3CU3Ef__switchU24mapA_2; public: inline static int32_t get_offset_of_U3CU3Ef__switchU24mapA_2() { return static_cast<int32_t>(offsetof(AsnEncodedData_t1941916701_StaticFields, ___U3CU3Ef__switchU24mapA_2)); } inline Dictionary_2_t2296604334 * get_U3CU3Ef__switchU24mapA_2() const { return ___U3CU3Ef__switchU24mapA_2; } inline Dictionary_2_t2296604334 ** get_address_of_U3CU3Ef__switchU24mapA_2() { return &___U3CU3Ef__switchU24mapA_2; } inline void set_U3CU3Ef__switchU24mapA_2(Dictionary_2_t2296604334 * value) { ___U3CU3Ef__switchU24mapA_2 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__switchU24mapA_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ASNENCODEDDATA_T1941916701_H #ifndef MARSHALBYREFOBJECT_T1445289910_H #define MARSHALBYREFOBJECT_T1445289910_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MarshalByRefObject struct MarshalByRefObject_t1445289910 : public RuntimeObject { public: // System.Runtime.Remoting.ServerIdentity System.MarshalByRefObject::_identity ServerIdentity_t1636469776 * ____identity_0; public: inline static int32_t get_offset_of__identity_0() { return static_cast<int32_t>(offsetof(MarshalByRefObject_t1445289910, ____identity_0)); } inline ServerIdentity_t1636469776 * get__identity_0() const { return ____identity_0; } inline ServerIdentity_t1636469776 ** get_address_of__identity_0() { return &____identity_0; } inline void set__identity_0(ServerIdentity_t1636469776 * value) { ____identity_0 = value; Il2CppCodeGenWriteBarrier((&____identity_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MARSHALBYREFOBJECT_T1445289910_H #ifndef ATTRIBUTE_T3169313911_H #define ATTRIBUTE_T3169313911_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Attribute struct Attribute_t3169313911 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ATTRIBUTE_T3169313911_H #ifndef KEYSCOLLECTION_T3069705679_H #define KEYSCOLLECTION_T3069705679_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.NameObjectCollectionBase/KeysCollection struct KeysCollection_t3069705679 : public RuntimeObject { public: // System.Collections.Specialized.NameObjectCollectionBase System.Collections.Specialized.NameObjectCollectionBase/KeysCollection::m_collection NameObjectCollectionBase_t3041392021 * ___m_collection_0; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(KeysCollection_t3069705679, ___m_collection_0)); } inline NameObjectCollectionBase_t3041392021 * get_m_collection_0() const { return ___m_collection_0; } inline NameObjectCollectionBase_t3041392021 ** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(NameObjectCollectionBase_t3041392021 * value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((&___m_collection_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // KEYSCOLLECTION_T3069705679_H #ifndef TYPECONVERTER_T3040536720_H #define TYPECONVERTER_T3040536720_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.TypeConverter struct TypeConverter_t3040536720 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPECONVERTER_T3040536720_H #ifndef X509CHAINELEMENTENUMERATOR_T3318578807_H #define X509CHAINELEMENTENUMERATOR_T3318578807_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509ChainElementEnumerator struct X509ChainElementEnumerator_t3318578807 : public RuntimeObject { public: // System.Collections.IEnumerator System.Security.Cryptography.X509Certificates.X509ChainElementEnumerator::enumerator RuntimeObject* ___enumerator_0; public: inline static int32_t get_offset_of_enumerator_0() { return static_cast<int32_t>(offsetof(X509ChainElementEnumerator_t3318578807, ___enumerator_0)); } inline RuntimeObject* get_enumerator_0() const { return ___enumerator_0; } inline RuntimeObject** get_address_of_enumerator_0() { return &___enumerator_0; } inline void set_enumerator_0(RuntimeObject* value) { ___enumerator_0 = value; Il2CppCodeGenWriteBarrier((&___enumerator_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CHAINELEMENTENUMERATOR_T3318578807_H #ifndef X509CHAINELEMENTCOLLECTION_T938559667_H #define X509CHAINELEMENTCOLLECTION_T938559667_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509ChainElementCollection struct X509ChainElementCollection_t938559667 : public RuntimeObject { public: // System.Collections.ArrayList System.Security.Cryptography.X509Certificates.X509ChainElementCollection::_list ArrayList_t474349501 * ____list_0; public: inline static int32_t get_offset_of__list_0() { return static_cast<int32_t>(offsetof(X509ChainElementCollection_t938559667, ____list_0)); } inline ArrayList_t474349501 * get__list_0() const { return ____list_0; } inline ArrayList_t474349501 ** get_address_of__list_0() { return &____list_0; } inline void set__list_0(ArrayList_t474349501 * value) { ____list_0 = value; Il2CppCodeGenWriteBarrier((&____list_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CHAINELEMENTCOLLECTION_T938559667_H #ifndef X509CERTIFICATEENUMERATOR_T2318149460_H #define X509CERTIFICATEENUMERATOR_T2318149460_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509CertificateCollection/X509CertificateEnumerator struct X509CertificateEnumerator_t2318149460 : public RuntimeObject { public: // System.Collections.IEnumerator System.Security.Cryptography.X509Certificates.X509CertificateCollection/X509CertificateEnumerator::enumerator RuntimeObject* ___enumerator_0; public: inline static int32_t get_offset_of_enumerator_0() { return static_cast<int32_t>(offsetof(X509CertificateEnumerator_t2318149460, ___enumerator_0)); } inline RuntimeObject* get_enumerator_0() const { return ___enumerator_0; } inline RuntimeObject** get_address_of_enumerator_0() { return &___enumerator_0; } inline void set_enumerator_0(RuntimeObject* value) { ___enumerator_0 = value; Il2CppCodeGenWriteBarrier((&___enumerator_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CERTIFICATEENUMERATOR_T2318149460_H #ifndef X509CERTIFICATE2ENUMERATOR_T3294577184_H #define X509CERTIFICATE2ENUMERATOR_T3294577184_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509Certificate2Enumerator struct X509Certificate2Enumerator_t3294577184 : public RuntimeObject { public: // System.Collections.IEnumerator System.Security.Cryptography.X509Certificates.X509Certificate2Enumerator::enumerator RuntimeObject* ___enumerator_0; public: inline static int32_t get_offset_of_enumerator_0() { return static_cast<int32_t>(offsetof(X509Certificate2Enumerator_t3294577184, ___enumerator_0)); } inline RuntimeObject* get_enumerator_0() const { return ___enumerator_0; } inline RuntimeObject** get_address_of_enumerator_0() { return &___enumerator_0; } inline void set_enumerator_0(RuntimeObject* value) { ___enumerator_0 = value; Il2CppCodeGenWriteBarrier((&___enumerator_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CERTIFICATE2ENUMERATOR_T3294577184_H #ifndef VOID_T898201035_H #define VOID_T898201035_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void struct Void_t898201035 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VOID_T898201035_H #ifndef BOOLEAN_T3133394512_H #define BOOLEAN_T3133394512_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Boolean struct Boolean_t3133394512 { public: // System.Boolean System.Boolean::m_value bool ___m_value_2; public: inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Boolean_t3133394512, ___m_value_2)); } inline bool get_m_value_2() const { return ___m_value_2; } inline bool* get_address_of_m_value_2() { return &___m_value_2; } inline void set_m_value_2(bool value) { ___m_value_2 = value; } }; struct Boolean_t3133394512_StaticFields { public: // System.String System.Boolean::FalseString String_t* ___FalseString_0; // System.String System.Boolean::TrueString String_t* ___TrueString_1; public: inline static int32_t get_offset_of_FalseString_0() { return static_cast<int32_t>(offsetof(Boolean_t3133394512_StaticFields, ___FalseString_0)); } inline String_t* get_FalseString_0() const { return ___FalseString_0; } inline String_t** get_address_of_FalseString_0() { return &___FalseString_0; } inline void set_FalseString_0(String_t* value) { ___FalseString_0 = value; Il2CppCodeGenWriteBarrier((&___FalseString_0), value); } inline static int32_t get_offset_of_TrueString_1() { return static_cast<int32_t>(offsetof(Boolean_t3133394512_StaticFields, ___TrueString_1)); } inline String_t* get_TrueString_1() const { return ___TrueString_1; } inline String_t** get_address_of_TrueString_1() { return &___TrueString_1; } inline void set_TrueString_1(String_t* value) { ___TrueString_1 = value; Il2CppCodeGenWriteBarrier((&___TrueString_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BOOLEAN_T3133394512_H #ifndef TYPECONVERTERATTRIBUTE_T3193429890_H #define TYPECONVERTERATTRIBUTE_T3193429890_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.TypeConverterAttribute struct TypeConverterAttribute_t3193429890 : public Attribute_t3169313911 { public: // System.String System.ComponentModel.TypeConverterAttribute::converter_type String_t* ___converter_type_1; public: inline static int32_t get_offset_of_converter_type_1() { return static_cast<int32_t>(offsetof(TypeConverterAttribute_t3193429890, ___converter_type_1)); } inline String_t* get_converter_type_1() const { return ___converter_type_1; } inline String_t** get_address_of_converter_type_1() { return &___converter_type_1; } inline void set_converter_type_1(String_t* value) { ___converter_type_1 = value; Il2CppCodeGenWriteBarrier((&___converter_type_1), value); } }; struct TypeConverterAttribute_t3193429890_StaticFields { public: // System.ComponentModel.TypeConverterAttribute System.ComponentModel.TypeConverterAttribute::Default TypeConverterAttribute_t3193429890 * ___Default_0; public: inline static int32_t get_offset_of_Default_0() { return static_cast<int32_t>(offsetof(TypeConverterAttribute_t3193429890_StaticFields, ___Default_0)); } inline TypeConverterAttribute_t3193429890 * get_Default_0() const { return ___Default_0; } inline TypeConverterAttribute_t3193429890 ** get_address_of_Default_0() { return &___Default_0; } inline void set_Default_0(TypeConverterAttribute_t3193429890 * value) { ___Default_0 = value; Il2CppCodeGenWriteBarrier((&___Default_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPECONVERTERATTRIBUTE_T3193429890_H #ifndef ENUM_T1655974417_H #define ENUM_T1655974417_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Enum struct Enum_t1655974417 : public ValueType_t1323243792 { public: public: }; struct Enum_t1655974417_StaticFields { public: // System.Char[] System.Enum::split_char CharU5BU5D_t35481994* ___split_char_0; public: inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t1655974417_StaticFields, ___split_char_0)); } inline CharU5BU5D_t35481994* get_split_char_0() const { return ___split_char_0; } inline CharU5BU5D_t35481994** get_address_of_split_char_0() { return &___split_char_0; } inline void set_split_char_0(CharU5BU5D_t35481994* value) { ___split_char_0 = value; Il2CppCodeGenWriteBarrier((&___split_char_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Enum struct Enum_t1655974417_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t1655974417_marshaled_com { }; #endif // ENUM_T1655974417_H #ifndef X509CERTIFICATECOLLECTION_T1754559427_H #define X509CERTIFICATECOLLECTION_T1754559427_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509CertificateCollection struct X509CertificateCollection_t1754559427 : public CollectionBase_t2230119306 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CERTIFICATECOLLECTION_T1754559427_H #ifndef X509CERTIFICATE2_T2111122295_H #define X509CERTIFICATE2_T2111122295_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509Certificate2 struct X509Certificate2_t2111122295 : public X509Certificate_t2430039298 { public: // System.Boolean System.Security.Cryptography.X509Certificates.X509Certificate2::_archived bool ____archived_5; // System.Security.Cryptography.X509Certificates.X509ExtensionCollection System.Security.Cryptography.X509Certificates.X509Certificate2::_extensions X509ExtensionCollection_t1199373738 * ____extensions_6; // System.String System.Security.Cryptography.X509Certificates.X509Certificate2::_name String_t* ____name_7; // System.String System.Security.Cryptography.X509Certificates.X509Certificate2::_serial String_t* ____serial_8; // System.Security.Cryptography.X509Certificates.PublicKey System.Security.Cryptography.X509Certificates.X509Certificate2::_publicKey PublicKey_t3765660246 * ____publicKey_9; // System.Security.Cryptography.X509Certificates.X500DistinguishedName System.Security.Cryptography.X509Certificates.X509Certificate2::issuer_name X500DistinguishedName_t3517382345 * ___issuer_name_10; // System.Security.Cryptography.X509Certificates.X500DistinguishedName System.Security.Cryptography.X509Certificates.X509Certificate2::subject_name X500DistinguishedName_t3517382345 * ___subject_name_11; // System.Security.Cryptography.Oid System.Security.Cryptography.X509Certificates.X509Certificate2::signature_algorithm Oid_t4268277835 * ___signature_algorithm_12; // Mono.Security.X509.X509Certificate System.Security.Cryptography.X509Certificates.X509Certificate2::_cert X509Certificate_t4201304791 * ____cert_13; public: inline static int32_t get_offset_of__archived_5() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ____archived_5)); } inline bool get__archived_5() const { return ____archived_5; } inline bool* get_address_of__archived_5() { return &____archived_5; } inline void set__archived_5(bool value) { ____archived_5 = value; } inline static int32_t get_offset_of__extensions_6() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ____extensions_6)); } inline X509ExtensionCollection_t1199373738 * get__extensions_6() const { return ____extensions_6; } inline X509ExtensionCollection_t1199373738 ** get_address_of__extensions_6() { return &____extensions_6; } inline void set__extensions_6(X509ExtensionCollection_t1199373738 * value) { ____extensions_6 = value; Il2CppCodeGenWriteBarrier((&____extensions_6), value); } inline static int32_t get_offset_of__name_7() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ____name_7)); } inline String_t* get__name_7() const { return ____name_7; } inline String_t** get_address_of__name_7() { return &____name_7; } inline void set__name_7(String_t* value) { ____name_7 = value; Il2CppCodeGenWriteBarrier((&____name_7), value); } inline static int32_t get_offset_of__serial_8() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ____serial_8)); } inline String_t* get__serial_8() const { return ____serial_8; } inline String_t** get_address_of__serial_8() { return &____serial_8; } inline void set__serial_8(String_t* value) { ____serial_8 = value; Il2CppCodeGenWriteBarrier((&____serial_8), value); } inline static int32_t get_offset_of__publicKey_9() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ____publicKey_9)); } inline PublicKey_t3765660246 * get__publicKey_9() const { return ____publicKey_9; } inline PublicKey_t3765660246 ** get_address_of__publicKey_9() { return &____publicKey_9; } inline void set__publicKey_9(PublicKey_t3765660246 * value) { ____publicKey_9 = value; Il2CppCodeGenWriteBarrier((&____publicKey_9), value); } inline static int32_t get_offset_of_issuer_name_10() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ___issuer_name_10)); } inline X500DistinguishedName_t3517382345 * get_issuer_name_10() const { return ___issuer_name_10; } inline X500DistinguishedName_t3517382345 ** get_address_of_issuer_name_10() { return &___issuer_name_10; } inline void set_issuer_name_10(X500DistinguishedName_t3517382345 * value) { ___issuer_name_10 = value; Il2CppCodeGenWriteBarrier((&___issuer_name_10), value); } inline static int32_t get_offset_of_subject_name_11() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ___subject_name_11)); } inline X500DistinguishedName_t3517382345 * get_subject_name_11() const { return ___subject_name_11; } inline X500DistinguishedName_t3517382345 ** get_address_of_subject_name_11() { return &___subject_name_11; } inline void set_subject_name_11(X500DistinguishedName_t3517382345 * value) { ___subject_name_11 = value; Il2CppCodeGenWriteBarrier((&___subject_name_11), value); } inline static int32_t get_offset_of_signature_algorithm_12() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ___signature_algorithm_12)); } inline Oid_t4268277835 * get_signature_algorithm_12() const { return ___signature_algorithm_12; } inline Oid_t4268277835 ** get_address_of_signature_algorithm_12() { return &___signature_algorithm_12; } inline void set_signature_algorithm_12(Oid_t4268277835 * value) { ___signature_algorithm_12 = value; Il2CppCodeGenWriteBarrier((&___signature_algorithm_12), value); } inline static int32_t get_offset_of__cert_13() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295, ____cert_13)); } inline X509Certificate_t4201304791 * get__cert_13() const { return ____cert_13; } inline X509Certificate_t4201304791 ** get_address_of__cert_13() { return &____cert_13; } inline void set__cert_13(X509Certificate_t4201304791 * value) { ____cert_13 = value; Il2CppCodeGenWriteBarrier((&____cert_13), value); } }; struct X509Certificate2_t2111122295_StaticFields { public: // System.String System.Security.Cryptography.X509Certificates.X509Certificate2::empty_error String_t* ___empty_error_14; // System.Byte[] System.Security.Cryptography.X509Certificates.X509Certificate2::commonName ByteU5BU5D_t2468942659* ___commonName_15; // System.Byte[] System.Security.Cryptography.X509Certificates.X509Certificate2::email ByteU5BU5D_t2468942659* ___email_16; // System.Byte[] System.Security.Cryptography.X509Certificates.X509Certificate2::signedData ByteU5BU5D_t2468942659* ___signedData_17; public: inline static int32_t get_offset_of_empty_error_14() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295_StaticFields, ___empty_error_14)); } inline String_t* get_empty_error_14() const { return ___empty_error_14; } inline String_t** get_address_of_empty_error_14() { return &___empty_error_14; } inline void set_empty_error_14(String_t* value) { ___empty_error_14 = value; Il2CppCodeGenWriteBarrier((&___empty_error_14), value); } inline static int32_t get_offset_of_commonName_15() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295_StaticFields, ___commonName_15)); } inline ByteU5BU5D_t2468942659* get_commonName_15() const { return ___commonName_15; } inline ByteU5BU5D_t2468942659** get_address_of_commonName_15() { return &___commonName_15; } inline void set_commonName_15(ByteU5BU5D_t2468942659* value) { ___commonName_15 = value; Il2CppCodeGenWriteBarrier((&___commonName_15), value); } inline static int32_t get_offset_of_email_16() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295_StaticFields, ___email_16)); } inline ByteU5BU5D_t2468942659* get_email_16() const { return ___email_16; } inline ByteU5BU5D_t2468942659** get_address_of_email_16() { return &___email_16; } inline void set_email_16(ByteU5BU5D_t2468942659* value) { ___email_16 = value; Il2CppCodeGenWriteBarrier((&___email_16), value); } inline static int32_t get_offset_of_signedData_17() { return static_cast<int32_t>(offsetof(X509Certificate2_t2111122295_StaticFields, ___signedData_17)); } inline ByteU5BU5D_t2468942659* get_signedData_17() const { return ___signedData_17; } inline ByteU5BU5D_t2468942659** get_address_of_signedData_17() { return &___signedData_17; } inline void set_signedData_17(ByteU5BU5D_t2468942659* value) { ___signedData_17 = value; Il2CppCodeGenWriteBarrier((&___signedData_17), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CERTIFICATE2_T2111122295_H #ifndef TIMESPAN_T2504440291_H #define TIMESPAN_T2504440291_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeSpan struct TimeSpan_t2504440291 { public: // System.Int64 System.TimeSpan::_ticks int64_t ____ticks_3; public: inline static int32_t get_offset_of__ticks_3() { return static_cast<int32_t>(offsetof(TimeSpan_t2504440291, ____ticks_3)); } inline int64_t get__ticks_3() const { return ____ticks_3; } inline int64_t* get_address_of__ticks_3() { return &____ticks_3; } inline void set__ticks_3(int64_t value) { ____ticks_3 = value; } }; struct TimeSpan_t2504440291_StaticFields { public: // System.TimeSpan System.TimeSpan::MaxValue TimeSpan_t2504440291 ___MaxValue_0; // System.TimeSpan System.TimeSpan::MinValue TimeSpan_t2504440291 ___MinValue_1; // System.TimeSpan System.TimeSpan::Zero TimeSpan_t2504440291 ___Zero_2; public: inline static int32_t get_offset_of_MaxValue_0() { return static_cast<int32_t>(offsetof(TimeSpan_t2504440291_StaticFields, ___MaxValue_0)); } inline TimeSpan_t2504440291 get_MaxValue_0() const { return ___MaxValue_0; } inline TimeSpan_t2504440291 * get_address_of_MaxValue_0() { return &___MaxValue_0; } inline void set_MaxValue_0(TimeSpan_t2504440291 value) { ___MaxValue_0 = value; } inline static int32_t get_offset_of_MinValue_1() { return static_cast<int32_t>(offsetof(TimeSpan_t2504440291_StaticFields, ___MinValue_1)); } inline TimeSpan_t2504440291 get_MinValue_1() const { return ___MinValue_1; } inline TimeSpan_t2504440291 * get_address_of_MinValue_1() { return &___MinValue_1; } inline void set_MinValue_1(TimeSpan_t2504440291 value) { ___MinValue_1 = value; } inline static int32_t get_offset_of_Zero_2() { return static_cast<int32_t>(offsetof(TimeSpan_t2504440291_StaticFields, ___Zero_2)); } inline TimeSpan_t2504440291 get_Zero_2() const { return ___Zero_2; } inline TimeSpan_t2504440291 * get_address_of_Zero_2() { return &___Zero_2; } inline void set_Zero_2(TimeSpan_t2504440291 value) { ___Zero_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TIMESPAN_T2504440291_H #ifndef X509EXTENSION_T2299253547_H #define X509EXTENSION_T2299253547_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509Extension struct X509Extension_t2299253547 : public AsnEncodedData_t1941916701 { public: // System.Boolean System.Security.Cryptography.X509Certificates.X509Extension::_critical bool ____critical_3; public: inline static int32_t get_offset_of__critical_3() { return static_cast<int32_t>(offsetof(X509Extension_t2299253547, ____critical_3)); } inline bool get__critical_3() const { return ____critical_3; } inline bool* get_address_of__critical_3() { return &____critical_3; } inline void set__critical_3(bool value) { ____critical_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509EXTENSION_T2299253547_H #ifndef X500DISTINGUISHEDNAME_T3517382345_H #define X500DISTINGUISHEDNAME_T3517382345_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X500DistinguishedName struct X500DistinguishedName_t3517382345 : public AsnEncodedData_t1941916701 { public: // System.String System.Security.Cryptography.X509Certificates.X500DistinguishedName::name String_t* ___name_3; public: inline static int32_t get_offset_of_name_3() { return static_cast<int32_t>(offsetof(X500DistinguishedName_t3517382345, ___name_3)); } inline String_t* get_name_3() const { return ___name_3; } inline String_t** get_address_of_name_3() { return &___name_3; } inline void set_name_3(String_t* value) { ___name_3 = value; Il2CppCodeGenWriteBarrier((&___name_3), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X500DISTINGUISHEDNAME_T3517382345_H #ifndef INTPTR_T_H #define INTPTR_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct IntPtr_t_StaticFields { public: // System.IntPtr System.IntPtr::Zero IntPtr_t ___Zero_1; public: inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); } inline IntPtr_t get_Zero_1() const { return ___Zero_1; } inline IntPtr_t* get_address_of_Zero_1() { return &___Zero_1; } inline void set_Zero_1(IntPtr_t value) { ___Zero_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INTPTR_T_H #ifndef U24ARRAYTYPEU24256_T1931588793_H #define U24ARRAYTYPEU24256_T1931588793_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$256 struct U24ArrayTypeU24256_t1931588793 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU24256_t1931588793__padding[256]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU24256_T1931588793_H #ifndef U24ARRAYTYPEU2412_T1278207176_H #define U24ARRAYTYPEU2412_T1278207176_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$12 struct U24ArrayTypeU2412_t1278207176 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2412_t1278207176__padding[12]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2412_T1278207176_H #ifndef U24ARRAYTYPEU2464_T222188501_H #define U24ARRAYTYPEU2464_T222188501_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$64 struct U24ArrayTypeU2464_t222188501 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2464_t222188501__padding[64]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2464_T222188501_H #ifndef U24ARRAYTYPEU2472_T941225235_H #define U24ARRAYTYPEU2472_T941225235_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$72 struct U24ArrayTypeU2472_t941225235 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2472_t941225235__padding[72]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2472_T941225235_H #ifndef U24ARRAYTYPEU2448_T3480171938_H #define U24ARRAYTYPEU2448_T3480171938_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$48 struct U24ArrayTypeU2448_t3480171938 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2448_t3480171938__padding[48]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2448_T3480171938_H #ifndef U24ARRAYTYPEU2432_T1607883682_H #define U24ARRAYTYPEU2432_T1607883682_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$32 struct U24ArrayTypeU2432_t1607883682 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2432_t1607883682__padding[32]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2432_T1607883682_H #ifndef U24ARRAYTYPEU24124_T1736853496_H #define U24ARRAYTYPEU24124_T1736853496_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$124 struct U24ArrayTypeU24124_t1736853496 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU24124_t1736853496__padding[124]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU24124_T1736853496_H #ifndef U24ARRAYTYPEU2420_T2349032362_H #define U24ARRAYTYPEU2420_T2349032362_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$20 struct U24ArrayTypeU2420_t2349032362 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2420_t2349032362__padding[20]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2420_T2349032362_H #ifndef U24ARRAYTYPEU2496_T447446485_H #define U24ARRAYTYPEU2496_T447446485_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$96 struct U24ArrayTypeU2496_t447446485 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2496_t447446485__padding[96]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2496_T447446485_H #ifndef U24ARRAYTYPEU243132_T1590865670_H #define U24ARRAYTYPEU243132_T1590865670_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$3132 struct U24ArrayTypeU243132_t1590865670 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU243132_t1590865670__padding[3132]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU243132_T1590865670_H #ifndef U24ARRAYTYPEU242048_T2914266108_H #define U24ARRAYTYPEU242048_T2914266108_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$2048 struct U24ArrayTypeU242048_t2914266108 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU242048_t2914266108__padding[2048]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU242048_T2914266108_H #ifndef U24ARRAYTYPEU24120_T4066035385_H #define U24ARRAYTYPEU24120_T4066035385_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$120 struct U24ArrayTypeU24120_t4066035385 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU24120_t4066035385__padding[120]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU24120_T4066035385_H #ifndef U24ARRAYTYPEU2416_T1346803214_H #define U24ARRAYTYPEU2416_T1346803214_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$16 struct U24ArrayTypeU2416_t1346803214 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2416_t1346803214__padding[16]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2416_T1346803214_H #ifndef U24ARRAYTYPEU2424_T114830448_H #define U24ARRAYTYPEU2424_T114830448_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$24 struct U24ArrayTypeU2424_t114830448 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2424_t114830448__padding[24]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2424_T114830448_H #ifndef U24ARRAYTYPEU248_T1608094905_H #define U24ARRAYTYPEU248_T1608094905_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$8 struct U24ArrayTypeU248_t1608094905 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU248_t1608094905__padding[8]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU248_T1608094905_H #ifndef U24ARRAYTYPEU24136_T1434207411_H #define U24ARRAYTYPEU24136_T1434207411_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$136 struct U24ArrayTypeU24136_t1434207411 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU24136_t1434207411__padding[136]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU24136_T1434207411_H #ifndef U24ARRAYTYPEU241024_T3982592445_H #define U24ARRAYTYPEU241024_T3982592445_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$1024 struct U24ArrayTypeU241024_t3982592445 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU241024_t3982592445__padding[1024]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU241024_T3982592445_H #ifndef U24ARRAYTYPEU24640_T2273712391_H #define U24ARRAYTYPEU24640_T2273712391_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$640 struct U24ArrayTypeU24640_t2273712391 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU24640_t2273712391__padding[640]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU24640_T2273712391_H #ifndef NAMEVALUECOLLECTION_T3726265270_H #define NAMEVALUECOLLECTION_T3726265270_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Specialized.NameValueCollection struct NameValueCollection_t3726265270 : public NameObjectCollectionBase_t3041392021 { public: // System.String[] System.Collections.Specialized.NameValueCollection::cachedAllKeys StringU5BU5D_t3210853254* ___cachedAllKeys_10; // System.String[] System.Collections.Specialized.NameValueCollection::cachedAll StringU5BU5D_t3210853254* ___cachedAll_11; public: inline static int32_t get_offset_of_cachedAllKeys_10() { return static_cast<int32_t>(offsetof(NameValueCollection_t3726265270, ___cachedAllKeys_10)); } inline StringU5BU5D_t3210853254* get_cachedAllKeys_10() const { return ___cachedAllKeys_10; } inline StringU5BU5D_t3210853254** get_address_of_cachedAllKeys_10() { return &___cachedAllKeys_10; } inline void set_cachedAllKeys_10(StringU5BU5D_t3210853254* value) { ___cachedAllKeys_10 = value; Il2CppCodeGenWriteBarrier((&___cachedAllKeys_10), value); } inline static int32_t get_offset_of_cachedAll_11() { return static_cast<int32_t>(offsetof(NameValueCollection_t3726265270, ___cachedAll_11)); } inline StringU5BU5D_t3210853254* get_cachedAll_11() const { return ___cachedAll_11; } inline StringU5BU5D_t3210853254** get_address_of_cachedAll_11() { return &___cachedAll_11; } inline void set_cachedAll_11(StringU5BU5D_t3210853254* value) { ___cachedAll_11 = value; Il2CppCodeGenWriteBarrier((&___cachedAll_11), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NAMEVALUECOLLECTION_T3726265270_H #ifndef MONOTODOATTRIBUTE_T1298862014_H #define MONOTODOATTRIBUTE_T1298862014_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MonoTODOAttribute struct MonoTODOAttribute_t1298862014 : public Attribute_t3169313911 { public: // System.String System.MonoTODOAttribute::comment String_t* ___comment_0; public: inline static int32_t get_offset_of_comment_0() { return static_cast<int32_t>(offsetof(MonoTODOAttribute_t1298862014, ___comment_0)); } inline String_t* get_comment_0() const { return ___comment_0; } inline String_t** get_address_of_comment_0() { return &___comment_0; } inline void set_comment_0(String_t* value) { ___comment_0 = value; Il2CppCodeGenWriteBarrier((&___comment_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MONOTODOATTRIBUTE_T1298862014_H #ifndef U24ARRAYTYPEU24128_T1589820017_H #define U24ARRAYTYPEU24128_T1589820017_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$128 struct U24ArrayTypeU24128_t1589820017 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU24128_t1589820017__padding[128]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU24128_T1589820017_H #ifndef U24ARRAYTYPEU2452_T259284491_H #define U24ARRAYTYPEU2452_T259284491_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$52 struct U24ArrayTypeU2452_t259284491 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2452_t259284491__padding[52]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2452_T259284491_H #ifndef U24ARRAYTYPEU2456_T1299599745_H #define U24ARRAYTYPEU2456_T1299599745_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails>/$ArrayType$56 struct U24ArrayTypeU2456_t1299599745 { public: union { struct { union { }; }; uint8_t U24ArrayTypeU2456_t1299599745__padding[56]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U24ARRAYTYPEU2456_T1299599745_H #ifndef __IL2CPPCOMDELEGATE_T2529694029_H #define __IL2CPPCOMDELEGATE_T2529694029_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.__Il2CppComDelegate struct __Il2CppComDelegate_t2529694029 : public Il2CppComObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // __IL2CPPCOMDELEGATE_T2529694029_H #ifndef U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T2280578751_H #define U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T2280578751_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <PrivateImplementationDetails> struct U3CPrivateImplementationDetailsU3E_t2280578751 : public RuntimeObject { public: public: }; struct U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields { public: // <PrivateImplementationDetails>/$ArrayType$56 <PrivateImplementationDetails>::$$field-0 U24ArrayTypeU2456_t1299599745 ___U24U24fieldU2D0_0; // <PrivateImplementationDetails>/$ArrayType$24 <PrivateImplementationDetails>::$$field-1 U24ArrayTypeU2424_t114830448 ___U24U24fieldU2D1_1; // <PrivateImplementationDetails>/$ArrayType$24 <PrivateImplementationDetails>::$$field-2 U24ArrayTypeU2424_t114830448 ___U24U24fieldU2D2_2; // <PrivateImplementationDetails>/$ArrayType$24 <PrivateImplementationDetails>::$$field-3 U24ArrayTypeU2424_t114830448 ___U24U24fieldU2D3_3; // <PrivateImplementationDetails>/$ArrayType$24 <PrivateImplementationDetails>::$$field-4 U24ArrayTypeU2424_t114830448 ___U24U24fieldU2D4_4; // <PrivateImplementationDetails>/$ArrayType$16 <PrivateImplementationDetails>::$$field-5 U24ArrayTypeU2416_t1346803214 ___U24U24fieldU2D5_5; // <PrivateImplementationDetails>/$ArrayType$16 <PrivateImplementationDetails>::$$field-6 U24ArrayTypeU2416_t1346803214 ___U24U24fieldU2D6_6; // <PrivateImplementationDetails>/$ArrayType$3132 <PrivateImplementationDetails>::$$field-15 U24ArrayTypeU243132_t1590865670 ___U24U24fieldU2D15_7; // <PrivateImplementationDetails>/$ArrayType$20 <PrivateImplementationDetails>::$$field-16 U24ArrayTypeU2420_t2349032362 ___U24U24fieldU2D16_8; // <PrivateImplementationDetails>/$ArrayType$32 <PrivateImplementationDetails>::$$field-17 U24ArrayTypeU2432_t1607883682 ___U24U24fieldU2D17_9; // <PrivateImplementationDetails>/$ArrayType$48 <PrivateImplementationDetails>::$$field-18 U24ArrayTypeU2448_t3480171938 ___U24U24fieldU2D18_10; // <PrivateImplementationDetails>/$ArrayType$64 <PrivateImplementationDetails>::$$field-19 U24ArrayTypeU2464_t222188501 ___U24U24fieldU2D19_11; // <PrivateImplementationDetails>/$ArrayType$64 <PrivateImplementationDetails>::$$field-20 U24ArrayTypeU2464_t222188501 ___U24U24fieldU2D20_12; // <PrivateImplementationDetails>/$ArrayType$64 <PrivateImplementationDetails>::$$field-21 U24ArrayTypeU2464_t222188501 ___U24U24fieldU2D21_13; // <PrivateImplementationDetails>/$ArrayType$64 <PrivateImplementationDetails>::$$field-22 U24ArrayTypeU2464_t222188501 ___U24U24fieldU2D22_14; // <PrivateImplementationDetails>/$ArrayType$12 <PrivateImplementationDetails>::$$field-23 U24ArrayTypeU2412_t1278207176 ___U24U24fieldU2D23_15; // <PrivateImplementationDetails>/$ArrayType$12 <PrivateImplementationDetails>::$$field-24 U24ArrayTypeU2412_t1278207176 ___U24U24fieldU2D24_16; // <PrivateImplementationDetails>/$ArrayType$12 <PrivateImplementationDetails>::$$field-25 U24ArrayTypeU2412_t1278207176 ___U24U24fieldU2D25_17; // <PrivateImplementationDetails>/$ArrayType$16 <PrivateImplementationDetails>::$$field-26 U24ArrayTypeU2416_t1346803214 ___U24U24fieldU2D26_18; // <PrivateImplementationDetails>/$ArrayType$136 <PrivateImplementationDetails>::$$field-27 U24ArrayTypeU24136_t1434207411 ___U24U24fieldU2D27_19; // <PrivateImplementationDetails>/$ArrayType$72 <PrivateImplementationDetails>::$$field-30 U24ArrayTypeU2472_t941225235 ___U24U24fieldU2D30_20; // <PrivateImplementationDetails>/$ArrayType$8 <PrivateImplementationDetails>::$$field-31 U24ArrayTypeU248_t1608094905 ___U24U24fieldU2D31_21; // <PrivateImplementationDetails>/$ArrayType$20 <PrivateImplementationDetails>::$$field-32 U24ArrayTypeU2420_t2349032362 ___U24U24fieldU2D32_22; // <PrivateImplementationDetails>/$ArrayType$64 <PrivateImplementationDetails>::$$field-33 U24ArrayTypeU2464_t222188501 ___U24U24fieldU2D33_23; // <PrivateImplementationDetails>/$ArrayType$124 <PrivateImplementationDetails>::$$field-34 U24ArrayTypeU24124_t1736853496 ___U24U24fieldU2D34_24; // <PrivateImplementationDetails>/$ArrayType$32 <PrivateImplementationDetails>::$$field-35 U24ArrayTypeU2432_t1607883682 ___U24U24fieldU2D35_25; // <PrivateImplementationDetails>/$ArrayType$96 <PrivateImplementationDetails>::$$field-36 U24ArrayTypeU2496_t447446485 ___U24U24fieldU2D36_26; // <PrivateImplementationDetails>/$ArrayType$2048 <PrivateImplementationDetails>::$$field-37 U24ArrayTypeU242048_t2914266108 ___U24U24fieldU2D37_27; // <PrivateImplementationDetails>/$ArrayType$56 <PrivateImplementationDetails>::$$field-38 U24ArrayTypeU2456_t1299599745 ___U24U24fieldU2D38_28; // <PrivateImplementationDetails>/$ArrayType$16 <PrivateImplementationDetails>::$$field-39 U24ArrayTypeU2416_t1346803214 ___U24U24fieldU2D39_29; // <PrivateImplementationDetails>/$ArrayType$48 <PrivateImplementationDetails>::$$field-40 U24ArrayTypeU2448_t3480171938 ___U24U24fieldU2D40_30; // <PrivateImplementationDetails>/$ArrayType$2048 <PrivateImplementationDetails>::$$field-41 U24ArrayTypeU242048_t2914266108 ___U24U24fieldU2D41_31; // <PrivateImplementationDetails>/$ArrayType$2048 <PrivateImplementationDetails>::$$field-42 U24ArrayTypeU242048_t2914266108 ___U24U24fieldU2D42_32; // <PrivateImplementationDetails>/$ArrayType$256 <PrivateImplementationDetails>::$$field-43 U24ArrayTypeU24256_t1931588793 ___U24U24fieldU2D43_33; // <PrivateImplementationDetails>/$ArrayType$256 <PrivateImplementationDetails>::$$field-44 U24ArrayTypeU24256_t1931588793 ___U24U24fieldU2D44_34; // <PrivateImplementationDetails>/$ArrayType$120 <PrivateImplementationDetails>::$$field-45 U24ArrayTypeU24120_t4066035385 ___U24U24fieldU2D45_35; // <PrivateImplementationDetails>/$ArrayType$256 <PrivateImplementationDetails>::$$field-46 U24ArrayTypeU24256_t1931588793 ___U24U24fieldU2D46_36; // <PrivateImplementationDetails>/$ArrayType$256 <PrivateImplementationDetails>::$$field-47 U24ArrayTypeU24256_t1931588793 ___U24U24fieldU2D47_37; // <PrivateImplementationDetails>/$ArrayType$1024 <PrivateImplementationDetails>::$$field-48 U24ArrayTypeU241024_t3982592445 ___U24U24fieldU2D48_38; // <PrivateImplementationDetails>/$ArrayType$1024 <PrivateImplementationDetails>::$$field-49 U24ArrayTypeU241024_t3982592445 ___U24U24fieldU2D49_39; // <PrivateImplementationDetails>/$ArrayType$1024 <PrivateImplementationDetails>::$$field-50 U24ArrayTypeU241024_t3982592445 ___U24U24fieldU2D50_40; // <PrivateImplementationDetails>/$ArrayType$1024 <PrivateImplementationDetails>::$$field-51 U24ArrayTypeU241024_t3982592445 ___U24U24fieldU2D51_41; // <PrivateImplementationDetails>/$ArrayType$1024 <PrivateImplementationDetails>::$$field-52 U24ArrayTypeU241024_t3982592445 ___U24U24fieldU2D52_42; // <PrivateImplementationDetails>/$ArrayType$1024 <PrivateImplementationDetails>::$$field-53 U24ArrayTypeU241024_t3982592445 ___U24U24fieldU2D53_43; // <PrivateImplementationDetails>/$ArrayType$1024 <PrivateImplementationDetails>::$$field-54 U24ArrayTypeU241024_t3982592445 ___U24U24fieldU2D54_44; // <PrivateImplementationDetails>/$ArrayType$1024 <PrivateImplementationDetails>::$$field-55 U24ArrayTypeU241024_t3982592445 ___U24U24fieldU2D55_45; // <PrivateImplementationDetails>/$ArrayType$256 <PrivateImplementationDetails>::$$field-56 U24ArrayTypeU24256_t1931588793 ___U24U24fieldU2D56_46; // <PrivateImplementationDetails>/$ArrayType$640 <PrivateImplementationDetails>::$$field-57 U24ArrayTypeU24640_t2273712391 ___U24U24fieldU2D57_47; // <PrivateImplementationDetails>/$ArrayType$12 <PrivateImplementationDetails>::$$field-60 U24ArrayTypeU2412_t1278207176 ___U24U24fieldU2D60_48; // <PrivateImplementationDetails>/$ArrayType$128 <PrivateImplementationDetails>::$$field-62 U24ArrayTypeU24128_t1589820017 ___U24U24fieldU2D62_49; // <PrivateImplementationDetails>/$ArrayType$256 <PrivateImplementationDetails>::$$field-63 U24ArrayTypeU24256_t1931588793 ___U24U24fieldU2D63_50; // <PrivateImplementationDetails>/$ArrayType$52 <PrivateImplementationDetails>::$$field-64 U24ArrayTypeU2452_t259284491 ___U24U24fieldU2D64_51; // <PrivateImplementationDetails>/$ArrayType$52 <PrivateImplementationDetails>::$$field-65 U24ArrayTypeU2452_t259284491 ___U24U24fieldU2D65_52; public: inline static int32_t get_offset_of_U24U24fieldU2D0_0() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D0_0)); } inline U24ArrayTypeU2456_t1299599745 get_U24U24fieldU2D0_0() const { return ___U24U24fieldU2D0_0; } inline U24ArrayTypeU2456_t1299599745 * get_address_of_U24U24fieldU2D0_0() { return &___U24U24fieldU2D0_0; } inline void set_U24U24fieldU2D0_0(U24ArrayTypeU2456_t1299599745 value) { ___U24U24fieldU2D0_0 = value; } inline static int32_t get_offset_of_U24U24fieldU2D1_1() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D1_1)); } inline U24ArrayTypeU2424_t114830448 get_U24U24fieldU2D1_1() const { return ___U24U24fieldU2D1_1; } inline U24ArrayTypeU2424_t114830448 * get_address_of_U24U24fieldU2D1_1() { return &___U24U24fieldU2D1_1; } inline void set_U24U24fieldU2D1_1(U24ArrayTypeU2424_t114830448 value) { ___U24U24fieldU2D1_1 = value; } inline static int32_t get_offset_of_U24U24fieldU2D2_2() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D2_2)); } inline U24ArrayTypeU2424_t114830448 get_U24U24fieldU2D2_2() const { return ___U24U24fieldU2D2_2; } inline U24ArrayTypeU2424_t114830448 * get_address_of_U24U24fieldU2D2_2() { return &___U24U24fieldU2D2_2; } inline void set_U24U24fieldU2D2_2(U24ArrayTypeU2424_t114830448 value) { ___U24U24fieldU2D2_2 = value; } inline static int32_t get_offset_of_U24U24fieldU2D3_3() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D3_3)); } inline U24ArrayTypeU2424_t114830448 get_U24U24fieldU2D3_3() const { return ___U24U24fieldU2D3_3; } inline U24ArrayTypeU2424_t114830448 * get_address_of_U24U24fieldU2D3_3() { return &___U24U24fieldU2D3_3; } inline void set_U24U24fieldU2D3_3(U24ArrayTypeU2424_t114830448 value) { ___U24U24fieldU2D3_3 = value; } inline static int32_t get_offset_of_U24U24fieldU2D4_4() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D4_4)); } inline U24ArrayTypeU2424_t114830448 get_U24U24fieldU2D4_4() const { return ___U24U24fieldU2D4_4; } inline U24ArrayTypeU2424_t114830448 * get_address_of_U24U24fieldU2D4_4() { return &___U24U24fieldU2D4_4; } inline void set_U24U24fieldU2D4_4(U24ArrayTypeU2424_t114830448 value) { ___U24U24fieldU2D4_4 = value; } inline static int32_t get_offset_of_U24U24fieldU2D5_5() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D5_5)); } inline U24ArrayTypeU2416_t1346803214 get_U24U24fieldU2D5_5() const { return ___U24U24fieldU2D5_5; } inline U24ArrayTypeU2416_t1346803214 * get_address_of_U24U24fieldU2D5_5() { return &___U24U24fieldU2D5_5; } inline void set_U24U24fieldU2D5_5(U24ArrayTypeU2416_t1346803214 value) { ___U24U24fieldU2D5_5 = value; } inline static int32_t get_offset_of_U24U24fieldU2D6_6() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D6_6)); } inline U24ArrayTypeU2416_t1346803214 get_U24U24fieldU2D6_6() const { return ___U24U24fieldU2D6_6; } inline U24ArrayTypeU2416_t1346803214 * get_address_of_U24U24fieldU2D6_6() { return &___U24U24fieldU2D6_6; } inline void set_U24U24fieldU2D6_6(U24ArrayTypeU2416_t1346803214 value) { ___U24U24fieldU2D6_6 = value; } inline static int32_t get_offset_of_U24U24fieldU2D15_7() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D15_7)); } inline U24ArrayTypeU243132_t1590865670 get_U24U24fieldU2D15_7() const { return ___U24U24fieldU2D15_7; } inline U24ArrayTypeU243132_t1590865670 * get_address_of_U24U24fieldU2D15_7() { return &___U24U24fieldU2D15_7; } inline void set_U24U24fieldU2D15_7(U24ArrayTypeU243132_t1590865670 value) { ___U24U24fieldU2D15_7 = value; } inline static int32_t get_offset_of_U24U24fieldU2D16_8() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D16_8)); } inline U24ArrayTypeU2420_t2349032362 get_U24U24fieldU2D16_8() const { return ___U24U24fieldU2D16_8; } inline U24ArrayTypeU2420_t2349032362 * get_address_of_U24U24fieldU2D16_8() { return &___U24U24fieldU2D16_8; } inline void set_U24U24fieldU2D16_8(U24ArrayTypeU2420_t2349032362 value) { ___U24U24fieldU2D16_8 = value; } inline static int32_t get_offset_of_U24U24fieldU2D17_9() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D17_9)); } inline U24ArrayTypeU2432_t1607883682 get_U24U24fieldU2D17_9() const { return ___U24U24fieldU2D17_9; } inline U24ArrayTypeU2432_t1607883682 * get_address_of_U24U24fieldU2D17_9() { return &___U24U24fieldU2D17_9; } inline void set_U24U24fieldU2D17_9(U24ArrayTypeU2432_t1607883682 value) { ___U24U24fieldU2D17_9 = value; } inline static int32_t get_offset_of_U24U24fieldU2D18_10() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D18_10)); } inline U24ArrayTypeU2448_t3480171938 get_U24U24fieldU2D18_10() const { return ___U24U24fieldU2D18_10; } inline U24ArrayTypeU2448_t3480171938 * get_address_of_U24U24fieldU2D18_10() { return &___U24U24fieldU2D18_10; } inline void set_U24U24fieldU2D18_10(U24ArrayTypeU2448_t3480171938 value) { ___U24U24fieldU2D18_10 = value; } inline static int32_t get_offset_of_U24U24fieldU2D19_11() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D19_11)); } inline U24ArrayTypeU2464_t222188501 get_U24U24fieldU2D19_11() const { return ___U24U24fieldU2D19_11; } inline U24ArrayTypeU2464_t222188501 * get_address_of_U24U24fieldU2D19_11() { return &___U24U24fieldU2D19_11; } inline void set_U24U24fieldU2D19_11(U24ArrayTypeU2464_t222188501 value) { ___U24U24fieldU2D19_11 = value; } inline static int32_t get_offset_of_U24U24fieldU2D20_12() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D20_12)); } inline U24ArrayTypeU2464_t222188501 get_U24U24fieldU2D20_12() const { return ___U24U24fieldU2D20_12; } inline U24ArrayTypeU2464_t222188501 * get_address_of_U24U24fieldU2D20_12() { return &___U24U24fieldU2D20_12; } inline void set_U24U24fieldU2D20_12(U24ArrayTypeU2464_t222188501 value) { ___U24U24fieldU2D20_12 = value; } inline static int32_t get_offset_of_U24U24fieldU2D21_13() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D21_13)); } inline U24ArrayTypeU2464_t222188501 get_U24U24fieldU2D21_13() const { return ___U24U24fieldU2D21_13; } inline U24ArrayTypeU2464_t222188501 * get_address_of_U24U24fieldU2D21_13() { return &___U24U24fieldU2D21_13; } inline void set_U24U24fieldU2D21_13(U24ArrayTypeU2464_t222188501 value) { ___U24U24fieldU2D21_13 = value; } inline static int32_t get_offset_of_U24U24fieldU2D22_14() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D22_14)); } inline U24ArrayTypeU2464_t222188501 get_U24U24fieldU2D22_14() const { return ___U24U24fieldU2D22_14; } inline U24ArrayTypeU2464_t222188501 * get_address_of_U24U24fieldU2D22_14() { return &___U24U24fieldU2D22_14; } inline void set_U24U24fieldU2D22_14(U24ArrayTypeU2464_t222188501 value) { ___U24U24fieldU2D22_14 = value; } inline static int32_t get_offset_of_U24U24fieldU2D23_15() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D23_15)); } inline U24ArrayTypeU2412_t1278207176 get_U24U24fieldU2D23_15() const { return ___U24U24fieldU2D23_15; } inline U24ArrayTypeU2412_t1278207176 * get_address_of_U24U24fieldU2D23_15() { return &___U24U24fieldU2D23_15; } inline void set_U24U24fieldU2D23_15(U24ArrayTypeU2412_t1278207176 value) { ___U24U24fieldU2D23_15 = value; } inline static int32_t get_offset_of_U24U24fieldU2D24_16() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D24_16)); } inline U24ArrayTypeU2412_t1278207176 get_U24U24fieldU2D24_16() const { return ___U24U24fieldU2D24_16; } inline U24ArrayTypeU2412_t1278207176 * get_address_of_U24U24fieldU2D24_16() { return &___U24U24fieldU2D24_16; } inline void set_U24U24fieldU2D24_16(U24ArrayTypeU2412_t1278207176 value) { ___U24U24fieldU2D24_16 = value; } inline static int32_t get_offset_of_U24U24fieldU2D25_17() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D25_17)); } inline U24ArrayTypeU2412_t1278207176 get_U24U24fieldU2D25_17() const { return ___U24U24fieldU2D25_17; } inline U24ArrayTypeU2412_t1278207176 * get_address_of_U24U24fieldU2D25_17() { return &___U24U24fieldU2D25_17; } inline void set_U24U24fieldU2D25_17(U24ArrayTypeU2412_t1278207176 value) { ___U24U24fieldU2D25_17 = value; } inline static int32_t get_offset_of_U24U24fieldU2D26_18() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D26_18)); } inline U24ArrayTypeU2416_t1346803214 get_U24U24fieldU2D26_18() const { return ___U24U24fieldU2D26_18; } inline U24ArrayTypeU2416_t1346803214 * get_address_of_U24U24fieldU2D26_18() { return &___U24U24fieldU2D26_18; } inline void set_U24U24fieldU2D26_18(U24ArrayTypeU2416_t1346803214 value) { ___U24U24fieldU2D26_18 = value; } inline static int32_t get_offset_of_U24U24fieldU2D27_19() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D27_19)); } inline U24ArrayTypeU24136_t1434207411 get_U24U24fieldU2D27_19() const { return ___U24U24fieldU2D27_19; } inline U24ArrayTypeU24136_t1434207411 * get_address_of_U24U24fieldU2D27_19() { return &___U24U24fieldU2D27_19; } inline void set_U24U24fieldU2D27_19(U24ArrayTypeU24136_t1434207411 value) { ___U24U24fieldU2D27_19 = value; } inline static int32_t get_offset_of_U24U24fieldU2D30_20() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D30_20)); } inline U24ArrayTypeU2472_t941225235 get_U24U24fieldU2D30_20() const { return ___U24U24fieldU2D30_20; } inline U24ArrayTypeU2472_t941225235 * get_address_of_U24U24fieldU2D30_20() { return &___U24U24fieldU2D30_20; } inline void set_U24U24fieldU2D30_20(U24ArrayTypeU2472_t941225235 value) { ___U24U24fieldU2D30_20 = value; } inline static int32_t get_offset_of_U24U24fieldU2D31_21() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D31_21)); } inline U24ArrayTypeU248_t1608094905 get_U24U24fieldU2D31_21() const { return ___U24U24fieldU2D31_21; } inline U24ArrayTypeU248_t1608094905 * get_address_of_U24U24fieldU2D31_21() { return &___U24U24fieldU2D31_21; } inline void set_U24U24fieldU2D31_21(U24ArrayTypeU248_t1608094905 value) { ___U24U24fieldU2D31_21 = value; } inline static int32_t get_offset_of_U24U24fieldU2D32_22() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D32_22)); } inline U24ArrayTypeU2420_t2349032362 get_U24U24fieldU2D32_22() const { return ___U24U24fieldU2D32_22; } inline U24ArrayTypeU2420_t2349032362 * get_address_of_U24U24fieldU2D32_22() { return &___U24U24fieldU2D32_22; } inline void set_U24U24fieldU2D32_22(U24ArrayTypeU2420_t2349032362 value) { ___U24U24fieldU2D32_22 = value; } inline static int32_t get_offset_of_U24U24fieldU2D33_23() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D33_23)); } inline U24ArrayTypeU2464_t222188501 get_U24U24fieldU2D33_23() const { return ___U24U24fieldU2D33_23; } inline U24ArrayTypeU2464_t222188501 * get_address_of_U24U24fieldU2D33_23() { return &___U24U24fieldU2D33_23; } inline void set_U24U24fieldU2D33_23(U24ArrayTypeU2464_t222188501 value) { ___U24U24fieldU2D33_23 = value; } inline static int32_t get_offset_of_U24U24fieldU2D34_24() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D34_24)); } inline U24ArrayTypeU24124_t1736853496 get_U24U24fieldU2D34_24() const { return ___U24U24fieldU2D34_24; } inline U24ArrayTypeU24124_t1736853496 * get_address_of_U24U24fieldU2D34_24() { return &___U24U24fieldU2D34_24; } inline void set_U24U24fieldU2D34_24(U24ArrayTypeU24124_t1736853496 value) { ___U24U24fieldU2D34_24 = value; } inline static int32_t get_offset_of_U24U24fieldU2D35_25() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D35_25)); } inline U24ArrayTypeU2432_t1607883682 get_U24U24fieldU2D35_25() const { return ___U24U24fieldU2D35_25; } inline U24ArrayTypeU2432_t1607883682 * get_address_of_U24U24fieldU2D35_25() { return &___U24U24fieldU2D35_25; } inline void set_U24U24fieldU2D35_25(U24ArrayTypeU2432_t1607883682 value) { ___U24U24fieldU2D35_25 = value; } inline static int32_t get_offset_of_U24U24fieldU2D36_26() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D36_26)); } inline U24ArrayTypeU2496_t447446485 get_U24U24fieldU2D36_26() const { return ___U24U24fieldU2D36_26; } inline U24ArrayTypeU2496_t447446485 * get_address_of_U24U24fieldU2D36_26() { return &___U24U24fieldU2D36_26; } inline void set_U24U24fieldU2D36_26(U24ArrayTypeU2496_t447446485 value) { ___U24U24fieldU2D36_26 = value; } inline static int32_t get_offset_of_U24U24fieldU2D37_27() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D37_27)); } inline U24ArrayTypeU242048_t2914266108 get_U24U24fieldU2D37_27() const { return ___U24U24fieldU2D37_27; } inline U24ArrayTypeU242048_t2914266108 * get_address_of_U24U24fieldU2D37_27() { return &___U24U24fieldU2D37_27; } inline void set_U24U24fieldU2D37_27(U24ArrayTypeU242048_t2914266108 value) { ___U24U24fieldU2D37_27 = value; } inline static int32_t get_offset_of_U24U24fieldU2D38_28() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D38_28)); } inline U24ArrayTypeU2456_t1299599745 get_U24U24fieldU2D38_28() const { return ___U24U24fieldU2D38_28; } inline U24ArrayTypeU2456_t1299599745 * get_address_of_U24U24fieldU2D38_28() { return &___U24U24fieldU2D38_28; } inline void set_U24U24fieldU2D38_28(U24ArrayTypeU2456_t1299599745 value) { ___U24U24fieldU2D38_28 = value; } inline static int32_t get_offset_of_U24U24fieldU2D39_29() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D39_29)); } inline U24ArrayTypeU2416_t1346803214 get_U24U24fieldU2D39_29() const { return ___U24U24fieldU2D39_29; } inline U24ArrayTypeU2416_t1346803214 * get_address_of_U24U24fieldU2D39_29() { return &___U24U24fieldU2D39_29; } inline void set_U24U24fieldU2D39_29(U24ArrayTypeU2416_t1346803214 value) { ___U24U24fieldU2D39_29 = value; } inline static int32_t get_offset_of_U24U24fieldU2D40_30() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D40_30)); } inline U24ArrayTypeU2448_t3480171938 get_U24U24fieldU2D40_30() const { return ___U24U24fieldU2D40_30; } inline U24ArrayTypeU2448_t3480171938 * get_address_of_U24U24fieldU2D40_30() { return &___U24U24fieldU2D40_30; } inline void set_U24U24fieldU2D40_30(U24ArrayTypeU2448_t3480171938 value) { ___U24U24fieldU2D40_30 = value; } inline static int32_t get_offset_of_U24U24fieldU2D41_31() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D41_31)); } inline U24ArrayTypeU242048_t2914266108 get_U24U24fieldU2D41_31() const { return ___U24U24fieldU2D41_31; } inline U24ArrayTypeU242048_t2914266108 * get_address_of_U24U24fieldU2D41_31() { return &___U24U24fieldU2D41_31; } inline void set_U24U24fieldU2D41_31(U24ArrayTypeU242048_t2914266108 value) { ___U24U24fieldU2D41_31 = value; } inline static int32_t get_offset_of_U24U24fieldU2D42_32() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D42_32)); } inline U24ArrayTypeU242048_t2914266108 get_U24U24fieldU2D42_32() const { return ___U24U24fieldU2D42_32; } inline U24ArrayTypeU242048_t2914266108 * get_address_of_U24U24fieldU2D42_32() { return &___U24U24fieldU2D42_32; } inline void set_U24U24fieldU2D42_32(U24ArrayTypeU242048_t2914266108 value) { ___U24U24fieldU2D42_32 = value; } inline static int32_t get_offset_of_U24U24fieldU2D43_33() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D43_33)); } inline U24ArrayTypeU24256_t1931588793 get_U24U24fieldU2D43_33() const { return ___U24U24fieldU2D43_33; } inline U24ArrayTypeU24256_t1931588793 * get_address_of_U24U24fieldU2D43_33() { return &___U24U24fieldU2D43_33; } inline void set_U24U24fieldU2D43_33(U24ArrayTypeU24256_t1931588793 value) { ___U24U24fieldU2D43_33 = value; } inline static int32_t get_offset_of_U24U24fieldU2D44_34() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D44_34)); } inline U24ArrayTypeU24256_t1931588793 get_U24U24fieldU2D44_34() const { return ___U24U24fieldU2D44_34; } inline U24ArrayTypeU24256_t1931588793 * get_address_of_U24U24fieldU2D44_34() { return &___U24U24fieldU2D44_34; } inline void set_U24U24fieldU2D44_34(U24ArrayTypeU24256_t1931588793 value) { ___U24U24fieldU2D44_34 = value; } inline static int32_t get_offset_of_U24U24fieldU2D45_35() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D45_35)); } inline U24ArrayTypeU24120_t4066035385 get_U24U24fieldU2D45_35() const { return ___U24U24fieldU2D45_35; } inline U24ArrayTypeU24120_t4066035385 * get_address_of_U24U24fieldU2D45_35() { return &___U24U24fieldU2D45_35; } inline void set_U24U24fieldU2D45_35(U24ArrayTypeU24120_t4066035385 value) { ___U24U24fieldU2D45_35 = value; } inline static int32_t get_offset_of_U24U24fieldU2D46_36() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D46_36)); } inline U24ArrayTypeU24256_t1931588793 get_U24U24fieldU2D46_36() const { return ___U24U24fieldU2D46_36; } inline U24ArrayTypeU24256_t1931588793 * get_address_of_U24U24fieldU2D46_36() { return &___U24U24fieldU2D46_36; } inline void set_U24U24fieldU2D46_36(U24ArrayTypeU24256_t1931588793 value) { ___U24U24fieldU2D46_36 = value; } inline static int32_t get_offset_of_U24U24fieldU2D47_37() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D47_37)); } inline U24ArrayTypeU24256_t1931588793 get_U24U24fieldU2D47_37() const { return ___U24U24fieldU2D47_37; } inline U24ArrayTypeU24256_t1931588793 * get_address_of_U24U24fieldU2D47_37() { return &___U24U24fieldU2D47_37; } inline void set_U24U24fieldU2D47_37(U24ArrayTypeU24256_t1931588793 value) { ___U24U24fieldU2D47_37 = value; } inline static int32_t get_offset_of_U24U24fieldU2D48_38() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D48_38)); } inline U24ArrayTypeU241024_t3982592445 get_U24U24fieldU2D48_38() const { return ___U24U24fieldU2D48_38; } inline U24ArrayTypeU241024_t3982592445 * get_address_of_U24U24fieldU2D48_38() { return &___U24U24fieldU2D48_38; } inline void set_U24U24fieldU2D48_38(U24ArrayTypeU241024_t3982592445 value) { ___U24U24fieldU2D48_38 = value; } inline static int32_t get_offset_of_U24U24fieldU2D49_39() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D49_39)); } inline U24ArrayTypeU241024_t3982592445 get_U24U24fieldU2D49_39() const { return ___U24U24fieldU2D49_39; } inline U24ArrayTypeU241024_t3982592445 * get_address_of_U24U24fieldU2D49_39() { return &___U24U24fieldU2D49_39; } inline void set_U24U24fieldU2D49_39(U24ArrayTypeU241024_t3982592445 value) { ___U24U24fieldU2D49_39 = value; } inline static int32_t get_offset_of_U24U24fieldU2D50_40() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D50_40)); } inline U24ArrayTypeU241024_t3982592445 get_U24U24fieldU2D50_40() const { return ___U24U24fieldU2D50_40; } inline U24ArrayTypeU241024_t3982592445 * get_address_of_U24U24fieldU2D50_40() { return &___U24U24fieldU2D50_40; } inline void set_U24U24fieldU2D50_40(U24ArrayTypeU241024_t3982592445 value) { ___U24U24fieldU2D50_40 = value; } inline static int32_t get_offset_of_U24U24fieldU2D51_41() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D51_41)); } inline U24ArrayTypeU241024_t3982592445 get_U24U24fieldU2D51_41() const { return ___U24U24fieldU2D51_41; } inline U24ArrayTypeU241024_t3982592445 * get_address_of_U24U24fieldU2D51_41() { return &___U24U24fieldU2D51_41; } inline void set_U24U24fieldU2D51_41(U24ArrayTypeU241024_t3982592445 value) { ___U24U24fieldU2D51_41 = value; } inline static int32_t get_offset_of_U24U24fieldU2D52_42() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D52_42)); } inline U24ArrayTypeU241024_t3982592445 get_U24U24fieldU2D52_42() const { return ___U24U24fieldU2D52_42; } inline U24ArrayTypeU241024_t3982592445 * get_address_of_U24U24fieldU2D52_42() { return &___U24U24fieldU2D52_42; } inline void set_U24U24fieldU2D52_42(U24ArrayTypeU241024_t3982592445 value) { ___U24U24fieldU2D52_42 = value; } inline static int32_t get_offset_of_U24U24fieldU2D53_43() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D53_43)); } inline U24ArrayTypeU241024_t3982592445 get_U24U24fieldU2D53_43() const { return ___U24U24fieldU2D53_43; } inline U24ArrayTypeU241024_t3982592445 * get_address_of_U24U24fieldU2D53_43() { return &___U24U24fieldU2D53_43; } inline void set_U24U24fieldU2D53_43(U24ArrayTypeU241024_t3982592445 value) { ___U24U24fieldU2D53_43 = value; } inline static int32_t get_offset_of_U24U24fieldU2D54_44() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D54_44)); } inline U24ArrayTypeU241024_t3982592445 get_U24U24fieldU2D54_44() const { return ___U24U24fieldU2D54_44; } inline U24ArrayTypeU241024_t3982592445 * get_address_of_U24U24fieldU2D54_44() { return &___U24U24fieldU2D54_44; } inline void set_U24U24fieldU2D54_44(U24ArrayTypeU241024_t3982592445 value) { ___U24U24fieldU2D54_44 = value; } inline static int32_t get_offset_of_U24U24fieldU2D55_45() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D55_45)); } inline U24ArrayTypeU241024_t3982592445 get_U24U24fieldU2D55_45() const { return ___U24U24fieldU2D55_45; } inline U24ArrayTypeU241024_t3982592445 * get_address_of_U24U24fieldU2D55_45() { return &___U24U24fieldU2D55_45; } inline void set_U24U24fieldU2D55_45(U24ArrayTypeU241024_t3982592445 value) { ___U24U24fieldU2D55_45 = value; } inline static int32_t get_offset_of_U24U24fieldU2D56_46() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D56_46)); } inline U24ArrayTypeU24256_t1931588793 get_U24U24fieldU2D56_46() const { return ___U24U24fieldU2D56_46; } inline U24ArrayTypeU24256_t1931588793 * get_address_of_U24U24fieldU2D56_46() { return &___U24U24fieldU2D56_46; } inline void set_U24U24fieldU2D56_46(U24ArrayTypeU24256_t1931588793 value) { ___U24U24fieldU2D56_46 = value; } inline static int32_t get_offset_of_U24U24fieldU2D57_47() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D57_47)); } inline U24ArrayTypeU24640_t2273712391 get_U24U24fieldU2D57_47() const { return ___U24U24fieldU2D57_47; } inline U24ArrayTypeU24640_t2273712391 * get_address_of_U24U24fieldU2D57_47() { return &___U24U24fieldU2D57_47; } inline void set_U24U24fieldU2D57_47(U24ArrayTypeU24640_t2273712391 value) { ___U24U24fieldU2D57_47 = value; } inline static int32_t get_offset_of_U24U24fieldU2D60_48() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D60_48)); } inline U24ArrayTypeU2412_t1278207176 get_U24U24fieldU2D60_48() const { return ___U24U24fieldU2D60_48; } inline U24ArrayTypeU2412_t1278207176 * get_address_of_U24U24fieldU2D60_48() { return &___U24U24fieldU2D60_48; } inline void set_U24U24fieldU2D60_48(U24ArrayTypeU2412_t1278207176 value) { ___U24U24fieldU2D60_48 = value; } inline static int32_t get_offset_of_U24U24fieldU2D62_49() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D62_49)); } inline U24ArrayTypeU24128_t1589820017 get_U24U24fieldU2D62_49() const { return ___U24U24fieldU2D62_49; } inline U24ArrayTypeU24128_t1589820017 * get_address_of_U24U24fieldU2D62_49() { return &___U24U24fieldU2D62_49; } inline void set_U24U24fieldU2D62_49(U24ArrayTypeU24128_t1589820017 value) { ___U24U24fieldU2D62_49 = value; } inline static int32_t get_offset_of_U24U24fieldU2D63_50() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D63_50)); } inline U24ArrayTypeU24256_t1931588793 get_U24U24fieldU2D63_50() const { return ___U24U24fieldU2D63_50; } inline U24ArrayTypeU24256_t1931588793 * get_address_of_U24U24fieldU2D63_50() { return &___U24U24fieldU2D63_50; } inline void set_U24U24fieldU2D63_50(U24ArrayTypeU24256_t1931588793 value) { ___U24U24fieldU2D63_50 = value; } inline static int32_t get_offset_of_U24U24fieldU2D64_51() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D64_51)); } inline U24ArrayTypeU2452_t259284491 get_U24U24fieldU2D64_51() const { return ___U24U24fieldU2D64_51; } inline U24ArrayTypeU2452_t259284491 * get_address_of_U24U24fieldU2D64_51() { return &___U24U24fieldU2D64_51; } inline void set_U24U24fieldU2D64_51(U24ArrayTypeU2452_t259284491 value) { ___U24U24fieldU2D64_51 = value; } inline static int32_t get_offset_of_U24U24fieldU2D65_52() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields, ___U24U24fieldU2D65_52)); } inline U24ArrayTypeU2452_t259284491 get_U24U24fieldU2D65_52() const { return ___U24U24fieldU2D65_52; } inline U24ArrayTypeU2452_t259284491 * get_address_of_U24U24fieldU2D65_52() { return &___U24U24fieldU2D65_52; } inline void set_U24U24fieldU2D65_52(U24ArrayTypeU2452_t259284491 value) { ___U24U24fieldU2D65_52 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T2280578751_H #ifndef DELEGATE_T315675391_H #define DELEGATE_T315675391_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Delegate struct Delegate_t315675391 : public RuntimeObject { public: // System.IntPtr System.Delegate::method_ptr Il2CppMethodPointer ___method_ptr_0; // System.IntPtr System.Delegate::invoke_impl IntPtr_t ___invoke_impl_1; // System.Object System.Delegate::m_target RuntimeObject * ___m_target_2; // System.IntPtr System.Delegate::method IntPtr_t ___method_3; // System.IntPtr System.Delegate::delegate_trampoline IntPtr_t ___delegate_trampoline_4; // System.IntPtr System.Delegate::method_code IntPtr_t ___method_code_5; // System.Reflection.MethodInfo System.Delegate::method_info MethodInfo_t * ___method_info_6; // System.Reflection.MethodInfo System.Delegate::original_method_info MethodInfo_t * ___original_method_info_7; // System.DelegateData System.Delegate::data DelegateData_t4232245420 * ___data_8; public: inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___method_ptr_0)); } inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; } inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; } inline void set_method_ptr_0(Il2CppMethodPointer value) { ___method_ptr_0 = value; } inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___invoke_impl_1)); } inline IntPtr_t get_invoke_impl_1() const { return ___invoke_impl_1; } inline IntPtr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; } inline void set_invoke_impl_1(IntPtr_t value) { ___invoke_impl_1 = value; } inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___m_target_2)); } inline RuntimeObject * get_m_target_2() const { return ___m_target_2; } inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; } inline void set_m_target_2(RuntimeObject * value) { ___m_target_2 = value; Il2CppCodeGenWriteBarrier((&___m_target_2), value); } inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___method_3)); } inline IntPtr_t get_method_3() const { return ___method_3; } inline IntPtr_t* get_address_of_method_3() { return &___method_3; } inline void set_method_3(IntPtr_t value) { ___method_3 = value; } inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___delegate_trampoline_4)); } inline IntPtr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; } inline IntPtr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; } inline void set_delegate_trampoline_4(IntPtr_t value) { ___delegate_trampoline_4 = value; } inline static int32_t get_offset_of_method_code_5() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___method_code_5)); } inline IntPtr_t get_method_code_5() const { return ___method_code_5; } inline IntPtr_t* get_address_of_method_code_5() { return &___method_code_5; } inline void set_method_code_5(IntPtr_t value) { ___method_code_5 = value; } inline static int32_t get_offset_of_method_info_6() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___method_info_6)); } inline MethodInfo_t * get_method_info_6() const { return ___method_info_6; } inline MethodInfo_t ** get_address_of_method_info_6() { return &___method_info_6; } inline void set_method_info_6(MethodInfo_t * value) { ___method_info_6 = value; Il2CppCodeGenWriteBarrier((&___method_info_6), value); } inline static int32_t get_offset_of_original_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___original_method_info_7)); } inline MethodInfo_t * get_original_method_info_7() const { return ___original_method_info_7; } inline MethodInfo_t ** get_address_of_original_method_info_7() { return &___original_method_info_7; } inline void set_original_method_info_7(MethodInfo_t * value) { ___original_method_info_7 = value; Il2CppCodeGenWriteBarrier((&___original_method_info_7), value); } inline static int32_t get_offset_of_data_8() { return static_cast<int32_t>(offsetof(Delegate_t315675391, ___data_8)); } inline DelegateData_t4232245420 * get_data_8() const { return ___data_8; } inline DelegateData_t4232245420 ** get_address_of_data_8() { return &___data_8; } inline void set_data_8(DelegateData_t4232245420 * value) { ___data_8 = value; Il2CppCodeGenWriteBarrier((&___data_8), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DELEGATE_T315675391_H #ifndef X509VERIFICATIONFLAGS_T2428386819_H #define X509VERIFICATIONFLAGS_T2428386819_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509VerificationFlags struct X509VerificationFlags_t2428386819 { public: // System.Int32 System.Security.Cryptography.X509Certificates.X509VerificationFlags::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(X509VerificationFlags_t2428386819, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509VERIFICATIONFLAGS_T2428386819_H #ifndef X509CHAINSTATUSFLAGS_T2539692479_H #define X509CHAINSTATUSFLAGS_T2539692479_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509ChainStatusFlags struct X509ChainStatusFlags_t2539692479 { public: // System.Int32 System.Security.Cryptography.X509Certificates.X509ChainStatusFlags::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(X509ChainStatusFlags_t2539692479, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CHAINSTATUSFLAGS_T2539692479_H #ifndef X509REVOCATIONFLAG_T1203863255_H #define X509REVOCATIONFLAG_T1203863255_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509RevocationFlag struct X509RevocationFlag_t1203863255 { public: // System.Int32 System.Security.Cryptography.X509Certificates.X509RevocationFlag::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(X509RevocationFlag_t1203863255, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509REVOCATIONFLAG_T1203863255_H #ifndef ASNDECODESTATUS_T132522227_H #define ASNDECODESTATUS_T132522227_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.AsnDecodeStatus struct AsnDecodeStatus_t132522227 { public: // System.Int32 System.Security.Cryptography.AsnDecodeStatus::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(AsnDecodeStatus_t132522227, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ASNDECODESTATUS_T132522227_H #ifndef FILEACCESS_T4284806837_H #define FILEACCESS_T4284806837_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.IO.FileAccess struct FileAccess_t4284806837 { public: // System.Int32 System.IO.FileAccess::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(FileAccess_t4284806837, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // FILEACCESS_T4284806837_H #ifndef X509REVOCATIONMODE_T3222329680_H #define X509REVOCATIONMODE_T3222329680_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509RevocationMode struct X509RevocationMode_t3222329680 { public: // System.Int32 System.Security.Cryptography.X509Certificates.X509RevocationMode::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(X509RevocationMode_t3222329680, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509REVOCATIONMODE_T3222329680_H #ifndef EDITORBROWSABLESTATE_T794489433_H #define EDITORBROWSABLESTATE_T794489433_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.EditorBrowsableState struct EditorBrowsableState_t794489433 { public: // System.Int32 System.ComponentModel.EditorBrowsableState::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(EditorBrowsableState_t794489433, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EDITORBROWSABLESTATE_T794489433_H #ifndef X509CERTIFICATE2COLLECTION_T2719121143_H #define X509CERTIFICATE2COLLECTION_T2719121143_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509Certificate2Collection struct X509Certificate2Collection_t2719121143 : public X509CertificateCollection_t1754559427 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CERTIFICATE2COLLECTION_T2719121143_H #ifndef SECURITYPROTOCOLTYPE_T3175450170_H #define SECURITYPROTOCOLTYPE_T3175450170_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.SecurityProtocolType struct SecurityProtocolType_t3175450170 { public: // System.Int32 System.Net.SecurityProtocolType::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(SecurityProtocolType_t3175450170, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SECURITYPROTOCOLTYPE_T3175450170_H #ifndef X500DISTINGUISHEDNAMEFLAGS_T2479691754_H #define X500DISTINGUISHEDNAMEFLAGS_T2479691754_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X500DistinguishedNameFlags struct X500DistinguishedNameFlags_t2479691754 { public: // System.Int32 System.Security.Cryptography.X509Certificates.X500DistinguishedNameFlags::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(X500DistinguishedNameFlags_t2479691754, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X500DISTINGUISHEDNAMEFLAGS_T2479691754_H #ifndef AUTHENTICATIONLEVEL_T2493867491_H #define AUTHENTICATIONLEVEL_T2493867491_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.Security.AuthenticationLevel struct AuthenticationLevel_t2493867491 { public: // System.Int32 System.Net.Security.AuthenticationLevel::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(AuthenticationLevel_t2493867491, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // AUTHENTICATIONLEVEL_T2493867491_H #ifndef SSLPOLICYERRORS_T1520164756_H #define SSLPOLICYERRORS_T1520164756_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.Security.SslPolicyErrors struct SslPolicyErrors_t1520164756 { public: // System.Int32 System.Net.Security.SslPolicyErrors::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(SslPolicyErrors_t1520164756, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SSLPOLICYERRORS_T1520164756_H #ifndef STORENAME_T1372169204_H #define STORENAME_T1372169204_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.StoreName struct StoreName_t1372169204 { public: // System.Int32 System.Security.Cryptography.X509Certificates.StoreName::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(StoreName_t1372169204, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STORENAME_T1372169204_H #ifndef STORELOCATION_T675393953_H #define STORELOCATION_T675393953_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.StoreLocation struct StoreLocation_t675393953 { public: // System.Int32 System.Security.Cryptography.X509Certificates.StoreLocation::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(StoreLocation_t675393953, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STORELOCATION_T675393953_H #ifndef ADDRESSFAMILY_T1968713361_H #define ADDRESSFAMILY_T1968713361_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.Sockets.AddressFamily struct AddressFamily_t1968713361 { public: // System.Int32 System.Net.Sockets.AddressFamily::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(AddressFamily_t1968713361, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ADDRESSFAMILY_T1968713361_H #ifndef OPENFLAGS_T1958793597_H #define OPENFLAGS_T1958793597_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.OpenFlags struct OpenFlags_t1958793597 { public: // System.Int32 System.Security.Cryptography.X509Certificates.OpenFlags::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(OpenFlags_t1958793597, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OPENFLAGS_T1958793597_H #ifndef DATETIMEKIND_T1342476201_H #define DATETIMEKIND_T1342476201_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.DateTimeKind struct DateTimeKind_t1342476201 { public: // System.Int32 System.DateTimeKind::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(DateTimeKind_t1342476201, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DATETIMEKIND_T1342476201_H #ifndef WEBHEADERCOLLECTION_T3859060348_H #define WEBHEADERCOLLECTION_T3859060348_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.WebHeaderCollection struct WebHeaderCollection_t3859060348 : public NameValueCollection_t3726265270 { public: // System.Boolean System.Net.WebHeaderCollection::internallyCreated bool ___internallyCreated_15; public: inline static int32_t get_offset_of_internallyCreated_15() { return static_cast<int32_t>(offsetof(WebHeaderCollection_t3859060348, ___internallyCreated_15)); } inline bool get_internallyCreated_15() const { return ___internallyCreated_15; } inline bool* get_address_of_internallyCreated_15() { return &___internallyCreated_15; } inline void set_internallyCreated_15(bool value) { ___internallyCreated_15 = value; } }; struct WebHeaderCollection_t3859060348_StaticFields { public: // System.Collections.Hashtable System.Net.WebHeaderCollection::restricted Hashtable_t3177941008 * ___restricted_12; // System.Collections.Hashtable System.Net.WebHeaderCollection::multiValue Hashtable_t3177941008 * ___multiValue_13; // System.Collections.Generic.Dictionary`2<System.String,System.Boolean> System.Net.WebHeaderCollection::restricted_response Dictionary_2_t1210700831 * ___restricted_response_14; // System.Boolean[] System.Net.WebHeaderCollection::allowed_chars BooleanU5BU5D_t3895467633* ___allowed_chars_16; public: inline static int32_t get_offset_of_restricted_12() { return static_cast<int32_t>(offsetof(WebHeaderCollection_t3859060348_StaticFields, ___restricted_12)); } inline Hashtable_t3177941008 * get_restricted_12() const { return ___restricted_12; } inline Hashtable_t3177941008 ** get_address_of_restricted_12() { return &___restricted_12; } inline void set_restricted_12(Hashtable_t3177941008 * value) { ___restricted_12 = value; Il2CppCodeGenWriteBarrier((&___restricted_12), value); } inline static int32_t get_offset_of_multiValue_13() { return static_cast<int32_t>(offsetof(WebHeaderCollection_t3859060348_StaticFields, ___multiValue_13)); } inline Hashtable_t3177941008 * get_multiValue_13() const { return ___multiValue_13; } inline Hashtable_t3177941008 ** get_address_of_multiValue_13() { return &___multiValue_13; } inline void set_multiValue_13(Hashtable_t3177941008 * value) { ___multiValue_13 = value; Il2CppCodeGenWriteBarrier((&___multiValue_13), value); } inline static int32_t get_offset_of_restricted_response_14() { return static_cast<int32_t>(offsetof(WebHeaderCollection_t3859060348_StaticFields, ___restricted_response_14)); } inline Dictionary_2_t1210700831 * get_restricted_response_14() const { return ___restricted_response_14; } inline Dictionary_2_t1210700831 ** get_address_of_restricted_response_14() { return &___restricted_response_14; } inline void set_restricted_response_14(Dictionary_2_t1210700831 * value) { ___restricted_response_14 = value; Il2CppCodeGenWriteBarrier((&___restricted_response_14), value); } inline static int32_t get_offset_of_allowed_chars_16() { return static_cast<int32_t>(offsetof(WebHeaderCollection_t3859060348_StaticFields, ___allowed_chars_16)); } inline BooleanU5BU5D_t3895467633* get_allowed_chars_16() const { return ___allowed_chars_16; } inline BooleanU5BU5D_t3895467633** get_address_of_allowed_chars_16() { return &___allowed_chars_16; } inline void set_allowed_chars_16(BooleanU5BU5D_t3895467633* value) { ___allowed_chars_16 = value; Il2CppCodeGenWriteBarrier((&___allowed_chars_16), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // WEBHEADERCOLLECTION_T3859060348_H #ifndef DATETIME_T95048744_H #define DATETIME_T95048744_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.DateTime struct DateTime_t95048744 { public: // System.TimeSpan System.DateTime::ticks TimeSpan_t2504440291 ___ticks_0; // System.DateTimeKind System.DateTime::kind int32_t ___kind_1; public: inline static int32_t get_offset_of_ticks_0() { return static_cast<int32_t>(offsetof(DateTime_t95048744, ___ticks_0)); } inline TimeSpan_t2504440291 get_ticks_0() const { return ___ticks_0; } inline TimeSpan_t2504440291 * get_address_of_ticks_0() { return &___ticks_0; } inline void set_ticks_0(TimeSpan_t2504440291 value) { ___ticks_0 = value; } inline static int32_t get_offset_of_kind_1() { return static_cast<int32_t>(offsetof(DateTime_t95048744, ___kind_1)); } inline int32_t get_kind_1() const { return ___kind_1; } inline int32_t* get_address_of_kind_1() { return &___kind_1; } inline void set_kind_1(int32_t value) { ___kind_1 = value; } }; struct DateTime_t95048744_StaticFields { public: // System.DateTime System.DateTime::MaxValue DateTime_t95048744 ___MaxValue_2; // System.DateTime System.DateTime::MinValue DateTime_t95048744 ___MinValue_3; // System.String[] System.DateTime::ParseTimeFormats StringU5BU5D_t3210853254* ___ParseTimeFormats_4; // System.String[] System.DateTime::ParseYearDayMonthFormats StringU5BU5D_t3210853254* ___ParseYearDayMonthFormats_5; // System.String[] System.DateTime::ParseYearMonthDayFormats StringU5BU5D_t3210853254* ___ParseYearMonthDayFormats_6; // System.String[] System.DateTime::ParseDayMonthYearFormats StringU5BU5D_t3210853254* ___ParseDayMonthYearFormats_7; // System.String[] System.DateTime::ParseMonthDayYearFormats StringU5BU5D_t3210853254* ___ParseMonthDayYearFormats_8; // System.String[] System.DateTime::MonthDayShortFormats StringU5BU5D_t3210853254* ___MonthDayShortFormats_9; // System.String[] System.DateTime::DayMonthShortFormats StringU5BU5D_t3210853254* ___DayMonthShortFormats_10; // System.Int32[] System.DateTime::daysmonth Int32U5BU5D_t2035612870* ___daysmonth_11; // System.Int32[] System.DateTime::daysmonthleap Int32U5BU5D_t2035612870* ___daysmonthleap_12; // System.Object System.DateTime::to_local_time_span_object RuntimeObject * ___to_local_time_span_object_13; // System.Int64 System.DateTime::last_now int64_t ___last_now_14; public: inline static int32_t get_offset_of_MaxValue_2() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___MaxValue_2)); } inline DateTime_t95048744 get_MaxValue_2() const { return ___MaxValue_2; } inline DateTime_t95048744 * get_address_of_MaxValue_2() { return &___MaxValue_2; } inline void set_MaxValue_2(DateTime_t95048744 value) { ___MaxValue_2 = value; } inline static int32_t get_offset_of_MinValue_3() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___MinValue_3)); } inline DateTime_t95048744 get_MinValue_3() const { return ___MinValue_3; } inline DateTime_t95048744 * get_address_of_MinValue_3() { return &___MinValue_3; } inline void set_MinValue_3(DateTime_t95048744 value) { ___MinValue_3 = value; } inline static int32_t get_offset_of_ParseTimeFormats_4() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___ParseTimeFormats_4)); } inline StringU5BU5D_t3210853254* get_ParseTimeFormats_4() const { return ___ParseTimeFormats_4; } inline StringU5BU5D_t3210853254** get_address_of_ParseTimeFormats_4() { return &___ParseTimeFormats_4; } inline void set_ParseTimeFormats_4(StringU5BU5D_t3210853254* value) { ___ParseTimeFormats_4 = value; Il2CppCodeGenWriteBarrier((&___ParseTimeFormats_4), value); } inline static int32_t get_offset_of_ParseYearDayMonthFormats_5() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___ParseYearDayMonthFormats_5)); } inline StringU5BU5D_t3210853254* get_ParseYearDayMonthFormats_5() const { return ___ParseYearDayMonthFormats_5; } inline StringU5BU5D_t3210853254** get_address_of_ParseYearDayMonthFormats_5() { return &___ParseYearDayMonthFormats_5; } inline void set_ParseYearDayMonthFormats_5(StringU5BU5D_t3210853254* value) { ___ParseYearDayMonthFormats_5 = value; Il2CppCodeGenWriteBarrier((&___ParseYearDayMonthFormats_5), value); } inline static int32_t get_offset_of_ParseYearMonthDayFormats_6() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___ParseYearMonthDayFormats_6)); } inline StringU5BU5D_t3210853254* get_ParseYearMonthDayFormats_6() const { return ___ParseYearMonthDayFormats_6; } inline StringU5BU5D_t3210853254** get_address_of_ParseYearMonthDayFormats_6() { return &___ParseYearMonthDayFormats_6; } inline void set_ParseYearMonthDayFormats_6(StringU5BU5D_t3210853254* value) { ___ParseYearMonthDayFormats_6 = value; Il2CppCodeGenWriteBarrier((&___ParseYearMonthDayFormats_6), value); } inline static int32_t get_offset_of_ParseDayMonthYearFormats_7() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___ParseDayMonthYearFormats_7)); } inline StringU5BU5D_t3210853254* get_ParseDayMonthYearFormats_7() const { return ___ParseDayMonthYearFormats_7; } inline StringU5BU5D_t3210853254** get_address_of_ParseDayMonthYearFormats_7() { return &___ParseDayMonthYearFormats_7; } inline void set_ParseDayMonthYearFormats_7(StringU5BU5D_t3210853254* value) { ___ParseDayMonthYearFormats_7 = value; Il2CppCodeGenWriteBarrier((&___ParseDayMonthYearFormats_7), value); } inline static int32_t get_offset_of_ParseMonthDayYearFormats_8() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___ParseMonthDayYearFormats_8)); } inline StringU5BU5D_t3210853254* get_ParseMonthDayYearFormats_8() const { return ___ParseMonthDayYearFormats_8; } inline StringU5BU5D_t3210853254** get_address_of_ParseMonthDayYearFormats_8() { return &___ParseMonthDayYearFormats_8; } inline void set_ParseMonthDayYearFormats_8(StringU5BU5D_t3210853254* value) { ___ParseMonthDayYearFormats_8 = value; Il2CppCodeGenWriteBarrier((&___ParseMonthDayYearFormats_8), value); } inline static int32_t get_offset_of_MonthDayShortFormats_9() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___MonthDayShortFormats_9)); } inline StringU5BU5D_t3210853254* get_MonthDayShortFormats_9() const { return ___MonthDayShortFormats_9; } inline StringU5BU5D_t3210853254** get_address_of_MonthDayShortFormats_9() { return &___MonthDayShortFormats_9; } inline void set_MonthDayShortFormats_9(StringU5BU5D_t3210853254* value) { ___MonthDayShortFormats_9 = value; Il2CppCodeGenWriteBarrier((&___MonthDayShortFormats_9), value); } inline static int32_t get_offset_of_DayMonthShortFormats_10() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___DayMonthShortFormats_10)); } inline StringU5BU5D_t3210853254* get_DayMonthShortFormats_10() const { return ___DayMonthShortFormats_10; } inline StringU5BU5D_t3210853254** get_address_of_DayMonthShortFormats_10() { return &___DayMonthShortFormats_10; } inline void set_DayMonthShortFormats_10(StringU5BU5D_t3210853254* value) { ___DayMonthShortFormats_10 = value; Il2CppCodeGenWriteBarrier((&___DayMonthShortFormats_10), value); } inline static int32_t get_offset_of_daysmonth_11() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___daysmonth_11)); } inline Int32U5BU5D_t2035612870* get_daysmonth_11() const { return ___daysmonth_11; } inline Int32U5BU5D_t2035612870** get_address_of_daysmonth_11() { return &___daysmonth_11; } inline void set_daysmonth_11(Int32U5BU5D_t2035612870* value) { ___daysmonth_11 = value; Il2CppCodeGenWriteBarrier((&___daysmonth_11), value); } inline static int32_t get_offset_of_daysmonthleap_12() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___daysmonthleap_12)); } inline Int32U5BU5D_t2035612870* get_daysmonthleap_12() const { return ___daysmonthleap_12; } inline Int32U5BU5D_t2035612870** get_address_of_daysmonthleap_12() { return &___daysmonthleap_12; } inline void set_daysmonthleap_12(Int32U5BU5D_t2035612870* value) { ___daysmonthleap_12 = value; Il2CppCodeGenWriteBarrier((&___daysmonthleap_12), value); } inline static int32_t get_offset_of_to_local_time_span_object_13() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___to_local_time_span_object_13)); } inline RuntimeObject * get_to_local_time_span_object_13() const { return ___to_local_time_span_object_13; } inline RuntimeObject ** get_address_of_to_local_time_span_object_13() { return &___to_local_time_span_object_13; } inline void set_to_local_time_span_object_13(RuntimeObject * value) { ___to_local_time_span_object_13 = value; Il2CppCodeGenWriteBarrier((&___to_local_time_span_object_13), value); } inline static int32_t get_offset_of_last_now_14() { return static_cast<int32_t>(offsetof(DateTime_t95048744_StaticFields, ___last_now_14)); } inline int64_t get_last_now_14() const { return ___last_now_14; } inline int64_t* get_address_of_last_now_14() { return &___last_now_14; } inline void set_last_now_14(int64_t value) { ___last_now_14 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DATETIME_T95048744_H #ifndef IPADDRESS_T2815248165_H #define IPADDRESS_T2815248165_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.IPAddress struct IPAddress_t2815248165 : public RuntimeObject { public: // System.Int64 System.Net.IPAddress::m_Address int64_t ___m_Address_0; // System.Net.Sockets.AddressFamily System.Net.IPAddress::m_Family int32_t ___m_Family_1; // System.UInt16[] System.Net.IPAddress::m_Numbers UInt16U5BU5D_t2790432616* ___m_Numbers_2; // System.Int64 System.Net.IPAddress::m_ScopeId int64_t ___m_ScopeId_3; public: inline static int32_t get_offset_of_m_Address_0() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165, ___m_Address_0)); } inline int64_t get_m_Address_0() const { return ___m_Address_0; } inline int64_t* get_address_of_m_Address_0() { return &___m_Address_0; } inline void set_m_Address_0(int64_t value) { ___m_Address_0 = value; } inline static int32_t get_offset_of_m_Family_1() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165, ___m_Family_1)); } inline int32_t get_m_Family_1() const { return ___m_Family_1; } inline int32_t* get_address_of_m_Family_1() { return &___m_Family_1; } inline void set_m_Family_1(int32_t value) { ___m_Family_1 = value; } inline static int32_t get_offset_of_m_Numbers_2() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165, ___m_Numbers_2)); } inline UInt16U5BU5D_t2790432616* get_m_Numbers_2() const { return ___m_Numbers_2; } inline UInt16U5BU5D_t2790432616** get_address_of_m_Numbers_2() { return &___m_Numbers_2; } inline void set_m_Numbers_2(UInt16U5BU5D_t2790432616* value) { ___m_Numbers_2 = value; Il2CppCodeGenWriteBarrier((&___m_Numbers_2), value); } inline static int32_t get_offset_of_m_ScopeId_3() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165, ___m_ScopeId_3)); } inline int64_t get_m_ScopeId_3() const { return ___m_ScopeId_3; } inline int64_t* get_address_of_m_ScopeId_3() { return &___m_ScopeId_3; } inline void set_m_ScopeId_3(int64_t value) { ___m_ScopeId_3 = value; } }; struct IPAddress_t2815248165_StaticFields { public: // System.Net.IPAddress System.Net.IPAddress::Any IPAddress_t2815248165 * ___Any_4; // System.Net.IPAddress System.Net.IPAddress::Broadcast IPAddress_t2815248165 * ___Broadcast_5; // System.Net.IPAddress System.Net.IPAddress::Loopback IPAddress_t2815248165 * ___Loopback_6; // System.Net.IPAddress System.Net.IPAddress::None IPAddress_t2815248165 * ___None_7; // System.Net.IPAddress System.Net.IPAddress::IPv6Any IPAddress_t2815248165 * ___IPv6Any_8; // System.Net.IPAddress System.Net.IPAddress::IPv6Loopback IPAddress_t2815248165 * ___IPv6Loopback_9; // System.Net.IPAddress System.Net.IPAddress::IPv6None IPAddress_t2815248165 * ___IPv6None_10; public: inline static int32_t get_offset_of_Any_4() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165_StaticFields, ___Any_4)); } inline IPAddress_t2815248165 * get_Any_4() const { return ___Any_4; } inline IPAddress_t2815248165 ** get_address_of_Any_4() { return &___Any_4; } inline void set_Any_4(IPAddress_t2815248165 * value) { ___Any_4 = value; Il2CppCodeGenWriteBarrier((&___Any_4), value); } inline static int32_t get_offset_of_Broadcast_5() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165_StaticFields, ___Broadcast_5)); } inline IPAddress_t2815248165 * get_Broadcast_5() const { return ___Broadcast_5; } inline IPAddress_t2815248165 ** get_address_of_Broadcast_5() { return &___Broadcast_5; } inline void set_Broadcast_5(IPAddress_t2815248165 * value) { ___Broadcast_5 = value; Il2CppCodeGenWriteBarrier((&___Broadcast_5), value); } inline static int32_t get_offset_of_Loopback_6() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165_StaticFields, ___Loopback_6)); } inline IPAddress_t2815248165 * get_Loopback_6() const { return ___Loopback_6; } inline IPAddress_t2815248165 ** get_address_of_Loopback_6() { return &___Loopback_6; } inline void set_Loopback_6(IPAddress_t2815248165 * value) { ___Loopback_6 = value; Il2CppCodeGenWriteBarrier((&___Loopback_6), value); } inline static int32_t get_offset_of_None_7() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165_StaticFields, ___None_7)); } inline IPAddress_t2815248165 * get_None_7() const { return ___None_7; } inline IPAddress_t2815248165 ** get_address_of_None_7() { return &___None_7; } inline void set_None_7(IPAddress_t2815248165 * value) { ___None_7 = value; Il2CppCodeGenWriteBarrier((&___None_7), value); } inline static int32_t get_offset_of_IPv6Any_8() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165_StaticFields, ___IPv6Any_8)); } inline IPAddress_t2815248165 * get_IPv6Any_8() const { return ___IPv6Any_8; } inline IPAddress_t2815248165 ** get_address_of_IPv6Any_8() { return &___IPv6Any_8; } inline void set_IPv6Any_8(IPAddress_t2815248165 * value) { ___IPv6Any_8 = value; Il2CppCodeGenWriteBarrier((&___IPv6Any_8), value); } inline static int32_t get_offset_of_IPv6Loopback_9() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165_StaticFields, ___IPv6Loopback_9)); } inline IPAddress_t2815248165 * get_IPv6Loopback_9() const { return ___IPv6Loopback_9; } inline IPAddress_t2815248165 ** get_address_of_IPv6Loopback_9() { return &___IPv6Loopback_9; } inline void set_IPv6Loopback_9(IPAddress_t2815248165 * value) { ___IPv6Loopback_9 = value; Il2CppCodeGenWriteBarrier((&___IPv6Loopback_9), value); } inline static int32_t get_offset_of_IPv6None_10() { return static_cast<int32_t>(offsetof(IPAddress_t2815248165_StaticFields, ___IPv6None_10)); } inline IPAddress_t2815248165 * get_IPv6None_10() const { return ___IPv6None_10; } inline IPAddress_t2815248165 ** get_address_of_IPv6None_10() { return &___IPv6None_10; } inline void set_IPv6None_10(IPAddress_t2815248165 * value) { ___IPv6None_10 = value; Il2CppCodeGenWriteBarrier((&___IPv6None_10), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // IPADDRESS_T2815248165_H #ifndef EDITORBROWSABLEATTRIBUTE_T1277103993_H #define EDITORBROWSABLEATTRIBUTE_T1277103993_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.EditorBrowsableAttribute struct EditorBrowsableAttribute_t1277103993 : public Attribute_t3169313911 { public: // System.ComponentModel.EditorBrowsableState System.ComponentModel.EditorBrowsableAttribute::state int32_t ___state_0; public: inline static int32_t get_offset_of_state_0() { return static_cast<int32_t>(offsetof(EditorBrowsableAttribute_t1277103993, ___state_0)); } inline int32_t get_state_0() const { return ___state_0; } inline int32_t* get_address_of_state_0() { return &___state_0; } inline void set_state_0(int32_t value) { ___state_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EDITORBROWSABLEATTRIBUTE_T1277103993_H #ifndef X509BASICCONSTRAINTSEXTENSION_T429423395_H #define X509BASICCONSTRAINTSEXTENSION_T429423395_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension struct X509BasicConstraintsExtension_t429423395 : public X509Extension_t2299253547 { public: // System.Boolean System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension::_certificateAuthority bool ____certificateAuthority_6; // System.Boolean System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension::_hasPathLengthConstraint bool ____hasPathLengthConstraint_7; // System.Int32 System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension::_pathLengthConstraint int32_t ____pathLengthConstraint_8; // System.Security.Cryptography.AsnDecodeStatus System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension::_status int32_t ____status_9; public: inline static int32_t get_offset_of__certificateAuthority_6() { return static_cast<int32_t>(offsetof(X509BasicConstraintsExtension_t429423395, ____certificateAuthority_6)); } inline bool get__certificateAuthority_6() const { return ____certificateAuthority_6; } inline bool* get_address_of__certificateAuthority_6() { return &____certificateAuthority_6; } inline void set__certificateAuthority_6(bool value) { ____certificateAuthority_6 = value; } inline static int32_t get_offset_of__hasPathLengthConstraint_7() { return static_cast<int32_t>(offsetof(X509BasicConstraintsExtension_t429423395, ____hasPathLengthConstraint_7)); } inline bool get__hasPathLengthConstraint_7() const { return ____hasPathLengthConstraint_7; } inline bool* get_address_of__hasPathLengthConstraint_7() { return &____hasPathLengthConstraint_7; } inline void set__hasPathLengthConstraint_7(bool value) { ____hasPathLengthConstraint_7 = value; } inline static int32_t get_offset_of__pathLengthConstraint_8() { return static_cast<int32_t>(offsetof(X509BasicConstraintsExtension_t429423395, ____pathLengthConstraint_8)); } inline int32_t get__pathLengthConstraint_8() const { return ____pathLengthConstraint_8; } inline int32_t* get_address_of__pathLengthConstraint_8() { return &____pathLengthConstraint_8; } inline void set__pathLengthConstraint_8(int32_t value) { ____pathLengthConstraint_8 = value; } inline static int32_t get_offset_of__status_9() { return static_cast<int32_t>(offsetof(X509BasicConstraintsExtension_t429423395, ____status_9)); } inline int32_t get__status_9() const { return ____status_9; } inline int32_t* get_address_of__status_9() { return &____status_9; } inline void set__status_9(int32_t value) { ____status_9 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509BASICCONSTRAINTSEXTENSION_T429423395_H #ifndef MULTICASTDELEGATE_T185644209_H #define MULTICASTDELEGATE_T185644209_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MulticastDelegate struct MulticastDelegate_t185644209 : public Delegate_t315675391 { public: // System.MulticastDelegate System.MulticastDelegate::prev MulticastDelegate_t185644209 * ___prev_9; // System.MulticastDelegate System.MulticastDelegate::kpm_next MulticastDelegate_t185644209 * ___kpm_next_10; public: inline static int32_t get_offset_of_prev_9() { return static_cast<int32_t>(offsetof(MulticastDelegate_t185644209, ___prev_9)); } inline MulticastDelegate_t185644209 * get_prev_9() const { return ___prev_9; } inline MulticastDelegate_t185644209 ** get_address_of_prev_9() { return &___prev_9; } inline void set_prev_9(MulticastDelegate_t185644209 * value) { ___prev_9 = value; Il2CppCodeGenWriteBarrier((&___prev_9), value); } inline static int32_t get_offset_of_kpm_next_10() { return static_cast<int32_t>(offsetof(MulticastDelegate_t185644209, ___kpm_next_10)); } inline MulticastDelegate_t185644209 * get_kpm_next_10() const { return ___kpm_next_10; } inline MulticastDelegate_t185644209 ** get_address_of_kpm_next_10() { return &___kpm_next_10; } inline void set_kpm_next_10(MulticastDelegate_t185644209 * value) { ___kpm_next_10 = value; Il2CppCodeGenWriteBarrier((&___kpm_next_10), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MULTICASTDELEGATE_T185644209_H #ifndef WEBREQUEST_T1074017327_H #define WEBREQUEST_T1074017327_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.WebRequest struct WebRequest_t1074017327 : public MarshalByRefObject_t1445289910 { public: // System.Net.Security.AuthenticationLevel System.Net.WebRequest::authentication_level int32_t ___authentication_level_4; public: inline static int32_t get_offset_of_authentication_level_4() { return static_cast<int32_t>(offsetof(WebRequest_t1074017327, ___authentication_level_4)); } inline int32_t get_authentication_level_4() const { return ___authentication_level_4; } inline int32_t* get_address_of_authentication_level_4() { return &___authentication_level_4; } inline void set_authentication_level_4(int32_t value) { ___authentication_level_4 = value; } }; struct WebRequest_t1074017327_StaticFields { public: // System.Collections.Specialized.HybridDictionary System.Net.WebRequest::prefixes HybridDictionary_t1682855100 * ___prefixes_1; // System.Boolean System.Net.WebRequest::isDefaultWebProxySet bool ___isDefaultWebProxySet_2; // System.Net.IWebProxy System.Net.WebRequest::defaultWebProxy RuntimeObject* ___defaultWebProxy_3; // System.Object System.Net.WebRequest::lockobj RuntimeObject * ___lockobj_5; public: inline static int32_t get_offset_of_prefixes_1() { return static_cast<int32_t>(offsetof(WebRequest_t1074017327_StaticFields, ___prefixes_1)); } inline HybridDictionary_t1682855100 * get_prefixes_1() const { return ___prefixes_1; } inline HybridDictionary_t1682855100 ** get_address_of_prefixes_1() { return &___prefixes_1; } inline void set_prefixes_1(HybridDictionary_t1682855100 * value) { ___prefixes_1 = value; Il2CppCodeGenWriteBarrier((&___prefixes_1), value); } inline static int32_t get_offset_of_isDefaultWebProxySet_2() { return static_cast<int32_t>(offsetof(WebRequest_t1074017327_StaticFields, ___isDefaultWebProxySet_2)); } inline bool get_isDefaultWebProxySet_2() const { return ___isDefaultWebProxySet_2; } inline bool* get_address_of_isDefaultWebProxySet_2() { return &___isDefaultWebProxySet_2; } inline void set_isDefaultWebProxySet_2(bool value) { ___isDefaultWebProxySet_2 = value; } inline static int32_t get_offset_of_defaultWebProxy_3() { return static_cast<int32_t>(offsetof(WebRequest_t1074017327_StaticFields, ___defaultWebProxy_3)); } inline RuntimeObject* get_defaultWebProxy_3() const { return ___defaultWebProxy_3; } inline RuntimeObject** get_address_of_defaultWebProxy_3() { return &___defaultWebProxy_3; } inline void set_defaultWebProxy_3(RuntimeObject* value) { ___defaultWebProxy_3 = value; Il2CppCodeGenWriteBarrier((&___defaultWebProxy_3), value); } inline static int32_t get_offset_of_lockobj_5() { return static_cast<int32_t>(offsetof(WebRequest_t1074017327_StaticFields, ___lockobj_5)); } inline RuntimeObject * get_lockobj_5() const { return ___lockobj_5; } inline RuntimeObject ** get_address_of_lockobj_5() { return &___lockobj_5; } inline void set_lockobj_5(RuntimeObject * value) { ___lockobj_5 = value; Il2CppCodeGenWriteBarrier((&___lockobj_5), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // WEBREQUEST_T1074017327_H #ifndef X509CHAIN_T2977030742_H #define X509CHAIN_T2977030742_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509Chain struct X509Chain_t2977030742 : public RuntimeObject { public: // System.Security.Cryptography.X509Certificates.StoreLocation System.Security.Cryptography.X509Certificates.X509Chain::location int32_t ___location_0; // System.Security.Cryptography.X509Certificates.X509ChainElementCollection System.Security.Cryptography.X509Certificates.X509Chain::elements X509ChainElementCollection_t938559667 * ___elements_1; // System.Security.Cryptography.X509Certificates.X509ChainPolicy System.Security.Cryptography.X509Certificates.X509Chain::policy X509ChainPolicy_t1784845061 * ___policy_2; // System.Security.Cryptography.X509Certificates.X509ChainStatus[] System.Security.Cryptography.X509Certificates.X509Chain::status X509ChainStatusU5BU5D_t1238689271* ___status_3; // System.Int32 System.Security.Cryptography.X509Certificates.X509Chain::max_path_length int32_t ___max_path_length_5; // System.Security.Cryptography.X509Certificates.X500DistinguishedName System.Security.Cryptography.X509Certificates.X509Chain::working_issuer_name X500DistinguishedName_t3517382345 * ___working_issuer_name_6; // System.Security.Cryptography.AsymmetricAlgorithm System.Security.Cryptography.X509Certificates.X509Chain::working_public_key AsymmetricAlgorithm_t3973620280 * ___working_public_key_7; // System.Security.Cryptography.X509Certificates.X509ChainElement System.Security.Cryptography.X509Certificates.X509Chain::bce_restriction X509ChainElement_t2840812822 * ___bce_restriction_8; // System.Security.Cryptography.X509Certificates.X509Store System.Security.Cryptography.X509Certificates.X509Chain::roots X509Store_t1485675745 * ___roots_9; // System.Security.Cryptography.X509Certificates.X509Store System.Security.Cryptography.X509Certificates.X509Chain::cas X509Store_t1485675745 * ___cas_10; // System.Security.Cryptography.X509Certificates.X509Certificate2Collection System.Security.Cryptography.X509Certificates.X509Chain::collection X509Certificate2Collection_t2719121143 * ___collection_11; public: inline static int32_t get_offset_of_location_0() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___location_0)); } inline int32_t get_location_0() const { return ___location_0; } inline int32_t* get_address_of_location_0() { return &___location_0; } inline void set_location_0(int32_t value) { ___location_0 = value; } inline static int32_t get_offset_of_elements_1() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___elements_1)); } inline X509ChainElementCollection_t938559667 * get_elements_1() const { return ___elements_1; } inline X509ChainElementCollection_t938559667 ** get_address_of_elements_1() { return &___elements_1; } inline void set_elements_1(X509ChainElementCollection_t938559667 * value) { ___elements_1 = value; Il2CppCodeGenWriteBarrier((&___elements_1), value); } inline static int32_t get_offset_of_policy_2() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___policy_2)); } inline X509ChainPolicy_t1784845061 * get_policy_2() const { return ___policy_2; } inline X509ChainPolicy_t1784845061 ** get_address_of_policy_2() { return &___policy_2; } inline void set_policy_2(X509ChainPolicy_t1784845061 * value) { ___policy_2 = value; Il2CppCodeGenWriteBarrier((&___policy_2), value); } inline static int32_t get_offset_of_status_3() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___status_3)); } inline X509ChainStatusU5BU5D_t1238689271* get_status_3() const { return ___status_3; } inline X509ChainStatusU5BU5D_t1238689271** get_address_of_status_3() { return &___status_3; } inline void set_status_3(X509ChainStatusU5BU5D_t1238689271* value) { ___status_3 = value; Il2CppCodeGenWriteBarrier((&___status_3), value); } inline static int32_t get_offset_of_max_path_length_5() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___max_path_length_5)); } inline int32_t get_max_path_length_5() const { return ___max_path_length_5; } inline int32_t* get_address_of_max_path_length_5() { return &___max_path_length_5; } inline void set_max_path_length_5(int32_t value) { ___max_path_length_5 = value; } inline static int32_t get_offset_of_working_issuer_name_6() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___working_issuer_name_6)); } inline X500DistinguishedName_t3517382345 * get_working_issuer_name_6() const { return ___working_issuer_name_6; } inline X500DistinguishedName_t3517382345 ** get_address_of_working_issuer_name_6() { return &___working_issuer_name_6; } inline void set_working_issuer_name_6(X500DistinguishedName_t3517382345 * value) { ___working_issuer_name_6 = value; Il2CppCodeGenWriteBarrier((&___working_issuer_name_6), value); } inline static int32_t get_offset_of_working_public_key_7() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___working_public_key_7)); } inline AsymmetricAlgorithm_t3973620280 * get_working_public_key_7() const { return ___working_public_key_7; } inline AsymmetricAlgorithm_t3973620280 ** get_address_of_working_public_key_7() { return &___working_public_key_7; } inline void set_working_public_key_7(AsymmetricAlgorithm_t3973620280 * value) { ___working_public_key_7 = value; Il2CppCodeGenWriteBarrier((&___working_public_key_7), value); } inline static int32_t get_offset_of_bce_restriction_8() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___bce_restriction_8)); } inline X509ChainElement_t2840812822 * get_bce_restriction_8() const { return ___bce_restriction_8; } inline X509ChainElement_t2840812822 ** get_address_of_bce_restriction_8() { return &___bce_restriction_8; } inline void set_bce_restriction_8(X509ChainElement_t2840812822 * value) { ___bce_restriction_8 = value; Il2CppCodeGenWriteBarrier((&___bce_restriction_8), value); } inline static int32_t get_offset_of_roots_9() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___roots_9)); } inline X509Store_t1485675745 * get_roots_9() const { return ___roots_9; } inline X509Store_t1485675745 ** get_address_of_roots_9() { return &___roots_9; } inline void set_roots_9(X509Store_t1485675745 * value) { ___roots_9 = value; Il2CppCodeGenWriteBarrier((&___roots_9), value); } inline static int32_t get_offset_of_cas_10() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___cas_10)); } inline X509Store_t1485675745 * get_cas_10() const { return ___cas_10; } inline X509Store_t1485675745 ** get_address_of_cas_10() { return &___cas_10; } inline void set_cas_10(X509Store_t1485675745 * value) { ___cas_10 = value; Il2CppCodeGenWriteBarrier((&___cas_10), value); } inline static int32_t get_offset_of_collection_11() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742, ___collection_11)); } inline X509Certificate2Collection_t2719121143 * get_collection_11() const { return ___collection_11; } inline X509Certificate2Collection_t2719121143 ** get_address_of_collection_11() { return &___collection_11; } inline void set_collection_11(X509Certificate2Collection_t2719121143 * value) { ___collection_11 = value; Il2CppCodeGenWriteBarrier((&___collection_11), value); } }; struct X509Chain_t2977030742_StaticFields { public: // System.Security.Cryptography.X509Certificates.X509ChainStatus[] System.Security.Cryptography.X509Certificates.X509Chain::Empty X509ChainStatusU5BU5D_t1238689271* ___Empty_4; // System.Collections.Generic.Dictionary`2<System.String,System.Int32> System.Security.Cryptography.X509Certificates.X509Chain::<>f__switch$mapB Dictionary_2_t2296604334 * ___U3CU3Ef__switchU24mapB_12; // System.Collections.Generic.Dictionary`2<System.String,System.Int32> System.Security.Cryptography.X509Certificates.X509Chain::<>f__switch$mapC Dictionary_2_t2296604334 * ___U3CU3Ef__switchU24mapC_13; // System.Collections.Generic.Dictionary`2<System.String,System.Int32> System.Security.Cryptography.X509Certificates.X509Chain::<>f__switch$mapD Dictionary_2_t2296604334 * ___U3CU3Ef__switchU24mapD_14; public: inline static int32_t get_offset_of_Empty_4() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742_StaticFields, ___Empty_4)); } inline X509ChainStatusU5BU5D_t1238689271* get_Empty_4() const { return ___Empty_4; } inline X509ChainStatusU5BU5D_t1238689271** get_address_of_Empty_4() { return &___Empty_4; } inline void set_Empty_4(X509ChainStatusU5BU5D_t1238689271* value) { ___Empty_4 = value; Il2CppCodeGenWriteBarrier((&___Empty_4), value); } inline static int32_t get_offset_of_U3CU3Ef__switchU24mapB_12() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742_StaticFields, ___U3CU3Ef__switchU24mapB_12)); } inline Dictionary_2_t2296604334 * get_U3CU3Ef__switchU24mapB_12() const { return ___U3CU3Ef__switchU24mapB_12; } inline Dictionary_2_t2296604334 ** get_address_of_U3CU3Ef__switchU24mapB_12() { return &___U3CU3Ef__switchU24mapB_12; } inline void set_U3CU3Ef__switchU24mapB_12(Dictionary_2_t2296604334 * value) { ___U3CU3Ef__switchU24mapB_12 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__switchU24mapB_12), value); } inline static int32_t get_offset_of_U3CU3Ef__switchU24mapC_13() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742_StaticFields, ___U3CU3Ef__switchU24mapC_13)); } inline Dictionary_2_t2296604334 * get_U3CU3Ef__switchU24mapC_13() const { return ___U3CU3Ef__switchU24mapC_13; } inline Dictionary_2_t2296604334 ** get_address_of_U3CU3Ef__switchU24mapC_13() { return &___U3CU3Ef__switchU24mapC_13; } inline void set_U3CU3Ef__switchU24mapC_13(Dictionary_2_t2296604334 * value) { ___U3CU3Ef__switchU24mapC_13 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__switchU24mapC_13), value); } inline static int32_t get_offset_of_U3CU3Ef__switchU24mapD_14() { return static_cast<int32_t>(offsetof(X509Chain_t2977030742_StaticFields, ___U3CU3Ef__switchU24mapD_14)); } inline Dictionary_2_t2296604334 * get_U3CU3Ef__switchU24mapD_14() const { return ___U3CU3Ef__switchU24mapD_14; } inline Dictionary_2_t2296604334 ** get_address_of_U3CU3Ef__switchU24mapD_14() { return &___U3CU3Ef__switchU24mapD_14; } inline void set_U3CU3Ef__switchU24mapD_14(Dictionary_2_t2296604334 * value) { ___U3CU3Ef__switchU24mapD_14 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__switchU24mapD_14), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CHAIN_T2977030742_H #ifndef X509ENHANCEDKEYUSAGEEXTENSION_T4231520010_H #define X509ENHANCEDKEYUSAGEEXTENSION_T4231520010_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension struct X509EnhancedKeyUsageExtension_t4231520010 : public X509Extension_t2299253547 { public: // System.Security.Cryptography.OidCollection System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension::_enhKeyUsage OidCollection_t1575794719 * ____enhKeyUsage_4; // System.Security.Cryptography.AsnDecodeStatus System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension::_status int32_t ____status_5; public: inline static int32_t get_offset_of__enhKeyUsage_4() { return static_cast<int32_t>(offsetof(X509EnhancedKeyUsageExtension_t4231520010, ____enhKeyUsage_4)); } inline OidCollection_t1575794719 * get__enhKeyUsage_4() const { return ____enhKeyUsage_4; } inline OidCollection_t1575794719 ** get_address_of__enhKeyUsage_4() { return &____enhKeyUsage_4; } inline void set__enhKeyUsage_4(OidCollection_t1575794719 * value) { ____enhKeyUsage_4 = value; Il2CppCodeGenWriteBarrier((&____enhKeyUsage_4), value); } inline static int32_t get_offset_of__status_5() { return static_cast<int32_t>(offsetof(X509EnhancedKeyUsageExtension_t4231520010, ____status_5)); } inline int32_t get__status_5() const { return ____status_5; } inline int32_t* get_address_of__status_5() { return &____status_5; } inline void set__status_5(int32_t value) { ____status_5 = value; } }; struct X509EnhancedKeyUsageExtension_t4231520010_StaticFields { public: // System.Collections.Generic.Dictionary`2<System.String,System.Int32> System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension::<>f__switch$mapE Dictionary_2_t2296604334 * ___U3CU3Ef__switchU24mapE_6; public: inline static int32_t get_offset_of_U3CU3Ef__switchU24mapE_6() { return static_cast<int32_t>(offsetof(X509EnhancedKeyUsageExtension_t4231520010_StaticFields, ___U3CU3Ef__switchU24mapE_6)); } inline Dictionary_2_t2296604334 * get_U3CU3Ef__switchU24mapE_6() const { return ___U3CU3Ef__switchU24mapE_6; } inline Dictionary_2_t2296604334 ** get_address_of_U3CU3Ef__switchU24mapE_6() { return &___U3CU3Ef__switchU24mapE_6; } inline void set_U3CU3Ef__switchU24mapE_6(Dictionary_2_t2296604334 * value) { ___U3CU3Ef__switchU24mapE_6 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__switchU24mapE_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509ENHANCEDKEYUSAGEEXTENSION_T4231520010_H #ifndef X509CHAINSTATUS_T2059613378_H #define X509CHAINSTATUS_T2059613378_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509ChainStatus struct X509ChainStatus_t2059613378 { public: // System.Security.Cryptography.X509Certificates.X509ChainStatusFlags System.Security.Cryptography.X509Certificates.X509ChainStatus::status int32_t ___status_0; // System.String System.Security.Cryptography.X509Certificates.X509ChainStatus::info String_t* ___info_1; public: inline static int32_t get_offset_of_status_0() { return static_cast<int32_t>(offsetof(X509ChainStatus_t2059613378, ___status_0)); } inline int32_t get_status_0() const { return ___status_0; } inline int32_t* get_address_of_status_0() { return &___status_0; } inline void set_status_0(int32_t value) { ___status_0 = value; } inline static int32_t get_offset_of_info_1() { return static_cast<int32_t>(offsetof(X509ChainStatus_t2059613378, ___info_1)); } inline String_t* get_info_1() const { return ___info_1; } inline String_t** get_address_of_info_1() { return &___info_1; } inline void set_info_1(String_t* value) { ___info_1 = value; Il2CppCodeGenWriteBarrier((&___info_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Security.Cryptography.X509Certificates.X509ChainStatus struct X509ChainStatus_t2059613378_marshaled_pinvoke { int32_t ___status_0; char* ___info_1; }; // Native definition for COM marshalling of System.Security.Cryptography.X509Certificates.X509ChainStatus struct X509ChainStatus_t2059613378_marshaled_com { int32_t ___status_0; Il2CppChar* ___info_1; }; #endif // X509CHAINSTATUS_T2059613378_H #ifndef X509CHAINELEMENT_T2840812822_H #define X509CHAINELEMENT_T2840812822_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509ChainElement struct X509ChainElement_t2840812822 : public RuntimeObject { public: // System.Security.Cryptography.X509Certificates.X509Certificate2 System.Security.Cryptography.X509Certificates.X509ChainElement::certificate X509Certificate2_t2111122295 * ___certificate_0; // System.Security.Cryptography.X509Certificates.X509ChainStatus[] System.Security.Cryptography.X509Certificates.X509ChainElement::status X509ChainStatusU5BU5D_t1238689271* ___status_1; // System.String System.Security.Cryptography.X509Certificates.X509ChainElement::info String_t* ___info_2; // System.Security.Cryptography.X509Certificates.X509ChainStatusFlags System.Security.Cryptography.X509Certificates.X509ChainElement::compressed_status_flags int32_t ___compressed_status_flags_3; public: inline static int32_t get_offset_of_certificate_0() { return static_cast<int32_t>(offsetof(X509ChainElement_t2840812822, ___certificate_0)); } inline X509Certificate2_t2111122295 * get_certificate_0() const { return ___certificate_0; } inline X509Certificate2_t2111122295 ** get_address_of_certificate_0() { return &___certificate_0; } inline void set_certificate_0(X509Certificate2_t2111122295 * value) { ___certificate_0 = value; Il2CppCodeGenWriteBarrier((&___certificate_0), value); } inline static int32_t get_offset_of_status_1() { return static_cast<int32_t>(offsetof(X509ChainElement_t2840812822, ___status_1)); } inline X509ChainStatusU5BU5D_t1238689271* get_status_1() const { return ___status_1; } inline X509ChainStatusU5BU5D_t1238689271** get_address_of_status_1() { return &___status_1; } inline void set_status_1(X509ChainStatusU5BU5D_t1238689271* value) { ___status_1 = value; Il2CppCodeGenWriteBarrier((&___status_1), value); } inline static int32_t get_offset_of_info_2() { return static_cast<int32_t>(offsetof(X509ChainElement_t2840812822, ___info_2)); } inline String_t* get_info_2() const { return ___info_2; } inline String_t** get_address_of_info_2() { return &___info_2; } inline void set_info_2(String_t* value) { ___info_2 = value; Il2CppCodeGenWriteBarrier((&___info_2), value); } inline static int32_t get_offset_of_compressed_status_flags_3() { return static_cast<int32_t>(offsetof(X509ChainElement_t2840812822, ___compressed_status_flags_3)); } inline int32_t get_compressed_status_flags_3() const { return ___compressed_status_flags_3; } inline int32_t* get_address_of_compressed_status_flags_3() { return &___compressed_status_flags_3; } inline void set_compressed_status_flags_3(int32_t value) { ___compressed_status_flags_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CHAINELEMENT_T2840812822_H #ifndef SERVICEPOINTMANAGER_T3082663138_H #define SERVICEPOINTMANAGER_T3082663138_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.ServicePointManager struct ServicePointManager_t3082663138 : public RuntimeObject { public: public: }; struct ServicePointManager_t3082663138_StaticFields { public: // System.Collections.Specialized.HybridDictionary System.Net.ServicePointManager::servicePoints HybridDictionary_t1682855100 * ___servicePoints_0; // System.Net.ICertificatePolicy System.Net.ServicePointManager::policy RuntimeObject* ___policy_1; // System.Int32 System.Net.ServicePointManager::defaultConnectionLimit int32_t ___defaultConnectionLimit_2; // System.Int32 System.Net.ServicePointManager::maxServicePointIdleTime int32_t ___maxServicePointIdleTime_3; // System.Int32 System.Net.ServicePointManager::maxServicePoints int32_t ___maxServicePoints_4; // System.Boolean System.Net.ServicePointManager::_checkCRL bool ____checkCRL_5; // System.Net.SecurityProtocolType System.Net.ServicePointManager::_securityProtocol int32_t ____securityProtocol_6; // System.Boolean System.Net.ServicePointManager::expectContinue bool ___expectContinue_7; // System.Boolean System.Net.ServicePointManager::useNagle bool ___useNagle_8; // System.Net.Security.RemoteCertificateValidationCallback System.Net.ServicePointManager::server_cert_cb RemoteCertificateValidationCallback_t1749327423 * ___server_cert_cb_9; public: inline static int32_t get_offset_of_servicePoints_0() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ___servicePoints_0)); } inline HybridDictionary_t1682855100 * get_servicePoints_0() const { return ___servicePoints_0; } inline HybridDictionary_t1682855100 ** get_address_of_servicePoints_0() { return &___servicePoints_0; } inline void set_servicePoints_0(HybridDictionary_t1682855100 * value) { ___servicePoints_0 = value; Il2CppCodeGenWriteBarrier((&___servicePoints_0), value); } inline static int32_t get_offset_of_policy_1() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ___policy_1)); } inline RuntimeObject* get_policy_1() const { return ___policy_1; } inline RuntimeObject** get_address_of_policy_1() { return &___policy_1; } inline void set_policy_1(RuntimeObject* value) { ___policy_1 = value; Il2CppCodeGenWriteBarrier((&___policy_1), value); } inline static int32_t get_offset_of_defaultConnectionLimit_2() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ___defaultConnectionLimit_2)); } inline int32_t get_defaultConnectionLimit_2() const { return ___defaultConnectionLimit_2; } inline int32_t* get_address_of_defaultConnectionLimit_2() { return &___defaultConnectionLimit_2; } inline void set_defaultConnectionLimit_2(int32_t value) { ___defaultConnectionLimit_2 = value; } inline static int32_t get_offset_of_maxServicePointIdleTime_3() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ___maxServicePointIdleTime_3)); } inline int32_t get_maxServicePointIdleTime_3() const { return ___maxServicePointIdleTime_3; } inline int32_t* get_address_of_maxServicePointIdleTime_3() { return &___maxServicePointIdleTime_3; } inline void set_maxServicePointIdleTime_3(int32_t value) { ___maxServicePointIdleTime_3 = value; } inline static int32_t get_offset_of_maxServicePoints_4() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ___maxServicePoints_4)); } inline int32_t get_maxServicePoints_4() const { return ___maxServicePoints_4; } inline int32_t* get_address_of_maxServicePoints_4() { return &___maxServicePoints_4; } inline void set_maxServicePoints_4(int32_t value) { ___maxServicePoints_4 = value; } inline static int32_t get_offset_of__checkCRL_5() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ____checkCRL_5)); } inline bool get__checkCRL_5() const { return ____checkCRL_5; } inline bool* get_address_of__checkCRL_5() { return &____checkCRL_5; } inline void set__checkCRL_5(bool value) { ____checkCRL_5 = value; } inline static int32_t get_offset_of__securityProtocol_6() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ____securityProtocol_6)); } inline int32_t get__securityProtocol_6() const { return ____securityProtocol_6; } inline int32_t* get_address_of__securityProtocol_6() { return &____securityProtocol_6; } inline void set__securityProtocol_6(int32_t value) { ____securityProtocol_6 = value; } inline static int32_t get_offset_of_expectContinue_7() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ___expectContinue_7)); } inline bool get_expectContinue_7() const { return ___expectContinue_7; } inline bool* get_address_of_expectContinue_7() { return &___expectContinue_7; } inline void set_expectContinue_7(bool value) { ___expectContinue_7 = value; } inline static int32_t get_offset_of_useNagle_8() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ___useNagle_8)); } inline bool get_useNagle_8() const { return ___useNagle_8; } inline bool* get_address_of_useNagle_8() { return &___useNagle_8; } inline void set_useNagle_8(bool value) { ___useNagle_8 = value; } inline static int32_t get_offset_of_server_cert_cb_9() { return static_cast<int32_t>(offsetof(ServicePointManager_t3082663138_StaticFields, ___server_cert_cb_9)); } inline RemoteCertificateValidationCallback_t1749327423 * get_server_cert_cb_9() const { return ___server_cert_cb_9; } inline RemoteCertificateValidationCallback_t1749327423 ** get_address_of_server_cert_cb_9() { return &___server_cert_cb_9; } inline void set_server_cert_cb_9(RemoteCertificateValidationCallback_t1749327423 * value) { ___server_cert_cb_9 = value; Il2CppCodeGenWriteBarrier((&___server_cert_cb_9), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SERVICEPOINTMANAGER_T3082663138_H #ifndef SERVICEPOINT_T820026165_H #define SERVICEPOINT_T820026165_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.ServicePoint struct ServicePoint_t820026165 : public RuntimeObject { public: // System.Uri System.Net.ServicePoint::uri Uri_t3807590358 * ___uri_0; // System.Int32 System.Net.ServicePoint::connectionLimit int32_t ___connectionLimit_1; // System.Int32 System.Net.ServicePoint::maxIdleTime int32_t ___maxIdleTime_2; // System.Int32 System.Net.ServicePoint::currentConnections int32_t ___currentConnections_3; // System.DateTime System.Net.ServicePoint::idleSince DateTime_t95048744 ___idleSince_4; // System.Boolean System.Net.ServicePoint::usesProxy bool ___usesProxy_5; // System.Boolean System.Net.ServicePoint::sendContinue bool ___sendContinue_6; // System.Boolean System.Net.ServicePoint::useConnect bool ___useConnect_7; // System.Object System.Net.ServicePoint::locker RuntimeObject * ___locker_8; // System.Object System.Net.ServicePoint::hostE RuntimeObject * ___hostE_9; // System.Boolean System.Net.ServicePoint::useNagle bool ___useNagle_10; public: inline static int32_t get_offset_of_uri_0() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___uri_0)); } inline Uri_t3807590358 * get_uri_0() const { return ___uri_0; } inline Uri_t3807590358 ** get_address_of_uri_0() { return &___uri_0; } inline void set_uri_0(Uri_t3807590358 * value) { ___uri_0 = value; Il2CppCodeGenWriteBarrier((&___uri_0), value); } inline static int32_t get_offset_of_connectionLimit_1() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___connectionLimit_1)); } inline int32_t get_connectionLimit_1() const { return ___connectionLimit_1; } inline int32_t* get_address_of_connectionLimit_1() { return &___connectionLimit_1; } inline void set_connectionLimit_1(int32_t value) { ___connectionLimit_1 = value; } inline static int32_t get_offset_of_maxIdleTime_2() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___maxIdleTime_2)); } inline int32_t get_maxIdleTime_2() const { return ___maxIdleTime_2; } inline int32_t* get_address_of_maxIdleTime_2() { return &___maxIdleTime_2; } inline void set_maxIdleTime_2(int32_t value) { ___maxIdleTime_2 = value; } inline static int32_t get_offset_of_currentConnections_3() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___currentConnections_3)); } inline int32_t get_currentConnections_3() const { return ___currentConnections_3; } inline int32_t* get_address_of_currentConnections_3() { return &___currentConnections_3; } inline void set_currentConnections_3(int32_t value) { ___currentConnections_3 = value; } inline static int32_t get_offset_of_idleSince_4() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___idleSince_4)); } inline DateTime_t95048744 get_idleSince_4() const { return ___idleSince_4; } inline DateTime_t95048744 * get_address_of_idleSince_4() { return &___idleSince_4; } inline void set_idleSince_4(DateTime_t95048744 value) { ___idleSince_4 = value; } inline static int32_t get_offset_of_usesProxy_5() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___usesProxy_5)); } inline bool get_usesProxy_5() const { return ___usesProxy_5; } inline bool* get_address_of_usesProxy_5() { return &___usesProxy_5; } inline void set_usesProxy_5(bool value) { ___usesProxy_5 = value; } inline static int32_t get_offset_of_sendContinue_6() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___sendContinue_6)); } inline bool get_sendContinue_6() const { return ___sendContinue_6; } inline bool* get_address_of_sendContinue_6() { return &___sendContinue_6; } inline void set_sendContinue_6(bool value) { ___sendContinue_6 = value; } inline static int32_t get_offset_of_useConnect_7() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___useConnect_7)); } inline bool get_useConnect_7() const { return ___useConnect_7; } inline bool* get_address_of_useConnect_7() { return &___useConnect_7; } inline void set_useConnect_7(bool value) { ___useConnect_7 = value; } inline static int32_t get_offset_of_locker_8() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___locker_8)); } inline RuntimeObject * get_locker_8() const { return ___locker_8; } inline RuntimeObject ** get_address_of_locker_8() { return &___locker_8; } inline void set_locker_8(RuntimeObject * value) { ___locker_8 = value; Il2CppCodeGenWriteBarrier((&___locker_8), value); } inline static int32_t get_offset_of_hostE_9() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___hostE_9)); } inline RuntimeObject * get_hostE_9() const { return ___hostE_9; } inline RuntimeObject ** get_address_of_hostE_9() { return &___hostE_9; } inline void set_hostE_9(RuntimeObject * value) { ___hostE_9 = value; Il2CppCodeGenWriteBarrier((&___hostE_9), value); } inline static int32_t get_offset_of_useNagle_10() { return static_cast<int32_t>(offsetof(ServicePoint_t820026165, ___useNagle_10)); } inline bool get_useNagle_10() const { return ___useNagle_10; } inline bool* get_address_of_useNagle_10() { return &___useNagle_10; } inline void set_useNagle_10(bool value) { ___useNagle_10 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SERVICEPOINT_T820026165_H #ifndef APPDOMAININITIALIZER_T2358803573_H #define APPDOMAININITIALIZER_T2358803573_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.AppDomainInitializer struct AppDomainInitializer_t2358803573 : public MulticastDelegate_t185644209 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // APPDOMAININITIALIZER_T2358803573_H #ifndef X509CHAINPOLICY_T1784845061_H #define X509CHAINPOLICY_T1784845061_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Security.Cryptography.X509Certificates.X509ChainPolicy struct X509ChainPolicy_t1784845061 : public RuntimeObject { public: // System.Security.Cryptography.OidCollection System.Security.Cryptography.X509Certificates.X509ChainPolicy::apps OidCollection_t1575794719 * ___apps_0; // System.Security.Cryptography.OidCollection System.Security.Cryptography.X509Certificates.X509ChainPolicy::cert OidCollection_t1575794719 * ___cert_1; // System.Security.Cryptography.X509Certificates.X509Certificate2Collection System.Security.Cryptography.X509Certificates.X509ChainPolicy::store X509Certificate2Collection_t2719121143 * ___store_2; // System.Security.Cryptography.X509Certificates.X509RevocationFlag System.Security.Cryptography.X509Certificates.X509ChainPolicy::rflag int32_t ___rflag_3; // System.Security.Cryptography.X509Certificates.X509RevocationMode System.Security.Cryptography.X509Certificates.X509ChainPolicy::mode int32_t ___mode_4; // System.TimeSpan System.Security.Cryptography.X509Certificates.X509ChainPolicy::timeout TimeSpan_t2504440291 ___timeout_5; // System.Security.Cryptography.X509Certificates.X509VerificationFlags System.Security.Cryptography.X509Certificates.X509ChainPolicy::vflags int32_t ___vflags_6; // System.DateTime System.Security.Cryptography.X509Certificates.X509ChainPolicy::vtime DateTime_t95048744 ___vtime_7; public: inline static int32_t get_offset_of_apps_0() { return static_cast<int32_t>(offsetof(X509ChainPolicy_t1784845061, ___apps_0)); } inline OidCollection_t1575794719 * get_apps_0() const { return ___apps_0; } inline OidCollection_t1575794719 ** get_address_of_apps_0() { return &___apps_0; } inline void set_apps_0(OidCollection_t1575794719 * value) { ___apps_0 = value; Il2CppCodeGenWriteBarrier((&___apps_0), value); } inline static int32_t get_offset_of_cert_1() { return static_cast<int32_t>(offsetof(X509ChainPolicy_t1784845061, ___cert_1)); } inline OidCollection_t1575794719 * get_cert_1() const { return ___cert_1; } inline OidCollection_t1575794719 ** get_address_of_cert_1() { return &___cert_1; } inline void set_cert_1(OidCollection_t1575794719 * value) { ___cert_1 = value; Il2CppCodeGenWriteBarrier((&___cert_1), value); } inline static int32_t get_offset_of_store_2() { return static_cast<int32_t>(offsetof(X509ChainPolicy_t1784845061, ___store_2)); } inline X509Certificate2Collection_t2719121143 * get_store_2() const { return ___store_2; } inline X509Certificate2Collection_t2719121143 ** get_address_of_store_2() { return &___store_2; } inline void set_store_2(X509Certificate2Collection_t2719121143 * value) { ___store_2 = value; Il2CppCodeGenWriteBarrier((&___store_2), value); } inline static int32_t get_offset_of_rflag_3() { return static_cast<int32_t>(offsetof(X509ChainPolicy_t1784845061, ___rflag_3)); } inline int32_t get_rflag_3() const { return ___rflag_3; } inline int32_t* get_address_of_rflag_3() { return &___rflag_3; } inline void set_rflag_3(int32_t value) { ___rflag_3 = value; } inline static int32_t get_offset_of_mode_4() { return static_cast<int32_t>(offsetof(X509ChainPolicy_t1784845061, ___mode_4)); } inline int32_t get_mode_4() const { return ___mode_4; } inline int32_t* get_address_of_mode_4() { return &___mode_4; } inline void set_mode_4(int32_t value) { ___mode_4 = value; } inline static int32_t get_offset_of_timeout_5() { return static_cast<int32_t>(offsetof(X509ChainPolicy_t1784845061, ___timeout_5)); } inline TimeSpan_t2504440291 get_timeout_5() const { return ___timeout_5; } inline TimeSpan_t2504440291 * get_address_of_timeout_5() { return &___timeout_5; } inline void set_timeout_5(TimeSpan_t2504440291 value) { ___timeout_5 = value; } inline static int32_t get_offset_of_vflags_6() { return static_cast<int32_t>(offsetof(X509ChainPolicy_t1784845061, ___vflags_6)); } inline int32_t get_vflags_6() const { return ___vflags_6; } inline int32_t* get_address_of_vflags_6() { return &___vflags_6; } inline void set_vflags_6(int32_t value) { ___vflags_6 = value; } inline static int32_t get_offset_of_vtime_7() { return static_cast<int32_t>(offsetof(X509ChainPolicy_t1784845061, ___vtime_7)); } inline DateTime_t95048744 get_vtime_7() const { return ___vtime_7; } inline DateTime_t95048744 * get_address_of_vtime_7() { return &___vtime_7; } inline void set_vtime_7(DateTime_t95048744 value) { ___vtime_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // X509CHAINPOLICY_T1784845061_H #ifndef FILEWEBREQUEST_T2277887802_H #define FILEWEBREQUEST_T2277887802_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.FileWebRequest struct FileWebRequest_t2277887802 : public WebRequest_t1074017327 { public: // System.Uri System.Net.FileWebRequest::uri Uri_t3807590358 * ___uri_6; // System.Net.WebHeaderCollection System.Net.FileWebRequest::webHeaders WebHeaderCollection_t3859060348 * ___webHeaders_7; // System.String System.Net.FileWebRequest::connectionGroup String_t* ___connectionGroup_8; // System.Int64 System.Net.FileWebRequest::contentLength int64_t ___contentLength_9; // System.IO.FileAccess System.Net.FileWebRequest::fileAccess int32_t ___fileAccess_10; // System.String System.Net.FileWebRequest::method String_t* ___method_11; // System.Net.IWebProxy System.Net.FileWebRequest::proxy RuntimeObject* ___proxy_12; // System.Boolean System.Net.FileWebRequest::preAuthenticate bool ___preAuthenticate_13; // System.Int32 System.Net.FileWebRequest::timeout int32_t ___timeout_14; public: inline static int32_t get_offset_of_uri_6() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___uri_6)); } inline Uri_t3807590358 * get_uri_6() const { return ___uri_6; } inline Uri_t3807590358 ** get_address_of_uri_6() { return &___uri_6; } inline void set_uri_6(Uri_t3807590358 * value) { ___uri_6 = value; Il2CppCodeGenWriteBarrier((&___uri_6), value); } inline static int32_t get_offset_of_webHeaders_7() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___webHeaders_7)); } inline WebHeaderCollection_t3859060348 * get_webHeaders_7() const { return ___webHeaders_7; } inline WebHeaderCollection_t3859060348 ** get_address_of_webHeaders_7() { return &___webHeaders_7; } inline void set_webHeaders_7(WebHeaderCollection_t3859060348 * value) { ___webHeaders_7 = value; Il2CppCodeGenWriteBarrier((&___webHeaders_7), value); } inline static int32_t get_offset_of_connectionGroup_8() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___connectionGroup_8)); } inline String_t* get_connectionGroup_8() const { return ___connectionGroup_8; } inline String_t** get_address_of_connectionGroup_8() { return &___connectionGroup_8; } inline void set_connectionGroup_8(String_t* value) { ___connectionGroup_8 = value; Il2CppCodeGenWriteBarrier((&___connectionGroup_8), value); } inline static int32_t get_offset_of_contentLength_9() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___contentLength_9)); } inline int64_t get_contentLength_9() const { return ___contentLength_9; } inline int64_t* get_address_of_contentLength_9() { return &___contentLength_9; } inline void set_contentLength_9(int64_t value) { ___contentLength_9 = value; } inline static int32_t get_offset_of_fileAccess_10() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___fileAccess_10)); } inline int32_t get_fileAccess_10() const { return ___fileAccess_10; } inline int32_t* get_address_of_fileAccess_10() { return &___fileAccess_10; } inline void set_fileAccess_10(int32_t value) { ___fileAccess_10 = value; } inline static int32_t get_offset_of_method_11() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___method_11)); } inline String_t* get_method_11() const { return ___method_11; } inline String_t** get_address_of_method_11() { return &___method_11; } inline void set_method_11(String_t* value) { ___method_11 = value; Il2CppCodeGenWriteBarrier((&___method_11), value); } inline static int32_t get_offset_of_proxy_12() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___proxy_12)); } inline RuntimeObject* get_proxy_12() const { return ___proxy_12; } inline RuntimeObject** get_address_of_proxy_12() { return &___proxy_12; } inline void set_proxy_12(RuntimeObject* value) { ___proxy_12 = value; Il2CppCodeGenWriteBarrier((&___proxy_12), value); } inline static int32_t get_offset_of_preAuthenticate_13() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___preAuthenticate_13)); } inline bool get_preAuthenticate_13() const { return ___preAuthenticate_13; } inline bool* get_address_of_preAuthenticate_13() { return &___preAuthenticate_13; } inline void set_preAuthenticate_13(bool value) { ___preAuthenticate_13 = value; } inline static int32_t get_offset_of_timeout_14() { return static_cast<int32_t>(offsetof(FileWebRequest_t2277887802, ___timeout_14)); } inline int32_t get_timeout_14() const { return ___timeout_14; } inline int32_t* get_address_of_timeout_14() { return &___timeout_14; } inline void set_timeout_14(int32_t value) { ___timeout_14 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // FILEWEBREQUEST_T2277887802_H #ifndef FTPWEBREQUEST_T580369104_H #define FTPWEBREQUEST_T580369104_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.FtpWebRequest struct FtpWebRequest_t580369104 : public WebRequest_t1074017327 { public: // System.Uri System.Net.FtpWebRequest::requestUri Uri_t3807590358 * ___requestUri_6; // System.Net.IWebProxy System.Net.FtpWebRequest::proxy RuntimeObject* ___proxy_7; // System.Int32 System.Net.FtpWebRequest::timeout int32_t ___timeout_8; // System.Int32 System.Net.FtpWebRequest::rwTimeout int32_t ___rwTimeout_9; // System.Boolean System.Net.FtpWebRequest::binary bool ___binary_10; // System.Boolean System.Net.FtpWebRequest::usePassive bool ___usePassive_11; // System.String System.Net.FtpWebRequest::method String_t* ___method_12; // System.Object System.Net.FtpWebRequest::locker RuntimeObject * ___locker_13; // System.Net.Security.RemoteCertificateValidationCallback System.Net.FtpWebRequest::callback RemoteCertificateValidationCallback_t1749327423 * ___callback_15; public: inline static int32_t get_offset_of_requestUri_6() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___requestUri_6)); } inline Uri_t3807590358 * get_requestUri_6() const { return ___requestUri_6; } inline Uri_t3807590358 ** get_address_of_requestUri_6() { return &___requestUri_6; } inline void set_requestUri_6(Uri_t3807590358 * value) { ___requestUri_6 = value; Il2CppCodeGenWriteBarrier((&___requestUri_6), value); } inline static int32_t get_offset_of_proxy_7() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___proxy_7)); } inline RuntimeObject* get_proxy_7() const { return ___proxy_7; } inline RuntimeObject** get_address_of_proxy_7() { return &___proxy_7; } inline void set_proxy_7(RuntimeObject* value) { ___proxy_7 = value; Il2CppCodeGenWriteBarrier((&___proxy_7), value); } inline static int32_t get_offset_of_timeout_8() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___timeout_8)); } inline int32_t get_timeout_8() const { return ___timeout_8; } inline int32_t* get_address_of_timeout_8() { return &___timeout_8; } inline void set_timeout_8(int32_t value) { ___timeout_8 = value; } inline static int32_t get_offset_of_rwTimeout_9() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___rwTimeout_9)); } inline int32_t get_rwTimeout_9() const { return ___rwTimeout_9; } inline int32_t* get_address_of_rwTimeout_9() { return &___rwTimeout_9; } inline void set_rwTimeout_9(int32_t value) { ___rwTimeout_9 = value; } inline static int32_t get_offset_of_binary_10() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___binary_10)); } inline bool get_binary_10() const { return ___binary_10; } inline bool* get_address_of_binary_10() { return &___binary_10; } inline void set_binary_10(bool value) { ___binary_10 = value; } inline static int32_t get_offset_of_usePassive_11() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___usePassive_11)); } inline bool get_usePassive_11() const { return ___usePassive_11; } inline bool* get_address_of_usePassive_11() { return &___usePassive_11; } inline void set_usePassive_11(bool value) { ___usePassive_11 = value; } inline static int32_t get_offset_of_method_12() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___method_12)); } inline String_t* get_method_12() const { return ___method_12; } inline String_t** get_address_of_method_12() { return &___method_12; } inline void set_method_12(String_t* value) { ___method_12 = value; Il2CppCodeGenWriteBarrier((&___method_12), value); } inline static int32_t get_offset_of_locker_13() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___locker_13)); } inline RuntimeObject * get_locker_13() const { return ___locker_13; } inline RuntimeObject ** get_address_of_locker_13() { return &___locker_13; } inline void set_locker_13(RuntimeObject * value) { ___locker_13 = value; Il2CppCodeGenWriteBarrier((&___locker_13), value); } inline static int32_t get_offset_of_callback_15() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104, ___callback_15)); } inline RemoteCertificateValidationCallback_t1749327423 * get_callback_15() const { return ___callback_15; } inline RemoteCertificateValidationCallback_t1749327423 ** get_address_of_callback_15() { return &___callback_15; } inline void set_callback_15(RemoteCertificateValidationCallback_t1749327423 * value) { ___callback_15 = value; Il2CppCodeGenWriteBarrier((&___callback_15), value); } }; struct FtpWebRequest_t580369104_StaticFields { public: // System.String[] System.Net.FtpWebRequest::supportedCommands StringU5BU5D_t3210853254* ___supportedCommands_14; // System.Net.Security.RemoteCertificateValidationCallback System.Net.FtpWebRequest::<>f__am$cache1C RemoteCertificateValidationCallback_t1749327423 * ___U3CU3Ef__amU24cache1C_16; public: inline static int32_t get_offset_of_supportedCommands_14() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104_StaticFields, ___supportedCommands_14)); } inline StringU5BU5D_t3210853254* get_supportedCommands_14() const { return ___supportedCommands_14; } inline StringU5BU5D_t3210853254** get_address_of_supportedCommands_14() { return &___supportedCommands_14; } inline void set_supportedCommands_14(StringU5BU5D_t3210853254* value) { ___supportedCommands_14 = value; Il2CppCodeGenWriteBarrier((&___supportedCommands_14), value); } inline static int32_t get_offset_of_U3CU3Ef__amU24cache1C_16() { return static_cast<int32_t>(offsetof(FtpWebRequest_t580369104_StaticFields, ___U3CU3Ef__amU24cache1C_16)); } inline RemoteCertificateValidationCallback_t1749327423 * get_U3CU3Ef__amU24cache1C_16() const { return ___U3CU3Ef__amU24cache1C_16; } inline RemoteCertificateValidationCallback_t1749327423 ** get_address_of_U3CU3Ef__amU24cache1C_16() { return &___U3CU3Ef__amU24cache1C_16; } inline void set_U3CU3Ef__amU24cache1C_16(RemoteCertificateValidationCallback_t1749327423 * value) { ___U3CU3Ef__amU24cache1C_16 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__amU24cache1C_16), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // FTPWEBREQUEST_T580369104_H #ifndef EVENTHANDLER_T1413017885_H #define EVENTHANDLER_T1413017885_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.EventHandler struct EventHandler_t1413017885 : public MulticastDelegate_t185644209 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EVENTHANDLER_T1413017885_H #ifndef RESOLVEEVENTHANDLER_T3370081300_H #define RESOLVEEVENTHANDLER_T3370081300_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ResolveEventHandler struct ResolveEventHandler_t3370081300 : public MulticastDelegate_t185644209 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RESOLVEEVENTHANDLER_T3370081300_H #ifndef UNHANDLEDEXCEPTIONEVENTHANDLER_T450426052_H #define UNHANDLEDEXCEPTIONEVENTHANDLER_T450426052_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UnhandledExceptionEventHandler struct UnhandledExceptionEventHandler_t450426052 : public MulticastDelegate_t185644209 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNHANDLEDEXCEPTIONEVENTHANDLER_T450426052_H #ifndef HTTPWEBREQUEST_T3080318015_H #define HTTPWEBREQUEST_T3080318015_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Net.HttpWebRequest struct HttpWebRequest_t3080318015 : public WebRequest_t1074017327 { public: // System.Uri System.Net.HttpWebRequest::requestUri Uri_t3807590358 * ___requestUri_6; // System.Uri System.Net.HttpWebRequest::actualUri Uri_t3807590358 * ___actualUri_7; // System.Boolean System.Net.HttpWebRequest::hostChanged bool ___hostChanged_8; // System.Boolean System.Net.HttpWebRequest::allowAutoRedirect bool ___allowAutoRedirect_9; // System.Boolean System.Net.HttpWebRequest::allowBuffering bool ___allowBuffering_10; // System.Security.Cryptography.X509Certificates.X509CertificateCollection System.Net.HttpWebRequest::certificates X509CertificateCollection_t1754559427 * ___certificates_11; // System.String System.Net.HttpWebRequest::connectionGroup String_t* ___connectionGroup_12; // System.Int64 System.Net.HttpWebRequest::contentLength int64_t ___contentLength_13; // System.Net.WebHeaderCollection System.Net.HttpWebRequest::webHeaders WebHeaderCollection_t3859060348 * ___webHeaders_14; // System.Boolean System.Net.HttpWebRequest::keepAlive bool ___keepAlive_15; // System.Int32 System.Net.HttpWebRequest::maxAutoRedirect int32_t ___maxAutoRedirect_16; // System.String System.Net.HttpWebRequest::mediaType String_t* ___mediaType_17; // System.String System.Net.HttpWebRequest::method String_t* ___method_18; // System.String System.Net.HttpWebRequest::initialMethod String_t* ___initialMethod_19; // System.Boolean System.Net.HttpWebRequest::pipelined bool ___pipelined_20; // System.Version System.Net.HttpWebRequest::version Version_t4238624794 * ___version_21; // System.Net.IWebProxy System.Net.HttpWebRequest::proxy RuntimeObject* ___proxy_22; // System.Boolean System.Net.HttpWebRequest::sendChunked bool ___sendChunked_23; // System.Net.ServicePoint System.Net.HttpWebRequest::servicePoint ServicePoint_t820026165 * ___servicePoint_24; // System.Int32 System.Net.HttpWebRequest::timeout int32_t ___timeout_25; // System.Int32 System.Net.HttpWebRequest::redirects int32_t ___redirects_26; // System.Object System.Net.HttpWebRequest::locker RuntimeObject * ___locker_27; // System.Int32 System.Net.HttpWebRequest::readWriteTimeout int32_t ___readWriteTimeout_29; public: inline static int32_t get_offset_of_requestUri_6() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___requestUri_6)); } inline Uri_t3807590358 * get_requestUri_6() const { return ___requestUri_6; } inline Uri_t3807590358 ** get_address_of_requestUri_6() { return &___requestUri_6; } inline void set_requestUri_6(Uri_t3807590358 * value) { ___requestUri_6 = value; Il2CppCodeGenWriteBarrier((&___requestUri_6), value); } inline static int32_t get_offset_of_actualUri_7() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___actualUri_7)); } inline Uri_t3807590358 * get_actualUri_7() const { return ___actualUri_7; } inline Uri_t3807590358 ** get_address_of_actualUri_7() { return &___actualUri_7; } inline void set_actualUri_7(Uri_t3807590358 * value) { ___actualUri_7 = value; Il2CppCodeGenWriteBarrier((&___actualUri_7), value); } inline static int32_t get_offset_of_hostChanged_8() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___hostChanged_8)); } inline bool get_hostChanged_8() const { return ___hostChanged_8; } inline bool* get_address_of_hostChanged_8() { return &___hostChanged_8; } inline void set_hostChanged_8(bool value) { ___hostChanged_8 = value; } inline static int32_t get_offset_of_allowAutoRedirect_9() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___allowAutoRedirect_9)); } inline bool get_allowAutoRedirect_9() const { return ___allowAutoRedirect_9; } inline bool* get_address_of_allowAutoRedirect_9() { return &___allowAutoRedirect_9; } inline void set_allowAutoRedirect_9(bool value) { ___allowAutoRedirect_9 = value; } inline static int32_t get_offset_of_allowBuffering_10() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___allowBuffering_10)); } inline bool get_allowBuffering_10() const { return ___allowBuffering_10; } inline bool* get_address_of_allowBuffering_10() { return &___allowBuffering_10; } inline void set_allowBuffering_10(bool value) { ___allowBuffering_10 = value; } inline static int32_t get_offset_of_certificates_11() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___certificates_11)); } inline X509CertificateCollection_t1754559427 * get_certificates_11() const { return ___certificates_11; } inline X509CertificateCollection_t1754559427 ** get_address_of_certificates_11() { return &___certificates_11; } inline void set_certificates_11(X509CertificateCollection_t1754559427 * value) { ___certificates_11 = value; Il2CppCodeGenWriteBarrier((&___certificates_11), value); } inline static int32_t get_offset_of_connectionGroup_12() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___connectionGroup_12)); } inline String_t* get_connectionGroup_12() const { return ___connectionGroup_12; } inline String_t** get_address_of_connectionGroup_12() { return &___connectionGroup_12; } inline void set_connectionGroup_12(String_t* value) { ___connectionGroup_12 = value; Il2CppCodeGenWriteBarrier((&___connectionGroup_12), value); } inline static int32_t get_offset_of_contentLength_13() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___contentLength_13)); } inline int64_t get_contentLength_13() const { return ___contentLength_13; } inline int64_t* get_address_of_contentLength_13() { return &___contentLength_13; } inline void set_contentLength_13(int64_t value) { ___contentLength_13 = value; } inline static int32_t get_offset_of_webHeaders_14() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___webHeaders_14)); } inline WebHeaderCollection_t3859060348 * get_webHeaders_14() const { return ___webHeaders_14; } inline WebHeaderCollection_t3859060348 ** get_address_of_webHeaders_14() { return &___webHeaders_14; } inline void set_webHeaders_14(WebHeaderCollection_t3859060348 * value) { ___webHeaders_14 = value; Il2CppCodeGenWriteBarrier((&___webHeaders_14), value); } inline static int32_t get_offset_of_keepAlive_15() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___keepAlive_15)); } inline bool get_keepAlive_15() const { return ___keepAlive_15; } inline bool* get_address_of_keepAlive_15() { return &___keepAlive_15; } inline void set_keepAlive_15(bool value) { ___keepAlive_15 = value; } inline static int32_t get_offset_of_maxAutoRedirect_16() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___maxAutoRedirect_16)); } inline int32_t get_maxAutoRedirect_16() const { return ___maxAutoRedirect_16; } inline int32_t* get_address_of_maxAutoRedirect_16() { return &___maxAutoRedirect_16; } inline void set_maxAutoRedirect_16(int32_t value) { ___maxAutoRedirect_16 = value; } inline static int32_t get_offset_of_mediaType_17() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___mediaType_17)); } inline String_t* get_mediaType_17() const { return ___mediaType_17; } inline String_t** get_address_of_mediaType_17() { return &___mediaType_17; } inline void set_mediaType_17(String_t* value) { ___mediaType_17 = value; Il2CppCodeGenWriteBarrier((&___mediaType_17), value); } inline static int32_t get_offset_of_method_18() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___method_18)); } inline String_t* get_method_18() const { return ___method_18; } inline String_t** get_address_of_method_18() { return &___method_18; } inline void set_method_18(String_t* value) { ___method_18 = value; Il2CppCodeGenWriteBarrier((&___method_18), value); } inline static int32_t get_offset_of_initialMethod_19() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___initialMethod_19)); } inline String_t* get_initialMethod_19() const { return ___initialMethod_19; } inline String_t** get_address_of_initialMethod_19() { return &___initialMethod_19; } inline void set_initialMethod_19(String_t* value) { ___initialMethod_19 = value; Il2CppCodeGenWriteBarrier((&___initialMethod_19), value); } inline static int32_t get_offset_of_pipelined_20() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___pipelined_20)); } inline bool get_pipelined_20() const { return ___pipelined_20; } inline bool* get_address_of_pipelined_20() { return &___pipelined_20; } inline void set_pipelined_20(bool value) { ___pipelined_20 = value; } inline static int32_t get_offset_of_version_21() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___version_21)); } inline Version_t4238624794 * get_version_21() const { return ___version_21; } inline Version_t4238624794 ** get_address_of_version_21() { return &___version_21; } inline void set_version_21(Version_t4238624794 * value) { ___version_21 = value; Il2CppCodeGenWriteBarrier((&___version_21), value); } inline static int32_t get_offset_of_proxy_22() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___proxy_22)); } inline RuntimeObject* get_proxy_22() const { return ___proxy_22; } inline RuntimeObject** get_address_of_proxy_22() { return &___proxy_22; } inline void set_proxy_22(RuntimeObject* value) { ___proxy_22 = value; Il2CppCodeGenWriteBarrier((&___proxy_22), value); } inline static int32_t get_offset_of_sendChunked_23() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___sendChunked_23)); } inline bool get_sendChunked_23() const { return ___sendChunked_23; } inline bool* get_address_of_sendChunked_23() { return &___sendChunked_23; } inline void set_sendChunked_23(bool value) { ___sendChunked_23 = value; } inline static int32_t get_offset_of_servicePoint_24() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___servicePoint_24)); } inline ServicePoint_t820026165 * get_servicePoint_24() const { return ___servicePoint_24; } inline ServicePoint_t820026165 ** get_address_of_servicePoint_24() { return &___servicePoint_24; } inline void set_servicePoint_24(ServicePoint_t820026165 * value) { ___servicePoint_24 = value; Il2CppCodeGenWriteBarrier((&___servicePoint_24), value); } inline static int32_t get_offset_of_timeout_25() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___timeout_25)); } inline int32_t get_timeout_25() const { return ___timeout_25; } inline int32_t* get_address_of_timeout_25() { return &___timeout_25; } inline void set_timeout_25(int32_t value) { ___timeout_25 = value; } inline static int32_t get_offset_of_redirects_26() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___redirects_26)); } inline int32_t get_redirects_26() const { return ___redirects_26; } inline int32_t* get_address_of_redirects_26() { return &___redirects_26; } inline void set_redirects_26(int32_t value) { ___redirects_26 = value; } inline static int32_t get_offset_of_locker_27() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___locker_27)); } inline RuntimeObject * get_locker_27() const { return ___locker_27; } inline RuntimeObject ** get_address_of_locker_27() { return &___locker_27; } inline void set_locker_27(RuntimeObject * value) { ___locker_27 = value; Il2CppCodeGenWriteBarrier((&___locker_27), value); } inline static int32_t get_offset_of_readWriteTimeout_29() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015, ___readWriteTimeout_29)); } inline int32_t get_readWriteTimeout_29() const { return ___readWriteTimeout_29; } inline int32_t* get_address_of_readWriteTimeout_29() { return &___readWriteTimeout_29; } inline void set_readWriteTimeout_29(int32_t value) { ___readWriteTimeout_29 = value; } }; struct HttpWebRequest_t3080318015_StaticFields { public: // System.Int32 System.Net.HttpWebRequest::defaultMaxResponseHeadersLength int32_t ___defaultMaxResponseHeadersLength_28; public: inline static int32_t get_offset_of_defaultMaxResponseHeadersLength_28() { return static_cast<int32_t>(offsetof(HttpWebRequest_t3080318015_StaticFields, ___defaultMaxResponseHeadersLength_28)); } inline int32_t get_defaultMaxResponseHeadersLength_28() const { return ___defaultMaxResponseHeadersLength_28; } inline int32_t* get_address_of_defaultMaxResponseHeadersLength_28() { return &___defaultMaxResponseHeadersLength_28; } inline void set_defaultMaxResponseHeadersLength_28(int32_t value) { ___defaultMaxResponseHeadersLength_28 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // HTTPWEBREQUEST_T3080318015_H #ifndef ASSEMBLYLOADEVENTHANDLER_T1150692496_H #define ASSEMBLYLOADEVENTHANDLER_T1150692496_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.AssemblyLoadEventHandler struct AssemblyLoadEventHandler_t1150692496 : public MulticastDelegate_t185644209 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ASSEMBLYLOADEVENTHANDLER_T1150692496_H #ifndef WAITORTIMERCALLBACK_T3043736963_H #define WAITORTIMERCALLBACK_T3043736963_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Threading.WaitOrTimerCallback struct WaitOrTimerCallback_t3043736963 : public MulticastDelegate_t185644209 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // WAITORTIMERCALLBACK_T3043736963_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize900 = { sizeof (WaitOrTimerCallback_t3043736963), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize901 = { 0, 0, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize902 = { sizeof (AppDomainInitializer_t2358803573), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize903 = { sizeof (AssemblyLoadEventHandler_t1150692496), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize904 = { 0, 0, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize905 = { 0, 0, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize906 = { sizeof (EventHandler_t1413017885), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize907 = { 0, 0, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize908 = { sizeof (ResolveEventHandler_t3370081300), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize909 = { sizeof (UnhandledExceptionEventHandler_t450426052), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize910 = { sizeof (U3CPrivateImplementationDetailsU3E_t2280578751), -1, sizeof(U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable910[53] = { U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D0_0(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D1_1(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D2_2(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D3_3(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D4_4(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D5_5(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D6_6(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D15_7(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D16_8(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D17_9(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D18_10(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D19_11(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D20_12(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D21_13(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D22_14(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D23_15(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D24_16(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D25_17(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D26_18(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D27_19(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D30_20(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D31_21(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D32_22(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D33_23(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D34_24(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D35_25(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D36_26(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D37_27(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D38_28(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D39_29(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D40_30(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D41_31(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D42_32(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D43_33(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D44_34(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D45_35(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D46_36(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D47_37(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D48_38(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D49_39(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D50_40(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D51_41(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D52_42(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D53_43(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D54_44(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D55_45(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D56_46(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D57_47(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D60_48(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D62_49(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D63_50(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D64_51(), U3CPrivateImplementationDetailsU3E_t2280578751_StaticFields::get_offset_of_U24U24fieldU2D65_52(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize911 = { sizeof (U24ArrayTypeU2456_t1299599745)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2456_t1299599745 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize912 = { sizeof (U24ArrayTypeU2424_t114830448)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2424_t114830448 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize913 = { sizeof (U24ArrayTypeU2416_t1346803214)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2416_t1346803214 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize914 = { sizeof (U24ArrayTypeU24120_t4066035385)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU24120_t4066035385 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize915 = { sizeof (U24ArrayTypeU243132_t1590865670)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU243132_t1590865670 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize916 = { sizeof (U24ArrayTypeU2420_t2349032362)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2420_t2349032362 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize917 = { sizeof (U24ArrayTypeU2432_t1607883682)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2432_t1607883682 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize918 = { sizeof (U24ArrayTypeU2448_t3480171938)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2448_t3480171938 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize919 = { sizeof (U24ArrayTypeU2464_t222188501)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2464_t222188501 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize920 = { sizeof (U24ArrayTypeU2412_t1278207176)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2412_t1278207176 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize921 = { sizeof (U24ArrayTypeU24136_t1434207411)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU24136_t1434207411 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize922 = { sizeof (U24ArrayTypeU248_t1608094905)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU248_t1608094905 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize923 = { sizeof (U24ArrayTypeU2472_t941225235)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2472_t941225235 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize924 = { sizeof (U24ArrayTypeU24124_t1736853496)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU24124_t1736853496 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize925 = { sizeof (U24ArrayTypeU2496_t447446485)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2496_t447446485 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize926 = { sizeof (U24ArrayTypeU242048_t2914266108)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU242048_t2914266108 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize927 = { sizeof (U24ArrayTypeU24256_t1931588793)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU24256_t1931588793 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize928 = { sizeof (U24ArrayTypeU241024_t3982592445)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU241024_t3982592445 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize929 = { sizeof (U24ArrayTypeU24640_t2273712391)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU24640_t2273712391 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize930 = { sizeof (U24ArrayTypeU24128_t1589820017)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU24128_t1589820017 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize931 = { sizeof (U24ArrayTypeU2452_t259284491)+ sizeof (RuntimeObject), sizeof(U24ArrayTypeU2452_t259284491 ), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize932 = { sizeof (Il2CppComObject), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize933 = { sizeof (__Il2CppComDelegate_t2529694029), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize934 = { sizeof (U3CModuleU3E_t2290809436), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize935 = { sizeof (Locale_t116857866), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize936 = { sizeof (MonoTODOAttribute_t1298862014), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable936[1] = { MonoTODOAttribute_t1298862014::get_offset_of_comment_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize937 = { 0, 0, 0, 0 }; extern const int32_t g_FieldOffsetTable937[4] = { 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize938 = { 0, 0, 0, 0 }; extern const int32_t g_FieldOffsetTable938[3] = { 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize939 = { 0, 0, 0, 0 }; extern const int32_t g_FieldOffsetTable939[3] = { 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize940 = { 0, 0, 0, 0 }; extern const int32_t g_FieldOffsetTable940[3] = { 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize941 = { sizeof (HybridDictionary_t1682855100), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable941[3] = { HybridDictionary_t1682855100::get_offset_of_caseInsensitive_0(), HybridDictionary_t1682855100::get_offset_of_hashtable_1(), HybridDictionary_t1682855100::get_offset_of_list_2(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize942 = { sizeof (ListDictionary_t3662519283), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable942[4] = { ListDictionary_t3662519283::get_offset_of_count_0(), ListDictionary_t3662519283::get_offset_of_version_1(), ListDictionary_t3662519283::get_offset_of_head_2(), ListDictionary_t3662519283::get_offset_of_comparer_3(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize943 = { sizeof (DictionaryNode_t2189986322), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable943[3] = { DictionaryNode_t2189986322::get_offset_of_key_0(), DictionaryNode_t2189986322::get_offset_of_value_1(), DictionaryNode_t2189986322::get_offset_of_next_2(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize944 = { sizeof (DictionaryNodeEnumerator_t1684680800), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable944[4] = { DictionaryNodeEnumerator_t1684680800::get_offset_of_dict_0(), DictionaryNodeEnumerator_t1684680800::get_offset_of_isAtStart_1(), DictionaryNodeEnumerator_t1684680800::get_offset_of_current_2(), DictionaryNodeEnumerator_t1684680800::get_offset_of_version_3(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize945 = { sizeof (NameObjectCollectionBase_t3041392021), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable945[10] = { NameObjectCollectionBase_t3041392021::get_offset_of_m_ItemsContainer_0(), NameObjectCollectionBase_t3041392021::get_offset_of_m_NullKeyItem_1(), NameObjectCollectionBase_t3041392021::get_offset_of_m_ItemsArray_2(), NameObjectCollectionBase_t3041392021::get_offset_of_m_hashprovider_3(), NameObjectCollectionBase_t3041392021::get_offset_of_m_comparer_4(), NameObjectCollectionBase_t3041392021::get_offset_of_m_defCapacity_5(), NameObjectCollectionBase_t3041392021::get_offset_of_m_readonly_6(), NameObjectCollectionBase_t3041392021::get_offset_of_infoCopy_7(), NameObjectCollectionBase_t3041392021::get_offset_of_keyscoll_8(), NameObjectCollectionBase_t3041392021::get_offset_of_equality_comparer_9(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize946 = { sizeof (_Item_t1459211051), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable946[2] = { _Item_t1459211051::get_offset_of_key_0(), _Item_t1459211051::get_offset_of_value_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize947 = { sizeof (_KeysEnumerator_t1933657994), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable947[2] = { _KeysEnumerator_t1933657994::get_offset_of_m_collection_0(), _KeysEnumerator_t1933657994::get_offset_of_m_position_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize948 = { sizeof (KeysCollection_t3069705679), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable948[1] = { KeysCollection_t3069705679::get_offset_of_m_collection_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize949 = { sizeof (NameValueCollection_t3726265270), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable949[2] = { NameValueCollection_t3726265270::get_offset_of_cachedAllKeys_10(), NameValueCollection_t3726265270::get_offset_of_cachedAll_11(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize950 = { sizeof (EditorBrowsableAttribute_t1277103993), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable950[1] = { EditorBrowsableAttribute_t1277103993::get_offset_of_state_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize951 = { sizeof (EditorBrowsableState_t794489433)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable951[4] = { EditorBrowsableState_t794489433::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize952 = { sizeof (TypeConverter_t3040536720), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize953 = { sizeof (TypeConverterAttribute_t3193429890), -1, sizeof(TypeConverterAttribute_t3193429890_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable953[2] = { TypeConverterAttribute_t3193429890_StaticFields::get_offset_of_Default_0(), TypeConverterAttribute_t3193429890::get_offset_of_converter_type_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize954 = { sizeof (AuthenticationLevel_t2493867491)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable954[4] = { AuthenticationLevel_t2493867491::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize955 = { sizeof (SslPolicyErrors_t1520164756)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable955[5] = { SslPolicyErrors_t1520164756::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize956 = { sizeof (AddressFamily_t1968713361)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable956[32] = { AddressFamily_t1968713361::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize957 = { sizeof (DefaultCertificatePolicy_t84124234), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize958 = { sizeof (FileWebRequest_t2277887802), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable958[9] = { FileWebRequest_t2277887802::get_offset_of_uri_6(), FileWebRequest_t2277887802::get_offset_of_webHeaders_7(), FileWebRequest_t2277887802::get_offset_of_connectionGroup_8(), FileWebRequest_t2277887802::get_offset_of_contentLength_9(), FileWebRequest_t2277887802::get_offset_of_fileAccess_10(), FileWebRequest_t2277887802::get_offset_of_method_11(), FileWebRequest_t2277887802::get_offset_of_proxy_12(), FileWebRequest_t2277887802::get_offset_of_preAuthenticate_13(), FileWebRequest_t2277887802::get_offset_of_timeout_14(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize959 = { sizeof (FileWebRequestCreator_t1157484927), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize960 = { sizeof (FtpRequestCreator_t2795178151), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize961 = { sizeof (FtpWebRequest_t580369104), -1, sizeof(FtpWebRequest_t580369104_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable961[11] = { FtpWebRequest_t580369104::get_offset_of_requestUri_6(), FtpWebRequest_t580369104::get_offset_of_proxy_7(), FtpWebRequest_t580369104::get_offset_of_timeout_8(), FtpWebRequest_t580369104::get_offset_of_rwTimeout_9(), FtpWebRequest_t580369104::get_offset_of_binary_10(), FtpWebRequest_t580369104::get_offset_of_usePassive_11(), FtpWebRequest_t580369104::get_offset_of_method_12(), FtpWebRequest_t580369104::get_offset_of_locker_13(), FtpWebRequest_t580369104_StaticFields::get_offset_of_supportedCommands_14(), FtpWebRequest_t580369104::get_offset_of_callback_15(), FtpWebRequest_t580369104_StaticFields::get_offset_of_U3CU3Ef__amU24cache1C_16(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize962 = { sizeof (GlobalProxySelection_t736222881), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize963 = { sizeof (HttpRequestCreator_t288711188), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize964 = { sizeof (HttpVersion_t2444553122), -1, sizeof(HttpVersion_t2444553122_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable964[2] = { HttpVersion_t2444553122_StaticFields::get_offset_of_Version10_0(), HttpVersion_t2444553122_StaticFields::get_offset_of_Version11_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize965 = { sizeof (HttpWebRequest_t3080318015), -1, sizeof(HttpWebRequest_t3080318015_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable965[24] = { HttpWebRequest_t3080318015::get_offset_of_requestUri_6(), HttpWebRequest_t3080318015::get_offset_of_actualUri_7(), HttpWebRequest_t3080318015::get_offset_of_hostChanged_8(), HttpWebRequest_t3080318015::get_offset_of_allowAutoRedirect_9(), HttpWebRequest_t3080318015::get_offset_of_allowBuffering_10(), HttpWebRequest_t3080318015::get_offset_of_certificates_11(), HttpWebRequest_t3080318015::get_offset_of_connectionGroup_12(), HttpWebRequest_t3080318015::get_offset_of_contentLength_13(), HttpWebRequest_t3080318015::get_offset_of_webHeaders_14(), HttpWebRequest_t3080318015::get_offset_of_keepAlive_15(), HttpWebRequest_t3080318015::get_offset_of_maxAutoRedirect_16(), HttpWebRequest_t3080318015::get_offset_of_mediaType_17(), HttpWebRequest_t3080318015::get_offset_of_method_18(), HttpWebRequest_t3080318015::get_offset_of_initialMethod_19(), HttpWebRequest_t3080318015::get_offset_of_pipelined_20(), HttpWebRequest_t3080318015::get_offset_of_version_21(), HttpWebRequest_t3080318015::get_offset_of_proxy_22(), HttpWebRequest_t3080318015::get_offset_of_sendChunked_23(), HttpWebRequest_t3080318015::get_offset_of_servicePoint_24(), HttpWebRequest_t3080318015::get_offset_of_timeout_25(), HttpWebRequest_t3080318015::get_offset_of_redirects_26(), HttpWebRequest_t3080318015::get_offset_of_locker_27(), HttpWebRequest_t3080318015_StaticFields::get_offset_of_defaultMaxResponseHeadersLength_28(), HttpWebRequest_t3080318015::get_offset_of_readWriteTimeout_29(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize966 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize967 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize968 = { sizeof (IPAddress_t2815248165), -1, sizeof(IPAddress_t2815248165_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable968[11] = { IPAddress_t2815248165::get_offset_of_m_Address_0(), IPAddress_t2815248165::get_offset_of_m_Family_1(), IPAddress_t2815248165::get_offset_of_m_Numbers_2(), IPAddress_t2815248165::get_offset_of_m_ScopeId_3(), IPAddress_t2815248165_StaticFields::get_offset_of_Any_4(), IPAddress_t2815248165_StaticFields::get_offset_of_Broadcast_5(), IPAddress_t2815248165_StaticFields::get_offset_of_Loopback_6(), IPAddress_t2815248165_StaticFields::get_offset_of_None_7(), IPAddress_t2815248165_StaticFields::get_offset_of_IPv6Any_8(), IPAddress_t2815248165_StaticFields::get_offset_of_IPv6Loopback_9(), IPAddress_t2815248165_StaticFields::get_offset_of_IPv6None_10(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize969 = { sizeof (IPv6Address_t144732066), -1, sizeof(IPv6Address_t144732066_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable969[5] = { IPv6Address_t144732066::get_offset_of_address_0(), IPv6Address_t144732066::get_offset_of_prefixLength_1(), IPv6Address_t144732066::get_offset_of_scopeId_2(), IPv6Address_t144732066_StaticFields::get_offset_of_Loopback_3(), IPv6Address_t144732066_StaticFields::get_offset_of_Unspecified_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize970 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize971 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize972 = { sizeof (SecurityProtocolType_t3175450170)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable972[3] = { SecurityProtocolType_t3175450170::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize973 = { sizeof (ServicePoint_t820026165), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable973[11] = { ServicePoint_t820026165::get_offset_of_uri_0(), ServicePoint_t820026165::get_offset_of_connectionLimit_1(), ServicePoint_t820026165::get_offset_of_maxIdleTime_2(), ServicePoint_t820026165::get_offset_of_currentConnections_3(), ServicePoint_t820026165::get_offset_of_idleSince_4(), ServicePoint_t820026165::get_offset_of_usesProxy_5(), ServicePoint_t820026165::get_offset_of_sendContinue_6(), ServicePoint_t820026165::get_offset_of_useConnect_7(), ServicePoint_t820026165::get_offset_of_locker_8(), ServicePoint_t820026165::get_offset_of_hostE_9(), ServicePoint_t820026165::get_offset_of_useNagle_10(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize974 = { sizeof (ServicePointManager_t3082663138), -1, sizeof(ServicePointManager_t3082663138_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable974[10] = { ServicePointManager_t3082663138_StaticFields::get_offset_of_servicePoints_0(), ServicePointManager_t3082663138_StaticFields::get_offset_of_policy_1(), ServicePointManager_t3082663138_StaticFields::get_offset_of_defaultConnectionLimit_2(), ServicePointManager_t3082663138_StaticFields::get_offset_of_maxServicePointIdleTime_3(), ServicePointManager_t3082663138_StaticFields::get_offset_of_maxServicePoints_4(), ServicePointManager_t3082663138_StaticFields::get_offset_of__checkCRL_5(), ServicePointManager_t3082663138_StaticFields::get_offset_of__securityProtocol_6(), ServicePointManager_t3082663138_StaticFields::get_offset_of_expectContinue_7(), ServicePointManager_t3082663138_StaticFields::get_offset_of_useNagle_8(), ServicePointManager_t3082663138_StaticFields::get_offset_of_server_cert_cb_9(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize975 = { sizeof (SPKey_t2701363604), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable975[2] = { SPKey_t2701363604::get_offset_of_uri_0(), SPKey_t2701363604::get_offset_of_use_connect_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize976 = { sizeof (WebHeaderCollection_t3859060348), -1, sizeof(WebHeaderCollection_t3859060348_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable976[5] = { WebHeaderCollection_t3859060348_StaticFields::get_offset_of_restricted_12(), WebHeaderCollection_t3859060348_StaticFields::get_offset_of_multiValue_13(), WebHeaderCollection_t3859060348_StaticFields::get_offset_of_restricted_response_14(), WebHeaderCollection_t3859060348::get_offset_of_internallyCreated_15(), WebHeaderCollection_t3859060348_StaticFields::get_offset_of_allowed_chars_16(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize977 = { sizeof (WebProxy_t2297524815), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable977[5] = { WebProxy_t2297524815::get_offset_of_address_0(), WebProxy_t2297524815::get_offset_of_bypassOnLocal_1(), WebProxy_t2297524815::get_offset_of_bypassList_2(), WebProxy_t2297524815::get_offset_of_credentials_3(), WebProxy_t2297524815::get_offset_of_useDefaultCredentials_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize978 = { sizeof (WebRequest_t1074017327), -1, sizeof(WebRequest_t1074017327_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable978[5] = { WebRequest_t1074017327_StaticFields::get_offset_of_prefixes_1(), WebRequest_t1074017327_StaticFields::get_offset_of_isDefaultWebProxySet_2(), WebRequest_t1074017327_StaticFields::get_offset_of_defaultWebProxy_3(), WebRequest_t1074017327::get_offset_of_authentication_level_4(), WebRequest_t1074017327_StaticFields::get_offset_of_lockobj_5(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize979 = { sizeof (OpenFlags_t1958793597)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable979[6] = { OpenFlags_t1958793597::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize980 = { sizeof (PublicKey_t3765660246), -1, sizeof(PublicKey_t3765660246_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable980[5] = { PublicKey_t3765660246::get_offset_of__key_0(), PublicKey_t3765660246::get_offset_of__keyValue_1(), PublicKey_t3765660246::get_offset_of__params_2(), PublicKey_t3765660246::get_offset_of__oid_3(), PublicKey_t3765660246_StaticFields::get_offset_of_U3CU3Ef__switchU24map9_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize981 = { sizeof (StoreLocation_t675393953)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable981[3] = { StoreLocation_t675393953::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize982 = { sizeof (StoreName_t1372169204)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable982[9] = { StoreName_t1372169204::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize983 = { sizeof (X500DistinguishedName_t3517382345), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable983[1] = { X500DistinguishedName_t3517382345::get_offset_of_name_3(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize984 = { sizeof (X500DistinguishedNameFlags_t2479691754)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable984[11] = { X500DistinguishedNameFlags_t2479691754::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize985 = { sizeof (X509BasicConstraintsExtension_t429423395), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable985[6] = { 0, 0, X509BasicConstraintsExtension_t429423395::get_offset_of__certificateAuthority_6(), X509BasicConstraintsExtension_t429423395::get_offset_of__hasPathLengthConstraint_7(), X509BasicConstraintsExtension_t429423395::get_offset_of__pathLengthConstraint_8(), X509BasicConstraintsExtension_t429423395::get_offset_of__status_9(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize986 = { sizeof (X509Certificate2_t2111122295), -1, sizeof(X509Certificate2_t2111122295_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable986[13] = { X509Certificate2_t2111122295::get_offset_of__archived_5(), X509Certificate2_t2111122295::get_offset_of__extensions_6(), X509Certificate2_t2111122295::get_offset_of__name_7(), X509Certificate2_t2111122295::get_offset_of__serial_8(), X509Certificate2_t2111122295::get_offset_of__publicKey_9(), X509Certificate2_t2111122295::get_offset_of_issuer_name_10(), X509Certificate2_t2111122295::get_offset_of_subject_name_11(), X509Certificate2_t2111122295::get_offset_of_signature_algorithm_12(), X509Certificate2_t2111122295::get_offset_of__cert_13(), X509Certificate2_t2111122295_StaticFields::get_offset_of_empty_error_14(), X509Certificate2_t2111122295_StaticFields::get_offset_of_commonName_15(), X509Certificate2_t2111122295_StaticFields::get_offset_of_email_16(), X509Certificate2_t2111122295_StaticFields::get_offset_of_signedData_17(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize987 = { sizeof (X509Certificate2Collection_t2719121143), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize988 = { sizeof (X509Certificate2Enumerator_t3294577184), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable988[1] = { X509Certificate2Enumerator_t3294577184::get_offset_of_enumerator_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize989 = { sizeof (X509CertificateCollection_t1754559427), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize990 = { sizeof (X509CertificateEnumerator_t2318149460), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable990[1] = { X509CertificateEnumerator_t2318149460::get_offset_of_enumerator_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize991 = { sizeof (X509Chain_t2977030742), -1, sizeof(X509Chain_t2977030742_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable991[15] = { X509Chain_t2977030742::get_offset_of_location_0(), X509Chain_t2977030742::get_offset_of_elements_1(), X509Chain_t2977030742::get_offset_of_policy_2(), X509Chain_t2977030742::get_offset_of_status_3(), X509Chain_t2977030742_StaticFields::get_offset_of_Empty_4(), X509Chain_t2977030742::get_offset_of_max_path_length_5(), X509Chain_t2977030742::get_offset_of_working_issuer_name_6(), X509Chain_t2977030742::get_offset_of_working_public_key_7(), X509Chain_t2977030742::get_offset_of_bce_restriction_8(), X509Chain_t2977030742::get_offset_of_roots_9(), X509Chain_t2977030742::get_offset_of_cas_10(), X509Chain_t2977030742::get_offset_of_collection_11(), X509Chain_t2977030742_StaticFields::get_offset_of_U3CU3Ef__switchU24mapB_12(), X509Chain_t2977030742_StaticFields::get_offset_of_U3CU3Ef__switchU24mapC_13(), X509Chain_t2977030742_StaticFields::get_offset_of_U3CU3Ef__switchU24mapD_14(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize992 = { sizeof (X509ChainElement_t2840812822), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable992[4] = { X509ChainElement_t2840812822::get_offset_of_certificate_0(), X509ChainElement_t2840812822::get_offset_of_status_1(), X509ChainElement_t2840812822::get_offset_of_info_2(), X509ChainElement_t2840812822::get_offset_of_compressed_status_flags_3(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize993 = { sizeof (X509ChainElementCollection_t938559667), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable993[1] = { X509ChainElementCollection_t938559667::get_offset_of__list_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize994 = { sizeof (X509ChainElementEnumerator_t3318578807), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable994[1] = { X509ChainElementEnumerator_t3318578807::get_offset_of_enumerator_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize995 = { sizeof (X509ChainPolicy_t1784845061), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable995[8] = { X509ChainPolicy_t1784845061::get_offset_of_apps_0(), X509ChainPolicy_t1784845061::get_offset_of_cert_1(), X509ChainPolicy_t1784845061::get_offset_of_store_2(), X509ChainPolicy_t1784845061::get_offset_of_rflag_3(), X509ChainPolicy_t1784845061::get_offset_of_mode_4(), X509ChainPolicy_t1784845061::get_offset_of_timeout_5(), X509ChainPolicy_t1784845061::get_offset_of_vflags_6(), X509ChainPolicy_t1784845061::get_offset_of_vtime_7(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize996 = { sizeof (X509ChainStatus_t2059613378)+ sizeof (RuntimeObject), sizeof(X509ChainStatus_t2059613378_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable996[2] = { X509ChainStatus_t2059613378::get_offset_of_status_0() + static_cast<int32_t>(sizeof(RuntimeObject)), X509ChainStatus_t2059613378::get_offset_of_info_1() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize997 = { sizeof (X509ChainStatusFlags_t2539692479)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable997[24] = { X509ChainStatusFlags_t2539692479::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize998 = { sizeof (X509EnhancedKeyUsageExtension_t4231520010), -1, sizeof(X509EnhancedKeyUsageExtension_t4231520010_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable998[3] = { X509EnhancedKeyUsageExtension_t4231520010::get_offset_of__enhKeyUsage_4(), X509EnhancedKeyUsageExtension_t4231520010::get_offset_of__status_5(), X509EnhancedKeyUsageExtension_t4231520010_StaticFields::get_offset_of_U3CU3Ef__switchU24mapE_6(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize999 = { sizeof (X509Extension_t2299253547), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable999[1] = { X509Extension_t2299253547::get_offset_of__critical_3(), }; #ifdef __clang__ #pragma clang diagnostic pop #endif
cdf987588a372d923deb0c257a94f2a4d7a71b2c
fbb9b811d68574718351479ad779e8a52f9dfc3f
/pelicula.h
f1e7d1367f75d118d7ddf79f98d337b11daae92b
[]
no_license
ArturoArjona/Proyecto-2-POO
8506b33bd156fc90fd8e3b2f9cfa4f80742b1f33
689ae5b82ed11e2bbe81331e0c875d2386851c93
refs/heads/master
2022-05-15T02:13:48.058590
2020-04-25T03:30:34
2020-04-25T03:30:34
258,293,673
0
0
null
2020-04-25T03:30:35
2020-04-23T18:19:51
C++
UTF-8
C++
false
false
733
h
#include <iostream> #include "Actor.h" using namespace std; class Pelicula { public: Pelicula(); void setNumPeli(int n) {numPeli=(n >0 ? n :0);}; int getNumPeli() {return numPeli;}; void setTitulo(string t) {titulo=t;}; string getTitulo() {return titulo;}; void setAnio(int a) {anio=(a >0 ? a :0);}; int getAnio() {return anio;}; void setDuracion(int d) {duracion=(d >0 ? d :0);}; int getDuracion() {return duracion;}; void setGenero(string g) {genero=g;}; string getGenero() {return genero;}; Actor getListaActores(int); bool agregarActor(Actor); int getCantActores() {return cantActores;}; private: int numPeli, anio, duracion, cantActores; string titulo, genero; Actor listaActores[10]; };
5bdff2072b85b284d3a82fcfe408752a3b9c8b83
30114f6730aac693971d826f58e46f6d158e6957
/MFC/ole/mfccalc/calcdlg.cpp
b02fe3d675099086eb7fde6a4a2da05a29b5125f
[]
no_license
oudream/vc_example_official
67111751a416df93cdc4b9f1048d93f482819992
8075deebd4755b2a7531a8f918c19ad2e82e2b23
refs/heads/master
2020-06-14T08:00:01.267447
2019-07-03T01:03:59
2019-07-03T01:03:59
194,953,887
2
2
null
null
null
null
UTF-8
C++
false
false
11,385
cpp
// calcdlg.cpp : implementation file // // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #include "stdafx.h" #include "mfccalc.h" #include "calcdlg.h" #ifdef _DEBUG #undef THIS_FILE static char BASED_CODE THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; //}}AFX_DATA // Implementation protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //{{AFX_MSG(CAboutDlg) virtual BOOL OnInitDialog(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CAboutDlg message handlers BOOL CAboutDlg::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CCalcDlg dialog IMPLEMENT_DYNCREATE(CCalcDlg, CDialog) BEGIN_DISPATCH_MAP(CCalcDlg, CDialog) //{{AFX_DISPATCH_MAP(CCalcDlg) DISP_PROPERTY_EX(CCalcDlg, "Accum", GetAccum, SetAccum, VT_I4) DISP_PROPERTY_EX(CCalcDlg, "Operand", GetOperand, SetOperand, VT_I4) DISP_PROPERTY_EX(CCalcDlg, "Operation", GetOperation, SetOperation, VT_I2) DISP_PROPERTY_EX(CCalcDlg, "Visible", GetVisible, SetVisible, VT_BOOL) DISP_FUNCTION(CCalcDlg, "Evaluate", Evaluate, VT_BOOL, VTS_NONE) DISP_FUNCTION(CCalcDlg, "Clear", Clear, VT_EMPTY, VTS_NONE) DISP_FUNCTION(CCalcDlg, "Display", Display, VT_EMPTY, VTS_NONE) DISP_FUNCTION(CCalcDlg, "Close", Close, VT_EMPTY, VTS_NONE) DISP_FUNCTION(CCalcDlg, "Button", Button, VT_BOOL, VTS_BSTR) //}}AFX_DISPATCH_MAP END_DISPATCH_MAP() #ifndef IMPLEMENT_OLECREATE_SINGLE // MFC will provide this macro in the future. For now, we define it. #define IMPLEMENT_OLECREATE_SINGLE(class_name, external_name, \ l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ AFX_DATADEF COleObjectFactory class_name::factory(class_name::guid, \ RUNTIME_CLASS(class_name), TRUE, _T(external_name)); \ const AFX_DATADEF GUID class_name::guid = \ { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }; #endif // {62C4DD10-F45E-11cd-8C3D-00AA004BB3B7} IMPLEMENT_OLECREATE_SINGLE(CCalcDlg, "mfccalc.calculator", 0x62c4dd10, 0xf45e, 0x11cd, 0x8c, 0x3d, 0x0, 0xaa, 0x0, 0x4b, 0xb3, 0xb7); CCalcDlg::CCalcDlg(CWnd* pParent /*=NULL*/) : CDialog(CCalcDlg::IDD, pParent) { m_bAutoDelete = TRUE; // default to auto-delete m_dwRegister = 0; // not registered as active by default //{{AFX_DATA_INIT(CCalcDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); // Note that LoadAccelerator does not require DestroyAcceleratorTable m_hAccel = LoadAccelerators(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDD)); // clear the contents of the calculator and reset state OnClickedClear(); // enable this object for OLE automation EnableAutomation(); } CCalcDlg::~CCalcDlg() { if (m_dwRegister != 0) RevokeActiveObject(m_dwRegister, NULL); } void CCalcDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CCalcDlg) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } ///////////////////////////////////////////////////////////////////////////// // CCalcDlg implementation void CCalcDlg::PerformOperation() { if (m_errorState != ErrNone) return; if (m_bOperandAvail) { if (m_operator == OpNone) m_accum = m_operand; else if (m_operator == OpMultiply) m_accum *= m_operand; else if (m_operator == OpDivide) { if (m_operand == 0) m_errorState = ErrDivideByZero; else m_accum /= m_operand; } else if (m_operator == OpAdd) m_accum += m_operand; else if (m_operator == OpSubtract) m_accum -= m_operand; } m_bOperandAvail = FALSE; UpdateDisplay(); } void CCalcDlg::ClickedNumber(long l) { if (m_errorState != ErrNone) return; if (!m_bOperandAvail) m_operand = 0L; SetOperand(m_operand*10+l); UpdateDisplay(); } void CCalcDlg::UpdateDisplay() { if (GetSafeHwnd() == NULL) return; CString str; if (m_errorState != ErrNone) str.LoadString(IDS_ERROR); else { long lVal = (m_bOperandAvail) ? m_operand : m_accum; str.Format(_T("%ld"), lVal); } GetDlgItem(IDE_ACCUM)->SetWindowText(str); GetDlgItem(IDC_INVISIBLE_FOCUS)->SetFocus(); } BEGIN_MESSAGE_MAP(CCalcDlg, CDialog) //{{AFX_MSG_MAP(CCalcDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_COMMAND_RANGE(IDB_0, IDB_9, OnClickedNumber) ON_BN_CLICKED(IDB_CLEAR, OnClickedClear) ON_BN_CLICKED(IDB_DIVIDE, OnClickedDivide) ON_BN_CLICKED(IDB_EQUAL, OnClickedEqual) ON_BN_CLICKED(IDB_MINUS, OnClickedMinus) ON_BN_CLICKED(IDB_PLUS, OnClickedPlus) ON_BN_CLICKED(IDB_TIMES, OnClickedTimes) ON_EN_SETFOCUS(IDE_ACCUM, OnSetFocusAccum) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CCalcDlg message handlers BOOL CCalcDlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); CString strAboutMenu; strAboutMenu.LoadString(IDS_ABOUTBOX); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } pSysMenu->RemoveMenu(SC_MAXIMIZE, MF_BYCOMMAND); pSysMenu->RemoveMenu(SC_SIZE, MF_BYCOMMAND); // want focus to stay on the dialog itself (until a button is clicked) SetFocus(); return FALSE; } void CCalcDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; dlgAbout.DoModal(); } else { CDialog::OnSysCommand(nID, lParam); } } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. void CCalcDlg::OnPaint() { if (!IsIconic()) { CDialog::OnPaint(); return; } CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // Draw the icon dc.DrawIcon(x, y, m_hIcon); } // The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CCalcDlg::OnQueryDragIcon() { return (HCURSOR)m_hIcon; } void CCalcDlg::OnClickedNumber(UINT nID) { ASSERT(nID >= IDB_0 && nID <= IDB_9); ClickedNumber(nID - IDB_0); } void CCalcDlg::OnClickedClear() { m_operator = OpNone; m_operand = 0L; m_accum = 0L; m_bOperandAvail = FALSE; m_errorState = ErrNone; UpdateDisplay(); } void CCalcDlg::OnClickedDivide() { PerformOperation(); m_operator = OpDivide; } void CCalcDlg::OnClickedEqual() { PerformOperation(); m_operator = OpNone; } void CCalcDlg::OnClickedMinus() { PerformOperation(); m_operator = OpSubtract; } void CCalcDlg::OnClickedPlus() { PerformOperation(); m_operator = OpAdd; } void CCalcDlg::OnClickedTimes() { PerformOperation(); m_operator = OpMultiply; } BOOL CCalcDlg::PreTranslateMessage(MSG* pMsg) { if (m_hAccel != NULL && TranslateAccelerator(m_hWnd, m_hAccel, pMsg)) return TRUE; return CDialog::PreTranslateMessage(pMsg); } void CCalcDlg::PostNcDestroy() { if (m_bAutoDelete) delete this; } void CCalcDlg::OnCancel() { DestroyWindow(); } void CCalcDlg::OnOK() { } void CCalcDlg::OnSetFocusAccum() { GetDlgItem(IDC_INVISIBLE_FOCUS)->SetFocus(); } ///////////////////////////////////////////////////////////////////////////// // CCalcDlg automation BOOL CCalcDlg::RegisterActive() { // attempt to register as the active object for the CCalcDlg CLSID return RegisterActiveObject(GetInterface(&IID_IUnknown), CCalcDlg::guid, NULL, &m_dwRegister) == NOERROR; } long CCalcDlg::GetAccum() { return m_accum; } void CCalcDlg::SetAccum(long nNewValue) { m_accum = nNewValue; } long CCalcDlg::GetOperand() { return m_operand; } void CCalcDlg::SetOperand(long nNewValue) { m_operand = nNewValue; m_bOperandAvail = TRUE; } short CCalcDlg::GetOperation() { #pragma warning(disable:4244) return m_operator; #pragma warning(default:4244) } void CCalcDlg::SetOperation(short nNewValue) { m_operator = (Operator)nNewValue; } BOOL CCalcDlg::GetVisible() { return m_hWnd != NULL && (GetStyle() & WS_VISIBLE) != 0; } void CCalcDlg::SetVisible(BOOL bNewValue) { if (bNewValue == GetVisible()) return; if (bNewValue) { // create it if necessary if (m_hWnd == NULL && !Create(CCalcDlg::IDD)) return; // set up as the active window for the application if (AfxGetThread()->m_pMainWnd == NULL) AfxGetThread()->m_pMainWnd = this; // show it ShowWindow(SW_SHOWNORMAL); } else { if (m_hWnd != NULL) ShowWindow(SW_HIDE); } } BOOL CCalcDlg::Evaluate() { OnClickedEqual(); return m_errorState == ErrNone; } void CCalcDlg::Clear() { OnClickedClear(); } void CCalcDlg::Display() { UpdateDisplay(); } void CCalcDlg::Close() { if (m_hWnd == NULL) { AfxPostQuitMessage(0); return; } BOOL bAutoDelete = m_bAutoDelete; m_bAutoDelete = FALSE; DestroyWindow(); m_bAutoDelete = bAutoDelete; } BOOL CCalcDlg::Button(LPCTSTR szButton) { switch (szButton[0]) { case 'c': case 'C': OnClickedClear(); break; case '/': OnClickedDivide(); break; case '+': OnClickedPlus(); break; case '-': OnClickedMinus(); break; case '*': OnClickedTimes(); break; case '=': OnClickedEqual(); break; default: if (szButton[0] >= '0' && szButton[0] <= '9') ClickedNumber(szButton[0] - '0'); else return FALSE; break; } return TRUE; }
14e3c1ca4ca7777bcee8e7ead83f616659ae9402
681fa8e11634ef84330ec9e1cc3c08b519d7ec9b
/libraries/libertscommunication/controller_parameter_data.cpp
1bb7c074ef8a5a63f0bb54a65e9ed85920ba5350
[]
no_license
EraYaN/ERTS
30eeedff677195d58b9f75bedf74c1e77270bdab
b66f20ab4a06c690d1e060d235d3ecfb6355c9a3
refs/heads/master
2023-01-21T05:28:51.832963
2017-10-31T00:32:41
2017-10-31T00:32:41
102,592,736
0
0
null
null
null
null
UTF-8
C++
false
false
1,181
cpp
#include "controller_parameter_data.h" ControllerParameterData::ControllerParameterData(const uint8_t *data) { _ack_number = *(reinterpret_cast<const uint32_t *>(&data[0])); _p_yaw = *(reinterpret_cast<const uint16_t *>(&data[4])); _p_height = *(reinterpret_cast<const uint16_t *>(&data[6])); _p1_pitch_roll = *(reinterpret_cast<const uint16_t *>(&data[8])); _p2_pitch_roll = *(reinterpret_cast<const uint16_t *>(&data[10])); } ControllerParameterData::ControllerParameterData(uint16_t p_yaw, uint16_t p_height, uint16_t p1_pitch_roll, uint16_t p2_pitch_roll, uint32_t ack_number) { _ack_number = ack_number; _p_yaw = p_yaw; _p_height = p_height; _p1_pitch_roll = p1_pitch_roll; _p2_pitch_roll = p2_pitch_roll; } void ControllerParameterData::to_buffer(uint8_t *buffer) { *(reinterpret_cast<uint32_t *>(&buffer[0])) = _ack_number; *(reinterpret_cast<uint16_t *>(&buffer[4])) = _p_yaw; *(reinterpret_cast<uint16_t *>(&buffer[6])) = _p_height; *(reinterpret_cast<uint16_t *>(&buffer[8])) = _p1_pitch_roll; *(reinterpret_cast<uint16_t *>(&buffer[10])) = _p2_pitch_roll; }
fb2d9fa632820890f6f9e5f07a87055d3d09370b
9889e7fd73314382fb2f9e8f63d92cf3254b75fb
/Vaango/src/CCA/Components/MPM/PhysicalBC/AutoCycleFluxBC.h
79ddbfcdd12832d4420130cc6697f7d97e1604c1
[]
no_license
bbanerjee/ParSim
0b05f43cff8e878658dc179b4a604eabd873f594
87f87816b146f40013a5e6648dfe20f6d2d002bb
refs/heads/master
2023-04-27T11:30:36.252023
2023-04-13T22:04:50
2023-04-13T22:04:50
13,608,512
16
3
null
null
null
null
UTF-8
C++
false
false
3,280
h
/* * The MIT License * * Copyright (c) 1997-2021 The University of Utah * Copyright (c) 2022-2023 Biswajit Banerjee * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #ifndef UINTAH_CCA_COMPONENTS_MPM_PHYSICALBC_AUTOCYCLEFLUXBC_H #define UINTAH_CCA_COMPONENTS_MPM_PHYSICALBC_AUTOCYCLEFLUXBC_H #include <CCA/Components/MPM/PhysicalBC/FluxBCModel.h> #include <CCA/Components/MPM/Core/MPMFlags.h> #include <CCA/Components/MPM/Core/MPMLabel.h> #include <CCA/Ports/DataWarehouse.h> #include <CCA/Ports/Scheduler.h> #include <Core/Grid/Level.h> #include <Core/Grid/MaterialManager.h> #include <Core/Grid/Variables/ComputeSet.h> #include <Core/Parallel/ProcessorGroup.h> namespace Uintah { class AutoCycleFluxBC : public FluxBCModel { public: AutoCycleFluxBC(const MaterialManager* materialManager, const MPMLabel* mpm_labels, const MPMFlags* mpm_flags); virtual ~AutoCycleFluxBC() = default; virtual void scheduleInitializeScalarFluxBCs(const LevelP& level, SchedulerP& sched); virtual void scheduleApplyExternalScalarFlux(SchedulerP& sched, const PatchSet* patches, const MaterialSet* matls); protected: double d_flux_sign; double d_auto_cycle_max; double d_auto_cycle_min; virtual void initializeScalarFluxBC(const ProcessorGroup*, const PatchSubset* patches, const MaterialSubset*, DataWarehouse* old_dw, DataWarehouse* new_dw); virtual void applyExternalScalarFlux(const ProcessorGroup*, const PatchSubset* patches, const MaterialSubset*, DataWarehouse* old_dw, DataWarehouse* new_dw); virtual void countMaterialPointsPerFluxLoadCurve(const ProcessorGroup*, const PatchSubset* patches, const MaterialSubset*, DataWarehouse* old_dw, DataWarehouse* new_dw); }; } // namespace Uintah #endif // UINTAH_CCA_COMPONENTS_MPM_PHYSICALBC_AUTOCYCLEFLUXBC_H
ac560840ee2b68b3e46f49e279b8795f9ebd7ba4
cab400e8802a713439578bd8f20915db66dce521
/cctv/未命名5.cpp
ba21edfac485e0f085fa944730511ff4987790c1
[]
no_license
Cazyshark/public-class-text-II
3145b4134492937860b4abb921616afe522061a5
64f3342affb3b1036b04028a7e2e8172132fd504
refs/heads/master
2020-03-21T09:00:06.359103
2018-06-23T07:07:26
2018-06-23T07:07:26
138,378,423
1
1
null
null
null
null
GB18030
C++
false
false
1,619
cpp
#include<iostream> #include<string.h> using namespace std; class Employee { public: Employee(long, char*, char*, double ); Employee() {}; ~Employee() {}; void set_id(long); void set_salary(double); void set_name(char * ); void set_address(char* ); long get_id(); double get_salary(); char* get_name(); char* get_address(); void print(); private: long id; char *name; char *address; double salary; }; Employee::Employee(long i,char* n,char* a,double s) { id=i; name=new char[strlen(n)+1]; strcpy(name,n); address=new char[strlen(a)+1]; strcpy(address,a); salary=s; } void Employee::set_id(long i) { id=i; } void Employee::set_salary(double s) { salary=s; } void Employee::set_name(char* n) { name=new char[strlen(n)+1]; strcpy(name,n); } void Employee::set_address(char* a) { address=new char[strlen(a)+1]; strcpy(address,a); } long Employee::get_id() { return id; } double Employee::get_salary() { return salary; } char* Employee::get_name() { return name; } char* Employee::get_address() { return address; } void Employee::print() { cout<<" 工号 :"<<id <<endl<<" 姓名 :" <<name<<endl<<" 家庭住址 :" <<address<<endl<<" 月 薪:" <<salary<<endl; } int main() { long i; char n[10],a[20]; double s; Employee g[2]; cout<<"请依此输入工号,姓名,家庭住址,月薪 "<<endl; for(int y=0; y<=1; y++) { cin>>i>>n>>a>>s; g[y].set_id(i); g[y].set_name(n); g[y].set_address(a); g[y].set_salary(s); g[y].print(); } return 0; }
0a1f96396f52e61a3af9607c011ca911aa92aa9f
31d0aac59563ebe3b9c1eca5a78d2e47c4eeb716
/include/Pathfinder/Pathfinder.h
43a5a1f4f5150a24beab34084d4909f07396fc01
[]
no_license
jacob1992/RobocupSSL_HL
d85e8914108a8308102dcc2b0d20c35403db04a6
0e1cc1f3959363e9e4a6b1032b345b507a60d972
refs/heads/master
2020-04-08T12:13:43.057745
2014-07-26T16:28:37
2014-07-26T16:28:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
431
h
#ifndef PATHFINDER_H #define PATHFINDER_H #include "Utils/Vector2d.h" #include "SoccerGame/Player/Player.h" #include "SoccerGame/Ball/Ball.h" #include <queue> #include <vector> class Pathfinder{ public: Pathfinder(); virtual ~Pathfinder(); virtual bool addObstacle(const Player &iObstacle); virtual std::queue<Pose> findPath(Pose iStart, Pose iGoal); protected: std::vector<Player> mObstacles; }; #endif
f177d813bf4ecaffe0b3cdaec554dd139b18f340
251dbd9ee40da70e16300f4a8c223130a5bb7ae8
/chapter_4/ex_4.25.cpp
d054fc68b19d6df4be0691c62ed556085f29c2d0
[ "MIT" ]
permissive
YasserKa/Cpp_Primer
cfd2c5b94ccadc444d766ad1a58a0a56f61dfac8
198b10255fd67e31c15423a5e44b7f02abb8bdc2
refs/heads/master
2021-01-20T10:30:19.416414
2017-09-05T20:41:39
2017-09-05T20:41:39
101,640,247
0
0
null
null
null
null
UTF-8
C++
false
false
46
cpp
/** * ~'q' << 6 * 10001110 << 6 * 10000000
c00d64c6a3e2e0f9ee79f5ebedb633d5bac17db2
bcc4e8211c725ed3782ea8ae034a8dfb95ab70fb
/Source/Todos/Redux/Reducers/VisibilityFilterReducer.h
69406ea879f666d5f3e9b26866b9b38d945102d2
[]
no_license
essem/UnrealTodos
ce413430aaed722b9db7d178eba1fdf09331e3a1
3fd278d52d62a0043b75c4178213b6004abf5426
refs/heads/master
2021-04-06T06:50:00.961563
2018-03-22T05:18:30
2018-03-22T05:18:30
124,819,457
0
0
null
null
null
null
UTF-8
C++
false
false
251
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" class UStateString; class UAction; const UStateString* VisibilityFilterReducer(const UStateString* State, const UAction* Action);
2bbca17af155d4c3f1ea4645537da96346bda4a4
d200b1b156fbf9844dd0891329353207a5b20e32
/include/mrobot_controllers/robot/odometry.h
392fed1cb6eec76760f67c393417987fed088967
[]
no_license
inhok996/mrobot_controllers
e5cc0fee21870951fb33b88125a3c97b4227a596
66aac46634101af0ac21db516be83c785ecc6f80
refs/heads/master
2021-03-24T12:02:12.960356
2017-10-30T15:53:23
2017-10-30T15:53:23
108,112,995
1
0
null
null
null
null
UTF-8
C++
false
false
336
h
#pragma once namespace mrobot_control { class odometry { public: odometry():x(0),y(0),theta(0){} ~odometry(){} double get_x() {return x;} double get_y(){return y;} double get_theta(){return theta;} void update(double x_in,double y_in, double theta_in); private: double x; double y; double theta; }; }
bf78de9483112376373afef075008c5311341a70
8724c30ffa34a72cca6323f9598d62d92335e649
/WjgOGL/OGL_21_AdvancedGLSL/main_21.cpp
1615c5d308588a0efead22cb3bf7503ddbcdc943
[]
no_license
Alec-Ray/OpenGLStudyCode
93a6a25cca2c1c88caf12eea2ae36e04c16a5211
eca6b47cb0f2b5bf4f112aed0b65ea8355bfb2e7
refs/heads/master
2022-06-23T13:33:32.630338
2020-05-04T10:50:52
2020-05-04T10:50:52
null
0
0
null
null
null
null
GB18030
C++
false
false
9,745
cpp
#include "includes\glad\glad.h" #include "includes\glfw\glfw3.h" #include <iostream> #include "includes\Shader.h" #include "includes\camera.h" #include "includes\model.h" #include "includes\glm\glm.hpp" #include "includes\glm\gtc\matrix_transform.hpp" #include "includes\glm\gtc\type_ptr.hpp" #define STB_IMAGE_IMPLEMENTATION #include "includes\stb_image.h" #pragma comment ( lib,"glfw3.lib" ) void framebuffer_size_callback(GLFWwindow* window, int width, int height); void processInput(GLFWwindow* window); void mouse_callback(GLFWwindow* window, double xpos, double ypos); void scroll_callback(GLFWwindow* window, double xoffset, double yoffset); unsigned int loadTexture(const char *path); const unsigned int Screen_Width = 1000; const unsigned int Screen_Height = 800; float lastX = Screen_Width/2.0f; float lastY = Screen_Height/2.0f; float deltaTime = 0.0f; float lastFrame = 0.0f; Camera camera(glm::vec3(0.0f, 0.0f, 5.0f)); bool firstMouse = true; glm::vec3 lightPos(1.0f, 1.0f, 2.0f); int main() { glfwInit(); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); #ifdef _APPLE_ glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); #endif // _APPLE_ GLFWwindow* window = glfwCreateWindow(Screen_Width, Screen_Height, "WjgOGL", NULL, NULL); if (window == NULL) { std::cout << "failed to create glfw window" << std::endl; glfwTerminate(); return -1; } glfwMakeContextCurrent(window); glfwSetFramebufferSizeCallback(window, framebuffer_size_callback); glfwSetCursorPosCallback(window, mouse_callback); glfwSetScrollCallback(window, scroll_callback); glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) { std::cout << "failed to initilize glad" << std::endl; return -1; } glEnable(GL_DEPTH_TEST); //启用在顶点着色器中修改点大小的功能 glEnable(GL_PROGRAM_POINT_SIZE); Shader MyShader("includes/shader.vs", "includes/shader.fs"); //立方体的数据,按逆时针环绕顺序定义 float cubeVertices[] = { // Back face -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, // Bottom-left 0.5f, 0.5f, -0.5f, 1.0f, 1.0f, // top-right 0.5f, -0.5f, -0.5f, 1.0f, 0.0f, // bottom-right 0.5f, 0.5f, -0.5f, 1.0f, 1.0f, // top-right -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, // bottom-left -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, // top-left // Front face -0.5f, -0.5f, 0.5f, 0.0f, 0.0f, // bottom-left 0.5f, -0.5f, 0.5f, 1.0f, 0.0f, // bottom-right 0.5f, 0.5f, 0.5f, 1.0f, 1.0f, // top-right 0.5f, 0.5f, 0.5f, 1.0f, 1.0f, // top-right -0.5f, 0.5f, 0.5f, 0.0f, 1.0f, // top-left -0.5f, -0.5f, 0.5f, 0.0f, 0.0f, // bottom-left // Left face -0.5f, 0.5f, 0.5f, 1.0f, 0.0f, // top-right -0.5f, 0.5f, -0.5f, 1.0f, 1.0f, // top-left -0.5f, -0.5f, -0.5f, 0.0f, 1.0f, // bottom-left -0.5f, -0.5f, -0.5f, 0.0f, 1.0f, // bottom-left -0.5f, -0.5f, 0.5f, 0.0f, 0.0f, // bottom-right -0.5f, 0.5f, 0.5f, 1.0f, 0.0f, // top-right // Right face 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, // top-left 0.5f, -0.5f, -0.5f, 0.0f, 1.0f, // bottom-right 0.5f, 0.5f, -0.5f, 1.0f, 1.0f, // top-right 0.5f, -0.5f, -0.5f, 0.0f, 1.0f, // bottom-right 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, // top-left 0.5f, -0.5f, 0.5f, 0.0f, 0.0f, // bottom-left // Bottom face -0.5f, -0.5f, -0.5f, 0.0f, 1.0f, // top-right 0.5f, -0.5f, -0.5f, 1.0f, 1.0f, // top-left 0.5f, -0.5f, 0.5f, 1.0f, 0.0f, // bottom-left 0.5f, -0.5f, 0.5f, 1.0f, 0.0f, // bottom-left -0.5f, -0.5f, 0.5f, 0.0f, 0.0f, // bottom-right -0.5f, -0.5f, -0.5f, 0.0f, 1.0f, // top-right // Top face -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, // top-left 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, // bottom-right 0.5f, 0.5f, -0.5f, 1.0f, 1.0f, // top-right 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, // bottom-right -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, // top-left -0.5f, 0.5f, 0.5f, 0.0f, 0.0f // bottom-left }; //将地面的顶点数据也按逆时针顺序摆放 float planeVertices[] = { -5.0f, -0.5f, -5.0f, 0.0f, 2.0f, -5.0f, -0.5f, 5.0f, 0.0f, 0.0f, 5.0f, -0.5f, 5.0f, 2.0f, 0.0f, 5.0f, -0.5f, -5.0f, 2.0f, 2.0f, -5.0f, -0.5f, -5.0f, 0.0f, 2.0f, 5.0f, -0.5f, 5.0f, 2.0f, 0.0f }; //箱子VAO unsigned int cubeVAO, cubeVBO; glGenVertexArrays(1, &cubeVAO); glGenBuffers(1, &cubeVBO); glBindVertexArray(cubeVAO); glBindBuffer(GL_ARRAY_BUFFER, cubeVBO); glBufferData(GL_ARRAY_BUFFER, sizeof(cubeVertices), &cubeVertices, GL_STATIC_DRAW); glEnableVertexAttribArray(0); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 5 * sizeof(float), (void*)0); glEnableVertexAttribArray(1); glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 5 * sizeof(float), (void*)(3 * sizeof(float))); glBindVertexArray(0); // 地面VAO unsigned int planeVAO, planeVBO; glGenVertexArrays(1, &planeVAO); glGenBuffers(1, &planeVBO); glBindVertexArray(planeVAO); glBindBuffer(GL_ARRAY_BUFFER, planeVBO); glBufferData(GL_ARRAY_BUFFER, sizeof(planeVertices), &planeVertices, GL_STATIC_DRAW); glEnableVertexAttribArray(0); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 5 * sizeof(float), (void*)0); glEnableVertexAttribArray(1); glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 5 * sizeof(float), (void*)(3 * sizeof(float))); glBindVertexArray(0); //箱子和地面的贴图 //箱子外部贴图 unsigned int cubeTexture = loadTexture("textures/container2.png"); //箱子内部贴图 unsigned int cubeTexture2 = loadTexture("textures/face.png"); unsigned int floorTexture = loadTexture("textures/metal.png"); MyShader.use(); MyShader.setInt("frontTexture", 0); MyShader.setInt("backTexture", 1); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); while (!glfwWindowShouldClose(window)) { float currentTime = glfwGetTime(); deltaTime = currentTime - lastFrame; lastFrame = currentTime; processInput(window); glClearColor(0.1, 0.1f, 0.1f ,1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); MyShader.use(); glm::mat4 model = glm::mat4(1.0f); glm::mat4 view = camera.GetViewMatrix(); glm::mat4 projection = glm::perspective(glm::radians(camera.Zoom), (float)Screen_Width / (float)Screen_Height, 0.1f, 100.0f); MyShader.setMat4("view", view); MyShader.setMat4("projection", projection); // 箱子 glBindVertexArray(cubeVAO); glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, cubeTexture); glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, cubeTexture2); model = glm::translate(model, glm::vec3(-1.0f, 0.0f, -1.0f)); MyShader.setMat4("model", model); glDrawArrays(GL_POINTS, 0, 36); model = glm::mat4(1.0f); model = glm::translate(model, glm::vec3(2.0f, 0.0f, 0.0f)); MyShader.setMat4("model", model); glDrawArrays(GL_TRIANGLES, 0, 36); // 地面 glBindVertexArray(planeVAO); //glBindTexture(GL_TEXTURE_2D, floorTexture); glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, floorTexture); glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, cubeTexture2); MyShader.setMat4("model", glm::mat4(1.0f)); glDrawArrays(GL_TRIANGLES, 0, 6); glBindVertexArray(0); glfwSwapBuffers(window); glfwPollEvents(); } glDeleteVertexArrays(1, &cubeVAO); glDeleteVertexArrays(1, &planeVAO); glDeleteBuffers(1, &cubeVBO); glDeleteBuffers(1, &planeVBO); glfwTerminate(); return 0; } void framebuffer_size_callback(GLFWwindow * window, int width, int height) { glViewport(0, 0, width, height); } void processInput(GLFWwindow * window) { if (glfwGetKey(window, GLFW_KEY_SPACE) == GLFW_PRESS) { glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); } if (glfwGetKey(window, GLFW_KEY_ENTER) == GLFW_PRESS) { glfwSetWindowShouldClose(window, true); } float cameraSpeed = 2.5f * deltaTime; if (glfwGetKey(window, GLFW_KEY_W) == GLFW_PRESS) camera.ProcessKeyboard(FORWARD, deltaTime); if (glfwGetKey(window, GLFW_KEY_S) == GLFW_PRESS) camera.ProcessKeyboard(BACKWARD, deltaTime); if (glfwGetKey(window, GLFW_KEY_A) == GLFW_PRESS) camera.ProcessKeyboard(LEFT, deltaTime); if (glfwGetKey(window, GLFW_KEY_D) == GLFW_PRESS) camera.ProcessKeyboard(RIGHT, deltaTime); } void mouse_callback(GLFWwindow* window, double xpos, double ypos) { std::cout << xpos << "+" << ypos << std::endl; if (firstMouse) { lastX = xpos; lastY = ypos; firstMouse = false; } float xoffset = xpos - lastX; float yoffset = lastY - ypos; lastX = xpos; lastY = ypos; camera.ProcessMouseMovement(xoffset, yoffset); } void scroll_callback(GLFWwindow* window, double xoffset, double yoffset) { camera.ProcessMouseScroll(yoffset); } unsigned int loadTexture(const char * path) { unsigned int textureID; glGenTextures(1, &textureID); int width, height, nrComponents; unsigned char *data = stbi_load(path, &width, &height, &nrComponents, 0); if (data) { GLenum format; if (nrComponents == 1) format = GL_RED; else if (nrComponents == 3) format = GL_RGB; else if (nrComponents == 4) format = GL_RGBA; glBindTexture(GL_TEXTURE_2D, textureID); glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, GL_UNSIGNED_BYTE, data); glGenerateMipmap(GL_TEXTURE_2D); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); stbi_image_free(data); } else { std::cout << "Texture failed to load at path: " << path << std::endl; stbi_image_free(data); } return textureID; }
8f94fa7e0046e5dfbbda49b0381a303ac96d6d68
f6b4abfbfe42db316dfc3e0c89a99667c62b4940
/example/main.cc
681bc2fff16f90addc1f9761188443f8f796728c
[]
no_license
ohindrichs/ac1bbase
e6b610195d2154273f003be4486a38b4acd492a7
5401c268d9672dbb19ce7145feb1cad9ab7ce0d9
refs/heads/master
2021-01-21T10:38:03.694497
2017-11-02T21:44:51
2017-11-02T21:44:51
91,700,753
0
0
null
null
null
null
UTF-8
C++
false
false
1,017
cc
#include "ExampleDY.h" #include <iostream> #include <vector> #include <sstream> using namespace std; int main(int argc, char** argv) { UInt_t jobnum = atoi(argv[1]); UInt_t jobcount = atoi(argv[2]); string lumifile = string(argv[3]); string outfilename = string(argv[4]); stringstream ssoutfilename; ssoutfilename << outfilename << "_" << jobnum << ".root"; ExampleDY ana(ssoutfilename.str()); ana.SetPrintInfo(1); ana.EnableDuplicateCheck(); ana.AddLumiFile(lumifile); ana.Batch_Prepare(jobnum, jobcount); vector<string> dmtrigger; dmtrigger.push_back("HLT_Mu17_Mu8_v.*"); ana.AddTriggerSelection("DMT", dmtrigger); ana.GetTriggerSelection("DMT")->PrintInfo(); vector<string> detrigger; detrigger.push_back("HLT_Ele17_CaloIdL_CaloIsoVL_Ele8_CaloIdL_CaloIsoVL_v.*"); detrigger.push_back("HLT_Ele17_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL_Ele8_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL_v.*"); ana.AddTriggerSelection("DET", detrigger); ana.GetTriggerSelection("DET")->PrintInfo(); ana.Loop(); }
fdd53fc1d2a269c19669a1bb6a6d26ecb667c0c3
f11dae2fef32b691a81b03e77680406bae4583d6
/src/input.cpp
d5e35179576a69e212fb3524f66add3af1a236f4
[]
no_license
Kunalgarg2100/OpenGL-3D-Game
14e4cfec4ff0616366cd3fe095ea2a13f78c76f7
93a6ea4ada7f43d8c61ad6bcb61a5188ab648f9c
refs/heads/master
2021-03-30T16:52:49.182808
2018-08-12T14:09:06
2018-08-12T14:09:06
123,444,457
0
1
null
null
null
null
UTF-8
C++
false
false
1,881
cpp
#include <iostream> #include <cmath> #include <fstream> #include <vector> #include <GL/glew.h> #include <GLFW/glfw3.h> #define GLM_FORCE_RADIANS #include <glm/glm.hpp> #include <glm/gtx/transform.hpp> #include <glm/gtc/matrix_transform.hpp> #include "main.h" bool cannon_keyboard_input = true; bool drag_pan = false, old_cki; double drag_oldx = -1, drag_oldy = -1; bool camera_ortho; using namespace std; /* Executed when a regular key is pressed/released/held-down */ /* Prefered for Keyboard events */ void keyboard(GLFWwindow *window, int key, int scancode, int action, int mods) { // Function is called first on GLFW_PRESS. if (action == GLFW_RELEASE) { switch (key) { case GLFW_KEY_F: fire_fireball(); break; default: break; } } else if (action == GLFW_PRESS) { switch (key) { case GLFW_KEY_ESCAPE: quit(window); break; default: break; } } } /* Executed for character input (like in text boxes) */ void keyboardChar(GLFWwindow *window, unsigned int key) { switch (key) { case 'Q': case 'q': quit(window); break; case 'c': camera_ortho = !camera_ortho; break; case 'v': camera_view = (camera_view_t) ((camera_view + 1) % 6); break; default: break; } } int prev_xpos = 0, prev_ypos = 0; /* Executed when a mouse button is pressed/released */ void mouseButton(GLFWwindow *window, int button, int action, int mods) { if (button == GLFW_MOUSE_BUTTON_LEFT && action == GLFW_PRESS) { double xpos, ypos; glfwGetCursorPos(window, &xpos, &ypos); prev_xpos = xpos; prev_ypos = ypos; } } void scroll_callback(GLFWwindow *window, double xoffset, double yoffset) { camera_zoom += yoffset; }
6b036e76314520eea70344825f49620e1d60be1a
2896000c972e0367c1a4e7bc56c64943114eebc2
/transicion.h
b49a39ff49ed48e458c22eed20dd886c09f21def
[]
no_license
kenshinsamue/CYA-P7
a8fd6ab00e72e45703bb6d197770771ddb45df3f
ef830f77257c2e20c76cbf0fca9d54b091d07e92
refs/heads/master
2023-01-12T19:29:00.729056
2020-11-16T12:55:20
2020-11-16T12:55:20
312,656,089
0
0
null
null
null
null
UTF-8
C++
false
false
828
h
/** * Enrique Manuel Pedroza Castillo * Alu: alu0100886351 * * Clase Transicion * * Clase que representa la transicion que hay entre dos estados y la cadena de * transicion de la misma * */ #ifndef TRANSICION_H #define TRANSICION_H #include "estado.h" using namespace std; class Transicion { public: Transicion(); // constructor por defecto Transicion(Estado*, string, Estado*); // constructor parametrizado dando los // estados y la cadena de transicion Estado* GetOrigen(); // Metodo para obtener el estado de origen string GetCadena(); // Metodo para obtener el la cadena de la transicion Estado* GetDestino(); // metodo para obtener el estado de destino private: Estado* origen_; string cadena_; Estado* destino_; }; #endif
b3ec8db5a1390a7864f1050cafcb912689ec2c12
d6603c3bbafe61f28364682692baebc23f83d639
/src/core/grabber/include/manipulator/details/nop.hpp
c9b33cc90ef45c679084de79d715396ab3e2660d
[ "Unlicense" ]
permissive
jrolfs/Karabiner-Elements
0b00eba173db7d767616673de2551ad5779eceaf
64d72237cf84f96e1fd128820f39bdb85157c936
refs/heads/master
2021-01-12T14:07:13.220314
2017-06-19T17:10:25
2017-06-19T17:10:25
70,166,886
2
1
null
2016-10-06T15:25:30
2016-10-06T15:25:30
null
UTF-8
C++
false
false
1,219
hpp
#pragma once #include "manipulator/details/base.hpp" #include "manipulator/details/types.hpp" namespace krbn { namespace manipulator { namespace details { class nop final : public base { public: nop(void) : base() { } virtual ~nop(void) { } virtual void manipulate(event_queue::queued_event& front_input_event, const event_queue& input_event_queue, event_queue& output_event_queue) { } virtual bool active(void) const { return false; } virtual void handle_device_ungrabbed_event(device_id device_id, const event_queue& output_event_queue, uint64_t time_stamp) { } virtual void handle_event_from_ignored_device(event_queue::queued_event::event::type original_type, int64_t original_integer_value, event_type event_type, event_queue& output_event_queue, uint64_t time_stamp) { } }; } // namespace details } // namespace manipulator } // namespace krbn
ba6b55a2d127fae18bf09cf050042543e9ed11db
9433cf978aa6b010903c134d77c74719f22efdeb
/src/svl/Mat4.h
c6cb060b2f60fdd315628052624fe8d02df0f803
[]
no_license
brandonagr/gpstracktime
4666575cb913db2c9b3b8aa6b40a3ba1a3defb2f
842bfd9698ec48debb6756a9acb2f40fd6041f9c
refs/heads/master
2021-01-20T07:10:58.579764
2008-09-24T05:44:56
2008-09-24T05:44:56
32,090,265
0
0
null
null
null
null
UTF-8
C++
false
false
5,652
h
/* File: Mat4.h Function: Defines a 4 x 4 matrix. Author(s): Andrew Willmott Copyright: (c) 1995-2001, Andrew Willmott */ #ifndef __Mat4__ #define __Mat4__ #include "svl/Vec3.h" #include "svl/Vec4.h" // --- Mat4 Class ------------------------------------------------------------- class Mat4 { public: // Constructors Mat4(); Mat4(Real a, Real b, Real c, Real d, Real e, Real f, Real g, Real h, Real i, Real j, Real k, Real l, Real m, Real n, Real o, Real p); Mat4(const Mat4 &m); Mat4(ZeroOrOne k); Mat4(Block k); Mat4(Vec3& dir, Vec3& up); // Accessor functions Int Rows() const { return(4); }; Int Cols() const { return(4); }; Vec4 &operator [] (Int i); const Vec4 &operator [] (Int i) const; Real *Ref() const; // Assignment operators Mat4 &operator = (const Mat4 &m); Mat4 &operator = (ZeroOrOne k); Mat4 &operator = (Block k); Mat4 &operator += (const Mat4 &m); Mat4 &operator -= (const Mat4 &m); Mat4 &operator *= (const Mat4 &m); Mat4 &operator *= (Real s); Mat4 &operator /= (Real s); // Comparison operators Bool operator == (const Mat4 &m) const; // M == N? Bool operator != (const Mat4 &m) const; // M != N? // Arithmetic operators Mat4 operator + (const Mat4 &m) const; // M + N Mat4 operator - (const Mat4 &m) const; // M - N Mat4 operator - () const; // -M Mat4 operator * (const Mat4 &m) const; // M * N Mat4 operator * (Real s) const; // M * s Mat4 operator / (Real s) const; // M / s // Initialisers Void MakeZero(); // Zero matrix Void MakeDiag(Real k = vl_one); // I Void MakeBlock(Real k = vl_one); // all elts = k // Homogeneous Transforms Mat4& MakeHRot(const Vec3 &axis, Real theta); // Rotate by theta radians about axis Mat4& MakeHRot(const Vec4 &q); // Rotate by quaternion Mat4& MakeHScale(const Vec3 &s); // Scale by components of s Mat4& MakeHTrans(const Vec3 &t); // Translation by t Mat4& Transpose(); // transpose in place Mat4& AddShift(const Vec3 &t); // Concatenate shift // Private... protected: Vec4 row[4]; }; // --- Matrix operators ------------------------------------------------------- Vec4 operator * (const Mat4 &m, const Vec4 &v); // m * v Vec4 operator * (const Vec4 &v, const Mat4 &m); // v * m Vec4 &operator *= (Vec4 &a, const Mat4 &m); // v *= m inline Mat4 operator * (Real s, const Mat4 &m); // s * m Mat4 trans(const Mat4 &m); // Transpose Real trace(const Mat4 &m); // Trace Mat4 adj(const Mat4 &m); // Adjoint Real det(const Mat4 &m); // Determinant Mat4 inv(const Mat4 &m); // Inverse Mat4 oprod(const Vec4 &a, const Vec4 &b); // Outer product // The xform functions help avoid dependence on whether row or column // vectors are used to represent points and vectors. inline Vec4 xform(const Mat4 &m, const Vec4 &v); // Transform of v by m inline Vec3 xform(const Mat4 &m, const Vec3 &v); // Hom. xform of v by m inline Mat4 xform(const Mat4 &m, const Mat4 &n); // Xform v -> m(n(v)) std::ostream &operator << (std::ostream &s, const Mat4 &m); std::istream &operator >> (std::istream &s, Mat4 &m); // --- Inlines ---------------------------------------------------------------- inline Mat4::Mat4() { } inline Mat4::Mat4(Vec3& dir, Vec3& up) { MakeDiag(1.0f); Vec3 z(norm(dir)); Vec3 x(norm(cross(up,z))); Vec3 y(cross(z,x)); row[0]=Vec4(x,0.0f); row[1]=Vec4(y,0.0f); row[2]=Vec4(z,0.0f); } inline Vec4 &Mat4::operator [] (Int i) { CheckRange(i, 0, 4, "(Mat4::[i]) index out of range"); return(row[i]); } inline const Vec4 &Mat4::operator [] (Int i) const { CheckRange(i, 0, 4, "(Mat4::[i]) index out of range"); return(row[i]); } inline Real *Mat4::Ref() const { return((Real *) row); } inline Mat4::Mat4(ZeroOrOne k) { MakeDiag(k); } inline Mat4::Mat4(Block k) { MakeBlock((ZeroOrOne) k); } inline Mat4 &Mat4::operator = (ZeroOrOne k) { MakeDiag(k); return(SELF); } inline Mat4 &Mat4::operator = (Block k) { MakeBlock((ZeroOrOne) k); return(SELF); } inline Mat4 operator * (Real s, const Mat4 &m) { return(m * s); } #ifdef VL_ROW_ORIENT inline Vec3 xform(const Mat4 &m, const Vec3 &v) { return(proj(Vec4(v, 1.0) * m)); } inline Vec4 xform(const Mat4 &m, const Vec4 &v) { return(v * m); } inline Mat4 xform(const Mat4 &m, const Mat4 &n) { return(n * m); } #else inline Vec3 xform(const Mat4 &m, const Vec3 &v) { return(proj(m * Vec4(v, 1.0))); } inline Vec4 xform(const Mat4 &m, const Vec4 &v) { return(m * v); } inline Mat4 xform(const Mat4 &m, const Mat4 &n) { return(m * n); } #endif #endif
[ "BrandonAGr@0fd8bb18-9850-0410-888e-21b4c4172e3e" ]
BrandonAGr@0fd8bb18-9850-0410-888e-21b4c4172e3e
961b478bc29d09c0b6dfdf9a3571acc57deddafa
949633cd7f09a68b19304af14562b29514261ecc
/Geometry/HGCalGeometry/plugins/HGCalGeometryESProducer.cc
b81ed3224278bb262a0080cda4242d838016f9b1
[]
permissive
gsfs/cmssw
eabfe97b0594287ce25556e6b091956b72baad72
fdbcb59c16cafd2a9b56177064bc0b6b93cc51dc
refs/heads/CMSSW_8_0_X
2021-01-21T23:41:29.108786
2019-04-11T16:11:14
2019-04-11T16:11:14
226,406,411
0
0
Apache-2.0
2019-12-06T20:39:25
2019-12-06T20:39:24
null
UTF-8
C++
false
false
2,100
cc
// -*- C++ -*- // // Package: HGCalGeometry // Class: HGCalGeometryESProducer // /**\class HGCalGeometryESProducer HGCalGeometryESProducer.h Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: Sunanda Banerjee // // // system include files #include <memory> #include "boost/shared_ptr.hpp" // user include files #include "FWCore/Framework/interface/ModuleFactory.h" #include "FWCore/Framework/interface/ESProducer.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h" #include "Geometry/CaloTopology/interface/HGCalTopology.h" #include "Geometry/HGCalGeometry/interface/HGCalGeometry.h" #include "Geometry/HGCalGeometry/interface/HGCalGeometryLoader.h" //#define DebugLog // // class decleration // class HGCalGeometryESProducer : public edm::ESProducer { public: HGCalGeometryESProducer( const edm::ParameterSet& iP ); virtual ~HGCalGeometryESProducer() ; typedef boost::shared_ptr<HGCalGeometry> ReturnType; ReturnType produce(const IdealGeometryRecord&); private: // ----------member data --------------------------- std::string name_; }; HGCalGeometryESProducer::HGCalGeometryESProducer(const edm::ParameterSet& iConfig) { name_ = iConfig.getUntrackedParameter<std::string>("Name"); #ifdef DebugLog std::cout <<"constructing HGCalGeometry for " << name_ << std::endl; #endif setWhatProduced(this, name_); } HGCalGeometryESProducer::~HGCalGeometryESProducer() { } // // member functions // // ------------ method called to produce the data ------------ HGCalGeometryESProducer::ReturnType HGCalGeometryESProducer::produce(const IdealGeometryRecord& iRecord ) { edm::ESHandle<HGCalTopology> topo; iRecord.get(name_,topo); HGCalGeometryLoader builder; ReturnType ct(builder.build(*topo)); #ifdef DebugLog std::cout << "Create HGCalGeometry (*topo)" << std::endl; #endif return ct ; } DEFINE_FWK_EVENTSETUP_MODULE(HGCalGeometryESProducer);
8fbd8f540e97625aa986a1eae959136752f44822
6ab3f656c50ce2bde97a49788177ff54af14eb04
/engine/sound/sound.cpp
60608f7ea0b14f6dbfbeedf97b5ea2d70bfeac64
[ "MIT" ]
permissive
spreetin/nesemu
8e0288c1d6f2550aefec7398c6775a137f31f7d9
0d9ca5a26f1ef6d1c99545f30ae52d4f7c093cb1
refs/heads/main
2023-07-22T13:00:36.791209
2021-08-31T08:39:49
2021-08-31T08:39:49
334,097,486
0
0
null
null
null
null
UTF-8
C++
false
false
40
cpp
#include "sound.h" Sound::Sound() { }
fcc9b0c9d29bc743370c0e2c09996c5364dd8920
1bf6613e21a5695582a8e6d9aaa643af4a1a5fa8
/src/chrome/browser/.svn/text-base/upgrade_detector_impl.h.svn-base
178d25d84f6805720f023ddb83a4b01cf987ae37
[ "BSD-3-Clause" ]
permissive
pqrkchqps/MusicBrowser
ef5c9603105b4f4508a430d285334667ec3c1445
03216439d1cc3dae160f440417fcb557bb72f8e4
refs/heads/master
2020-05-20T05:12:14.141094
2013-05-31T02:21:07
2013-05-31T02:21:07
10,395,498
1
2
null
null
null
null
UTF-8
C++
false
false
2,780
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ #define CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ #include "base/memory/weak_ptr.h" #include "base/timer.h" #include "chrome/browser/upgrade_detector.h" template <typename T> struct DefaultSingletonTraits; class UpgradeDetectorImpl : public UpgradeDetector { public: virtual ~UpgradeDetectorImpl(); // Returns the singleton instance. static UpgradeDetectorImpl* GetInstance(); private: friend struct DefaultSingletonTraits<UpgradeDetectorImpl>; UpgradeDetectorImpl(); // Start the timer that will call |CheckForUpgrade()|. void StartTimerForUpgradeCheck(); // Launches a task on the file thread to check if we have the latest version. void CheckForUpgrade(); // Sends out a notification and starts a one shot timer to wait until // notifying the user. void UpgradeDetected(UpgradeAvailable upgrade_available); // Returns true after calling UpgradeDetected if current install is outdated. bool DetectOutdatedInstall(); // The function that sends out a notification (after a certain time has // elapsed) that lets the rest of the UI know we should start notifying the // user that a new version is available. void NotifyOnUpgrade(); // Called on the FILE thread to detect an upgrade. Calls back UpgradeDetected // on the UI thread if so. Although it looks weird, this needs to be a static // method receiving a WeakPtr<> to this object so that we can interrupt // the UpgradeDetected callback before it runs. Having this method non-static // and using |this| directly wouldn't be thread safe. And keeping it as a // non-class function would prevent it from calling UpgradeDetected. static void DetectUpgradeTask( base::WeakPtr<UpgradeDetectorImpl> upgrade_detector); // We periodically check to see if Chrome has been upgraded. base::RepeatingTimer<UpgradeDetectorImpl> detect_upgrade_timer_; // After we detect an upgrade we start a recurring timer to see if enough time // has passed and we should start notifying the user. base::RepeatingTimer<UpgradeDetectorImpl> upgrade_notification_timer_; // We use this factory to create callback tasks for UpgradeDetected. We pass // the task to the actual upgrade detection code, which is in // DetectUpgradeTask. base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_; // True if this build is a dev or canary channel build. bool is_unstable_channel_; // The date the binaries were built. base::Time build_date_; DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); }; #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
d80e8de8478d10cc1bd56d60252b1a51d2cb19ab
c666cb9dfc26969ef24911d4732b3ecc8152f195
/chrome/browser/sharing/sharing_device_registration.h
285b416beb80e413322cf5fbbe825eaea1d178d1
[ "BSD-3-Clause" ]
permissive
winter-txieyyue/chromium
476082ed41ffdfdb70bc6f3e679e124efab232a5
ec74d09215adc6fd83caf2033367df40c26b907c
refs/heads/master
2023-01-12T22:34:40.755233
2019-10-17T02:29:16
2019-10-17T02:29:16
215,688,941
1
0
BSD-3-Clause
2019-10-17T02:45:49
2019-10-17T02:45:49
null
UTF-8
C++
false
false
4,394
h
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SHARING_SHARING_DEVICE_REGISTRATION_H_ #define CHROME_BROWSER_SHARING_SHARING_DEVICE_REGISTRATION_H_ #include <string> #include "base/callback.h" #include "base/gtest_prod_util.h" #include "base/macros.h" #include "base/memory/weak_ptr.h" #include "base/optional.h" #include "components/gcm_driver/instance_id/instance_id.h" #include "components/sync/protocol/device_info_specifics.pb.h" class PrefService; namespace instance_id { class InstanceIDDriver; } class SharingSyncPreference; class VapidKeyManager; enum class SharingDeviceRegistrationResult; // Responsible for registering and unregistering device with // SharingSyncPreference. class SharingDeviceRegistration { public: using RegistrationCallback = base::OnceCallback<void(SharingDeviceRegistrationResult)>; SharingDeviceRegistration(PrefService* pref_service, SharingSyncPreference* prefs, instance_id::InstanceIDDriver* instance_id_driver, VapidKeyManager* vapid_key_manager); virtual ~SharingDeviceRegistration(); // Registers device with sharing sync preferences. Takes a |callback| function // which receives the result of FCM registration for device. virtual void RegisterDevice(RegistrationCallback callback); // Un-registers device with sharing sync preferences. virtual void UnregisterDevice(RegistrationCallback callback); // Returns if device can handle receiving phone numbers for calling. bool IsClickToCallSupported() const; // Returns if device can handle receiving of shared clipboard contents. virtual bool IsSharedClipboardSupported() const; // For testing void SetEnabledFeaturesForTesting( std::set<sync_pb::SharingSpecificFields_EnabledFeatures> enabled_feautres); private: FRIEND_TEST_ALL_PREFIXES(SharingDeviceRegistrationTest, RegisterDeviceTest_Success); // Callback function responsible for validating FCM registration token and // retrieving public encryption key and authentication secret associated with // FCM App ID of Sharing. Also responsible for calling |callback| with // |result| of GetToken. void OnFCMTokenReceived(RegistrationCallback callback, const std::string& authorized_entity, const std::string& fcm_registration_token, instance_id::InstanceID::Result result); // Callback function responsible for deleting FCM registration token // associated with FCM App ID of Sharing. Also responsible for calling // |callback| with |result| of DeleteToken. void OnFCMTokenDeleted(RegistrationCallback callback, instance_id::InstanceID::Result result); // Retrieve encryption info from InstanceID. void RetrieveEncryptionInfo(RegistrationCallback callback, const std::string& authorized_entity, const std::string& fcm_registration_token); // Callback function responsible for saving device registration information in // SharingSyncPreference. void OnEncryptionInfoReceived(RegistrationCallback callback, const std::string& authorized_entity, const std::string& fcm_registration_token, std::string p256dh, std::string auth_secret); // Returns the authorization entity for FCM registration. base::Optional<std::string> GetAuthorizationEntity() const; // Computes and returns a set of all enabled features on the device. std::set<sync_pb::SharingSpecificFields_EnabledFeatures> GetEnabledFeatures() const; PrefService* pref_service_; SharingSyncPreference* sharing_sync_preference_; instance_id::InstanceIDDriver* instance_id_driver_; VapidKeyManager* vapid_key_manager_; base::Optional<std::set<sync_pb::SharingSpecificFields_EnabledFeatures>> enabled_features_testing_value_; base::WeakPtrFactory<SharingDeviceRegistration> weak_ptr_factory_{this}; DISALLOW_COPY_AND_ASSIGN(SharingDeviceRegistration); }; #endif // CHROME_BROWSER_SHARING_SHARING_DEVICE_REGISTRATION_H_
d287d7c594f1cfe157cba3e622423d8a96967e84
18d3e3f0f8e2e66a8e85306ad1eae3132aa31b98
/Iridium/Iridium/src/CommandParser.cpp
b724cd8cf5a99c80a5de69d7d869fcc5c1a5012a
[ "MIT" ]
permissive
Dimension4/CppCliInterop
304829c7658d9ee97166c4e8a60e5730003a3eb1
56a72b7a00c2c439c9fc7c0881b45b5473d5aa87
refs/heads/master
2020-09-10T19:17:39.150967
2019-11-26T20:51:10
2019-11-26T20:51:10
221,810,837
1
0
null
null
null
null
UTF-8
C++
false
false
3,096
cpp
#include <iridium/CommandParser.hpp> #include <stack> #include <array> #include <utility> namespace ir { static constexpr auto g_quoteLiteral = '"'; static constexpr std::string_view g_separator = " \t\n"; static constexpr auto g_scopeLiterals = std::array { std::pair{'(', ')'}, std::pair{'{', '}'}, std::pair{'[', ']'}, }; static constexpr bool isSeparator(char c) { return g_separator.find(c) != std::string_view::npos; }; std::string_view sanatizeCommand(std::string_view command) noexcept { auto prevSize = command.size() + 1; while (!command.empty() && prevSize > command.size()) { prevSize = command.size(); for (auto&& [open, close] : g_scopeLiterals) { if (command.front() == open) { command.remove_prefix(1); command.remove_suffix(1); } } if (isSeparator(command.front())) command.remove_prefix(1); if (isSeparator(command.back())) command.remove_suffix(1); if (command.front() == g_quoteLiteral) { command.remove_prefix(1); command.remove_suffix(1); break; } } return command; } std::optional<std::vector<std::string_view>> parseCommand(std::string_view input) noexcept { using namespace std::literals; std::stack<char> scopes; bool inQuote = false; std::vector<std::string_view> result; std::size_t elementStart = 0; for (std::size_t i = 0; i < input.length(); i++) { auto c = input[i]; if (isSeparator(c) && elementStart == i) { elementStart = i + 1; } else if (isSeparator(c) && !inQuote && scopes.empty()) { result.push_back(sanatizeCommand(input.substr(elementStart, i - elementStart))); elementStart = i + 1; } else if (c == g_quoteLiteral) { inQuote = !inQuote; } else if (!inQuote) { for (auto&& [open, close] : g_scopeLiterals) { if (c == open) { scopes.push(c); break; } else if (c == close) { if (scopes.empty() || scopes.top() != open) return std::nullopt; else scopes.pop(); break; } } } } if (elementStart < input.length()) result.push_back(sanatizeCommand(input.substr(elementStart))); return inQuote || !scopes.empty() ? std::nullopt : std::optional(std::move(result)); } }
f393495f4c6e3c76d345a3a7ebfecfdd83435c3d
06df1e57108d34d899dc204ac5f1423d6e2507fe
/Video/Dec/Core/H264VDec/Main/H264VDec/H264VDecHP/get_block_mmx.cpp
390a4fe8fdf4cb95f24beae5c237766a932930fb
[ "MIT" ]
permissive
goodspeed24e/2011Corel
dcf51f34b153f96a3f3904a9249cfcd56d5ff4aa
4efb585a589ea5587a877f4184493b758fa6f9b2
refs/heads/master
2021-01-01T17:28:23.541299
2015-03-16T15:02:11
2015-03-16T15:04:58
32,332,498
2
6
null
null
null
null
UTF-8
C++
false
false
312,926
cpp
#include "global.h" #ifdef H264_ENABLE_INTRINSICS #include <mmintrin.h> #include <xmmintrin.h> #include <emmintrin.h> #include "get_block.h" // Disable "No EMMS at end of function '<function name>'" #ifdef _MSC_VER #pragma warning ( disable : 4799 ) #endif DO_ALIGN(16,const static short ncoeff_16[8]) = {16,16,16,16,16,16,16,16}; DO_ALIGN(16,const static int ncoeff_512[4]) = {512,512,512,512}; void get_block_4xh_p00_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { imgpel *pblock = &block[0][0]; for(int i = height; i > 0; i-=4) { *(unsigned long*)(pblock+0*LUMA_BLOCK_SIZE) = *(unsigned long*)(pSrc+0*stride); *(unsigned long*)(pblock+1*LUMA_BLOCK_SIZE) = *(unsigned long*)(pSrc+1*stride); *(unsigned long*)(pblock+2*LUMA_BLOCK_SIZE) = *(unsigned long*)(pSrc+2*stride); *(unsigned long*)(pblock+3*LUMA_BLOCK_SIZE) = *(unsigned long*)(pSrc+3*stride); pSrc += 4*stride; pblock += 4*LUMA_BLOCK_SIZE; } } void get_block_4xh_p01_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-w2); DWORD* pIn1 = (DWORD*) (src-w1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+w1); DWORD* pIn4 = (DWORD*) (src+w2); DWORD* pIn5 = (DWORD*) (src+w3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _m_packuswb(mm2,mm2); tmp = _m_pavgb(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p02_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-w2); DWORD* pIn1 = (DWORD*) (src-w1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+w1); DWORD* pIn4 = (DWORD*) (src+w2); DWORD* pIn5 = (DWORD*) (src+w3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p03_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-w2); DWORD* pIn1 = (DWORD*) (src-w1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+w1); DWORD* pIn4 = (DWORD*) (src+w2); DWORD* pIn5 = (DWORD*) (src+w3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp); mm3 = _m_packuswb(mm3,mm3); tmp = _m_pavgb(tmp,mm3); *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p10_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _m_packuswb(mm2,mm2); tmp = _m_pavgb(tmp,mm2); *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p11_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *pOut = _m_to_int(tmp); src += w1; } src = pSrc; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-w2); DWORD* pIn1 = (DWORD*) (src-w1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+w1); DWORD* pIn4 = (DWORD*) (src+w2); DWORD* pIn5 = (DWORD*) (src+w3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm6 = _m_from_int(*pOut); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); mm6 = _mm_unpacklo_pi8(mm6, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 mm6 = _m_packuswb(mm6,mm6); tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _m_pavgb(mm6,tmp); *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p12_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short luma_res[8][9]; int i, j; int tmp_res[8][9]; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; const __m64 coeff_512 = *(__m64 *) ncoeff_512; for (j = 0; j < height; j++) { for(i = 0; i < 5; i += 4) { DWORD* pIn0 = (DWORD*) (src-w2-2+i); DWORD* pIn1 = (DWORD*) (src-w1-2+i); DWORD* pIn2 = (DWORD*) (src-2+i); DWORD* pIn3 = (DWORD*) (src+w1-2+i); DWORD* pIn4 = (DWORD*) (src+w2-2+i); DWORD* pIn5 = (DWORD*) (src+w3-2+i); __m64* pOut = (__m64*) &luma_res[j][i]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(nNull,tmp); mm1 = _mm_unpackhi_pi16(nNull,tmp); mm0 = _m_psradi(mm0,16); mm1 = _m_psradi(mm1,16); tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i+0]) = mm0; *((__m64*)&tmp_res[j][i+2]) = mm1; *pOut = tmp; } tmp_res[j][8] = q_interpol(src[6-w2],src[6-w1], src[6], src[6+w1], src[6+w2], src[6+w3]); src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j][1]); mm2 = *((__m64*)&tmp_res[j][2]); mm3 = *((__m64*)&tmp_res[j][3]); mm4 = *((__m64*)&tmp_res[j][4]); mm5 = *((__m64*)&tmp_res[j][5]); DWORD* pOut = (DWORD*) &block[j][0]; tmp = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_pslldi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_paddd(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psradi(_m_paddd(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j][3]); mm2 = *((__m64*)&tmp_res[j][4]); mm3 = *((__m64*)&tmp_res[j][5]); mm4 = *((__m64*)&tmp_res[j][6]); mm5 = *((__m64*)&tmp_res[j][7]); tmp1 = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_pslldi(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_paddd(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _m_psradi(_m_paddd(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _m_packssdw(tmp,tmp1); mm0 = *((__m64*)&luma_res[j][2]); //__fast_iclip0_255(((tmp_res[j][i+2]+16)>>5)) tmp = _m_packuswb(tmp,tmp); mm0 = _m_packuswb(mm0,mm0); tmp = _m_pavgb(tmp,mm0); *pOut = _m_to_int(tmp); } } void get_block_4xh_p13_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc+w1; __m64 mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *pOut = _m_to_int(tmp); src += w1; } src = pSrc; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-w2); DWORD* pIn1 = (DWORD*) (src-w1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+w1); DWORD* pIn4 = (DWORD*) (src+w2); DWORD* pIn5 = (DWORD*) (src+w3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm6 = _m_from_int(*pOut); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); mm6 = _mm_unpacklo_pi8(mm6, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 mm6 = _m_packuswb(mm6,mm6); tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _m_pavgb(mm6,tmp); *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p20_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p21_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short luma_res[13][4]; int j; int tmp_res[13][4]; const int w1 = stride; src = pSrc-(2*w1); __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; const __m64 coeff_512 = *(__m64 *) ncoeff_512; for (j = 0; j < height+5; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); __m64* pOut = (__m64*) &luma_res[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(nNull,tmp); mm1 = _mm_unpackhi_pi16(nNull,tmp); mm0 = _m_psradi(mm0,16); mm1 = _m_psradi(mm1,16); tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][0]) = mm0; *((__m64*)&tmp_res[j][2]) = mm1; *pOut = tmp; src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); DWORD* pOut = (DWORD*) &block[j][0]; tmp = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_pslldi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_paddd(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psradi(_m_paddd(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_pslldi(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_paddd(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _m_psradi(_m_paddd(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _m_packssdw(tmp,tmp1);//check mm0 = *((__m64*)&luma_res[j+2][0]); //__fast_iclip0_255(((tmp_res[j+2][i]+16)>>5)) tmp = _m_packuswb(tmp,tmp); mm0 = _m_packuswb(mm0,mm0); tmp = _m_pavgb(tmp,mm0); *pOut = _m_to_int(tmp); } } void get_block_4xh_p22_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; int tmp_res[13][4]; const int w1 = stride; src = pSrc - (2*w1); __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_512 = *(__m64 *) ncoeff_512; for (j = 0; j < height+5; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(nNull,tmp); mm1 = _mm_unpackhi_pi16(nNull,tmp); mm0 = _m_psradi(mm0,16); mm1 = _m_psradi(mm1,16); *((__m64*)&tmp_res[j][0]) = mm0; *((__m64*)&tmp_res[j][2]) = mm1; src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); DWORD* pOut = (DWORD*) &block[j][0]; tmp = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_pslldi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_paddd(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psradi(_m_paddd(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_pslldi(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_paddd(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _m_psradi(_m_paddd(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _m_packssdw(tmp,tmp1);//check tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) *pOut = _m_to_int(tmp); } } void get_block_4xh_p23_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { short luma_res[13][4]; int j; int tmp_res[13][4]; byte *src; const int w1 = stride; src = pSrc -(2*w1); __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; const __m64 coeff_512 = *(__m64 *) ncoeff_512; for (j = 0; j < height+5; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); __m64* pOut = (__m64*) &luma_res[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(nNull,tmp); mm1 = _mm_unpackhi_pi16(nNull,tmp); mm0 = _m_psradi(mm0,16); mm1 = _m_psradi(mm1,16); tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][0]) = mm0; *((__m64*)&tmp_res[j][2]) = mm1; *pOut = tmp; src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); DWORD* pOut = (DWORD*) &block[j][0]; tmp = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_pslldi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_paddd(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psradi(_m_paddd(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_pslldi(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_paddd(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _m_psradi(_m_paddd(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _m_packssdw(tmp,tmp1);//check mm0 = *((__m64*)&luma_res[j+3][0]); //__fast_iclip0_255(((tmp_res[j+2][i]+16)>>5)) tmp = _m_packuswb(tmp,tmp); mm0 = _m_packuswb(mm0,mm0); tmp = _m_pavgb(tmp,mm0); *pOut = _m_to_int(tmp); } } void get_block_4xh_p30_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 mm3 = _m_packuswb(mm3,mm3); tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _m_pavgb(mm3,tmp); *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p31_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *pOut = _m_to_int(tmp); src += w1; } src = pSrc + 1; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-w2); DWORD* pIn1 = (DWORD*) (src-w1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+w1); DWORD* pIn4 = (DWORD*) (src+w2); DWORD* pIn5 = (DWORD*) (src+w3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm6 = _m_from_int(*pOut); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); mm6 = _mm_unpacklo_pi8(mm6, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm6 = _m_packuswb(mm6,mm6); tmp = _m_pavgb(mm6,tmp); *pOut = _m_to_int(tmp); src += w1; } } void get_block_4xh_p32_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short luma_res[8][9]; int i, j; int tmp_res[8][9]; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; const __m64 coeff_512 = *(__m64 *) ncoeff_512; for (j = 0; j < height; j++) { for(i = 0; i < 5; i += 4) { DWORD* pIn0 = (DWORD*) (src-w2-2+i); DWORD* pIn1 = (DWORD*) (src-w1-2+i); DWORD* pIn2 = (DWORD*) (src-2+i); DWORD* pIn3 = (DWORD*) (src+w1-2+i); DWORD* pIn4 = (DWORD*) (src+w2-2+i); DWORD* pIn5 = (DWORD*) (src+w3-2+i); __m64* pOut = (__m64*) &luma_res[j][i]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(nNull,tmp); mm1 = _mm_unpackhi_pi16(nNull,tmp); mm0 = _m_psradi(mm0,16); mm1 = _m_psradi(mm1,16); tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i+0]) = mm0; *((__m64*)&tmp_res[j][i+2]) = mm1; *pOut = tmp; } tmp_res[j][8] = q_interpol(src[6-w2],src[6-w1], src[6], src[6+w1], src[6+w2], src[6+w3]); src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j][1]); mm2 = *((__m64*)&tmp_res[j][2]); mm3 = *((__m64*)&tmp_res[j][3]); mm4 = *((__m64*)&tmp_res[j][4]); mm5 = *((__m64*)&tmp_res[j][5]); DWORD* pOut = (DWORD*) &block[j][0]; tmp = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_pslldi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddd(_m_paddd(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psradi(_m_paddd(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j][3]); mm2 = *((__m64*)&tmp_res[j][4]); mm3 = *((__m64*)&tmp_res[j][5]); mm4 = *((__m64*)&tmp_res[j][6]); mm5 = *((__m64*)&tmp_res[j][7]); tmp1 = _m_psubd(_m_pslldi(_m_paddd(mm2,mm3),2),_m_paddd(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_pslldi(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _m_paddd(_m_paddd(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _m_psradi(_m_paddd(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _m_packssdw(tmp,tmp1); mm0 = *((__m64*)&luma_res[j][3]); //__fast_iclip0_255(((tmp_res[j][i+3]+16)>>5)) tmp = _m_packuswb(tmp,tmp); mm0 = _m_packuswb(mm0,mm0); tmp = _m_pavgb(tmp,mm0); *pOut = _m_to_int(tmp); } } void get_block_4xh_p33_mmx(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc + w1; __m64 mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m64 nNull = _mm_setzero_si64(); const __m64 coeff_16 = *(__m64 *) ncoeff_16; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-2); DWORD* pIn1 = (DWORD*) (src-1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+1); DWORD* pIn4 = (DWORD*) (src+2); DWORD* pIn5 = (DWORD*) (src+3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *pOut = _m_to_int(tmp); src += w1; } src = pSrc + 1; for (j = 0; j < height; j++) { DWORD* pIn0 = (DWORD*) (src-w2); DWORD* pIn1 = (DWORD*) (src-w1); DWORD* pIn2 = (DWORD*) (src); DWORD* pIn3 = (DWORD*) (src+w1); DWORD* pIn4 = (DWORD*) (src+w2); DWORD* pIn5 = (DWORD*) (src+w3); DWORD* pOut = (DWORD*) &block[j][0]; mm0 = _m_from_int(*pIn0); mm1 = _m_from_int(*pIn1); mm2 = _m_from_int(*pIn2); mm3 = _m_from_int(*pIn3); mm4 = _m_from_int(*pIn4); mm5 = _m_from_int(*pIn5); mm6 = _m_from_int(*pOut); mm0 = _mm_unpacklo_pi8(mm0, nNull); mm1 = _mm_unpacklo_pi8(mm1, nNull); mm2 = _mm_unpacklo_pi8(mm2, nNull); mm3 = _mm_unpacklo_pi8(mm3, nNull); mm4 = _mm_unpacklo_pi8(mm4, nNull); mm5 = _mm_unpacklo_pi8(mm5, nNull); mm6 = _mm_unpacklo_pi8(mm6, nNull); tmp = _m_psubw(_m_psllwi(_m_paddw(mm2,mm3),2),_m_paddw(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_psllwi(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _m_paddw(_m_paddw(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _m_psrawi(_m_paddw(tmp,coeff_16),5);//(result_block+16)>>5 mm6 = _m_packuswb(mm6,mm6); tmp = _m_packuswb(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _m_pavgb(mm6,tmp); *pOut = _m_to_int(tmp); src += w1; } } // The SSE2 code of get_block_8xh_pxx void get_block_8xh_p00_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { imgpel *pblock = &block[0][0]; for(int i = height; i > 0; i-=4) { //*((unsigned long long*)&block[i][0]) = *((unsigned long long*)src); *(__m64*)(pblock+0*LUMA_BLOCK_SIZE) = *(__m64*)&pSrc[0*stride]; *(__m64*)(pblock+1*LUMA_BLOCK_SIZE) = *(__m64*)&pSrc[1*stride]; *(__m64*)(pblock+2*LUMA_BLOCK_SIZE) = *(__m64*)&pSrc[2*stride]; *(__m64*)(pblock+3*LUMA_BLOCK_SIZE) = *(__m64*)&pSrc[3*stride]; pSrc += 4*stride; pblock += 4*LUMA_BLOCK_SIZE; } } void get_block_8xh_p00_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { imgpel *pblock = &block[0][0]; for(int i = height; i > 0; i-=4) { //*((unsigned long long*)&block[i][0]) = *((unsigned long long*)src); *(__m64*)(pblock+0*LUMA_BLOCK_SIZE) = *(__m64*)&pSrc[0*stride]; *(__m64*)(pblock+1*LUMA_BLOCK_SIZE) = *(__m64*)&pSrc[1*stride]; *(__m64*)(pblock+2*LUMA_BLOCK_SIZE) = *(__m64*)&pSrc[2*stride]; *(__m64*)(pblock+3*LUMA_BLOCK_SIZE) = *(__m64*)&pSrc[3*stride]; pSrc += 4*stride; pblock += 4*LUMA_BLOCK_SIZE; } } void get_block_8xh_p01_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p01_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp1 = _mm_packus_epi16(mm2,mm2); tmp = _mm_avg_epu8(tmp,tmp1); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[0][0], tmp); src += w1; for (j = 1; j < height; j++) { mm0 = mm1; mm1 = mm2; mm2 = mm3; mm3 = mm4; mm4 = mm5; mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp1 = _mm_packus_epi16(mm2,mm2); tmp = _mm_avg_epu8(tmp,tmp1); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p02_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p02_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[0][0], tmp); src += w1; for (j = 1; j < height; j++) { mm0 = mm1; mm1 = mm2; mm2 = mm3; mm3 = mm4; mm4 = mm5; mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p03_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p03_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp1 = _mm_packus_epi16(mm3,mm3); tmp = _mm_avg_epu8(tmp,tmp1); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[0][0], tmp); src += w1; for (j = 1; j < height; j++) { mm0 = mm1; mm1 = mm2; mm2 = mm3; mm3 = mm4; mm4 = mm5; mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp1 = _mm_packus_epi16(mm3,mm3); tmp = _mm_avg_epu8(tmp,tmp1); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p10_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); *((__m64*)&block[j][0]) = mm2; tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp1 = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi16(_mm_slli_pi16(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp1,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp1);//__fast_iclip0_255(((result+16)>>5)) mm4 = *((__m64*)&block[j][0]); mm3 = _mm_packs_pu16(mm4,mm2); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((__m64*)&block[j][0]) = tmp; src += w1; } } void get_block_8xh_p10_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packus_epi16(mm2,mm2); tmp = _mm_avg_epu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p11_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } src = pSrc; for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][0]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][4]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p11_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } src = pSrc; mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm6 = _mm_loadl_epi64(((__m128i*)&block[0][0])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[0][0], tmp); src += w1; for (j = 1; j < height; j++) { mm0 = mm1; mm1 = mm2; mm2 = mm3; mm3 = mm4; mm4 = mm5; mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm5 = _mm_unpacklo_epi8(mm5, Null); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][0])); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p12_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short *tmp_src; short *luma_src; int i,j; DO_ALIGN(16,short luma_res[16][16]); DO_ALIGN(16,short tmp_res[16][16]); const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 pIn0, pIn1; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height; j++) { for(i = 0; i < 10; i += 8) { mm0 = *((__m64*)(src-w2-2+i)); mm1 = *((__m64*)(src-w1-2+i)); mm2 = *((__m64*)(src-2+i)); mm3 = *((__m64*)(src+w1-2+i)); mm4 = *((__m64*)(src+w2-2+i)); mm5 = *((__m64*)(src+w3-2+i)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i]) = tmp; *((__m64*)&luma_res[j][i]) = tmp1; mm0 = *((__m64*)(src-w2-2+i)); mm1 = *((__m64*)(src-w1-2+i)); mm2 = *((__m64*)(src-2+i)); mm3 = *((__m64*)(src+w1-2+i)); mm4 = *((__m64*)(src+w2-2+i)); mm5 = *((__m64*)(src+w3-2+i)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i+4]) = tmp; *((__m64*)&luma_res[j][i+4]) = tmp1; } src += w1; } tmp_src = &tmp_res[0][0]; luma_src = &luma_res[0][2]; for (j = 0; j < height; j++) { mm0 = *((__m64*)(tmp_src)); mm1 = *((__m64*)(tmp_src+1)); mm2 = *((__m64*)(tmp_src+2)); mm3 = *((__m64*)(tmp_src+3)); mm4 = *((__m64*)(tmp_src+4)); mm5 = *((__m64*)(tmp_src+5)); mm0 = _mm_unpacklo_pi16(Null, mm0); mm1 = _mm_unpacklo_pi16(Null, mm1); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+6)); mm3 = *((__m64*)(tmp_src+7)); mm4 = *((__m64*)(tmp_src+8)); mm5 = *((__m64*)(tmp_src+9)); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)(tmp_src)); mm1 = *((__m64*)(tmp_src+1)); mm2 = *((__m64*)(tmp_src+2)); mm3 = *((__m64*)(tmp_src+3)); mm4 = *((__m64*)(tmp_src+4)); mm5 = *((__m64*)(tmp_src+5)); mm0 = _mm_unpackhi_pi16(Null, mm0); mm1 = _mm_unpackhi_pi16(Null, mm1); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+6)); mm3 = *((__m64*)(tmp_src+7)); mm4 = *((__m64*)(tmp_src+8)); mm5 = *((__m64*)(tmp_src+9)); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); tmp1 = *((__m64*)&block[j][0]); mm4 = _mm_unpacklo_pi32(tmp1, tmp); mm5 = _mm_unpackhi_pi32(tmp1, tmp); pIn0 = *((__m64*) (luma_src)); pIn1 = *((__m64*) (luma_src+4)); tmp = _mm_packs_pu16(mm4,mm5);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(pIn0,pIn1); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][0]) = tmp; tmp_src += 16; luma_src += 16; } } void get_block_8xh_p12_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short *tmp_src; short *luma_src; int i,j; DO_ALIGN(16,short luma_res[16][16]); DO_ALIGN(16,short tmp_res[16][16]); const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 pIn0, pIn1; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height; j++) { for(i = 0; i < 10; i += 8) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2-2+i))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1-2+i))); mm2 = _mm_loadl_epi64(((__m128i*) (src-2+i))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1-2+i))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2-2+i))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3-2+i))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 _mm_store_si128(((__m128i*)&tmp_res[j][i]),tmp); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][i]),tmp); } src += w1; } tmp_src = &tmp_res[0][0]; luma_src = &luma_res[0][2]; for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (tmp_src))); mm1 = _mm_loadl_epi64(((__m128i*) (tmp_src+1))); mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+2))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+3))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+4))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+5))); mm0 = _mm_unpacklo_epi16(Null, mm0); mm1 = _mm_unpacklo_epi16(Null, mm1); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+6))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+7))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+8))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+9))); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1); pIn0 = *((__m64*) (luma_src)); pIn1 = *((__m64*) (luma_src+4)); mm0 = _mm_setr_epi64(pIn0,pIn1); tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][0], tmp); tmp_src += 16; luma_src += 16; } } void get_block_8xh_p13_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc+w1; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } src = pSrc; for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][0]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][4]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p13_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc+w1; __m128i mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } src = pSrc; mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm6 = _mm_loadl_epi64(((__m128i*)&block[0][0])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[0][0], tmp); src += w1; for (j = 1; j < height; j++) { mm0 = mm1; mm1 = mm2; mm2 = mm3; mm3 = mm4; mm4 = mm5; mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm5 = _mm_unpacklo_epi8(mm5, Null); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][0])); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p20_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p20_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p21_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; DO_ALIGN(16, short luma_res[21][8]); DO_ALIGN(16, int tmp_res[21][8]); const int w1 = stride; src = pSrc-(2*w1); __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][0]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][2]) = mm0; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][0]) = tmp; mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm1 = _mm_unpacklo_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][4]) = mm1; mm1 = _mm_unpackhi_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][6]) = mm1; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][4]) = tmp; src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm1 = _mm_packs_pi32(tmp,tmp1);//check *((__m64*)&block[j][0]) = mm1; mm0 = *((__m64*)&tmp_res[j][4]); mm1 = *((__m64*)&tmp_res[j+1][4]); mm2 = *((__m64*)&tmp_res[j+2][4]); mm3 = *((__m64*)&tmp_res[j+3][4]); mm4 = *((__m64*)&tmp_res[j+4][4]); mm5 = *((__m64*)&tmp_res[j+5][4]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][6]); mm1 = *((__m64*)&tmp_res[j+1][6]); mm2 = *((__m64*)&tmp_res[j+2][6]); mm3 = *((__m64*)&tmp_res[j+3][6]); mm4 = *((__m64*)&tmp_res[j+4][6]); mm5 = *((__m64*)&tmp_res[j+5][6]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm2 = _mm_packs_pi32(tmp,tmp1);//check mm1 = *((__m64*)&block[j][0]); mm0 = *((__m64*)&luma_res[j+2][0]); mm3 = *((__m64*)&luma_res[j+2][4]); tmp = _mm_packs_pu16(mm1,mm2);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(mm0,mm3); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][0]) = tmp; } } void get_block_8xh_p21_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; DO_ALIGN(16, short luma_res[21][8]); DO_ALIGN(16, int tmp_res[21][8]); const int w1 = stride; src = pSrc-(2*w1); __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][0]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][4]),mm1); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][0]),tmp); src += w1; } for (j = 0; j < height; j++) { mm0 = _mm_load_si128((__m128i*)&tmp_res[j][0]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][0]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][0]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][0]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][0]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][0]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][4]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][4]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][4]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][4]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][4]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][4]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1);//check mm0 = _mm_load_si128((__m128i*)&luma_res[j+2][0]); //__fast_iclip0_255(((tmp_res[j+2][i]+16)>>5)) tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][0], tmp); } } void get_block_8xh_p22_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; DO_ALIGN(16, int tmp_res[21][8]); const int w1 = stride; src = pSrc - (2*w1); __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][0]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][2]) = mm0; mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][4]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][6]) = mm0; src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)&tmp_res[j][4]); mm1 = *((__m64*)&tmp_res[j+1][4]); mm2 = *((__m64*)&tmp_res[j+2][4]); mm3 = *((__m64*)&tmp_res[j+3][4]); mm4 = *((__m64*)&tmp_res[j+4][4]); mm5 = *((__m64*)&tmp_res[j+5][4]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][6]); mm1 = *((__m64*)&tmp_res[j+1][6]); mm2 = *((__m64*)&tmp_res[j+2][6]); mm3 = *((__m64*)&tmp_res[j+3][6]); mm4 = *((__m64*)&tmp_res[j+4][6]); mm5 = *((__m64*)&tmp_res[j+5][6]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp1 = _mm_packs_pi32(tmp,tmp1); tmp = *((__m64*)&block[j][0]); tmp = _mm_packs_pu16(tmp,tmp1);//__fast_iclip0_255((result_block+512)>>10) *((__m64*)&block[j][0]) = tmp; } } void get_block_8xh_p22_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; DO_ALIGN(16, int tmp_res[21][8]); const int w1 = stride; src = pSrc - (2*w1); __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][0]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][4]),mm1); src += w1; } for (j = 0; j < height; j++) { mm0 = _mm_load_si128((__m128i*)&tmp_res[j][0]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][0]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][0]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][0]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][0]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][0]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][4]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][4]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][4]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][4]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][4]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][4]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1);//check tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) _mm_storel_epi64((__m128i*)&block[j][0], tmp); } } void get_block_8xh_p23_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; DO_ALIGN(16, short luma_res[21][8]); DO_ALIGN(16, int tmp_res[21][8]); byte *src; const int w1 = stride; src = pSrc -(2*w1); __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][0]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][2]) = mm0; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][0]) = tmp; mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm1 = _mm_unpacklo_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][4]) = mm1; mm1 = _mm_unpackhi_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][6]) = mm1; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][4]) = tmp; src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm1 = _mm_packs_pi32(tmp,tmp1);//check *((__m64*)&block[j][0]) = mm1; mm0 = *((__m64*)&tmp_res[j][4]); mm1 = *((__m64*)&tmp_res[j+1][4]); mm2 = *((__m64*)&tmp_res[j+2][4]); mm3 = *((__m64*)&tmp_res[j+3][4]); mm4 = *((__m64*)&tmp_res[j+4][4]); mm5 = *((__m64*)&tmp_res[j+5][4]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][6]); mm1 = *((__m64*)&tmp_res[j+1][6]); mm2 = *((__m64*)&tmp_res[j+2][6]); mm3 = *((__m64*)&tmp_res[j+3][6]); mm4 = *((__m64*)&tmp_res[j+4][6]); mm5 = *((__m64*)&tmp_res[j+5][6]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm2 = _mm_packs_pi32(tmp,tmp1);//check mm1 = *((__m64*)&block[j][0]); mm0 = *((__m64*)&luma_res[j+3][0]); mm3 = *((__m64*)&luma_res[j+3][4]); tmp = _mm_packs_pu16(mm1,mm2);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(mm0,mm3); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][0]) = tmp; } } void get_block_8xh_p23_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; DO_ALIGN(16, short luma_res[21][8]); DO_ALIGN(16, int tmp_res[21][8]); byte *src; const int w1 = stride; src = pSrc -(2*w1); __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][0]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][4]),mm1); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][0]),tmp); src += w1; } for (j = 0; j < height; j++) { mm0 = _mm_load_si128((__m128i*)&tmp_res[j][0]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][0]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][0]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][0]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][0]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][0]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][4]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][4]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][4]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][4]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][4]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][4]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1);//check mm0 = _mm_load_si128((__m128i*)&luma_res[j+3][0]); //__fast_iclip0_255(((tmp_res[j+2][i]+16)>>5)) tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][0], tmp); } } void get_block_8xh_p30_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p30_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packus_epi16(mm3,mm3); tmp = _mm_avg_epu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p31_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } src = pSrc + 1; for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][0]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][4]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p31_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } src = pSrc + 1; mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm6 = _mm_loadl_epi64(((__m128i*)&block[0][0])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[0][0], tmp); src += w1; for (j = 1; j < height; j++) { mm0 = mm1; mm1 = mm2; mm2 = mm3; mm3 = mm4; mm4 = mm5; mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm5 = _mm_unpacklo_epi8(mm5, Null); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][0])); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } void get_block_8xh_p32_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short *tmp_src; short *luma_src; int i,j; DO_ALIGN(16, short luma_res[16][16]); DO_ALIGN(16, short tmp_res[16][16]); const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 pIn0, pIn1; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height; j++) { for(i = 0; i < 10; i += 8) { mm0 = *((__m64*)(src-w2-2+i)); mm1 = *((__m64*)(src-w1-2+i)); mm2 = *((__m64*)(src-2+i)); mm3 = *((__m64*)(src+w1-2+i)); mm4 = *((__m64*)(src+w2-2+i)); mm5 = *((__m64*)(src+w3-2+i)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i]) = tmp; *((__m64*)&luma_res[j][i]) = tmp1; mm0 = *((__m64*)(src-w2-2+i)); mm1 = *((__m64*)(src-w1-2+i)); mm2 = *((__m64*)(src-2+i)); mm3 = *((__m64*)(src+w1-2+i)); mm4 = *((__m64*)(src+w2-2+i)); mm5 = *((__m64*)(src+w3-2+i)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i+4]) = tmp; *((__m64*)&luma_res[j][i+4]) = tmp1; } src += w1; } tmp_src = &tmp_res[0][0]; luma_src = &luma_res[0][3]; for (j = 0; j < height; j++) { mm0 = *((__m64*)(tmp_src)); mm1 = *((__m64*)(tmp_src+1)); mm2 = *((__m64*)(tmp_src+2)); mm3 = *((__m64*)(tmp_src+3)); mm4 = *((__m64*)(tmp_src+4)); mm5 = *((__m64*)(tmp_src+5)); mm0 = _mm_unpacklo_pi16(Null, mm0); mm1 = _mm_unpacklo_pi16(Null, mm1); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+6)); mm3 = *((__m64*)(tmp_src+7)); mm4 = *((__m64*)(tmp_src+8)); mm5 = *((__m64*)(tmp_src+9)); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)(tmp_src)); mm1 = *((__m64*)(tmp_src+1)); mm2 = *((__m64*)(tmp_src+2)); mm3 = *((__m64*)(tmp_src+3)); mm4 = *((__m64*)(tmp_src+4)); mm5 = *((__m64*)(tmp_src+5)); mm0 = _mm_unpackhi_pi16(Null, mm0); mm1 = _mm_unpackhi_pi16(Null, mm1); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+6)); mm3 = *((__m64*)(tmp_src+7)); mm4 = *((__m64*)(tmp_src+8)); mm5 = *((__m64*)(tmp_src+9)); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); tmp1 = *((__m64*)&block[j][0]); mm4 = _mm_unpacklo_pi32(tmp1, tmp); mm5 = _mm_unpackhi_pi32(tmp1, tmp); pIn0 = *((__m64*) (luma_src)); pIn1 = *((__m64*) (luma_src+4)); tmp = _mm_packs_pu16(mm4,mm5);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(pIn0,pIn1); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][0]) = tmp; tmp_src += 16; luma_src += 16; } } void get_block_8xh_p32_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short *tmp_src; short *luma_src; int i,j; DO_ALIGN(16, short luma_res[16][16]); DO_ALIGN(16, short tmp_res[16][16]); const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 pIn0, pIn1; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height; j++) { for(i = 0; i < 10; i += 8) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2-2+i))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1-2+i))); mm2 = _mm_loadl_epi64(((__m128i*) (src-2+i))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1-2+i))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2-2+i))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3-2+i))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 _mm_store_si128(((__m128i*)&tmp_res[j][i]),tmp); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][i]),tmp); } src += w1; } tmp_src = &tmp_res[0][0]; luma_src = &luma_res[0][3]; for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (tmp_src))); mm1 = _mm_loadl_epi64(((__m128i*) (tmp_src+1))); mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+2))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+3))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+4))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+5))); mm0 = _mm_unpacklo_epi16(Null, mm0); mm1 = _mm_unpacklo_epi16(Null, mm1); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+6))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+7))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+8))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+9))); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1); pIn0 = *((__m64*) (luma_src)); pIn1 = *((__m64*) (luma_src+4)); mm0 = _mm_setr_epi64(pIn0,pIn1); tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][0], tmp); tmp_src += 16; luma_src += 16; } } void get_block_8xh_p33_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc + w1; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } src = pSrc + 1; for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][0]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][4]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); src += w1; } } void get_block_8xh_p33_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc + w1; __m128i mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } src = pSrc + 1; mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm6 = _mm_loadl_epi64(((__m128i*)&block[0][0])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[0][0], tmp); src += w1; for (j = 1; j < height; j++) { mm0 = mm1; mm1 = mm2; mm2 = mm3; mm3 = mm4; mm4 = mm5; mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm5 = _mm_unpacklo_epi8(mm5, Null); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][0])); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); src += w1; } } // The SSE2 code of get_block_16xh_pxx void get_block_16xh_p00_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { imgpel *pblock = (imgpel *) &block[0][0]; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7; for(int i = height; i > 0; i-=8) { mm0 = *((__m64*)(pSrc+0*stride)); mm1 = *((__m64*)(pSrc+1*stride)); mm2 = *((__m64*)(pSrc+2*stride)); mm3 = *((__m64*)(pSrc+3*stride)); mm4 = *((__m64*)(pSrc+4*stride)); mm5 = *((__m64*)(pSrc+5*stride)); mm6 = *((__m64*)(pSrc+6*stride)); mm7 = *((__m64*)(pSrc+7*stride)); *((__m64*)(pblock+0*LUMA_BLOCK_SIZE)) = mm0; *((__m64*)(pblock+1*LUMA_BLOCK_SIZE)) = mm1; *((__m64*)(pblock+2*LUMA_BLOCK_SIZE)) = mm2; *((__m64*)(pblock+3*LUMA_BLOCK_SIZE)) = mm3; *((__m64*)(pblock+4*LUMA_BLOCK_SIZE)) = mm4; *((__m64*)(pblock+5*LUMA_BLOCK_SIZE)) = mm5; *((__m64*)(pblock+6*LUMA_BLOCK_SIZE)) = mm6; *((__m64*)(pblock+7*LUMA_BLOCK_SIZE)) = mm7; mm0 = *((__m64*)(pSrc+0*stride+8)); mm1 = *((__m64*)(pSrc+1*stride+8)); mm2 = *((__m64*)(pSrc+2*stride+8)); mm3 = *((__m64*)(pSrc+3*stride+8)); mm4 = *((__m64*)(pSrc+4*stride+8)); mm5 = *((__m64*)(pSrc+5*stride+8)); mm6 = *((__m64*)(pSrc+6*stride+8)); mm7 = *((__m64*)(pSrc+7*stride+8)); *((__m64*)(pblock+0*LUMA_BLOCK_SIZE+8)) = mm0; *((__m64*)(pblock+1*LUMA_BLOCK_SIZE+8)) = mm1; *((__m64*)(pblock+2*LUMA_BLOCK_SIZE+8)) = mm2; *((__m64*)(pblock+3*LUMA_BLOCK_SIZE+8)) = mm3; *((__m64*)(pblock+4*LUMA_BLOCK_SIZE+8)) = mm4; *((__m64*)(pblock+5*LUMA_BLOCK_SIZE+8)) = mm5; *((__m64*)(pblock+6*LUMA_BLOCK_SIZE+8)) = mm6; *((__m64*)(pblock+7*LUMA_BLOCK_SIZE+8)) = mm7; pSrc += 8*stride; } } void get_block_16xh_p00_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { imgpel *pblock = (imgpel *) &block[0][0]; __m128i xmm0,xmm1,xmm2,xmm3,xmm4,xmm5,xmm6,xmm7; for(int i = height; i > 0; i-=8) { xmm0 = _mm_loadu_si128((__m128i*)(pSrc+0*stride)); xmm1 = _mm_loadu_si128((__m128i*)(pSrc+1*stride)); xmm2 = _mm_loadu_si128((__m128i*)(pSrc+2*stride)); xmm3 = _mm_loadu_si128((__m128i*)(pSrc+3*stride)); xmm4 = _mm_loadu_si128((__m128i*)(pSrc+4*stride)); xmm5 = _mm_loadu_si128((__m128i*)(pSrc+5*stride)); xmm6 = _mm_loadu_si128((__m128i*)(pSrc+6*stride)); xmm7 = _mm_loadu_si128((__m128i*)(pSrc+7*stride)); _mm_store_si128((__m128i*)(pblock+0*LUMA_BLOCK_SIZE), xmm0); _mm_store_si128((__m128i*)(pblock+1*LUMA_BLOCK_SIZE), xmm1); _mm_store_si128((__m128i*)(pblock+2*LUMA_BLOCK_SIZE), xmm2); _mm_store_si128((__m128i*)(pblock+3*LUMA_BLOCK_SIZE), xmm3); _mm_store_si128((__m128i*)(pblock+4*LUMA_BLOCK_SIZE), xmm4); _mm_store_si128((__m128i*)(pblock+5*LUMA_BLOCK_SIZE), xmm5); _mm_store_si128((__m128i*)(pblock+6*LUMA_BLOCK_SIZE), xmm6); _mm_store_si128((__m128i*)(pblock+7*LUMA_BLOCK_SIZE), xmm7); pSrc += 8*stride; } } void get_block_16xh_p01_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p01_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packus_epi16(mm2,mm2); tmp = _mm_avg_epu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2+8))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1+8))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1+8))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2+8))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3+8))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packus_epi16(mm2,mm2); tmp = _mm_avg_epu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p02_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p02_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2+8))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1+8))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1+8))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2+8))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3+8))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p03_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p03_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packus_epi16(mm3,mm3); tmp = _mm_avg_epu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2+8))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1+8))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1+8))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2+8))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3+8))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packus_epi16(mm3,mm3); tmp = _mm_avg_epu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p10_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packs_pu16(mm2,mm2); tmp = _mm_avg_pu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p10_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packus_epi16(mm2,mm2); tmp = _mm_avg_epu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm2 = _mm_packus_epi16(mm2,mm2); tmp = _mm_avg_epu8(tmp,mm2); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p11_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } src = pSrc; for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][0]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][4]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm6 = *((__m64*)&block[j][8]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm6 = *((__m64*)&block[j][12]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p11_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } src = pSrc; for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][0])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2+8))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1+8))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1+8))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2+8))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3+8))); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][8])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p12_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short *tmp_src; short *luma_src; int i,j; DO_ALIGN(16, short luma_res[16][24]); DO_ALIGN(16, short tmp_res[16][24]); const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 pIn0, pIn1; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height; j++) { for(i = 0; i < 20; i += 8) { mm0 = *((__m64*)(src-w2-2+i)); mm1 = *((__m64*)(src-w1-2+i)); mm2 = *((__m64*)(src-2+i)); mm3 = *((__m64*)(src+w1-2+i)); mm4 = *((__m64*)(src+w2-2+i)); mm5 = *((__m64*)(src+w3-2+i)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i]) = tmp; *((__m64*)&luma_res[j][i]) = tmp1; mm0 = *((__m64*)(src-w2-2+i)); mm1 = *((__m64*)(src-w1-2+i)); mm2 = *((__m64*)(src-2+i)); mm3 = *((__m64*)(src+w1-2+i)); mm4 = *((__m64*)(src+w2-2+i)); mm5 = *((__m64*)(src+w3-2+i)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i+4]) = tmp; *((__m64*)&luma_res[j][i+4]) = tmp1; } src += w1; } tmp_src = &tmp_res[0][0]; luma_src = &luma_res[0][2]; for (j = 0; j < height; j++) { mm0 = *((__m64*)(tmp_src)); mm1 = *((__m64*)(tmp_src+1)); mm2 = *((__m64*)(tmp_src+2)); mm3 = *((__m64*)(tmp_src+3)); mm4 = *((__m64*)(tmp_src+4)); mm5 = *((__m64*)(tmp_src+5)); mm0 = _mm_unpacklo_pi16(Null, mm0); mm1 = _mm_unpacklo_pi16(Null, mm1); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+6)); mm3 = *((__m64*)(tmp_src+7)); mm4 = *((__m64*)(tmp_src+8)); mm5 = *((__m64*)(tmp_src+9)); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)(tmp_src)); mm1 = *((__m64*)(tmp_src+1)); mm2 = *((__m64*)(tmp_src+2)); mm3 = *((__m64*)(tmp_src+3)); mm4 = *((__m64*)(tmp_src+4)); mm5 = *((__m64*)(tmp_src+5)); mm0 = _mm_unpackhi_pi16(Null, mm0); mm1 = _mm_unpackhi_pi16(Null, mm1); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+6)); mm3 = *((__m64*)(tmp_src+7)); mm4 = *((__m64*)(tmp_src+8)); mm5 = *((__m64*)(tmp_src+9)); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); tmp1 = *((__m64*)&block[j][0]); mm4 = _mm_unpacklo_pi32(tmp1, tmp); mm5 = _mm_unpackhi_pi32(tmp1, tmp); pIn0 = *((__m64*) (luma_src)); pIn1 = *((__m64*) (luma_src+4)); tmp = _mm_packs_pu16(mm4,mm5);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(pIn0,pIn1); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)(tmp_src+8)); mm1 = *((__m64*)(tmp_src+9)); mm2 = *((__m64*)(tmp_src+10)); mm3 = *((__m64*)(tmp_src+11)); mm4 = *((__m64*)(tmp_src+12)); mm5 = *((__m64*)(tmp_src+13)); mm0 = _mm_unpacklo_pi16(Null, mm0); mm1 = _mm_unpacklo_pi16(Null, mm1); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+14)); mm3 = *((__m64*)(tmp_src+15)); mm4 = *((__m64*)(tmp_src+16)); mm5 = *((__m64*)(tmp_src+17)); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][8]) = tmp; mm0 = *((__m64*)(tmp_src+8)); mm1 = *((__m64*)(tmp_src+9)); mm2 = *((__m64*)(tmp_src+10)); mm3 = *((__m64*)(tmp_src+11)); mm4 = *((__m64*)(tmp_src+12)); mm5 = *((__m64*)(tmp_src+13)); mm0 = _mm_unpackhi_pi16(Null, mm0); mm1 = _mm_unpackhi_pi16(Null, mm1); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+14)); mm3 = *((__m64*)(tmp_src+15)); mm4 = *((__m64*)(tmp_src+16)); mm5 = *((__m64*)(tmp_src+17)); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); tmp1 = *((__m64*)&block[j][8]); mm4 = _mm_unpacklo_pi32(tmp1, tmp); mm5 = _mm_unpackhi_pi32(tmp1, tmp); pIn0 = *((__m64*) (luma_src+8)); pIn1 = *((__m64*) (luma_src+12)); tmp = _mm_packs_pu16(mm4,mm5);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(pIn0,pIn1); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][8]) = tmp; tmp_src += 24; luma_src += 24; } } void get_block_16xh_p12_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short *tmp_src; short *luma_src; int i,j; DO_ALIGN(16, short luma_res[16][24]); DO_ALIGN(16, short tmp_res[16][24]); const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 pIn0, pIn1; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height; j++) { for(i = 0; i < 20; i += 8) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2-2+i))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1-2+i))); mm2 = _mm_loadl_epi64(((__m128i*) (src-2+i))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1-2+i))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2-2+i))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3-2+i))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 _mm_store_si128(((__m128i*)&tmp_res[j][i]),tmp); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][i]),tmp); } src += w1; } tmp_src = &tmp_res[0][0]; luma_src = &luma_res[0][2]; for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (tmp_src))); mm1 = _mm_loadl_epi64(((__m128i*) (tmp_src+1))); mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+2))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+3))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+4))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+5))); mm0 = _mm_unpacklo_epi16(Null, mm0); mm1 = _mm_unpacklo_epi16(Null, mm1); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+6))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+7))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+8))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+9))); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1); pIn0 = *((__m64*) (luma_src)); pIn1 = *((__m64*) (luma_src+4)); mm0 = _mm_setr_epi64(pIn0,pIn1); tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (tmp_src+8))); mm1 = _mm_loadl_epi64(((__m128i*) (tmp_src+9))); mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+10))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+11))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+12))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+13))); mm0 = _mm_unpacklo_epi16(Null, mm0); mm1 = _mm_unpacklo_epi16(Null, mm1); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+14))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+15))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+16))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+17))); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1); pIn0 = *((__m64*) (luma_src+8)); pIn1 = *((__m64*) (luma_src+12)); mm0 = _mm_setr_epi64(pIn0,pIn1); tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][8], tmp); tmp_src += 24; luma_src += 24; } } void get_block_16xh_p13_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc+w1; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } src = pSrc; for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][0]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][4]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm6 = *((__m64*)&block[j][8]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm6 = *((__m64*)&block[j][12]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p13_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc+w1; __m128i mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } src = pSrc; for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][0])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2+8))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1+8))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1+8))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2+8))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3+8))); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][8])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p20_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p20_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p21_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; DO_ALIGN(16, short luma_res[21][16]); DO_ALIGN(16, int tmp_res[21][16]); const int w1 = stride; src = pSrc-(2*w1); __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][0]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][2]) = mm0; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][0]) = tmp; mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm1 = _mm_unpacklo_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][4]) = mm1; mm1 = _mm_unpackhi_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][6]) = mm1; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][4]) = tmp; mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][8]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][10]) = mm0; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][8]) = tmp; mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm1 = _mm_unpacklo_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][12]) = mm1; mm1 = _mm_unpackhi_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][14]) = mm1; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][12]) = tmp; src += w1; } for (j = 0; j < height; j++) { // 1 mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm1 = _mm_packs_pi32(tmp,tmp1);//check *((__m64*)&block[j][0]) = mm1; mm0 = *((__m64*)&tmp_res[j][4]); mm1 = *((__m64*)&tmp_res[j+1][4]); mm2 = *((__m64*)&tmp_res[j+2][4]); mm3 = *((__m64*)&tmp_res[j+3][4]); mm4 = *((__m64*)&tmp_res[j+4][4]); mm5 = *((__m64*)&tmp_res[j+5][4]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][6]); mm1 = *((__m64*)&tmp_res[j+1][6]); mm2 = *((__m64*)&tmp_res[j+2][6]); mm3 = *((__m64*)&tmp_res[j+3][6]); mm4 = *((__m64*)&tmp_res[j+4][6]); mm5 = *((__m64*)&tmp_res[j+5][6]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm2 = _mm_packs_pi32(tmp,tmp1);//check mm1 = *((__m64*)&block[j][0]); mm0 = *((__m64*)&luma_res[j+2][0]); mm3 = *((__m64*)&luma_res[j+2][4]); tmp = _mm_packs_pu16(mm1,mm2);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(mm0,mm3); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)&tmp_res[j][8]); mm1 = *((__m64*)&tmp_res[j+1][8]); mm2 = *((__m64*)&tmp_res[j+2][8]); mm3 = *((__m64*)&tmp_res[j+3][8]); mm4 = *((__m64*)&tmp_res[j+4][8]); mm5 = *((__m64*)&tmp_res[j+5][8]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][10]); mm1 = *((__m64*)&tmp_res[j+1][10]); mm2 = *((__m64*)&tmp_res[j+2][10]); mm3 = *((__m64*)&tmp_res[j+3][10]); mm4 = *((__m64*)&tmp_res[j+4][10]); mm5 = *((__m64*)&tmp_res[j+5][10]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm1 = _mm_packs_pi32(tmp,tmp1);//check *((__m64*)&block[j][8]) = mm1; mm0 = *((__m64*)&tmp_res[j][12]); mm1 = *((__m64*)&tmp_res[j+1][12]); mm2 = *((__m64*)&tmp_res[j+2][12]); mm3 = *((__m64*)&tmp_res[j+3][12]); mm4 = *((__m64*)&tmp_res[j+4][12]); mm5 = *((__m64*)&tmp_res[j+5][12]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][14]); mm1 = *((__m64*)&tmp_res[j+1][14]); mm2 = *((__m64*)&tmp_res[j+2][14]); mm3 = *((__m64*)&tmp_res[j+3][14]); mm4 = *((__m64*)&tmp_res[j+4][14]); mm5 = *((__m64*)&tmp_res[j+5][14]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm2 = _mm_packs_pi32(tmp,tmp1);//check mm1 = *((__m64*)&block[j][8]); mm0 = *((__m64*)&luma_res[j+2][8]); mm3 = *((__m64*)&luma_res[j+2][12]); tmp = _mm_packs_pu16(mm1,mm2);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(mm0,mm3); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][8]) = tmp; } } void get_block_16xh_p21_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; DO_ALIGN(16, short luma_res[21][16]); DO_ALIGN(16, int tmp_res[21][16]); const int w1 = stride; src = pSrc-(2*w1); __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][0]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][4]),mm1); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][0]),tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][8]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][12]),mm1); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][8]),tmp); src += w1; } for (j = 0; j < height; j++) { mm0 = _mm_load_si128((__m128i*)&tmp_res[j][0]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][0]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][0]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][0]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][0]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][0]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][4]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][4]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][4]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][4]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][4]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][4]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1);//check mm0 = _mm_load_si128((__m128i*)&luma_res[j+2][0]); //__fast_iclip0_255(((tmp_res[j+2][i]+16)>>5)) tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_load_si128((__m128i*)&tmp_res[j][8]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][8]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][8]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][8]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][8]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][8]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][12]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][12]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][12]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][12]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][12]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][12]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1);//check mm0 = _mm_load_si128((__m128i*)&luma_res[j+2][8]); //__fast_iclip0_255(((tmp_res[j+2][i]+16)>>5)) tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][8], tmp); } } void get_block_16xh_p22_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; DO_ALIGN(16, int tmp_res[21][16]); const int w1 = stride; src = pSrc - (2*w1); __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][0]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][2]) = mm0; mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][4]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][6]) = mm0; mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][8]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][10]) = mm0; mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][12]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][14]) = mm0; src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)&tmp_res[j][4]); mm1 = *((__m64*)&tmp_res[j+1][4]); mm2 = *((__m64*)&tmp_res[j+2][4]); mm3 = *((__m64*)&tmp_res[j+3][4]); mm4 = *((__m64*)&tmp_res[j+4][4]); mm5 = *((__m64*)&tmp_res[j+5][4]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][6]); mm1 = *((__m64*)&tmp_res[j+1][6]); mm2 = *((__m64*)&tmp_res[j+2][6]); mm3 = *((__m64*)&tmp_res[j+3][6]); mm4 = *((__m64*)&tmp_res[j+4][6]); mm5 = *((__m64*)&tmp_res[j+5][6]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp1 = _mm_packs_pi32(tmp,tmp1); tmp = *((__m64*)&block[j][0]); tmp = _mm_packs_pu16(tmp,tmp1);//__fast_iclip0_255((result_block+512)>>10) *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)&tmp_res[j][8]); mm1 = *((__m64*)&tmp_res[j+1][8]); mm2 = *((__m64*)&tmp_res[j+2][8]); mm3 = *((__m64*)&tmp_res[j+3][8]); mm4 = *((__m64*)&tmp_res[j+4][8]); mm5 = *((__m64*)&tmp_res[j+5][8]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][10]); mm1 = *((__m64*)&tmp_res[j+1][10]); mm2 = *((__m64*)&tmp_res[j+2][10]); mm3 = *((__m64*)&tmp_res[j+3][10]); mm4 = *((__m64*)&tmp_res[j+4][10]); mm5 = *((__m64*)&tmp_res[j+5][10]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][8]) = tmp; mm0 = *((__m64*)&tmp_res[j][12]); mm1 = *((__m64*)&tmp_res[j+1][12]); mm2 = *((__m64*)&tmp_res[j+2][12]); mm3 = *((__m64*)&tmp_res[j+3][12]); mm4 = *((__m64*)&tmp_res[j+4][12]); mm5 = *((__m64*)&tmp_res[j+5][12]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][14]); mm1 = *((__m64*)&tmp_res[j+1][14]); mm2 = *((__m64*)&tmp_res[j+2][14]); mm3 = *((__m64*)&tmp_res[j+3][14]); mm4 = *((__m64*)&tmp_res[j+4][14]); mm5 = *((__m64*)&tmp_res[j+5][14]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp1 = _mm_packs_pi32(tmp,tmp1); tmp = *((__m64*)&block[j][8]); tmp = _mm_packs_pu16(tmp,tmp1);//__fast_iclip0_255((result_block+512)>>10) *((__m64*)&block[j][8]) = tmp; } } void get_block_16xh_p22_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; DO_ALIGN(16, int tmp_res[21][16]); const int w1 = stride; src = pSrc - (2*w1); __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][0]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][4]),mm1); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][8]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][12]),mm1); src += w1; } for (j = 0; j < height; j++) { mm0 = _mm_load_si128((__m128i*)&tmp_res[j][0]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][0]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][0]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][0]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][0]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][0]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][4]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][4]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][4]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][4]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][4]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][4]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1); tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_load_si128((__m128i*)&tmp_res[j][8]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][8]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][8]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][8]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][8]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][8]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][12]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][12]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][12]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][12]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][12]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][12]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1);//check tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) _mm_storel_epi64((__m128i*)&block[j][8], tmp); } } void get_block_16xh_p23_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; DO_ALIGN(16, short luma_res[21][16]); DO_ALIGN(16, int tmp_res[21][16]); byte *src; const int w1 = stride; src = pSrc -(2*w1); __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][0]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][2]) = mm0; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][0]) = tmp; mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm1 = _mm_unpacklo_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][4]) = mm1; mm1 = _mm_unpackhi_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][6]) = mm1; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][4]) = tmp; mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][8]) = mm0; mm0 = _mm_unpackhi_pi16(Null,tmp); mm0 = _mm_srai_pi32(mm0,16); *((__m64*)&tmp_res[j][10]) = mm0; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][8]) = tmp; mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm1 = _mm_unpacklo_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][12]) = mm1; mm1 = _mm_unpackhi_pi16(Null,tmp); mm1 = _mm_srai_pi32(mm1,16); *((__m64*)&tmp_res[j][14]) = mm1; tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&luma_res[j][12]) = tmp; src += w1; } for (j = 0; j < height; j++) { mm0 = *((__m64*)&tmp_res[j][0]); mm1 = *((__m64*)&tmp_res[j+1][0]); mm2 = *((__m64*)&tmp_res[j+2][0]); mm3 = *((__m64*)&tmp_res[j+3][0]); mm4 = *((__m64*)&tmp_res[j+4][0]); mm5 = *((__m64*)&tmp_res[j+5][0]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][2]); mm1 = *((__m64*)&tmp_res[j+1][2]); mm2 = *((__m64*)&tmp_res[j+2][2]); mm3 = *((__m64*)&tmp_res[j+3][2]); mm4 = *((__m64*)&tmp_res[j+4][2]); mm5 = *((__m64*)&tmp_res[j+5][2]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm1 = _mm_packs_pi32(tmp,tmp1);//check *((__m64*)&block[j][0]) = mm1; mm0 = *((__m64*)&tmp_res[j][4]); mm1 = *((__m64*)&tmp_res[j+1][4]); mm2 = *((__m64*)&tmp_res[j+2][4]); mm3 = *((__m64*)&tmp_res[j+3][4]); mm4 = *((__m64*)&tmp_res[j+4][4]); mm5 = *((__m64*)&tmp_res[j+5][4]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][6]); mm1 = *((__m64*)&tmp_res[j+1][6]); mm2 = *((__m64*)&tmp_res[j+2][6]); mm3 = *((__m64*)&tmp_res[j+3][6]); mm4 = *((__m64*)&tmp_res[j+4][6]); mm5 = *((__m64*)&tmp_res[j+5][6]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm2 = _mm_packs_pi32(tmp,tmp1);//check mm1 = *((__m64*)&block[j][0]); mm0 = *((__m64*)&luma_res[j+3][0]); mm3 = *((__m64*)&luma_res[j+3][4]); tmp = _mm_packs_pu16(mm1,mm2);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(mm0,mm3); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)&tmp_res[j][8]); mm1 = *((__m64*)&tmp_res[j+1][8]); mm2 = *((__m64*)&tmp_res[j+2][8]); mm3 = *((__m64*)&tmp_res[j+3][8]); mm4 = *((__m64*)&tmp_res[j+4][8]); mm5 = *((__m64*)&tmp_res[j+5][8]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][10]); mm1 = *((__m64*)&tmp_res[j+1][10]); mm2 = *((__m64*)&tmp_res[j+2][10]); mm3 = *((__m64*)&tmp_res[j+3][10]); mm4 = *((__m64*)&tmp_res[j+4][10]); mm5 = *((__m64*)&tmp_res[j+5][10]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm1 = _mm_packs_pi32(tmp,tmp1);//check *((__m64*)&block[j][8]) = mm1; mm0 = *((__m64*)&tmp_res[j][12]); mm1 = *((__m64*)&tmp_res[j+1][12]); mm2 = *((__m64*)&tmp_res[j+2][12]); mm3 = *((__m64*)&tmp_res[j+3][12]); mm4 = *((__m64*)&tmp_res[j+4][12]); mm5 = *((__m64*)&tmp_res[j+5][12]); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = *((__m64*)&tmp_res[j][14]); mm1 = *((__m64*)&tmp_res[j+1][14]); mm2 = *((__m64*)&tmp_res[j+2][14]); mm3 = *((__m64*)&tmp_res[j+3][14]); mm4 = *((__m64*)&tmp_res[j+4][14]); mm5 = *((__m64*)&tmp_res[j+5][14]); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 mm2 = _mm_packs_pi32(tmp,tmp1);//check mm1 = *((__m64*)&block[j][8]); mm0 = *((__m64*)&luma_res[j+3][8]); mm3 = *((__m64*)&luma_res[j+3][12]); tmp = _mm_packs_pu16(mm1,mm2);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(mm0,mm3); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][8]) = tmp; } } void get_block_16xh_p23_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; DO_ALIGN(16, short luma_res[21][16]); DO_ALIGN(16, int tmp_res[21][16]); byte *src; const int w1 = stride; src = pSrc -(2*w1); __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height+5; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][0]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][4]),mm1); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][0]),tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 mm0 = _mm_unpacklo_epi16(Null,tmp); mm1 = _mm_unpackhi_epi16(Null,tmp); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); _mm_store_si128(((__m128i*)&tmp_res[j][8]),mm0); _mm_store_si128(((__m128i*)&tmp_res[j][12]),mm1); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][8]),tmp); src += w1; } for (j = 0; j < height; j++) { mm0 = _mm_load_si128((__m128i*)&tmp_res[j][0]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][0]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][0]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][0]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][0]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][0]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][4]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][4]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][4]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][4]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][4]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][4]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1);//check mm0 = _mm_load_si128((__m128i*)&luma_res[j+3][0]); //__fast_iclip0_255(((tmp_res[j+2][i]+16)>>5)) tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_load_si128((__m128i*)&tmp_res[j][8]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][8]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][8]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][8]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][8]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][8]); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = _mm_load_si128((__m128i*)&tmp_res[j][12]); mm1 = _mm_load_si128((__m128i*)&tmp_res[j+1][12]); mm2 = _mm_load_si128((__m128i*)&tmp_res[j+2][12]); mm3 = _mm_load_si128((__m128i*)&tmp_res[j+3][12]); mm4 = _mm_load_si128((__m128i*)&tmp_res[j+4][12]); mm5 = _mm_load_si128((__m128i*)&tmp_res[j+5][12]); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1= _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1);//check mm0 = _mm_load_si128((__m128i*)&luma_res[j+3][8]); //__fast_iclip0_255(((tmp_res[j+2][i]+16)>>5)) tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][8], tmp); } } void get_block_16xh_p30_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packs_pu16(mm3,mm3); tmp = _mm_avg_pu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p30_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packus_epi16(mm3,mm3); tmp = _mm_avg_epu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) mm3 = _mm_packus_epi16(mm3,mm3); tmp = _mm_avg_epu8(tmp,mm3); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p31_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } src = pSrc + 1; for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][0]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][4]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm6 = *((__m64*)&block[j][8]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm6 = *((__m64*)&block[j][12]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p31_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { int j; byte *src; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m128i mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } src = pSrc + 1; for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][0])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2+8))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1+8))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1+8))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2+8))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3+8))); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][8])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } void get_block_16xh_p32_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short *tmp_src; short *luma_src; int i,j; DO_ALIGN(16, short luma_res[16][24]); DO_ALIGN(16, short tmp_res[16][24]); const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 pIn0, pIn1; __m64 mm0, mm1, mm2, mm3, mm4, mm5, tmp, tmp1; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); const __m64 coeff_512 = *((__m64*)ncoeff_512); for (j = 0; j < height; j++) { for(i = 0; i < 20; i += 8) { mm0 = *((__m64*)(src-w2-2+i)); mm1 = *((__m64*)(src-w1-2+i)); mm2 = *((__m64*)(src-2+i)); mm3 = *((__m64*)(src+w1-2+i)); mm4 = *((__m64*)(src+w2-2+i)); mm5 = *((__m64*)(src+w3-2+i)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i]) = tmp; *((__m64*)&luma_res[j][i]) = tmp1; mm0 = *((__m64*)(src-w2-2+i)); mm1 = *((__m64*)(src-w1-2+i)); mm2 = *((__m64*)(src-2+i)); mm3 = *((__m64*)(src+w1-2+i)); mm4 = *((__m64*)(src+w2-2+i)); mm5 = *((__m64*)(src+w3-2+i)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_adds_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 *((__m64*)&tmp_res[j][i+4]) = tmp; *((__m64*)&luma_res[j][i+4]) = tmp1; } src += w1; } tmp_src = &tmp_res[0][0]; luma_src = &luma_res[0][3]; for (j = 0; j < height; j++) { mm0 = *((__m64*)(tmp_src)); mm1 = *((__m64*)(tmp_src+1)); mm2 = *((__m64*)(tmp_src+2)); mm3 = *((__m64*)(tmp_src+3)); mm4 = *((__m64*)(tmp_src+4)); mm5 = *((__m64*)(tmp_src+5)); mm0 = _mm_unpacklo_pi16(Null, mm0); mm1 = _mm_unpacklo_pi16(Null, mm1); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+6)); mm3 = *((__m64*)(tmp_src+7)); mm4 = *((__m64*)(tmp_src+8)); mm5 = *((__m64*)(tmp_src+9)); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)(tmp_src)); mm1 = *((__m64*)(tmp_src+1)); mm2 = *((__m64*)(tmp_src+2)); mm3 = *((__m64*)(tmp_src+3)); mm4 = *((__m64*)(tmp_src+4)); mm5 = *((__m64*)(tmp_src+5)); mm0 = _mm_unpackhi_pi16(Null, mm0); mm1 = _mm_unpackhi_pi16(Null, mm1); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+6)); mm3 = *((__m64*)(tmp_src+7)); mm4 = *((__m64*)(tmp_src+8)); mm5 = *((__m64*)(tmp_src+9)); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); tmp1 = *((__m64*)&block[j][0]); mm4 = _mm_unpacklo_pi32(tmp1, tmp); mm5 = _mm_unpackhi_pi32(tmp1, tmp); pIn0 = *((__m64*) (luma_src)); pIn1 = *((__m64*) (luma_src+4)); tmp = _mm_packs_pu16(mm4,mm5);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(pIn0,pIn1); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][0]) = tmp; mm0 = *((__m64*)(tmp_src+8)); mm1 = *((__m64*)(tmp_src+9)); mm2 = *((__m64*)(tmp_src+10)); mm3 = *((__m64*)(tmp_src+11)); mm4 = *((__m64*)(tmp_src+12)); mm5 = *((__m64*)(tmp_src+13)); mm0 = _mm_unpacklo_pi16(Null, mm0); mm1 = _mm_unpacklo_pi16(Null, mm1); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+14)); mm3 = *((__m64*)(tmp_src+15)); mm4 = *((__m64*)(tmp_src+16)); mm5 = *((__m64*)(tmp_src+17)); mm2 = _mm_unpacklo_pi16(Null, mm2); mm3 = _mm_unpacklo_pi16(Null, mm3); mm4 = _mm_unpacklo_pi16(Null, mm4); mm5 = _mm_unpacklo_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); *((__m64*)&block[j][8]) = tmp; mm0 = *((__m64*)(tmp_src+8)); mm1 = *((__m64*)(tmp_src+9)); mm2 = *((__m64*)(tmp_src+10)); mm3 = *((__m64*)(tmp_src+11)); mm4 = *((__m64*)(tmp_src+12)); mm5 = *((__m64*)(tmp_src+13)); mm0 = _mm_unpackhi_pi16(Null, mm0); mm1 = _mm_unpackhi_pi16(Null, mm1); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm0 = _mm_srai_pi32(mm0,16); mm1 = _mm_srai_pi32(mm1,16); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_slli_pi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi32(_mm_add_pi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = *((__m64*)(tmp_src+14)); mm3 = *((__m64*)(tmp_src+15)); mm4 = *((__m64*)(tmp_src+16)); mm5 = *((__m64*)(tmp_src+17)); mm2 = _mm_unpackhi_pi16(Null, mm2); mm3 = _mm_unpackhi_pi16(Null, mm3); mm4 = _mm_unpackhi_pi16(Null, mm4); mm5 = _mm_unpackhi_pi16(Null, mm5); mm2 = _mm_srai_pi32(mm2,16); mm3 = _mm_srai_pi32(mm3,16); mm4 = _mm_srai_pi32(mm4,16); mm5 = _mm_srai_pi32(mm5,16); tmp1 = _mm_sub_pi32(_mm_slli_pi32(_mm_add_pi32(mm2,mm3),2),_mm_add_pi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_slli_pi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_pi32(_mm_add_pi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_pi32(_mm_add_pi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_pi32(tmp,tmp1); tmp1 = *((__m64*)&block[j][8]); mm4 = _mm_unpacklo_pi32(tmp1, tmp); mm5 = _mm_unpackhi_pi32(tmp1, tmp); pIn0 = *((__m64*) (luma_src+8)); pIn1 = *((__m64*) (luma_src+12)); tmp = _mm_packs_pu16(mm4,mm5);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packs_pu16(pIn0,pIn1); tmp = _mm_avg_pu8(tmp,mm0); *((__m64*)&block[j][8]) = tmp; tmp_src += 24; luma_src += 24; } } void get_block_16xh_p32_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; short *tmp_src; short *luma_src; int i,j; DO_ALIGN(16, short luma_res[16][24]); DO_ALIGN(16, short tmp_res[16][24]); const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc; __m64 pIn0, pIn1; __m128i mm0,mm1,mm2,mm3,mm4,mm5,tmp,tmp1; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); const __m128i coeff_512 = _mm_load_si128((__m128i*)ncoeff_512); for (j = 0; j < height; j++) { for(i = 0; i < 20; i += 8) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2-2+i))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1-2+i))); mm2 = _mm_loadl_epi64(((__m128i*) (src-2+i))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1-2+i))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2-2+i))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3-2+i))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_adds_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 _mm_store_si128(((__m128i*)&tmp_res[j][i]),tmp); tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 _mm_store_si128(((__m128i*)&luma_res[j][i]),tmp); } src += w1; } tmp_src = &tmp_res[0][0]; luma_src = &luma_res[0][3]; for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (tmp_src))); mm1 = _mm_loadl_epi64(((__m128i*) (tmp_src+1))); mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+2))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+3))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+4))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+5))); mm0 = _mm_unpacklo_epi16(Null, mm0); mm1 = _mm_unpacklo_epi16(Null, mm1); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+6))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+7))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+8))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+9))); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1); pIn0 = *((__m64*) (luma_src)); pIn1 = *((__m64*) (luma_src+4)); mm0 = _mm_setr_epi64(pIn0,pIn1); tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (tmp_src+8))); mm1 = _mm_loadl_epi64(((__m128i*) (tmp_src+9))); mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+10))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+11))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+12))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+13))); mm0 = _mm_unpacklo_epi16(Null, mm0); mm1 = _mm_unpacklo_epi16(Null, mm1); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm0 = _mm_srai_epi32(mm0,16); mm1 = _mm_srai_epi32(mm1,16); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_slli_epi32(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi32(_mm_add_epi32(tmp,coeff_512),10);//(result_block+512)>>10 mm0 = mm4; mm1 = mm5; mm2 = _mm_loadl_epi64(((__m128i*) (tmp_src+14))); mm3 = _mm_loadl_epi64(((__m128i*) (tmp_src+15))); mm4 = _mm_loadl_epi64(((__m128i*) (tmp_src+16))); mm5 = _mm_loadl_epi64(((__m128i*) (tmp_src+17))); mm2 = _mm_unpacklo_epi16(Null, mm2); mm3 = _mm_unpacklo_epi16(Null, mm3); mm4 = _mm_unpacklo_epi16(Null, mm4); mm5 = _mm_unpacklo_epi16(Null, mm5); mm2 = _mm_srai_epi32(mm2,16); mm3 = _mm_srai_epi32(mm3,16); mm4 = _mm_srai_epi32(mm4,16); mm5 = _mm_srai_epi32(mm5,16); tmp1 = _mm_sub_epi32(_mm_slli_epi32(_mm_add_epi32(mm2,mm3),2),_mm_add_epi32(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_slli_epi32(tmp1,2),tmp1);// 5*(-p1 + (p2 + p3)*4 - p4) tmp1 = _mm_add_epi32(_mm_add_epi32(mm0,mm5),tmp1); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp1 = _mm_srai_epi32(_mm_add_epi32(tmp1,coeff_512),10);//(result_block+512)>>10 tmp = _mm_packs_epi32(tmp,tmp1); pIn0 = *((__m64*) (luma_src+8)); pIn1 = *((__m64*) (luma_src+12)); mm0 = _mm_setr_epi64(pIn0,pIn1); tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255((result_block+512)>>10) mm0 = _mm_packus_epi16(mm0,mm0); tmp = _mm_avg_epu8(tmp,mm0); _mm_storel_epi64((__m128i*)&block[j][8], tmp); tmp_src += 24; luma_src += 24; } } void get_block_16xh_p33_sse(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc + w1; __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, tmp; const __m64 Null = _mm_setzero_si64(); const __m64 coeff_16 = *((__m64*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-2)); mm1 = *((__m64*)(src-1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+1)); mm4 = *((__m64*)(src+2)); mm5 = *((__m64*)(src+3)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src+6)); mm1 = *((__m64*)(src+7)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+9)); mm4 = *((__m64*)(src+10)); mm5 = *((__m64*)(src+11)); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } src = pSrc + 1; for (j = 0; j < height; j++) { mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][0]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][0]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2)); mm1 = *((__m64*)(src-w1)); mm2 = *((__m64*)(src)); mm3 = *((__m64*)(src+w1)); mm4 = *((__m64*)(src+w2)); mm5 = *((__m64*)(src+w3)); mm6 = *((__m64*)&block[j][4]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][4]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm6 = *((__m64*)&block[j][8]); mm0 = _mm_unpacklo_pi8(mm0, Null); mm1 = _mm_unpacklo_pi8(mm1, Null); mm2 = _mm_unpacklo_pi8(mm2, Null); mm3 = _mm_unpacklo_pi8(mm3, Null); mm4 = _mm_unpacklo_pi8(mm4, Null); mm5 = _mm_unpacklo_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][8]) = _m_to_int(tmp); mm0 = *((__m64*)(src-w2+8)); mm1 = *((__m64*)(src-w1+8)); mm2 = *((__m64*)(src+8)); mm3 = *((__m64*)(src+w1+8)); mm4 = *((__m64*)(src+w2+8)); mm5 = *((__m64*)(src+w3+8)); mm6 = *((__m64*)&block[j][12]); mm0 = _mm_unpackhi_pi8(mm0, Null); mm1 = _mm_unpackhi_pi8(mm1, Null); mm2 = _mm_unpackhi_pi8(mm2, Null); mm3 = _mm_unpackhi_pi8(mm3, Null); mm4 = _mm_unpackhi_pi8(mm4, Null); mm5 = _mm_unpackhi_pi8(mm5, Null); tmp = _mm_sub_pi16(_mm_slli_pi16(_mm_add_pi16(mm2,mm3),2),_mm_add_pi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_slli_pi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_pi16(_mm_add_pi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_pi16(_mm_add_pi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packs_pu16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_pu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); *((DWORD*)&block[j][12]) = _m_to_int(tmp); src += w1; } } void get_block_16xh_p33_sse2(imgpel *pSrc, imgpel block[LUMA_BLOCK_SIZE][LUMA_BLOCK_SIZE], int stride, int height) { byte *src; int j; const int w1 = stride; const int w2 = stride + stride; const int w3 = w2 + w1; src = pSrc + w1; __m128i mm0,mm1,mm2,mm3,mm4,mm5,mm6,tmp; const __m128i Null = _mm_setzero_si128(); const __m128i coeff_16 = _mm_load_si128((__m128i*)ncoeff_16); for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+3))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src+6))); mm1 = _mm_loadl_epi64(((__m128i*) (src+7))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+9))); mm4 = _mm_loadl_epi64(((__m128i*) (src+10))); mm5 = _mm_loadl_epi64(((__m128i*) (src+11))); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } src = pSrc + 1; for (j = 0; j < height; j++) { mm0 = _mm_loadl_epi64(((__m128i*) (src-w2))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1))); mm2 = _mm_loadl_epi64(((__m128i*) (src))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3))); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][0])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][0], tmp); mm0 = _mm_loadl_epi64(((__m128i*) (src-w2+8))); mm1 = _mm_loadl_epi64(((__m128i*) (src-w1+8))); mm2 = _mm_loadl_epi64(((__m128i*) (src+8))); mm3 = _mm_loadl_epi64(((__m128i*) (src+w1+8))); mm4 = _mm_loadl_epi64(((__m128i*) (src+w2+8))); mm5 = _mm_loadl_epi64(((__m128i*) (src+w3+8))); mm6 = _mm_loadl_epi64(((__m128i*)&block[j][8])); mm0 = _mm_unpacklo_epi8(mm0, Null); mm1 = _mm_unpacklo_epi8(mm1, Null); mm2 = _mm_unpacklo_epi8(mm2, Null); mm3 = _mm_unpacklo_epi8(mm3, Null); mm4 = _mm_unpacklo_epi8(mm4, Null); mm5 = _mm_unpacklo_epi8(mm5, Null); tmp = _mm_sub_epi16(_mm_slli_epi16(_mm_add_epi16(mm2,mm3),2),_mm_add_epi16(mm1,mm4));//(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_slli_epi16(tmp,2),tmp);// 5*(-p1 + (p2 + p3)*4 - p4) tmp = _mm_add_epi16(_mm_add_epi16(mm0,mm5),tmp); //p0 + 5*(-p1 + (p2 + p3)*4 - p4) + p5 tmp = _mm_srai_epi16(_mm_add_epi16(tmp,coeff_16),5);//(result_block+16)>>5 tmp = _mm_packus_epi16(tmp,tmp);//__fast_iclip0_255(((result+16)>>5)) tmp = _mm_avg_epu8(tmp,mm6); //block[j][i] = ((block[j][i] + src[i] +1 )>>1); _mm_storel_epi64((__m128i*)&block[j][8], tmp); src += w1; } } #endif //H264_ENABLE_INTRINSICS
322a5ae090db57deeb49674bce9ee3964a9f7c5a
293d039942cbbe5a067f022423c14bb068a45a83
/HSEOpenCVProject/main.cpp
f14b939cf913f48d5e47285968e8e908467cff22
[]
no_license
ustadenis/OpenCV
4f9e5c9e60de0cdd79c3f1c0b105e4459768bc62
bd8aaef7b09594ce3c73db07c1d7ce4843dc904c
refs/heads/master
2021-01-25T00:56:57.028883
2017-06-18T18:25:14
2017-06-18T18:25:14
94,705,167
0
0
null
null
null
null
UTF-8
C++
false
false
1,493
cpp
#include "ImageClassification.h" Mat image; Point origin; Rect selection; ImageClassification *imageClassificator; int main(int argc, const char** argv) { VideoCapture cap; Rect trackWindow; int hsize = 16; float hranges[] = { 0,180 }; const float* phranges = hranges; string modelTxtPath = "C:\\Users\\Denis\\Documents\\Visual Studio 2017\\Projects\\HSEOpenCVProject\\x64\\Debug\\data\\bvlc_googlenet\\bvlc_googlenet.prototxt"; string modelBinPath = "C:\\Users\\Denis\\Documents\\Visual Studio 2017\\Projects\\HSEOpenCVProject\\x64\\Debug\\data\\bvlc_googlenet\\bvlc_googlenet.caffemodel"; string classesPath = "C:\\Users\\Denis\\Documents\\Visual Studio 2017\\Projects\\HSEOpenCVProject\\x64\\Debug\\data\\bvlc_googlenet\\synset_words.txt"; imageClassificator = new ImageClassification(); cap.open(0); if (!cap.isOpened()) { cout << "***Could not initialize capturing...***\n"; cout << "Current parameter's value: \n"; return -1; } namedWindow("Camera", 0); Mat frame, hsv, hue, mask, hist, histimg = Mat::zeros(200, 320, CV_8UC3), backproj; bool paused = false; for (;;) { if (!paused) { cap >> frame; if (frame.empty()) break; } frame.copyTo(image); imageClassificator->testOpenCVDnnWithCaffeModel(modelTxtPath, modelBinPath, classesPath, image); imshow("Camera", image); char c = (char)waitKey(10); if (c == 27) break; switch (c) { case 'p': paused = !paused; break; default: break; } } return 0; }
ed041c679cdb4ab5efc45e1369fd8512e0da576b
00ba1ae8e9e0ba90a6fb4dbdefdd56af3c0beb5f
/C++ File experiments/C++ notepad files/STUD_2.CPP
b40cb42612851f7b972fe534b34ea84d061eab8c
[]
no_license
gotibhai/Projects-and-Programs
98e91da2410cafcff2bfb8815646d70cd75cf991
4cbb4f3eba061fa2adf33819b25fba48d6704f52
refs/heads/master
2020-05-14T15:18:07.577251
2015-02-09T01:39:25
2015-02-09T01:39:25
29,871,910
0
0
null
null
null
null
UTF-8
C++
false
false
575
cpp
#include<fstream.h> #include<conio.h> void main() { clrscr(); int a[10]; float b[10]; for(int i=0; i<10; i++) { cout<<"\n\nEnter the roll no. of student "<<i+1<<" : "; cin>>a[i]; cout<<"\n\tEnter the marks of student "<<i+1<<" => "; cin>>b[i]; } ofstream student; student.open("stud.txt"); for(i=0; i<10; i++) { student<<"\n\nMarks of roll no. "<<a[i]<<" => "<<b[i]; } student.close(); i=0; char str[80][80]; ifstream stude; stude.open("stud.txt",ios::in); stude.seekg(0); while(!stude.eof()) {stude.getline(str[i],80); cout<<str[i]<<"\n\n"; i++; } getch(); }
2d284627aab37d5ef415ee1f5841c90486fc6de4
925d722273597d4ad7673ff1d4577261d75457f1
/include/BitmapHolder.h
f1bf1c0d948db9f96bb0905758e2edb4c44542bf
[ "MIT" ]
permissive
JurekM/MediaProjects
063c55ee93d2b446419527922aff066b04989046
5b7188abf301e237b8327c610a008ccc5020b649
refs/heads/master
2021-08-19T16:44:09.017386
2017-11-27T00:36:35
2017-11-27T00:40:18
112,129,043
0
1
null
null
null
null
UTF-8
C++
false
false
1,476
h
#pragma once class BitmapHolder { public: BitmapHolder() { } ~BitmapHolder() { clear(); } void clear() { if (h_bitmap) DeleteObject(h_bitmap); h_bitmap = nullptr; if (p_bitmap) delete p_bitmap; p_bitmap = nullptr; } bool loadImage(const wchar_t* path) { clear(); p_bitmap = Bitmap::FromFile(path, true); if (!p_bitmap) return false; return Ok == p_bitmap->GetHBITMAP(Color(255, 0, 0, 0), &h_bitmap); } SIZE getSize() const { unsigned char buffer[256]{}; if (!h_bitmap || 0 == GetObject(h_bitmap, sizeof(buffer), &buffer)) return SIZE{}; BITMAP& bm = *reinterpret_cast<BITMAP*>(&buffer); return SIZE{bm.bmWidth, bm.bmHeight}; } bool copyPixels(size_t pixcount, COLORREF* frame) const { unsigned char buffer[256]{}; if (!h_bitmap || 0 == GetObject(h_bitmap, sizeof(buffer), &buffer)) return false; BITMAP& bm = *reinterpret_cast<BITMAP*>(&buffer); if (pixcount < unsigned(bm.bmWidth * bm.bmHeight)) return false; COLORREF* pixels = static_cast<COLORREF*>(bm.bmBits); for (LONG row = 0; row < bm.bmHeight; row++) { for (LONG col = 0; col < bm.bmWidth; col++) { frame[row * bm.bmWidth + col] = pixels[row * bm.bmWidth + col]; } } return true; } Bitmap* p_bitmap{}; HBITMAP h_bitmap{}; };
614dad531567646022f7cb5bcb3a33aee1c7c5be
e37f0ef98552770d6d60f82c589911d85dcc19e9
/Codeforces/1358.D.cpp
737325eff319c831a9fceb2a73ee1cb64fd7a68b
[]
no_license
anand873/CP_Codes
00c9948810a84d8c9085684f31b75246b1f4ea2c
ec7cd07141512646d96cd247c190924ae9a7e263
refs/heads/master
2021-09-09T20:58:51.713079
2021-08-30T08:15:13
2021-08-30T08:15:13
204,478,713
3
1
null
null
null
null
UTF-8
C++
false
false
2,786
cpp
//Author: AnandRaj doubleux #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int,int> pii; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<pii> vpii; typedef pair<ll,ll> pll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef vector<pll> vpll; #define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define test() int t;cin>>t;while(t--) #define all(v) v.begin(),v.end() #define prin(V) for(auto v:V) cout<<v<<" ";cout<<endl #define take(V,f,n) for(int in=f;in<f+n;in++) cin>>V[in] #define what(x) cerr<<#x<<" = "<<x<<endl #define KStest() int t,t1;cin>>t;t1=t;while(t--) #define KScout cout<<"Case #"<<t1-t<<": " const int MOD = 1e9+7,MAX = 1e5+5; /////////////////FastExp/////////////////// ll powN(ll a,ll p) { if(p==0) return 1; ll z=powN(a,p/2); z=(z*z)%MOD; if(p%2) z=(z*a)%MOD; return z; } /////////////////FastExp/////////////////// //////////////////Sieve//////////////////// vector<bool> is_prime(MAX, true); vector<int> MinDiv(MAX); void Sieve() { is_prime[0] = is_prime[1] = false; int i,j; for (i = 2; i*i <= MAX; i++) { if (is_prime[i]) { MinDiv[i]=i; for (j = i * i; j <= MAX; j += i) { is_prime[j] = false; MinDiv[j]=i; } } } } //////////////////Sieve//////////////////// int main() { fastio ll n,x; cin>>n>>x; vl D(n+1); for(int i=1;i<=n;i++) cin>>D[i]; //prin(D); vl PS(2*n+1); for(int i=1;i<=n;i++) { PS[i]=PS[i-1]+D[i]; } for(int i=1;i<=n;i++) { PS[n+i]=PS[n+i-1]+D[i]; } //prin(PS); // Start on 1st of Month vl CS(2*n+1); for(int i=1;i<=n;i++) { CS[i]=CS[n+i]=D[i]*(D[i]+1)/2; } for(int i=1;i<=2*n;i++) { CS[i]+=CS[i-1]; } //prin(CS); ll best=0; for(int i=1;i<=n;i++) { int low=i-1,high=2*n; int ans=0; while(low<=high) { int mid=low+(high-low)/2; //cout<<mid<<": "<<PS[mid]-PS[i-1]<<endl; if(PS[mid]-PS[i-1]>x) { high=mid-1; } else { ans=mid; low=mid+1; } } ll candi=CS[ans]-CS[i-1]+(x-PS[ans]+PS[i-1])*(x-PS[ans]+1+PS[i-1])/2; //cout<<ans<<": "<<candi<<endl; best=max(best,candi); } //End on 1st of Month // prin(PS); // prin(CS); for(int i=n+1;i<=2*n;i++) { int low=1,high=i; int ans=0; while(low<=high) { int mid=low+(high-low)/2; // cout<<mid<<": "<<PS[i]-PS[mid-1]<<endl; if(PS[i]-PS[mid-1]>=x) { ans=mid; low=mid+1;; } else { high=mid-1; } } //cout<<ans<<": "; ll candi=CS[i]-CS[ans-1]-(PS[i]-PS[ans-1]-x)*(PS[i]+1-PS[ans-1]-x)/2; //cout<<candi<<endl; best=max(best,candi); } cout<<best<<endl; }
8de24410bd40ddc1f128638a23b359495a2aa7fb
a6b1a313b27daf0ef8fb902614c0baafb7cb5fb1
/Lab3_ResourceManager/src/BaseTexture.cpp
7f5fc092eb08e39559733c5e2cc37f8037efad6d
[]
no_license
Taowyoo/breakout-game
9c2082e8763ce6e68a0125f74627b35aeb8dd984
e3c3f79b72c7d0c951d13d249e8dbd9af3917999
refs/heads/main
2023-03-19T23:59:24.861841
2021-03-07T23:35:21
2021-03-07T23:35:21
341,268,549
0
0
null
null
null
null
UTF-8
C++
false
false
2,411
cpp
#include "BaseTexture.hpp" namespace yx { BaseTexture::BaseTexture(const std::string& name) : name_(name), texture_(nullptr), width_(0), height_(0) {} BaseTexture::~BaseTexture() { free(); } bool BaseTexture::loadFromFile(std::string path, SDL_Renderer* renderer) { // Get rid of preexisting texture free(); // The final texture SDL_Texture* newTexture = nullptr; // Load image at specified path SDL_Surface* loadedSurface = IMG_Load(path.c_str()); if (loadedSurface == nullptr) { SDL_Log("Unable to load image %s! SDL_image Error: %s", path.c_str(), IMG_GetError()); } else { SDL_Log("Loaded %s", path.c_str()); // Create texture from surface pixels newTexture = SDL_CreateTextureFromSurface(renderer, loadedSurface); if (newTexture == nullptr) { SDL_Log("Unable to create texture from %s! SDL Error: %s", path.c_str(), SDL_GetError()); } else { // Get image dimensions width_ = loadedSurface->w; height_ = loadedSurface->h; } // Get rid of old loaded surface SDL_FreeSurface(loadedSurface); } // Return success texture_ = newTexture; return texture_ != nullptr; } void BaseTexture::free() { // Free texture if it exists if (texture_ != nullptr) { SDL_DestroyTexture(texture_); texture_ = nullptr; width_ = 0; height_ = 0; } } void BaseTexture::setColor(Uint8 red, Uint8 green, Uint8 blue) { // Modulate texture rgb SDL_SetTextureColorMod(texture_, red, green, blue); } void BaseTexture::setBlendMode(SDL_BlendMode blending) { // Set blending function SDL_SetTextureBlendMode(texture_, blending); } void BaseTexture::setAlpha(Uint8 alpha) { // Modulate texture alpha SDL_SetTextureAlphaMod(texture_, alpha); } void BaseTexture::render(int x, int y, SDL_Renderer* renderer, SDL_Rect* src, SDL_Rect* dst, double angle, SDL_Point* center, SDL_RendererFlip flip) { // Set rendering space and render to screen SDL_Rect dest = {x, y, width_, height_}; if (dst == nullptr) { dst = &dest; } SDL_RenderCopyEx(renderer, texture_, src, dst, angle, center, flip); } void BaseTexture::setWidth(int w) { width_ = w; } void BaseTexture::setHeight(int h) { height_ = h; } int BaseTexture::getWidth() const { return width_; } int BaseTexture::getHeight() const { return height_; } } // namespace yx
833a1b2744b574b12428f8b05c1af8de9d8fb903
0ca945fd27e96c75d3ab9833a259a25ef731520a
/odbc/nana/source/gui/detail/window_manager.cpp
2fedf0d70e8843b28cae7bb34e55a19dc80d4113
[]
no_license
mastrayer/odbc-test
a3636157ba5be6a3ed1b793bc2ad2ad73346f139
9598a5596aa0635e735857e3eb1be42691fc4cfb
refs/heads/master
2021-01-15T15:32:43.348589
2016-08-18T04:55:33
2016-08-18T04:55:33
65,864,159
2
1
null
2016-08-18T04:55:34
2016-08-17T00:54:28
C++
UTF-8
C++
false
false
46,791
cpp
/* * Window Manager Implementation * Nana C++ Library(http://www.nanapro.org) * Copyright(C) 2003-2016 Jinhao([email protected]) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * @file: nana/gui/detail/window_manager.cpp * @contributors: Katsuhisa Yuasa */ #include <nana/config.hpp> #include <nana/gui/detail/bedrock.hpp> #include <nana/gui/detail/events_operation.hpp> #include <nana/gui/detail/handle_manager.hpp> #include <nana/gui/detail/window_manager.hpp> #include <nana/gui/detail/native_window_interface.hpp> #include <nana/gui/detail/inner_fwd_implement.hpp> #include <nana/gui/layout_utility.hpp> #include <nana/gui/detail/effects_renderer.hpp> #include <stdexcept> #include <algorithm> namespace nana { namespace detail { template<typename Key, typename Value> class lite_map { struct key_value_rep { Key first; Value second; key_value_rep() : first{}, second{} {} key_value_rep(const Key& k) : first(k), second{} { } }; public: using iterator = typename std::vector<key_value_rep>::iterator; Value& operator[](const Key& key) { for (auto& kv : table_) { if (kv.first == key) return kv.second; } table_.emplace_back(key); return table_.back().second; } iterator find(const Key& key) { for (auto i = table_.begin(); i != table_.end(); ++i) if (i->first == key) return i; return table_.end(); } iterator erase(iterator pos) { return table_.erase(pos); } iterator begin() { return table_.begin(); } iterator end() { return table_.end(); } private: std::vector<key_value_rep> table_; }; //class window_manager struct window_handle_deleter { void operator()(basic_window* wd) const { delete wd; } }; //struct wdm_private_impl struct window_manager::wdm_private_impl { root_register misc_register; handle_manager<core_window_t*, window_manager, window_handle_deleter> wd_register; paint::image default_icon_big; paint::image default_icon_small; lite_map<core_window_t*, std::vector<std::function<void()>>> safe_place; }; //end struct wdm_private_impl //class revertible_mutex window_manager::revertible_mutex::revertible_mutex() { thr_.tid = 0; thr_.refcnt = 0; } void window_manager::revertible_mutex::lock() { std::recursive_mutex::lock(); if(0 == thr_.tid) thr_.tid = nana::system::this_thread_id(); ++thr_.refcnt; } bool window_manager::revertible_mutex::try_lock() { if(std::recursive_mutex::try_lock()) { if(0 == thr_.tid) thr_.tid = nana::system::this_thread_id(); ++thr_.refcnt; return true; } return false; } void window_manager::revertible_mutex::unlock() { if(thr_.tid == nana::system::this_thread_id()) if(0 == --thr_.refcnt) thr_.tid = 0; std::recursive_mutex::unlock(); } void window_manager::revertible_mutex::revert() { if(thr_.refcnt && (thr_.tid == nana::system::this_thread_id())) { std::size_t cnt = thr_.refcnt; stack_.push_back(thr_); thr_.tid = 0; thr_.refcnt = 0; for(std::size_t i = 0; i < cnt; ++i) std::recursive_mutex::unlock(); } } void window_manager::revertible_mutex::forward() { std::recursive_mutex::lock(); if(stack_.size()) { auto thr = stack_.back(); if(thr.tid == nana::system::this_thread_id()) { stack_.pop_back(); for(std::size_t i = 0; i < thr.refcnt; ++i) std::recursive_mutex::lock(); thr_ = thr; } else throw std::runtime_error("Nana.GUI: The forward is not matched."); } std::recursive_mutex::unlock(); } //end class revertible_mutex //Utilities in this unit. namespace utl { template<typename T> bool erase(std::vector<T>& container, T value) { for (auto i = container.begin(), end = container.end(); i != end; ++i) { if ((*i) == value) { container.erase(i); return true; } } return false; } } window_manager::window_manager() : impl_(new wdm_private_impl) { attr_.capture.window = nullptr; attr_.capture.ignore_children = true; menu_.window = nullptr; menu_.owner = nullptr; menu_.has_keyboard = false; } window_manager::~window_manager() { delete impl_; } bool window_manager::is_queue(core_window_t* wd) { return (wd && (category::flags::root == wd->other.category)); } std::size_t window_manager::number_of_core_window() const { return impl_->wd_register.size(); } window_manager::mutex_type& window_manager::internal_lock() const { return mutex_; } void window_manager::all_handles(std::vector<core_window_t*> &v) const { impl_->wd_register.all(v); } void window_manager::event_filter(core_window_t* wd, bool is_make, event_code evtid) { switch(evtid) { case event_code::mouse_drop: wd->flags.dropable = (is_make || (0 != wd->annex.events_ptr->mouse_dropfiles.length())); break; default: break; } } bool window_manager::available(core_window_t* wd) { return impl_->wd_register.available(wd); } bool window_manager::available(core_window_t * a, core_window_t* b) { return (impl_->wd_register.available(a) && impl_->wd_register.available(b)); } bool window_manager::available(native_window_type wd) { if(wd) { std::lock_guard<decltype(mutex_)> lock(mutex_); return (impl_->misc_register.find(wd) != nullptr); } return false; } window_manager::core_window_t* window_manager::create_root(core_window_t* owner, bool nested, rectangle r, const appearance& app, widget* wdg) { native_window_type native = nullptr; if (owner) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(owner)) { if (owner->flags.destroying) throw std::runtime_error("the specified owner is destory"); #ifndef WIDGET_FRAME_DEPRECATED native = (category::flags::frame == owner->other.category ? owner->other.attribute.frame->container : owner->root_widget->root); #else native = owner->root_widget->root; #endif r.x += owner->pos_root.x; r.y += owner->pos_root.y; } else owner = nullptr; } auto result = native_interface::create_window(native, nested, r, app); if (result.native_handle) { auto wd = new core_window_t(owner, widget_notifier_interface::get_notifier(wdg), (category::root_tag**)nullptr); if (nested) { wd->owner = nullptr; wd->parent = owner; wd->index = static_cast<unsigned>(owner->children.size()); owner->children.push_back(wd); } wd->flags.take_active = !app.no_activate; wd->title = native_interface::window_caption(result.native_handle); //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); //create Root graphics Buffer and manage it root_misc misc(wd, result.width, result.height); auto* value = impl_->misc_register.insert(result.native_handle, misc); wd->bind_native_window(result.native_handle, result.width, result.height, result.extra_width, result.extra_height, value->root_graph); impl_->wd_register.insert(wd, wd->thread_id); #ifndef WIDGET_FRAME_DEPRECATED if (owner && (category::flags::frame == owner->other.category)) insert_frame(owner, wd); #endif bedrock::inc_window(wd->thread_id); this->icon(wd, impl_->default_icon_small, impl_->default_icon_big); return wd; } return nullptr; } #ifndef WIDGET_FRAME_DEPRECATED window_manager::core_window_t* window_manager::create_frame(core_window_t* parent, const rectangle& r, widget* wdg) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(parent) == false) return nullptr; core_window_t * wd = new core_window_t(parent, widget_notifier_interface::get_notifier(wdg), r, (category::frame_tag**)nullptr); wd->frame_window(native_interface::create_child_window(parent->root, rectangle(wd->pos_root.x, wd->pos_root.y, r.width, r.height))); impl_->wd_register.insert(wd, wd->thread_id); //Insert the frame_widget into its root frames container. wd->root_widget->other.attribute.root->frames.push_back(wd); return (wd); } bool window_manager::insert_frame(core_window_t* frame, native_window wd) { if(frame) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if(category::flags::frame == frame->other.category) frame->other.attribute.frame->attach.push_back(wd); return true; } return false; } bool window_manager::insert_frame(core_window_t* frame, core_window_t* wd) { if(frame) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if(category::flags::frame == frame->other.category) { if (impl_->wd_register.available(wd) && (category::flags::root == wd->other.category) && wd->root != frame->root) { frame->other.attribute.frame->attach.push_back(wd->root); return true; } } } return false; } #endif window_manager::core_window_t* window_manager::create_widget(core_window_t* parent, const rectangle& r, bool is_lite, widget* wdg) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(parent) == false) throw std::invalid_argument("invalid parent/owner handle"); if (parent->flags.destroying) throw std::logic_error("the specified parent is destory"); auto wdg_notifier = widget_notifier_interface::get_notifier(wdg); core_window_t * wd; if (is_lite) wd = new core_window_t(parent, std::move(wdg_notifier), r, (category::lite_widget_tag**)nullptr); else wd = new core_window_t(parent, std::move(wdg_notifier), r, (category::widget_tag**)nullptr); impl_->wd_register.insert(wd, wd->thread_id); return wd; } void window_manager::close(core_window_t *wd) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd) == false) return; if (wd->flags.destroying) return; if(category::flags::root == wd->other.category) { auto &brock = bedrock::instance(); arg_unload arg; arg.window_handle = reinterpret_cast<window>(wd); arg.cancel = false; brock.emit(event_code::unload, wd, arg, true, brock.get_thread_context()); if (false == arg.cancel) { //Before close the window, its owner window should be actived, otherwise other window will be //activated due to the owner window is not enabled. if(wd->flags.modal || (wd->owner == nullptr) || wd->owner->flags.take_active) native_interface::activate_owner(wd->root); if (!wd->flags.destroying) { //Close should detach the drawer and send destroy signal to widget object. //Otherwise, when a widget object is been deleting in other thread by delete operator, the object will be destroyed //before the window_manager destroyes the window, and then, window_manager detaches the //non-existing drawer_trigger which is destroyed by destruction of widget. Crash! wd->drawer.detached(); wd->widget_notifier->destroy(); } native_interface::close_window(wd->root); } } else destroy(wd); } //destroy //@brief: Delete the window handle void window_manager::destroy(core_window_t* wd) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd) == false) return; rectangle update_area(wd->pos_owner, wd->dimension); auto parent = wd->parent; if (parent) utl::erase(parent->children, wd); _m_destroy(wd); while (parent && (parent->other.category == ::nana::category::flags::lite_widget)) { update_area.x += parent->pos_owner.x; update_area.y += parent->pos_owner.y; parent = parent->parent; } update(parent, false, false, &update_area); } void window_manager::destroy_handle(core_window_t* wd) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd) == false) return; #ifndef WIDGET_FRAME_DEPRECATED if((category::flags::root == wd->other.category) || (category::flags::frame != wd->other.category)) #else if (category::flags::root == wd->other.category) #endif { impl_->misc_register.erase(wd->root); impl_->wd_register.remove(wd); } } void window_manager::default_icon(const nana::paint::image& _small, const nana::paint::image& big) { impl_->default_icon_big = big; impl_->default_icon_small = _small; } void window_manager::icon(core_window_t* wd, const paint::image& small_icon, const paint::image& big_icon) { if(!big_icon.empty() || !small_icon.empty()) { std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd)) { if(category::flags::root == wd->other.category) native_interface::window_icon(wd->root, small_icon, big_icon); } } } //show //@brief: show or hide a window bool window_manager::show(core_window_t* wd, bool visible) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (!impl_->wd_register.available(wd)) return false; if(visible != wd->visible) { #ifndef WIDGET_FRAME_DEPRECATED native_window_type nv = nullptr; switch(wd->other.category) { case category::flags::root: nv = wd->root; break; case category::flags::frame: nv = wd->other.attribute.frame->container; break; default: //category::widget_tag, category::lite_widget_tag break; } #else auto nv = (category::flags::root == wd->other.category ? wd->root : nullptr); #endif if(visible && wd->effect.bground) window_layer::make_bground(wd); //Don't set the visible attr of a window if it is a root. //The visible attr of a root will be set in the expose event. if(category::flags::root != wd->other.category) bedrock::instance().event_expose(wd, visible); if(nv) native_interface::show_window(nv, visible, wd->flags.take_active); } return true; } window_manager::core_window_t* window_manager::find_window(native_window_type root, int x, int y) { if (nullptr == root) return nullptr; if((false == attr_.capture.ignore_children) || (nullptr == attr_.capture.window) || (attr_.capture.window->root != root)) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); auto rrt = root_runtime(root); point pos{ x, y }; if (rrt && _m_effective(rrt->window, pos)) return _m_find(rrt->window, pos); } return attr_.capture.window; } //move the wnd and its all children window, x and y is a relatively coordinate for wnd's parent window bool window_manager::move(core_window_t* wd, int x, int y, bool passive) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd)) { if (category::flags::root != wd->other.category) { //Move child widgets if (x != wd->pos_owner.x || y != wd->pos_owner.y) { point delta{ x - wd->pos_owner.x, y - wd->pos_owner.y }; wd->pos_owner.x = x; wd->pos_owner.y = y; _m_move_core(wd, delta); auto &brock = bedrock::instance(); arg_move arg; arg.window_handle = reinterpret_cast<window>(wd); arg.x = x; arg.y = y; brock.emit(event_code::move, wd, arg, true, brock.get_thread_context()); return true; } } else if (!passive) { //Check if this root is a nested if (wd->parent && (category::flags::root != wd->parent->other.category)) { //The parent of the window is not a root, the position should //be transformed to a position based on its parent. x += wd->parent->pos_root.x; y += wd->parent->pos_root.y; } native_interface::move_window(wd->root, x, y); } } return false; } bool window_manager::move(core_window_t* wd, const rectangle& r) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (!impl_->wd_register.available(wd)) return false; auto & brock = bedrock::instance(); bool moved = false; const bool size_changed = (r.width != wd->dimension.width || r.height != wd->dimension.height); if(category::flags::root != wd->other.category) { //Move child widgets if(r.x != wd->pos_owner.x || r.y != wd->pos_owner.y) { point delta{ r.x - wd->pos_owner.x, r.y - wd->pos_owner.y }; wd->pos_owner.x = r.x; wd->pos_owner.y = r.y; _m_move_core(wd, delta); moved = true; arg_move arg; arg.window_handle = reinterpret_cast<window>(wd); arg.x = r.x; arg.y = r.y; brock.emit(event_code::move, wd, arg, true, brock.get_thread_context()); } if(size_changed) size(wd, nana::size{r.width, r.height}, true, false); } else { ::nana::rectangle root_r = r; //Move event should not get called here, //because the window is a root, the event will get called by system event handler. //Check if this root is a nested if (wd->parent && (category::flags::root != wd->parent->other.category)) { //The parent of the window is not a root, the position should //be transformed to a position based on its parent. root_r.x += wd->parent->pos_root.x; root_r.y += wd->parent->pos_root.y; } if(size_changed) { wd->dimension.width = root_r.width; wd->dimension.height = root_r.height; wd->drawer.graphics.make(wd->dimension); wd->root_graph->make(wd->dimension); native_interface::move_window(wd->root, root_r); arg_resized arg; arg.window_handle = reinterpret_cast<window>(wd); arg.width = root_r.width; arg.height = root_r.height; brock.emit(event_code::resized, wd, arg, true, brock.get_thread_context()); } else native_interface::move_window(wd->root, root_r.x, root_r.y); } return (moved || size_changed); } //size //@brief: Size a window //@param: passive, if it is true, the function would not change the size if wd is a root_widget. // e.g, when the size of window is changed by OS/user, the function should not resize the // window again, otherwise, it causes an infinite loop, because when a root_widget is resized, // window_manager will call the function. bool window_manager::size(core_window_t* wd, nana::size sz, bool passive, bool ask_update) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (!impl_->wd_register.available(wd)) return false; auto & brock = bedrock::instance(); if (sz != wd->dimension) { arg_resizing arg; arg.window_handle = reinterpret_cast<window>(wd); arg.border = window_border::none; arg.width = sz.width; arg.height = sz.height; brock.emit(event_code::resizing, wd, arg, false, brock.get_thread_context()); sz.width = arg.width; sz.height = arg.height; } if(wd->max_track_size.width && wd->max_track_size.height) { if(sz.width > wd->max_track_size.width) sz.width = wd->max_track_size.width; if(sz.height > wd->max_track_size.height) sz.height = wd->max_track_size.height; } if(wd->min_track_size.width && wd->min_track_size.height) { if(sz.width < wd->min_track_size.width) sz.width = wd->min_track_size.width; if(sz.height < wd->min_track_size.height) sz.height = wd->min_track_size.height; } if (wd->dimension == sz) return false; wd->dimension = sz; if(category::flags::lite_widget != wd->other.category) { bool graph_state = wd->drawer.graphics.empty(); wd->drawer.graphics.make(sz); //It shall make a typeface_changed() call when the graphics state is changing. //Because when a widget is created with zero-size, it may get some wrong result in typeface_changed() call //due to the invaliable graphics object. if(graph_state != wd->drawer.graphics.empty()) wd->drawer.typeface_changed(); if(category::flags::root == wd->other.category) { wd->root_graph->make(sz); if(false == passive) native_interface::window_size(wd->root, sz + nana::size(wd->extra_width, wd->extra_height)); } #ifndef WIDGET_FRAME_DEPRECATED else if(category::flags::frame == wd->other.category) { native_interface::window_size(wd->other.attribute.frame->container, sz); for(auto natwd : wd->other.attribute.frame->attach) native_interface::window_size(natwd, sz); } #endif else { //update the bground buffer of glass window. if(wd->effect.bground && wd->parent) { wd->other.glass_buffer.make(sz); window_layer::make_bground(wd); } } } arg_resized arg; arg.window_handle = reinterpret_cast<window>(wd); arg.width = sz.width; arg.height = sz.height; brock.emit(event_code::resized, wd, arg, ask_update, brock.get_thread_context()); return true; } window_manager::core_window_t* window_manager::root(native_window_type wd) const { static std::pair<native_window_type, core_window_t*> cache; if(cache.first == wd) return cache.second; //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); auto rrt = root_runtime(wd); if(rrt) { cache.first = wd; cache.second = rrt->window; return cache.second; } return nullptr; } //Copy the root buffer that wnd specified into DeviceContext void window_manager::map(core_window_t* wd, bool forced, const rectangle* update_area) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd) && !wd->is_draw_through()) { auto parent = wd->parent; while (parent) { if (parent->flags.refreshing) return; parent = parent->parent; } bedrock::instance().flush_surface(wd, forced, update_area); } } //update //@brief: update is used for displaying the screen-off buffer. // Because of a good efficiency, if it is called in an event procedure and the event procedure window is the // same as update's, update would not map the screen-off buffer and just set the window for lazy refresh bool window_manager::update(core_window_t* wd, bool redraw, bool forced, const rectangle* update_area) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd) == false) return false; if (wd->displayed()) { if(forced || (false == wd->belong_to_lazy())) { if (!wd->flags.refreshing) { window_layer::paint(wd, redraw, false); this->map(wd, forced, update_area); return true; } else if (forced) { window_layer::paint(wd, false, false); this->map(wd, true, update_area); return true; } } else if (redraw) window_layer::paint(wd, true, false); if (wd->other.upd_state == core_window_t::update_state::lazy) wd->other.upd_state = core_window_t::update_state::refresh; } return true; } void window_manager::refresh_tree(core_window_t* wd) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); //It's not worthy to redraw if visible is false if (impl_->wd_register.available(wd) && wd->displayed()) window_layer::paint(wd, true, true); } //do_lazy_refresh //@brief: defined a behavior of flush the screen //@return: it returns true if the wnd is available bool window_manager::do_lazy_refresh(core_window_t* wd, bool force_copy_to_screen, bool refresh_tree) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (false == impl_->wd_register.available(wd)) return false; //It's not worthy to redraw if visible is false if(wd->visible && (!wd->is_draw_through())) { if (wd->visible_parents()) { if ((wd->other.upd_state == core_window_t::update_state::refresh) || force_copy_to_screen) { window_layer::paint(wd, false, refresh_tree); this->map(wd, force_copy_to_screen); } else if (effects::edge_nimbus::none != wd->effect.edge_nimbus) { //The window is still mapped because of edge nimbus effect. //Avoid duplicate copy if action state is not changed and the window is not focused. if ((wd->flags.action != wd->flags.action_before) || (bedrock::instance().focus() == wd)) this->map(wd, true); } } else window_layer::paint(wd, true, refresh_tree); //only refreshing if it has an invisible parent } wd->other.upd_state = core_window_t::update_state::none; return true; } //get_graphics //@brief: Get a copy of the graphics object of a window. // the copy of the graphics object has a same buf handle with the graphics object's, they are count-refered // here returns a reference that because the framework does not guarantee the wnd's // graphics object available after a get_graphics call. bool window_manager::get_graphics(core_window_t* wd, nana::paint::graphics& result) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (!impl_->wd_register.available(wd)) return false; result.make(wd->drawer.graphics.size()); result.bitblt(0, 0, wd->drawer.graphics); window_layer::paste_children_to_graphics(wd, result); return true; } bool window_manager::get_visual_rectangle(core_window_t* wd, nana::rectangle& r) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); return (impl_->wd_register.available(wd) ? window_layer::read_visual_rectangle(wd, r) : false); } std::vector<window_manager::core_window_t*> window_manager::get_children(core_window_t* wd) const { std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd)) return wd->children; return{}; } bool window_manager::set_parent(core_window_t* wd, core_window_t* newpa) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (!impl_->wd_register.available(wd)) return false; if ((category::flags::lite_widget != wd->other.category) && (category::flags::widget != wd->other.category)) return false; if (impl_->wd_register.available(newpa) && (nullptr == wd->owner) && (wd->parent != newpa) && (!wd->flags.modal)) { //Check the newpa's parent. If wd is ancestor of newpa, return false. if (wd->is_ancestor_of(newpa->parent)) return false; auto wdpa = wd->parent; this->_m_disengage(wd, newpa); this->update(wdpa, true, true); this->update(wd, false, true); return true; } return false; } //set_focus //@brief: set a keyboard focus to a window. this may fire a focus event. window_manager::core_window_t* window_manager::set_focus(core_window_t* wd, bool root_has_been_focused, arg_focus::reason reason) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (!impl_->wd_register.available(wd)) return nullptr; auto & brock = bedrock::instance(); auto root_wd = wd->root_widget; auto prev_focus = root_wd->other.attribute.root->focus; arg_focus arg; if(wd != prev_focus) { //kill the previous window focus root_wd->other.attribute.root->focus = wd; if (impl_->wd_register.available(prev_focus)) { if(prev_focus->annex.caret_ptr) prev_focus->annex.caret_ptr->activate(false); arg.getting = false; arg.window_handle = reinterpret_cast<window>(prev_focus); arg.receiver = wd->root; arg.focus_reason = arg_focus::reason::general; brock.emit(event_code::focus, prev_focus, arg, true, brock.get_thread_context()); } //Check the prev_focus again, because it may be closed in focus event if (!impl_->wd_register.available(prev_focus)) prev_focus = nullptr; } else if(wd->root == native_interface::get_focus_window()) return prev_focus; //no new focus_window if(wd->annex.caret_ptr) wd->annex.caret_ptr->activate(true); arg.window_handle = reinterpret_cast<window>(wd); arg.getting = true; arg.receiver = wd->root; arg.focus_reason = reason; brock.emit(event_code::focus, wd, arg, true, brock.get_thread_context()); if (!root_has_been_focused) native_interface::set_focus(root_wd->root); //A fix by Katsuhisa Yuasa //The menubar token window will be redirected to the prev focus window when the new //focus window is a menubar. //The focus window will be restored to the prev focus which losts the focus becuase of //memberbar. if (prev_focus && (wd == wd->root_widget->other.attribute.root->menubar)) wd = prev_focus; if (wd != wd->root_widget->other.attribute.root->menubar) brock.set_menubar_taken(wd); return prev_focus; } window_manager::core_window_t* window_manager::capture_redirect(core_window_t* wd) { if(attr_.capture.window && (attr_.capture.ignore_children == false) && (attr_.capture.window != wd)) { //Tests if the wd is a child of captured window, //and returns the wd if it is. if (attr_.capture.window->is_ancestor_of(wd)) return wd; } return attr_.capture.window; } bool window_manager::capture_window_entered(int root_x, int root_y, bool& prev) { if(attr_.capture.window) { bool inside = _m_effective(attr_.capture.window, point{ root_x, root_y }); if(inside != attr_.capture.inside) { prev = attr_.capture.inside; attr_.capture.inside = inside; return true; } } return false; } window_manager::core_window_t * window_manager::capture_window() const { return attr_.capture.window; } void window_manager::capture_window(core_window_t* wd, bool captured, bool ignore_children) { if (!this->available(wd)) return; nana::point pos = native_interface::cursor_position(); auto & attr_cap = attr_.capture.history; if (captured) { if(wd != attr_.capture.window) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd)) { wd->flags.captured = true; native_interface::capture_window(wd->root, captured); if (attr_.capture.window) attr_cap.emplace_back(attr_.capture.window, attr_.capture.ignore_children); attr_.capture.window = wd; attr_.capture.ignore_children = ignore_children; native_interface::calc_window_point(wd->root, pos); attr_.capture.inside = _m_effective(wd, pos); } } } else if(wd == attr_.capture.window) { attr_.capture.window = nullptr; wd->flags.captured = false; if(attr_cap.size()) { std::pair<core_window_t*, bool> last = attr_cap.back(); attr_cap.pop_back(); if (impl_->wd_register.available(last.first)) { attr_.capture.window = last.first; attr_.capture.ignore_children = last.second; native_interface::capture_window(last.first->root, true); native_interface::calc_window_point(last.first->root, pos); last.first->flags.captured = true; attr_.capture.inside = _m_effective(last.first, pos); } } if(wd && (nullptr == attr_.capture.window)) native_interface::capture_window(wd->root, false); } else { for (auto i = attr_cap.begin(), end = attr_cap.end(); i != end; ++i) { if (i->first == wd) { attr_cap.erase(i); break; } } } } //enable_tabstop //@brief: when users press a TAB, the focus should move to the next widget. // this method insert a window which catchs an user TAB into a TAB window container // the TAB window container is held by a wd's root widget. Not every widget has a TAB window container, // the container is created while a first Tab Window is setting void window_manager::enable_tabstop(core_window_t* wd) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd) && (detail::tab_type::none == wd->flags.tab)) { wd->root_widget->other.attribute.root->tabstop.push_back(wd); wd->flags.tab |= detail::tab_type::tabstop; } } // preconditions of get_tabstop: tabstop is not empty and at least one window is visible window_manager::core_window_t* get_tabstop(window_manager::core_window_t* wd, bool forward) { auto & tabs = wd->root_widget->other.attribute.root->tabstop; if (forward) { if (detail::tab_type::none == wd->flags.tab) return (tabs.front()); else if (detail::tab_type::tabstop & wd->flags.tab) { auto end = tabs.cend(); auto i = std::find(tabs.cbegin(), end, wd); if (i != end) { ++i; window_manager::core_window_t* ts = (i != end ? (*i) : tabs.front()); return (ts != wd ? ts : 0); } else return tabs.front(); } } else if (tabs.size() > 1) //at least 2 elments in tabs are required when moving backward. { auto i = std::find(tabs.cbegin(), tabs.cend(), wd); if (i != tabs.cend()) return (tabs.cbegin() == i ? tabs.back() : *(i - 1)); } return nullptr; } auto window_manager::tabstop(core_window_t* wd, bool forward) const -> core_window_t* { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (!impl_->wd_register.available(wd)) return nullptr; auto & tabs = wd->root_widget->other.attribute.root->tabstop; if (tabs.empty()) return nullptr; bool precondition = false; for (auto & tab_wd : tabs) { if (tab_wd->displayed()) { precondition = true; break; } } if (precondition) { auto new_stop = get_tabstop(wd, forward); while (new_stop && (wd != new_stop)) { if (new_stop->flags.enabled && new_stop->displayed()) return new_stop; new_stop = get_tabstop(new_stop, forward); } } return nullptr; } void window_manager::remove_trash_handle(unsigned tid) { impl_->wd_register.delete_trash(tid); } bool window_manager::enable_effects_bground(core_window_t* wd, bool enabled) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd)) return window_layer::enable_effects_bground(wd, enabled); return false; } bool window_manager::calc_window_point(core_window_t* wd, nana::point& pos) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd)) { if(native_interface::calc_window_point(wd->root, pos)) { pos -= wd->pos_root; return true; } } return false; } root_misc* window_manager::root_runtime(native_window_type native_wd) const { return impl_->misc_register.find(native_wd); } bool window_manager::register_shortkey(core_window_t* wd, unsigned long key) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd)) { auto object = root_runtime(wd->root); if(object) return object->shortkeys.make(reinterpret_cast<window>(wd), key); } return false; } void window_manager::unregister_shortkey(core_window_t* wd, bool with_children) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd) == false) return; auto root_rt = root_runtime(wd->root); if (root_rt) { root_rt->shortkeys.umake(reinterpret_cast<window>(wd)); if (with_children) { for (auto child : wd->children) unregister_shortkey(child, true); } } } auto window_manager::shortkeys(core_window_t* wd, bool with_children) -> std::vector<std::pair<core_window_t*, unsigned long>> { std::vector<std::pair<core_window_t*, unsigned long>> result; //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); if (impl_->wd_register.available(wd)) { auto root_rt = root_runtime(wd->root); if (root_rt) { auto keys = root_rt->shortkeys.keys(reinterpret_cast<window>(wd)); for (auto key : keys) result.emplace_back(wd, key); if (with_children) { for (auto child : wd->children) { auto child_keys = shortkeys(child, true); std::copy(child_keys.cbegin(), child_keys.cend(), std::back_inserter(result)); } } } } return result; } window_manager::core_window_t* window_manager::find_shortkey(native_window_type native_window, unsigned long key) { if(native_window) { //Thread-Safe Required! std::lock_guard<decltype(mutex_)> lock(mutex_); auto object = root_runtime(native_window); if(object) return reinterpret_cast<core_window_t*>(object->shortkeys.find(key)); } return nullptr; } void window_manager::set_safe_place(core_window_t* wd, std::function<void()>&& fn) { if (fn) { std::lock_guard<decltype(mutex_)> lock(mutex_); if (!available(wd)) return; impl_->safe_place[wd].emplace_back(std::move(fn)); } } void window_manager::call_safe_place(unsigned thread_id) { std::lock_guard<decltype(mutex_)> lock(mutex_); for (auto i = impl_->safe_place.begin(); i != impl_->safe_place.end();) { if (i->first->thread_id == thread_id) { for (auto & fn : i->second) fn(); i = impl_->safe_place.erase(i); } else ++i; } } bool check_tree(basic_window* wd, basic_window* const cond) { if (wd == cond) return true; for (auto child : wd->children) { if (check_tree(child, cond)) return true; } return false; } void window_manager::_m_disengage(core_window_t* wd, core_window_t* for_new) { auto * const wdpa = wd->parent; bool established = (for_new && (wdpa != for_new)); decltype(for_new->root_widget->other.attribute.root) pa_root_attr = nullptr; if (established) pa_root_attr = for_new->root_widget->other.attribute.root; auto * root_attr = wd->root_widget->other.attribute.root; //Holds the shortkeys of wd and its children, and then //register these shortkeys for establishing. std::vector<std::pair<core_window_t*,unsigned long>> sk_holder; if ((!established) || (pa_root_attr != root_attr)) { if (established) { if (check_tree(wd, attr_.capture.window)) capture_window(attr_.capture.window, false, false); //The 3rd parameter is ignored if (root_attr->focus && check_tree(wd, root_attr->focus)) root_attr->focus = nullptr; if (root_attr->menubar && check_tree(wd, root_attr->menubar)) root_attr->menubar = nullptr; sk_holder = shortkeys(wd, true); } else { if (wd == attr_.capture.window) capture_window(attr_.capture.window, false, false); //The 3rd parameter is ignored. if (root_attr->focus == wd) root_attr->focus = nullptr; if (root_attr->menubar == wd) root_attr->menubar = nullptr; } if (wd->other.category == category::flags::root) { root_runtime(wd->root)->shortkeys.clear(); wd->other.attribute.root->focus = nullptr; } else { //Unregister all the children's shortkey, if it is disengaged for reset of parent. unregister_shortkey(wd, !established); } //test if wd is a TABSTOP window if (wd->flags.tab & detail::tab_type::tabstop) { auto & tabstop = root_attr->tabstop; //remove wd from root_attr, and then add it to pa_root_attr if established. auto wd_removed = utl::erase(tabstop, wd); if (established) { if (wd_removed) pa_root_attr->tabstop.push_back(wd); for (auto child : wd->children) { if(utl::erase(tabstop, child)) pa_root_attr->tabstop.push_back(child); } } } } if (!established) { using effect_renderer = detail::edge_nimbus_renderer<basic_window>; //remove the window from edge nimbus effect when it is destroying effect_renderer::instance().erase(wd); } else if (pa_root_attr != root_attr) { auto & cont = root_attr->effects_edge_nimbus; for (auto i = cont.begin(); i != cont.end();) { if ((i->window == wd) || wd->is_ancestor_of(i->window)) { pa_root_attr->effects_edge_nimbus.push_back(*i); i = cont.erase(i); continue; } ++i; } } if (wd->parent) { auto & pa_children = wd->parent->children; if (pa_children.size() > 1) { for (auto i = pa_children.cbegin(), end = pa_children.cend(); i != end; ++i) { if (((*i)->index) > (wd->index)) { for (; i != end; ++i) --((*i)->index); break; } } } if (established) { utl::erase(pa_children, wd); if (for_new->children.empty()) wd->index = 0; else wd->index = for_new->children.back()->index + 1; for_new->children.push_back(wd); } } #ifndef WIDGET_FRAME_DEPRECATED if (category::flags::frame == wd->other.category) { //remove the frame handle from the WM frames manager. utl::erase(root_attr->frames, wd); if (established) pa_root_attr->frames.push_back(wd); } #endif if (established) { wd->parent = for_new; wd->root = for_new->root; wd->root_graph = for_new->root_graph; wd->root_widget = for_new->root_widget; wd->pos_owner.x = wd->pos_owner.y = 0; auto delta_pos = wd->pos_root - for_new->pos_root; std::function<void(core_window_t*, const nana::point&)> set_pos_root; set_pos_root = [&set_pos_root](core_window_t* wd, const nana::point& delta_pos) { for (auto child : wd->children) { if (category::flags::root == child->other.category) { auto pos = native_interface::window_position(child->root); native_interface::parent_window(child->root, wd->root, false); pos -= delta_pos; native_interface::move_window(child->root, pos.x, pos.y); } else { child->root = wd->root; child->root_graph = wd->root_graph; child->root_widget = wd->root_widget; set_pos_root(child, delta_pos); } } wd->pos_root -= delta_pos; }; set_pos_root(wd, delta_pos); for (auto & keys : sk_holder) register_shortkey(keys.first, keys.second); } } void window_manager::_m_destroy(core_window_t* wd) { if(wd->flags.destroying) return; bedrock & brock = bedrock::instance(); brock.thread_context_destroy(wd); wd->flags.destroying = true; if(wd->annex.caret_ptr) { //The deletion of caret wants to know whether the window is destroyed under SOME platform. Such as X11 delete wd->annex.caret_ptr; wd->annex.caret_ptr = nullptr; } arg_destroy arg; arg.window_handle = reinterpret_cast<window>(wd); brock.emit(event_code::destroy, wd, arg, true, brock.get_thread_context()); //Delete the children widgets. for (auto i = wd->children.rbegin(), end = wd->children.rend(); i != end;) { auto child = *i; if (category::flags::root == child->other.category) { //closing a child root window erases itself from wd->children, //to make sure the iterator is valid, it must be reloaded. auto offset = std::distance(wd->children.rbegin(), i); //!!! //a potential issue is that if the calling thread is not same with child's thread, //the child root window may not be erased from wd->children now. native_interface::close_window(child->root); i = wd->children.rbegin(); std::advance(i, offset); end = wd->children.rend(); continue; } _m_destroy(child); ++i; } wd->children.clear(); _m_disengage(wd, nullptr); window_layer::enable_effects_bground(wd, false); wd->drawer.detached(); wd->widget_notifier->destroy(); #ifndef WIDGET_FRAME_DEPRECATED if(category::flags::frame == wd->other.category) { //The frame widget does not have an owner, and close their element windows without activating owner. //close the frame container window, it's a native window. for(auto i : wd->other.attribute.frame->attach) native_interface::close_window(i); native_interface::close_window(wd->other.attribute.frame->container); } #endif if(wd->other.category != category::flags::root) //Not a root window impl_->wd_register.remove(wd); } void window_manager::_m_move_core(core_window_t* wd, const point& delta) { if(category::flags::root != wd->other.category) //A root widget always starts at (0, 0) and its childs are not to be changed { wd->pos_root += delta; #ifndef WIDGET_FRAME_DEPRECATED if (category::flags::frame != wd->other.category) { if (wd->annex.caret_ptr && wd->annex.caret_ptr->visible()) wd->annex.caret_ptr->update(); } else native_interface::move_window(wd->other.attribute.frame->container, wd->pos_root.x, wd->pos_root.y); #else if (wd->annex.caret_ptr && wd->annex.caret_ptr->visible()) wd->annex.caret_ptr->update(); #endif if (wd->displayed() && wd->effect.bground) window_layer::make_bground(wd); for (auto child : wd->children) _m_move_core(child, delta); } else { auto pos = native_interface::window_position(wd->root) + delta; native_interface::move_window(wd->root, pos.x, pos.y); } } //_m_find //@brief: find a window on root window through a given root coordinate. // the given root coordinate must be in the rectangle of wnd. window_manager::core_window_t* window_manager::_m_find(core_window_t* wd, const point& pos) { if(!wd->visible) return nullptr; for(auto i = wd->children.rbegin(); i != wd->children.rend(); ++i) { core_window_t* child = *i; if((child->other.category != category::flags::root) && _m_effective(child, pos)) { child = _m_find(child, pos); if(child) return child; } } return wd; } //_m_effective, test if the window is a handle of window that specified by (root_x, root_y) bool window_manager::_m_effective(core_window_t* wd, const point& root_pos) { if(wd == nullptr || false == wd->visible) return false; return rectangle{ wd->pos_root, wd->dimension }.is_hit(root_pos); } //end class window_manager }//end namespace detail }//end namespace nana
[ "김지환" ]
김지환
30c9bf6b584da4214b8d29ef3095d6e148c80de7
e5953b1489a415794d5c655a1f80569a44473ac3
/MAMEoX/Sources/scale2x.cpp
7be9991d0b9fd7007ca34dc2a39d01e088fe80d5
[]
no_license
joolswills/mameox
2ec2c94bde2fd1c79380a3ca942360e80d1a2b22
d010c345dc17ad180a848cd357abe90feb628166
refs/heads/master
2020-05-29T23:16:40.958166
2011-09-17T18:19:01
2011-09-17T18:19:01
2,405,648
0
1
null
null
null
null
UTF-8
C++
false
false
29,472
cpp
/* * This file is part of the Advance project. * * Copyright (C) 1999-2002 Andrea Mazzoleni * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* * This file contains a C and MMX implentation of the Scale2x effect. * * You can found an high level description of the effect at : * * http://scale2x.sourceforge.net/scale2x.html * * Alternatively at the previous license terms, you are allowed to use this * code in your program with these conditions: * - the program is not used in commercial activities. * - the whole source code of the program is released with the binary. * - derivative works of the program are allowed. */ #include "scale2x.h" /* Suggested in "Intel Optimization" for Pentium II */ #define ASM_JUMP_ALIGN ".p2align 4\n" static void internal_scale2x_16_def(u16 *dst0, u16* dst1, const u16* src0, const u16* src1, const u16* src2, unsigned count) { /* first pixel */ dst0[0] = src1[0]; dst1[0] = src1[0]; if (src1[1] == src0[0] && src2[0] != src0[0]) dst0[1] =src0[0]; else dst0[1] =src1[0]; if (src1[1] == src2[0] && src0[0] != src2[0]) dst1[1] =src2[0]; else dst1[1] =src1[0]; ++src0; ++src1; ++src2; dst0 += 2; dst1 += 2; /* central pixels */ count -= 2; while (count) { if (src1[-1] == src0[0] && src2[0] != src0[0] && src1[1] != src0[0]) dst0[0] = src0[0]; else dst0[0] = src1[0]; if (src1[1] == src0[0] && src2[0] != src0[0] && src1[-1] != src0[0]) dst0[1] =src0[0]; else dst0[1] =src1[0]; if (src1[-1] == src2[0] && src0[0] != src2[0] && src1[1] != src2[0]) dst1[0] =src2[0]; else dst1[0] =src1[0]; if (src1[1] == src2[0] && src0[0] != src2[0] && src1[-1] != src2[0]) dst1[1] =src2[0]; else dst1[1] =src1[0]; ++src0; ++src1; ++src2; dst0 += 2; dst1 += 2; --count; } /* last pixel */ if (src1[-1] == src0[0] && src2[0] != src0[0]) dst0[0] =src0[0]; else dst0[0] =src1[0]; if (src1[-1] == src2[0] && src0[0] != src2[0]) dst1[0] =src2[0]; else dst1[0] =src1[0]; dst0[1] =src1[0]; dst1[1] =src1[0]; } static void internal_scale2x_32_def(u32* dst0, u32* dst1, const u32* src0, const u32* src1, const u32* src2, unsigned count) { /* first pixel */ dst0[0] = src1[0]; dst1[0] = src1[0]; if (src1[1] == src0[0] && src2[0] != src0[0]) dst0[1] = src0[0]; else dst0[1] = src1[0]; if (src1[1] == src2[0] && src0[0] != src2[0]) dst1[1] = src2[0]; else dst1[1] = src1[0]; ++src0; ++src1; ++src2; dst0 += 2; dst1 += 2; /* central pixels */ count -= 2; while (count) { if (src1[-1] == src0[0] && src2[0] != src0[0] && src1[1] != src0[0]) dst0[0] = src0[0]; else dst0[0] = src1[0]; if (src1[1] == src0[0] && src2[0] != src0[0] && src1[-1] != src0[0]) dst0[1] = src0[0]; else dst0[1] = src1[0]; if (src1[-1] == src2[0] && src0[0] != src2[0] && src1[1] != src2[0]) dst1[0] = src2[0]; else dst1[0] = src1[0]; if (src1[1] == src2[0] && src0[0] != src2[0] && src1[-1] != src2[0]) dst1[1] = src2[0]; else dst1[1] = src1[0]; ++src0; ++src1; ++src2; dst0 += 2; dst1 += 2; --count; } /* last pixel */ if (src1[-1] == src0[0] && src2[0] != src0[0]) dst0[0] = src0[0]; else dst0[0] = src1[0]; if (src1[-1] == src2[0] && src0[0] != src2[0]) dst1[0] = src2[0]; else dst1[0] = src1[0]; dst0[1] = src1[0]; dst1[1] = src1[0]; } static __inline void internal_scale2x_16_mmx_single(u16* dst, const u16* src0, const u16* src1, const u16* src2, unsigned count) { /* always do the first and last run */ count -= 2*4; #ifdef __GNUC__ __asm__ __volatile__( /* first run */ /* set the current, current_pre, current_next registers */ "pxor %%mm0,%%mm0\n" /* use a fake black out of screen */ "movq 0(%1),%%mm7\n" "movq 8(%1),%%mm1\n" "psrlq $48,%%mm0\n" "psllq $48,%%mm1\n" "movq %%mm7,%%mm2\n" "movq %%mm7,%%mm3\n" "psllq $16,%%mm2\n" "psrlq $16,%%mm3\n" "por %%mm2,%%mm0\n" "por %%mm3,%%mm1\n" /* current_upper */ "movq (%0),%%mm6\n" /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "movq %%mm0,%%mm3\n" "movq %%mm1,%%mm5\n" "pcmpeqw %%mm6,%%mm2\n" "pcmpeqw %%mm6,%%mm4\n" "pcmpeqw (%2),%%mm3\n" "pcmpeqw (%2),%%mm5\n" "pandn %%mm2,%%mm3\n" "pandn %%mm4,%%mm5\n" "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "pcmpeqw %%mm1,%%mm2\n" "pcmpeqw %%mm0,%%mm4\n" "pandn %%mm3,%%mm2\n" "pandn %%mm5,%%mm4\n" "movq %%mm2,%%mm3\n" "movq %%mm4,%%mm5\n" "pand %%mm6,%%mm2\n" "pand %%mm6,%%mm4\n" "pandn %%mm7,%%mm3\n" "pandn %%mm7,%%mm5\n" "por %%mm3,%%mm2\n" "por %%mm5,%%mm4\n" /* set *dst0 */ "movq %%mm2,%%mm3\n" "punpcklwd %%mm4,%%mm2\n" "punpckhwd %%mm4,%%mm3\n" "movq %%mm2,(%3)\n" "movq %%mm3,8(%3)\n" /* next */ "addl $8,%0\n" "addl $8,%1\n" "addl $8,%2\n" "addl $16,%3\n" /* central runs */ "shrl $2,%4\n" "jz 1f\n" ASM_JUMP_ALIGN "0:\n" /* set the current, current_pre, current_next registers */ "movq -8(%1),%%mm0\n" "movq (%1),%%mm7\n" "movq 8(%1),%%mm1\n" "psrlq $48,%%mm0\n" "psllq $48,%%mm1\n" "movq %%mm7,%%mm2\n" "movq %%mm7,%%mm3\n" "psllq $16,%%mm2\n" "psrlq $16,%%mm3\n" "por %%mm2,%%mm0\n" "por %%mm3,%%mm1\n" /* current_upper */ "movq (%0),%%mm6\n" /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "movq %%mm0,%%mm3\n" "movq %%mm1,%%mm5\n" "pcmpeqw %%mm6,%%mm2\n" "pcmpeqw %%mm6,%%mm4\n" "pcmpeqw (%2),%%mm3\n" "pcmpeqw (%2),%%mm5\n" "pandn %%mm2,%%mm3\n" "pandn %%mm4,%%mm5\n" "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "pcmpeqw %%mm1,%%mm2\n" "pcmpeqw %%mm0,%%mm4\n" "pandn %%mm3,%%mm2\n" "pandn %%mm5,%%mm4\n" "movq %%mm2,%%mm3\n" "movq %%mm4,%%mm5\n" "pand %%mm6,%%mm2\n" "pand %%mm6,%%mm4\n" "pandn %%mm7,%%mm3\n" "pandn %%mm7,%%mm5\n" "por %%mm3,%%mm2\n" "por %%mm5,%%mm4\n" /* set *dst0 */ "movq %%mm2,%%mm3\n" "punpcklwd %%mm4,%%mm2\n" "punpckhwd %%mm4,%%mm3\n" "movq %%mm2,(%3)\n" "movq %%mm3,8(%3)\n" /* next */ "addl $8,%0\n" "addl $8,%1\n" "addl $8,%2\n" "addl $16,%3\n" "decl %4\n" "jnz 0b\n" "1:\n" /* final run */ /* set the current, current_pre, current_next registers */ "movq -8(%1),%%mm0\n" "movq (%1),%%mm7\n" "pxor %%mm1,%%mm1\n" /* use a fake black out of screen */ "psrlq $48,%%mm0\n" "psllq $48,%%mm1\n" "movq %%mm7,%%mm2\n" "movq %%mm7,%%mm3\n" "psllq $16,%%mm2\n" "psrlq $16,%%mm3\n" "por %%mm2,%%mm0\n" "por %%mm3,%%mm1\n" /* current_upper */ "movq (%0),%%mm6\n" /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "movq %%mm0,%%mm3\n" "movq %%mm1,%%mm5\n" "pcmpeqw %%mm6,%%mm2\n" "pcmpeqw %%mm6,%%mm4\n" "pcmpeqw (%2),%%mm3\n" "pcmpeqw (%2),%%mm5\n" "pandn %%mm2,%%mm3\n" "pandn %%mm4,%%mm5\n" "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "pcmpeqw %%mm1,%%mm2\n" "pcmpeqw %%mm0,%%mm4\n" "pandn %%mm3,%%mm2\n" "pandn %%mm5,%%mm4\n" "movq %%mm2,%%mm3\n" "movq %%mm4,%%mm5\n" "pand %%mm6,%%mm2\n" "pand %%mm6,%%mm4\n" "pandn %%mm7,%%mm3\n" "pandn %%mm7,%%mm5\n" "por %%mm3,%%mm2\n" "por %%mm5,%%mm4\n" /* set *dst0 */ "movq %%mm2,%%mm3\n" "punpcklwd %%mm4,%%mm2\n" "punpckhwd %%mm4,%%mm3\n" "movq %%mm2,(%3)\n" "movq %%mm3,8(%3)\n" "emms\n" : "+r" (src0), "+r" (src1), "+r" (src2), "+r" (dst), "+r" (count) : : "cc" ); #else __asm { mov eax, src0; mov ebx, src1; mov ecx, src2; mov edx, dst; mov esi, count; /* first run */ /* set the current, current_pre, current_next registers */ pxor mm0,mm0; /* use a fake black out of screen */ movq mm7, qword ptr [ebx]; movq mm1, qword ptr [ebx + 8]; psrlq mm0, 48; psllq mm1, 48; movq mm2, mm7; movq mm3, mm7; psllq mm2, 16; psrlq mm3, 16; por mm0, mm2; por mm1, mm3; /* current_upper */ movq mm6, qword ptr [eax]; /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ movq mm2, mm0; movq mm4, mm1; movq mm3, mm0; movq mm5, mm1; pcmpeqw mm2, mm6; pcmpeqw mm4, mm6; pcmpeqw mm3, qword ptr [ecx]; pcmpeqw mm5, qword ptr [ecx]; pandn mm3,mm2; pandn mm5,mm4; movq mm2,mm0; movq mm4,mm1; pcmpeqw mm2,mm1; pcmpeqw mm4,mm0; pandn mm2,mm3; pandn mm4,mm5; movq mm3,mm2; movq mm5,mm4; pand mm2,mm6; pand mm4,mm6; pandn mm3,mm7; pandn mm5,mm7; por mm2,mm3; por mm4,mm5; /* set *dst0 */ movq mm3,mm2; punpcklwd mm2,mm4; punpckhwd mm3,mm4; movq qword ptr [edx], mm2; movq qword ptr [edx + 8], mm3; /* next */ add eax, 8; add ebx, 8; add ecx, 8; add edx, 16; /* central runs */ shr esi, 2; jz label1; align 4; label0: /* set the current, current_pre, current_next registers */ movq mm0, qword ptr [ebx-8]; movq mm7, qword ptr [ebx]; movq mm1, qword ptr [ebx+8]; psrlq mm0,48; psllq mm1,48; movq mm2,mm7; movq mm3,mm7; psllq mm2,16; psrlq mm3,16; por mm0,mm2; por mm1,mm3; /* current_upper */ movq mm6, qword ptr [eax]; /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ movq mm2,mm0; movq mm4,mm1; movq mm3,mm0; movq mm5,mm1; pcmpeqw mm2,mm6; pcmpeqw mm4,mm6; pcmpeqw mm3, qword ptr [ecx]; pcmpeqw mm5, qword ptr [ecx]; pandn mm3,mm2; pandn mm5,mm4; movq mm2,mm0; movq mm4,mm1; pcmpeqw mm2,mm1; pcmpeqw mm4,mm0; pandn mm2,mm3; pandn mm4,mm5; movq mm3,mm2; movq mm5,mm4; pand mm2,mm6; pand mm4,mm6; pandn mm3,mm7; pandn mm5,mm7; por mm2,mm3; por mm4,mm5; /* set *dst0 */ movq mm3,mm2; punpcklwd mm2,mm4; punpckhwd mm3,mm4; movq qword ptr [edx], mm2; movq qword ptr [edx+8], mm3; /* next */ add eax,8; add ebx,8; add ecx,8; add edx,16; dec esi; jnz label0; label1: /* final run */ /* set the current, current_pre, current_next registers */ movq mm0, qword ptr [ebx-8]; movq mm7, qword ptr [ebx]; pxor mm1,mm1; /* use a fake black out of screen */ psrlq mm0,48; psllq mm1,48; movq mm2,mm7; movq mm3,mm7; psllq mm2,16; psrlq mm3,16; por mm0,mm2; por mm1,mm3; /* current_upper */ movq mm6, qword ptr [eax]; /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ movq mm2,mm0; movq mm4,mm1; movq mm3,mm0; movq mm5,mm1; pcmpeqw mm2,mm6; pcmpeqw mm4,mm6; pcmpeqw mm3, qword ptr [ecx]; pcmpeqw mm5, qword ptr [ecx]; pandn mm3,mm2; pandn mm5,mm4; movq mm2,mm0; movq mm4,mm1; pcmpeqw mm2,mm1; pcmpeqw mm4,mm0; pandn mm2,mm3; pandn mm4,mm5; movq mm3,mm2; movq mm5,mm4; pand mm2,mm6; pand mm4,mm6; pandn mm3,mm7; pandn mm5,mm7; por mm2,mm3; por mm4,mm5; /* set *dst0 */ movq mm3,mm2; punpcklwd mm2,mm4; punpckhwd mm3,mm4; movq qword ptr [edx], mm2; movq qword ptr [edx+8], mm3; mov src0, eax; mov src1, ebx; mov src2, ecx; mov dst, edx; mov count, esi; emms; } } static __inline void internal_scale2x_32_mmx_single(u32* dst, const u32* src0, const u32* src1, const u32* src2, unsigned count) { /* always do the first and last run */ count -= 2*2; #ifdef __GNUC__ __asm__ __volatile__( /* first run */ /* set the current, current_pre, current_next registers */ "pxor %%mm0,%%mm0\n" /* use a fake black out of screen */ "movq 0(%1),%%mm7\n" "movq 8(%1),%%mm1\n" "psrlq $32,%%mm0\n" "psllq $32,%%mm1\n" "movq %%mm7,%%mm2\n" "movq %%mm7,%%mm3\n" "psllq $32,%%mm2\n" "psrlq $32,%%mm3\n" "por %%mm2,%%mm0\n" "por %%mm3,%%mm1\n" /* current_upper */ "movq (%0),%%mm6\n" /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "movq %%mm0,%%mm3\n" "movq %%mm1,%%mm5\n" "pcmpeqd %%mm6,%%mm2\n" "pcmpeqd %%mm6,%%mm4\n" "pcmpeqd (%2),%%mm3\n" "pcmpeqd (%2),%%mm5\n" "pandn %%mm2,%%mm3\n" "pandn %%mm4,%%mm5\n" "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "pcmpeqd %%mm1,%%mm2\n" "pcmpeqd %%mm0,%%mm4\n" "pandn %%mm3,%%mm2\n" "pandn %%mm5,%%mm4\n" "movq %%mm2,%%mm3\n" "movq %%mm4,%%mm5\n" "pand %%mm6,%%mm2\n" "pand %%mm6,%%mm4\n" "pandn %%mm7,%%mm3\n" "pandn %%mm7,%%mm5\n" "por %%mm3,%%mm2\n" "por %%mm5,%%mm4\n" /* set *dst0 */ "movq %%mm2,%%mm3\n" "punpckldq %%mm4,%%mm2\n" "punpckhdq %%mm4,%%mm3\n" "movq %%mm2,(%3)\n" "movq %%mm3,8(%3)\n" /* next */ "addl $8,%0\n" "addl $8,%1\n" "addl $8,%2\n" "addl $16,%3\n" /* central runs */ "shrl $1,%4\n" "jz 1f\n" ASM_JUMP_ALIGN "0:\n" /* set the current, current_pre, current_next registers */ "movq -8(%1),%%mm0\n" "movq (%1),%%mm7\n" "movq 8(%1),%%mm1\n" "psrlq $32,%%mm0\n" "psllq $32,%%mm1\n" "movq %%mm7,%%mm2\n" "movq %%mm7,%%mm3\n" "psllq $32,%%mm2\n" "psrlq $32,%%mm3\n" "por %%mm2,%%mm0\n" "por %%mm3,%%mm1\n" /* current_upper */ "movq (%0),%%mm6\n" /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "movq %%mm0,%%mm3\n" "movq %%mm1,%%mm5\n" "pcmpeqd %%mm6,%%mm2\n" "pcmpeqd %%mm6,%%mm4\n" "pcmpeqd (%2),%%mm3\n" "pcmpeqd (%2),%%mm5\n" "pandn %%mm2,%%mm3\n" "pandn %%mm4,%%mm5\n" "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "pcmpeqd %%mm1,%%mm2\n" "pcmpeqd %%mm0,%%mm4\n" "pandn %%mm3,%%mm2\n" "pandn %%mm5,%%mm4\n" "movq %%mm2,%%mm3\n" "movq %%mm4,%%mm5\n" "pand %%mm6,%%mm2\n" "pand %%mm6,%%mm4\n" "pandn %%mm7,%%mm3\n" "pandn %%mm7,%%mm5\n" "por %%mm3,%%mm2\n" "por %%mm5,%%mm4\n" /* set *dst0 */ "movq %%mm2,%%mm3\n" "punpckldq %%mm4,%%mm2\n" "punpckhdq %%mm4,%%mm3\n" "movq %%mm2,(%3)\n" "movq %%mm3,8(%3)\n" /* next */ "addl $8,%0\n" "addl $8,%1\n" "addl $8,%2\n" "addl $16,%3\n" "decl %4\n" "jnz 0b\n" "1:\n" /* final run */ /* set the current, current_pre, current_next registers */ "movq -8(%1),%%mm0\n" "movq (%1),%%mm7\n" "pxor %%mm1,%%mm1\n" /* use a fake black out of screen */ "psrlq $32,%%mm0\n" "psllq $32,%%mm1\n" "movq %%mm7,%%mm2\n" "movq %%mm7,%%mm3\n" "psllq $32,%%mm2\n" "psrlq $32,%%mm3\n" "por %%mm2,%%mm0\n" "por %%mm3,%%mm1\n" /* current_upper */ "movq (%0),%%mm6\n" /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "movq %%mm0,%%mm3\n" "movq %%mm1,%%mm5\n" "pcmpeqd %%mm6,%%mm2\n" "pcmpeqd %%mm6,%%mm4\n" "pcmpeqd (%2),%%mm3\n" "pcmpeqd (%2),%%mm5\n" "pandn %%mm2,%%mm3\n" "pandn %%mm4,%%mm5\n" "movq %%mm0,%%mm2\n" "movq %%mm1,%%mm4\n" "pcmpeqd %%mm1,%%mm2\n" "pcmpeqd %%mm0,%%mm4\n" "pandn %%mm3,%%mm2\n" "pandn %%mm5,%%mm4\n" "movq %%mm2,%%mm3\n" "movq %%mm4,%%mm5\n" "pand %%mm6,%%mm2\n" "pand %%mm6,%%mm4\n" "pandn %%mm7,%%mm3\n" "pandn %%mm7,%%mm5\n" "por %%mm3,%%mm2\n" "por %%mm5,%%mm4\n" /* set *dst0 */ "movq %%mm2,%%mm3\n" "punpckldq %%mm4,%%mm2\n" "punpckhdq %%mm4,%%mm3\n" "movq %%mm2,(%3)\n" "movq %%mm3,8(%3)\n" "emms\n" : "+r" (src0), "+r" (src1), "+r" (src2), "+r" (dst), "+r" (count) : : "cc" ); #else __asm { mov eax, src0; mov ebx, src1; mov ecx, src2; mov edx, dst; mov esi, count; /* first run */ /* set the current, current_pre, current_next registers */ pxor mm0,mm0; movq mm7,qword ptr [ebx]; movq mm1,qword ptr [ebx + 8]; psrlq mm0,32; psllq mm1,32; movq mm2,mm7; movq mm3,mm7; psllq mm2,32; psrlq mm3,32; por mm0,mm2; por mm1,mm3; /* current_upper */ movq mm6,qword ptr [eax]; /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ movq mm2,mm0; movq mm4,mm1; movq mm3,mm0; movq mm5,mm1; pcmpeqd mm2,mm6; pcmpeqd mm4,mm6; pcmpeqd mm3,qword ptr [ecx]; pcmpeqd mm5,qword ptr [ecx]; pandn mm3,mm2; pandn mm5,mm4; movq mm2,mm0; movq mm4,mm1; pcmpeqd mm2,mm1; pcmpeqd mm4,mm0; pandn mm2,mm3; pandn mm4,mm5; movq mm3,mm2; movq mm5,mm4; pand mm2,mm6; pand mm4,mm6; pandn mm3,mm7; pandn mm5,mm7; por mm2,mm3; por mm4,mm5; /* set *dst0 */ movq mm3,mm2; punpckldq mm2,mm4; punpckhdq mm3,mm4; movq qword ptr [edx],mm2; movq qword ptr [edx+8],mm3; /* next */ add eax,8; add ebx,8; add ecx,8; add edx,16; /* central runs */ shr esi,1; jz label1; label0: /* set the current, current_pre, current_next registers */ movq mm0,qword ptr [ebx-8]; movq mm7,qword ptr [ebx]; movq mm1,qword ptr [ebx+8]; psrlq mm0,32; psllq mm1,32; movq mm2,mm7; movq mm3,mm7; psllq mm2,32; psrlq mm3,32; por mm0,mm2; por mm1,mm3; /* current_upper */ movq mm6,qword ptr[eax]; /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ movq mm2,mm0; movq mm4,mm1; movq mm3,mm0; movq mm5,mm1; pcmpeqd mm2,mm6; pcmpeqd mm4,mm6; pcmpeqd mm3,qword ptr[ecx]; pcmpeqd mm5,qword ptr[ecx]; pandn mm3,mm2; pandn mm5,mm4; movq mm2,mm0; movq mm4,mm1; pcmpeqd mm2,mm1; pcmpeqd mm4,mm0; pandn mm2,mm3; pandn mm4,mm5; movq mm3,mm2; movq mm5,mm4; pand mm2,mm6; pand mm4,mm6; pandn mm3,mm7; pandn mm5,mm7; por mm2,mm3; por mm4,mm5; /* set *dst0 */ movq mm3,mm2; punpckldq mm2,mm4; punpckhdq mm3,mm4; movq qword ptr [edx],mm2; movq qword ptr [edx+8],mm3; /* next */ add eax,8; add ebx,8; add ecx,8; add edx,16; dec esi; jnz label0; label1: /* final run */ /* set the current, current_pre, current_next registers */ movq mm0,qword ptr [ebx-8]; movq mm7,qword ptr [ebx]; pxor mm1,mm1; psrlq mm0,32; psllq mm1,32; movq mm2,mm7; movq mm3,mm7; psllq mm2,32; psrlq mm3,32; por mm0,mm2; por mm1,mm3; /* current_upper */ movq mm6,qword ptr [eax]; /* compute the upper-left pixel for dst0 on %%mm2 */ /* compute the upper-right pixel for dst0 on %%mm4 */ movq mm2,mm0; movq mm4,mm1; movq mm3,mm0; movq mm5,mm1; pcmpeqd mm2,mm6; pcmpeqd mm4,mm6; pcmpeqd mm3,qword ptr [ecx]; pcmpeqd mm5,qword ptr [ecx]; pandn mm3,mm2; pandn mm5,mm4; movq mm2,mm0; movq mm4,mm1; pcmpeqd mm2,mm1; pcmpeqd mm4,mm0; pandn mm2,mm3; pandn mm4,mm5; movq mm3,mm2; movq mm5,mm4; pand mm2,mm6; pand mm4,mm6; pandn mm3,mm7; pandn mm5,mm7; por mm2,mm3; por mm4,mm5; /* set *dst0 */ movq mm3,mm2; punpckldq mm2,mm4; punpckhdq mm3,mm4; movq qword ptr [edx],mm2; movq qword ptr [edx+8],mm3; mov src0, eax; mov src1, ebx; mov src2, ecx; mov dst, edx; mov count, esi; emms; } #endif } static __inline void internal_scale2x_16_mmx(u16* dst0, u16* dst1, const u16* src0, const u16* src1, const u16* src2, unsigned count) { // assert( count >= 2*4 ); internal_scale2x_16_mmx_single(dst0, src0, src1, src2, count); internal_scale2x_16_mmx_single(dst1, src2, src1, src0, count); } static __inline void internal_scale2x_32_mmx(u32* dst0, u32* dst1, const u32* src0, const u32* src1, const u32* src2, unsigned count) { // assert( count >= 2*2 ); internal_scale2x_32_mmx_single(dst0, src0, src1, src2, count); internal_scale2x_32_mmx_single(dst1, src2, src1, src0, count); } #endif void AdMame2x(u8 *srcPtr, u32 srcPitch, u8 * /* deltaPtr */, u8 *dstPtr, u32 dstPitch, int width, int height) { u16 *dst0 = (u16 *)dstPtr; u16 *dst1 = dst0 + (dstPitch/2); u16 *src0 = (u16 *)srcPtr; u16 *src1 = src0 + (srcPitch/2); u16 *src2 = src1 + (srcPitch/2); internal_scale2x_16_mmx(dst0, dst1, src0, src0, src1, width); int count = height; count -= 2; while(count) { dst0 += dstPitch; dst1 += dstPitch; internal_scale2x_16_mmx(dst0, dst1, src0, src1, src2, width); src0 = src1; src1 = src2; src2 += srcPitch/2; --count; } dst0 += dstPitch; dst1 += dstPitch; internal_scale2x_16_mmx(dst0, dst1, src0, src1, src1, width); } void AdMame2x32(u8 *srcPtr, u32 srcPitch, u8 * /* deltaPtr */, u8 *dstPtr, u32 dstPitch, int width, int height) { u32 *dst0 = (u32 *)dstPtr; u32 *dst1 = dst0 + (dstPitch/4); u32 *src0 = (u32 *)srcPtr; u32 *src1 = src0 + (srcPitch/4); u32 *src2 = src1 + (srcPitch/4); internal_scale2x_32_mmx(dst0, dst1, src0, src0, src1, width); int count = height; count -= 2; while(count) { dst0 += dstPitch/2; dst1 += dstPitch/2; internal_scale2x_32_mmx(dst0, dst1, src0, src1, src2, width); src0 = src1; src1 = src2; src2 += srcPitch/4; --count; } dst0 += dstPitch/2; dst1 += dstPitch/2; internal_scale2x_32_mmx(dst0, dst1, src0, src1, src1, width); }
[ "" ]
3a50bd76e512a6a8a35be6669af642806ba50832
eba1bb9b56c9b7e416525460d577496e31e9c412
/src/lead_control.cpp
955a9ac10f031914f003304e2a495c2424e2fd6a
[]
no_license
akural/razmetka
1c7e2932b6baadd5cdcc746f6948f6f22a03ea84
e373f2b1bb73f910f9e4f82f46ccced5c1ccd94e
refs/heads/master
2020-04-16T03:39:37.696722
2019-06-14T18:50:23
2019-06-14T18:50:23
165,239,657
0
0
null
null
null
null
UTF-8
C++
false
false
309
cpp
#include "All_leads.h" #include "leads.h" leads::leads() { average_R = RR.middle*Fs; }; void leads::set_new_peak_info(info_for_new_peak* ptr_info_new_peak) { this->ptr_info_new_peak = ptr_info_new_peak; } void leads::set_all_leads(All_Leads&new_leads) { all_leads = &new_leads; }
97a73f07e33510b7923123d4216c3284b4a9d799
1349e442b303995936d2c71f85d84a4a3dcbfed1
/test/qblowfishtest.cpp
f773111c12451af3ee2cdcf3945942760ab6508a
[ "MIT" ]
permissive
roop/qblowfish
8c5e30a50fd5114600e5e3b44e9b3a571f1e40aa
830a0df115aec9a623d659a763e26ccb374cd7fd
refs/heads/master
2023-03-03T05:03:36.717844
2023-02-09T15:04:11
2023-02-09T15:04:11
4,393,063
21
5
NOASSERTION
2023-02-09T15:04:13
2012-05-21T12:00:38
C++
UTF-8
C++
false
false
7,469
cpp
#include "qblowfishtest.h" #include "qblowfish.h" void QBlowfishTest::blowfishTest_data() { QTest::addColumn<QString>("key"); QTest::addColumn<QString>("clearText"); QTest::addColumn<QString>("cipherText"); // Test vectors by Eric Young // from http://www.schneier.com/code/vectors.txt QTest::newRow( "1") << "0000000000000000" << "0000000000000000" << "4EF997456198DD78"; QTest::newRow( "2") << "FFFFFFFFFFFFFFFF" << "FFFFFFFFFFFFFFFF" << "51866FD5B85ECB8A"; QTest::newRow( "3") << "3000000000000000" << "1000000000000001" << "7D856F9A613063F2"; QTest::newRow( "4") << "1111111111111111" << "1111111111111111" << "2466DD878B963C9D"; QTest::newRow( "5") << "0123456789ABCDEF" << "1111111111111111" << "61F9C3802281B096"; QTest::newRow( "6") << "1111111111111111" << "0123456789ABCDEF" << "7D0CC630AFDA1EC7"; QTest::newRow( "7") << "FEDCBA9876543210" << "0123456789ABCDEF" << "0ACEAB0FC6A0A28D"; QTest::newRow( "8") << "7CA110454A1A6E57" << "01A1D6D039776742" << "59C68245EB05282B"; QTest::newRow( "9") << "0131D9619DC1376E" << "5CD54CA83DEF57DA" << "B1B8CC0B250F09A0"; QTest::newRow("10") << "07A1133E4A0B2686" << "0248D43806F67172" << "1730E5778BEA1DA4"; QTest::newRow("11") << "3849674C2602319E" << "51454B582DDF440A" << "A25E7856CF2651EB"; QTest::newRow("12") << "04B915BA43FEB5B6" << "42FD443059577FA2" << "353882B109CE8F1A"; QTest::newRow("13") << "0113B970FD34F2CE" << "059B5E0851CF143A" << "48F4D0884C379918"; QTest::newRow("14") << "0170F175468FB5E6" << "0756D8E0774761D2" << "432193B78951FC98"; QTest::newRow("15") << "43297FAD38E373FE" << "762514B829BF486A" << "13F04154D69D1AE5"; QTest::newRow("16") << "07A7137045DA2A16" << "3BDD119049372802" << "2EEDDA93FFD39C79"; QTest::newRow("17") << "04689104C2FD3B2F" << "26955F6835AF609A" << "D887E0393C2DA6E3"; QTest::newRow("18") << "37D06BB516CB7546" << "164D5E404F275232" << "5F99D04F5B163969"; QTest::newRow("19") << "1F08260D1AC2465E" << "6B056E18759F5CCA" << "4A057A3B24D3977B"; QTest::newRow("20") << "584023641ABA6176" << "004BD6EF09176062" << "452031C1E4FADA8E"; QTest::newRow("21") << "025816164629B007" << "480D39006EE762F2" << "7555AE39F59B87BD"; QTest::newRow("22") << "49793EBC79B3258F" << "437540C8698F3CFA" << "53C55F9CB49FC019"; QTest::newRow("23") << "4FB05E1515AB73A7" << "072D43A077075292" << "7A8E7BFA937E89A3"; QTest::newRow("24") << "49E95D6D4CA229BF" << "02FE55778117F12A" << "CF9C5D7A4986ADB5"; QTest::newRow("25") << "018310DC409B26D6" << "1D9D5C5018F728C2" << "D1ABB290658BC778"; QTest::newRow("26") << "1C587F1C13924FEF" << "305532286D6F295A" << "55CB3774D13EF201"; QTest::newRow("27") << "0101010101010101" << "0123456789ABCDEF" << "FA34EC4847B268B2"; QTest::newRow("28") << "1F1F1F1F0E0E0E0E" << "0123456789ABCDEF" << "A790795108EA3CAE"; QTest::newRow("29") << "E0FEE0FEF1FEF1FE" << "0123456789ABCDEF" << "C39E072D9FAC631D"; QTest::newRow("30") << "0000000000000000" << "FFFFFFFFFFFFFFFF" << "014933E0CDAFF6E4"; QTest::newRow("31") << "FFFFFFFFFFFFFFFF" << "0000000000000000" << "F21E9A77B71C49BC"; QTest::newRow("32") << "0123456789ABCDEF" << "0000000000000000" << "245946885754369A"; QTest::newRow("33") << "FEDCBA9876543210" << "FFFFFFFFFFFFFFFF" << "6B5C5A9C5D9E0A5A"; } void QBlowfishTest::blowfishTest() { QFETCH(QString, key); QFETCH(QString, clearText); QFETCH(QString, cipherText); QByteArray keyBytes = QByteArray::fromHex(key.toLatin1()); QByteArray clearTextBytes = QByteArray::fromHex(clearText.toLatin1()); QByteArray cipherTextBytes = QByteArray::fromHex(cipherText.toLatin1()); QBlowfish bf(keyBytes); QByteArray encryptedBytes = bf.encrypted(clearTextBytes); QVERIFY(cipherTextBytes == encryptedBytes); QByteArray decryptedBytes = bf.decrypted(encryptedBytes); QVERIFY(clearTextBytes == decryptedBytes); } void QBlowfishTest::blowfishTestSameKey_data() { QTest::addColumn<QString>("key"); QTest::addColumn<QStringList>("clearTextAndCipherText"); /* Test vectors generated using Python Cryptography Toolkit using this code: import Crypto from Crypto.Cipher import Blowfish def generate(key, clear): bf = Blowfish.new(key); cipher = bf.encrypt(clear); print "[" + clear + "] " + cipher.encode("hex"); */ QTest::newRow( "1") << "Caput Draconis" << (QStringList() << "ABCDEFGH" << "ea98b72a1a91af08" << "0123456789abcdef12341234" << "088fc006a93324f99ab889aff84e3c602bf330e8b7d874fe" << "Lorem ipsum dolorsitamet" << "cad01675711bfbfc9e9edc603583e3fc08a54351fc9ad35c" ); } void QBlowfishTest::blowfishTestSameKey() { QFETCH(QString, key); QFETCH(QStringList, clearTextAndCipherText); QBlowfish bf1(key.toLatin1()); bf1.init(); QBlowfish bf2(key.toLatin1()); bf2.init(); for (int i = 0; i < clearTextAndCipherText.count(); i += 2) { QByteArray clearText = clearTextAndCipherText.at(i).toLatin1(); QByteArray cipherText = QByteArray::fromHex(clearTextAndCipherText.at(i + 1).toLatin1()); QByteArray encrypted = bf1.encrypted(clearText); QVERIFY(encrypted == cipherText); QByteArray sameInstanceDecrypted = bf1.decrypted(encrypted); QVERIFY(sameInstanceDecrypted == clearText); QByteArray otherInstanceDecrypted = bf2.decrypted(encrypted); QVERIFY(otherInstanceDecrypted == clearText); } } void QBlowfishTest::blowfishTestPadding_data() { QTest::addColumn<QString>("key"); QTest::addColumn<QStringList>("clearTexts"); // Verify that with padding enabled we're able to encrypt/decrypt stuff of any length. // The encrypted stuff is not verified, for want of something golden to check with. // We only check whether decryption gives us back the original string correctly. QTest::newRow("multiples-of-8") << "Caput Draconis" << (QStringList() << "ABCDEFGH" << "0123456789abcdef12341234" << "Lorem ipsum dolorsitamet" ); QTest::newRow("any-length") << "Lorem ipsum dolor sit amet" << (QStringList() << "Caput Draconis" << "Flibbertigibbet" << "Mimbulus mimbletonia" << "Banana Fritters" << "I Solemly Swear I am up to no good" ); } void QBlowfishTest::blowfishTestPadding() { QFETCH(QString, key); QFETCH(QStringList, clearTexts); QBlowfish *bf1 = new QBlowfish(key.toLatin1()); bf1->setPaddingEnabled(true); QList<QByteArray> encryptedBas; foreach (const QString &clearText, clearTexts) { encryptedBas << bf1->encrypted(clearText.toLatin1()); } delete bf1; QBlowfish *bf2 = new QBlowfish(key.toLatin1()); bf2->setPaddingEnabled(true); for (int i = 0; i < encryptedBas.length(); i++) { QByteArray encryptedBa = encryptedBas.at(i); QByteArray decryptedBa = bf2->decrypted(encryptedBa); QVERIFY(decryptedBa == clearTexts.at(i).toLatin1()); } delete bf2; } QTEST_MAIN(QBlowfishTest)
1bf516d2a5ec01c6fe22210ff4f36e8bc35113fa
cb80a8562d90eb969272a7ff2cf52c1fa7aeb084
/inletTest3/0.016/omega
eba5573df459855c9f72df1215fa7636a0ce9301
[]
no_license
mahoep/inletCFD
eb516145fad17408f018f51e32aa0604871eaa95
0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2
refs/heads/main
2023-08-30T22:07:41.314690
2021-10-14T19:23:51
2021-10-14T19:23:51
314,657,843
0
0
null
null
null
null
UTF-8
C++
false
false
147,951
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2006 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.016"; object omega; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 -1 0 0 0 0]; internalField nonuniform List<scalar> 16277 ( 0.00810619 0.00810455 0.00810124 0.00810166 0.00810244 0.00810302 0.00810274 0.00810083 0.00809697 0.00809102 0.00808335 0.00807428 0.00806414 0.00805308 0.00804123 0.00802865 0.0080154 0.00800151 0.00798697 0.00797179 0.00795595 0.00793943 0.00792224 0.00790437 0.00788584 0.00786665 0.00784681 0.00782632 0.0078052 0.00778345 0.00776111 0.00773817 0.00771465 0.00769057 0.00766595 0.0076408 0.00761515 0.00758902 0.00756243 0.00753539 0.00750795 0.00748012 0.00745192 0.00742339 0.00739455 0.00736543 0.00733606 0.00730647 0.00727669 0.00724675 0.00721669 0.00718653 0.00715631 0.00712606 0.00709581 0.00706561 0.00703549 0.00700547 0.00697561 0.00694594 0.00691649 0.00688732 0.00685847 0.00683005 0.00680221 0.00677533 0.00675032 0.00672948 0.00671883 0.00673521 0.00681758 0.00703658 0.00755292 0.00870216 0.0111786 0.0164111 0.0269874 0.0453358 0.0799919 0.146587 0.272977 0.513965 0.964207 1.67064 2.4401 2.98046 3.37825 4.67172 10.3413 13.6362 12.5169 33.7555 103.65 393.469 3374.07 18441.3 252750 249708 37541.6 8559.84 14999.3 52566.9 246685 243472 54488.4 17335.7 20574 57675.7 234741 230346 57135.2 21179.2 23175.1 58521.6 224457 221626 57877.9 23315.4 24423.8 58299.7 217280 214416 56958.4 24290.2 24934.8 57436.5 210918 208885 56240 24768.2 25239.2 56772.9 206226 204716 55758.6 25048.3 25444 56328 202594 201421 55440.4 25244.7 25602.1 56033.7 199636 198682 55217.3 25398.4 25731.1 55833.6 197106 196285 55058.5 25524.6 25839 55691 194839 194097 54944.3 25630.7 25932.1 55583.2 192731 192036 54856.1 25722.3 26015.7 55496.1 190730 190071 54784.2 25802.1 26088.8 55423.4 188819 188195 54724.8 25873.4 26156.1 55362.4 186997 186406 54675.6 25940.2 26219.4 55309.9 185259 184700 54631.7 26002.1 26276.4 55259.7 183595 183058 54586.8 26056 26324.3 55206.2 181983 181458 54536.8 26100.2 26362.9 55146.4 180399 179876 54479.2 26136.1 26394.2 55078.6 178822 178294 54413.9 26165.2 26419.3 55002.8 177239 176703 54339.9 26188.8 26439.5 54917.8 175646 175104 54256.5 26208.2 26456.5 54823.7 174051 173506 54164.8 26225.3 26471.9 54721.7 172457 171912 54065.3 26241.3 26486.2 54611.7 170869 170323 53957.4 26256 26498.9 54492.8 169284 168735 53840 26268.9 26509.6 54363.7 167698 167144 53711.8 26279.7 26518 54223.2 166104 165543 53571.7 26288.1 26523.6 54069.7 164497 163927 53417.7 26293.4 26525.5 53901.5 162873 162293 53248.4 26294.6 26522.9 53717.1 161229 160639 53062.5 26291.1 26515.3 53515.7 159563 158963 52857.7 26282.5 26502.2 53295.8 157874 157264 52629.9 26268 26482.8 53056.6 156160 155538 52384.9 26247 26456.5 52799 154418 153784 52119.3 26218.9 26422.6 52520.1 152643 151996 51830.7 26182.7 26379.8 52217.2 150834 150175 51516.3 26137.1 26326.7 51887.6 148992 148322 51173.4 26080.4 26261.3 51528.5 147120 146442 50798.7 26010.4 26181.4 51136.6 145223 144542 50388.8 25924.2 26084.2 50708.5 143313 142636 49938.9 25812.7 25964.6 50239.4 141405 140742 49445.2 25679.4 25821.7 49725.6 139519 138883 48903.4 25518.7 25649.5 49162.8 137682 137086 48308.5 25324.1 25441.7 48546.3 135923 135385 47656 25089.3 25191.8 47871.8 134277 133814 46942.4 24808.2 24894.1 47137 132781 132413 46166.5 24476.1 24544.4 46339.5 131477 131224 45354.8 24090.1 24140.3 45499.6 130423 130287 44517.8 23652 23686.9 44636.3 129658 129638 43667.3 23166.2 23190 43765.9 129193 129294 42826 22648.4 22665.8 42914.4 129079 129254 42017.7 22114.7 22130.2 42125.1 129195 129536 41286 21579.8 21594.3 41411.2 129563 130054 40642.7 21057.3 21080.9 40790.7 130176 130803 40126 20584.1 20625.4 40306.3 130994 131699 39746.3 20180.3 20238 39964.5 131933 132684 39455.8 19837 19911.7 39749 132951 133738 39276.2 19556.5 19649.3 39633.1 134031 134834 39206.8 19341.1 19452.3 39622.4 135137 135935 39245.1 19190.3 19319.6 39716.4 136235 137009 39383 19101.4 19247.9 39903.1 137296 138029 39604.8 19057.5 19227.9 40164.3 138292 138969 39892.3 19060.1 19258.4 40518.9 139206 139819 40253.6 19111.8 19343.2 40928.4 140025 140567 40657 19208.3 19465.4 41358.6 140739 141207 41078.6 19333.8 19606.1 41793.6 141344 141739 41502.4 19476.5 19759.7 42218.5 141842 142169 41914.6 19630.8 19920.1 42622 142241 142507 42304.9 19790.3 20081.5 42996.7 142550 142764 42666.5 19949.8 20239.4 43338.4 142783 142948 42995.6 20104.8 20389.7 43645.4 142947 143068 43291 20251.5 20529.8 43918.4 143054 143140 43553.6 20387.6 20658 44159.2 143114 143170 43785.2 20511.8 20774.6 44375.5 143131 143166 43989.3 20624.7 20879.8 44566 143094 143118 44166.3 20726.2 20973.7 44730.3 143027 143046 44319.5 20816.5 21056.7 44872.8 142937 142950 44453.2 20896.5 21132.8 44997.9 142826 142835 44571.7 20968.3 21201.1 45109.6 142699 142703 44678.4 21032.5 21262.5 45210.9 142556 142556 44775.8 21090.6 21318.4 45303.6 142398 142393 44865.4 21143.7 21369.5 45388.8 142225 142215 44947.8 21192.2 21416.1 45467.1 142067 141993 45019 21234.7 21471.6 45541.9 141896 141790 45125.1 21267.7 21493 45720.5 141784 141118 44964.6 21183.9 21309.8 44977.2 140550 138699 44803.8 21052.5 20047.2 42711.5 136318 127868 44718.3 20545.7 14132 24860 114086 128764 55883.1 25729.1 12403.3 6399.99 4012.43 3188.16 2873.81 2406.52 2219.45 2081.95 2027.68 2015.78 2047.6 2138.71 2259.11 2483.68 2731.87 3278.99 3573.05 4440.44 5373.71 7051.48 10942 21671.5 53281.7 124636 396397 425630 135047 58652.7 62035.3 142892 451414 473591 149333 65496.8 65578.7 150764 479904 485737 151981 66762.9 66940.8 153550 489499 490095 153947 67201.3 67129.7 153965 489895 490264 154000 67142.2 67137 154027 490102 490214 154008 67103.1 67091.1 154012 490338 490187 153995 67062.1 67033.1 154000 490884 490745 153955 67003.5 66973.1 153944 490870 490741 153925 66935.9 66916.3 153926 491157 491598 153832 66867.7 66846 153868 491165 491604 153779 66801.3 66780.5 153831 491752 492192 153701 66728.7 66706.4 153751 491769 492211 153649 66659.3 66637.9 153699 492366 492808 153567 66584.9 66562.1 153613 492391 492837 153508 66514.3 66492.6 153555 492996 493443 153421 66439.6 66416.9 153464 493030 493479 153357 66369.9 66348.7 153400 493643 494094 153263 66298 66276.7 153300 493969 493859 153243 66230.3 66209.8 153232 494302 494764 153124 66163 66142.8 153146 494637 494534 153097 66100.5 66081.9 153088 494977 495445 152985 66039.5 66021.7 153010 495318 495219 152969 65984.5 65968.7 152964 495663 496134 152872 65932.5 65918.1 152903 496009 495912 152872 65888.1 65876.3 152879 496357 496830 152803 65848.6 65838.9 152850 496705 496609 152829 65818.8 65812.8 152866 497052 497524 152808 65796.5 65793.2 152882 497396 497296 152876 65784.6 65786.2 152956 497732 498198 152927 65779.7 65784.6 153042 498060 497950 153072 65783.5 65796.4 153204 498373 498823 153226 65798.7 65819.5 153399 498382 498815 153471 65827.1 65851.2 153687 498938 499350 153766 65859 65889 154020 498887 499277 154163 65900.2 65929.6 154461 499370 499735 154623 65939.5 65971.1 154970 499522 499299 155229 65981.9 66013.3 155608 499641 499976 155894 66023.7 66048 156343 499734 499503 156716 66054.6 66065.8 157195 499840 500207 157574 66058.3 66054.3 158085 499732 500155 158477 66014 65990.6 158999 500337 500872 159343 65910 65852.3 159825 500909 501055 160137 65716.9 65615.1 160513 501874 502582 160736 65403.9 65216.9 160910 503431 504528 160970 64905.9 64577.2 160959 505839 507516 160604 64071.4 63507.6 159943 509524 511842 158919 62751.8 61687.9 155618 509166 506471 152164 60864.1 60321.8 150140 512801 510237 151000 59826.6 58804.4 142696 502572 499648 143791 58619.1 58024.5 139331 491728 485006 136932 57619.2 57670.4 134075 473580 459029 129337 57379.8 57747.5 126922 448692 441954 125831 58275.8 59114.1 126035 424076 395855 117149 59755 61266.4 116106 583696 959638 340623 136087 66877.4 167701 715238 644150 181934 71828.9 69111.5 171909 636668 630451 176953 71278.1 68174.4 165149 611887 589935 166316 69083.5 65895.2 150961 563119 536860 153094 67432 65678.1 140156 508827 477887 140750 66709.8 65788.6 129833 434879 624998 124452 66716.9 141054 352749 986283 705757 160200 68719.3 71437.2 171261 593571 536946 140689 64005.1 64460.3 142087 502379 468157 131352 62336.8 62715.6 128063 436958 403147 119919 62264.8 65202.3 119064 587061 925151 329279 135031 69586.7 150984 671264 582373 162247 72557.9 69143.2 145060 545486 506801 149286 71288.3 70588.1 137009 457542 655049 129853 72564.2 147928 350352 994474 692401 166713 75272.8 76571.6 167368 567293 491600 141404 68435.9 68831.6 132836 440740 643554 131644 72022.2 147070 351504 980439 692604 157548 77155.7 80067.9 170235 569191 501804 147850 74319.8 76537.4 141419 707990 1.02365e+06 366935 154422 77741.3 163211 693255 541115 167800 77071.6 65933.7 133590 476653 656014 135022 70497.8 141989 329327 887742 613876 148939 71671.8 74995.1 152924 778119 969031 350428 146458 65193.9 148046 647390 784804 144870 63740.7 119306 266277 816299 993444 174646 70833.4 80676.6 187343 838334 823498 163039 60438.1 74179 194463 993035 1.03493e+06 200293 76360 69118.5 178195 923066 807647 104459 42505.6 158702 350510 817004 944580 165751 85363.2 191265 381452 854645 787203 195099 103529 110104 220479 678471 1.11491e+06 480483 231442 131962 182313 961345 829405 372512 195226 106921 179099 697369 576602 189577 108006 195641 394892 917135 716656 173693 109984 109363 182781 574669 926897 390876 192393 108352 169487 712348 570413 176240 107014 186278 379527 911170 696894 164915 105468 104672 171934 562888 906977 378907 182592 103411 162603 683234 549322 169544 102290 179100 368714 883732 655670 157748 101402 100945 165397 533145 873018 363920 175887 99320.1 155147 643184 517374 161504 98468.1 167857 343453 825736 598331 144654 94974.9 95797.9 162160 459974 633152 186225 102052 190891 417428 1.03812e+06 744113 170433 105313 102835 174406 594084 983913 392090 184340 102991 162767 711397 574897 172552 102494 183357 383660 964367 705831 161634 103326 101947 168066 572439 956650 382441 180951 101418 159225 691223 563564 168730 101469 181222 383739 962930 697541 161363 101799 101008 166266 560685 948380 387515 181988 101422 159687 690383 559120 169465 101453 182896 388365 961907 717014 162534 102836 102391 172849 587999 1.03007e+06 419528 193413 111877 145159 811368 727502 318034 164472 92349.3 141678 554002 472932 153139 93572.2 167100 344448 820479 610331 146489 95112.7 95736.5 156163 498418 839344 347201 169060 95318.2 147288 618008 509052 154715 95294.9 172575 360439 869335 647427 151787 97212.8 97858.2 162251 527454 896930 372056 177159 99415.1 157559 674771 562764 168634 100183 193755 418259 1.0067e+06 804899 143687 113082 170488 324368 736704 575144 151978 96079.4 97921.1 163117 493989 865803 363363 177506 101228 158081 659446 547693 166991 101705 192237 407973 959848 778841 143944 112780 168480 321218 715446 554596 148248 95253.5 97675.5 161988 483181 855036 362801 176589 101193 157683 648883 547242 171907 102312 195667 415599 979058 791573 148004 115563 173209 329493 730859 574744 154123 98580 100689 168596 503054 889605 374307 183468 105200 164285 666686 566005 179045 106099 203719 432232 1.02051e+06 819068 154064 119843 179708 340623 757531 590637 159360 102425 105762 179349 524122 977669 420965 201672 120067 151157 804819 758661 337077 179374 102924 162632 596260 517433 178638 105725 201061 418046 945927 783775 157706 120649 178521 333653 740285 588614 160183 103122 106849 180456 517968 966777 428280 204268 122549 155254 809546 760080 340558 182119 105400 165034 595983 526729 184992 108654 206761 424551 964643 800722 155987 124504 183784 338741 760855 612722 167356 106944 110943 187849 547783 1.01613e+06 446679 214500 129807 157870 853485 833509 365292 194919 118711 155729 713014 682193 328405 176723 105956 167113 560845 512134 188852 110476 209567 431491 965149 808237 160850 127633 188183 343700 765678 616347 172475 110721 114687 195201 554456 1.03897e+06 456900 220799 134059 165137 872115 845251 372312 200038 122516 160572 729416 713779 333805 181170 109049 172668 585537 527255 192948 113663 217104 442237 986475 843505 163716 132809 196419 357410 814915 712599 157388 121789 181071 330908 699881 581791 174720 109644 115203 198910 529340 989490 444790 218571 134859 164553 851256 834147 366514 200048 124262 159983 720368 705533 336295 183683 111258 176133 579296 527689 198519 116557 219917 443584 981961 834726 167760 135920 200423 363351 813715 715819 162452 125270 185481 339162 714376 599409 179898 113037 118973 204491 552814 1.04071e+06 463530 229002 141726 171991 896655 878272 382037 210606 131144 166449 755550 749046 356017 194888 118325 187433 614975 558981 210617 123859 234830 473752 1.03666e+06 889544 177444 145184 214660 391999 883953 771254 172181 134476 200494 364120 776481 704537 169554 128801 190364 341250 703064 586098 183408 117508 124609 210342 544830 1.03864e+06 473738 235614 147011 179623 906565 901975 397896 217918 138126 178289 788574 797128 374423 204500 132378 173974 714029 713503 350896 194888 120820 189036 602456 555819 212576 127147 238681 474230 1.03875e+06 904678 180993 149362 220065 398831 896387 780071 179710 139136 206174 372009 787241 706761 174449 133731 196332 352246 710167 601202 190646 122131 129376 216228 558516 1.05156e+06 483352 242611 152828 185657 921601 917601 407013 224968 143670 183183 813414 830844 390966 213985 139428 183550 745628 744251 367289 203832 127274 198576 622717 578949 225265 133785 250978 494448 1.08423e+06 927853 192907 157855 231086 414262 924488 812689 185116 147046 218450 395401 835807 773455 188357 143021 211027 380160 793532 717777 182301 139690 204602 360429 728144 626345 200512 128528 136130 228189 587450 1.11536e+06 514051 256348 162366 197269 970219 962490 431169 239048 153364 195117 836476 854189 407889 225794 148693 194514 781324 802263 389388 217581 144021 188561 731935 742894 369096 208894 131336 203476 627534 580845 227783 138289 256048 500081 1.07729e+06 926168 194952 162911 240750 428137 934290 832733 196809 153800 227230 406988 850603 771289 194743 149569 219938 391210 797549 733269 191095 146299 211988 369707 741728 631597 207220 134472 142268 235799 595146 1.11133e+06 517574 262998 168464 205249 964939 973781 439319 245930 159375 202144 869643 891268 420731 234623 155679 202450 807963 830423 403696 227324 151336 196860 743774 755311 381339 219235 139368 211943 637863 597093 239361 146250 267495 520885 1.11308e+06 965099 206871 170989 251038 443927 975200 861276 205189 161723 236774 420200 880035 802388 204057 157154 229959 405846 831841 757162 199858 153970 223451 389088 774214 660807 218508 142382 150539 249420 624782 1.174e+06 546655 278843 179039 216070 1.01081e+06 1.02138e+06 466628 262444 170164 216579 897216 915277 439967 248589 165677 214330 836713 870640 424314 241361 162309 209653 795587 828653 409886 235110 158064 204497 757007 770735 390960 226716 144578 219630 644555 607002 247930 151971 276739 530561 1.1256e+06 965925 215704 178246 258717 450621 973288 854949 211667 167907 245044 429053 880147 797153 210927 163561 237649 414836 829329 756971 208300 159571 229284 392034 768718 651497 222366 146930 155635 252950 619694 1.15061e+06 543435 284317 183535 221922 989781 999345 465146 266227 174394 220122 892288 921235 446036 253667 170751 219835 828288 862103 429356 247045 166889 216084 784517 801854 408441 239101 153218 231348 668819 631046 260333 160936 291900 556330 1.1663e+06 1.00014e+06 230082 188588 271849 470503 1.00259e+06 878474 222911 177350 256817 446722 905557 824217 221908 172406 248889 429403 857693 773526 218305 167832 239822 407840 794243 671227 232359 154554 163598 264586 641553 1.18251e+06 564581 296154 192115 232402 1.02424e+06 1.04218e+06 486806 279114 183403 232038 911861 941146 465521 265922 179486 231704 848742 882644 445396 258588 175124 227096 798296 817719 421633 249407 160674 239925 681055 649213 269543 168536 299922 564331 1.17398e+06 1.00498e+06 238308 195267 281159 482665 1.02267e+06 893207 229535 184140 265995 456694 925772 835301 229176 178531 257923 439744 859656 721780 251318 164982 174491 284200 690698 1.25875e+06 605285 318695 206549 252957 1.07673e+06 1.08852e+06 510810 296860 194862 241835 947505 981429 484526 280818 188046 242981 863699 882565 456926 269527 172465 259269 736787 702055 290819 180712 324817 612381 1.26808e+06 1.08316e+06 257540 210461 301853 515527 1.09985e+06 948452 246207 197400 285307 489073 983312 878298 246964 191142 275980 469132 911687 763601 267169 176618 186234 302498 728512 1.32199e+06 641043 337176 218741 268656 1.12625e+06 1.1379e+06 537213 313858 206181 255153 977200 1.01627e+06 505438 295571 198099 256733 897560 922971 477588 282933 181194 271642 768908 737776 302952 189591 338759 630606 1.31841e+06 1.10903e+06 267658 219757 316450 538430 1.13013e+06 974915 258471 206702 297141 504325 1.01305e+06 891395 257656 199208 286118 480760 926296 777985 276128 183508 192976 310743 748656 1.33327e+06 648213 346252 225075 277152 1.1223e+06 1.14505e+06 545624 322060 210465 266583 973136 991861 504528 299873 190891 285089 811236 776786 314205 199258 360071 675984 1.38138e+06 1.14719e+06 287384 231637 331917 560850 1.16469e+06 1.00042e+06 271805 216518 310085 523501 1.0433e+06 909643 268462 206942 295289 494201 946105 782375 282259 189093 199546 317361 752464 1.33029e+06 658375 355084 230631 287199 1.1259e+06 1.14986e+06 555211 329103 215732 274271 975993 1.00592e+06 514372 307156 195380 291175 824328 786041 323826 203907 362349 669154 1.35517e+06 1.13278e+06 294092 235208 336340 563926 1.16401e+06 982243 280406 218592 310976 517980 1.00803e+06 820169 294079 197622 207615 329317 786993 1.36821e+06 682901 368122 236971 302266 1.13511e+06 1.14031e+06 566899 337901 209512 307097 901722 856354 340451 217200 386262 720041 1.49444e+06 1.2278e+06 305485 248828 360897 613367 1.25709e+06 1.05509e+06 304298 233188 334549 561103 1.08058e+06 879717 317388 211273 220533 354367 845584 1.45682e+06 723188 390775 251344 322191 1.19613e+06 1.20255e+06 593472 356824 220112 319982 940886 891984 352711 227577 400882 743261 1.5187e+06 1.24293e+06 325203 257473 369685 616403 1.26237e+06 999004 337706 227225 235048 376106 946908 1.62052e+06 797655 424920 269045 345324 1.2929e+06 1.29611e+06 645052 385251 234396 343677 1.00828e+06 950722 378586 241885 427953 794269 1.61195e+06 1.30796e+06 348155 272616 391235 649920 1.31874e+06 1.03903e+06 351432 239010 247086 389096 986001 1.6861e+06 825875 440866 279410 341224 1.3512e+06 1.36782e+06 679590 405229 244345 367281 1.05163e+06 988947 400332 251895 446516 824099 1.65704e+06 1.32895e+06 366022 282815 403253 665372 1.33718e+06 1.04169e+06 358443 245011 252946 394960 988166 1.65835e+06 825564 445140 282081 365184 1.32987e+06 1.33719e+06 665234 401885 242136 354891 1.02281e+06 963098 378728 247986 433071 796575 1.56955e+06 1.17429e+06 377538 260582 265773 407593 1.08251e+06 1.76349e+06 866919 468354 290689 380588 1.39054e+06 1.39356e+06 692570 416023 249580 365943 1.06437e+06 1.00361e+06 400762 257533 444351 812565 1.61619e+06 1.21556e+06 389683 265973 268354 406022 1.11404e+06 1.78729e+06 882370 470366 276945 411370 1.31113e+06 1.18804e+06 436641 279372 500554 938404 1.90118e+06 1.4683e+06 406914 307647 442318 732807 1.46159e+06 1.09853e+06 381992 259587 267392 415052 1.02835e+06 1.63311e+06 829420 458037 269632 396860 1.21328e+06 1.10928e+06 408321 271939 471656 870005 1.75683e+06 1.27105e+06 407792 275595 278714 431970 1.14725e+06 1.7697e+06 883564 482180 278047 412431 1.27769e+06 1.15307e+06 434308 280497 481324 881087 1.76551e+06 1.28512e+06 412565 279579 283254 436447 1.17202e+06 1.82e+06 897390 487584 280619 415511 1.30386e+06 1.11738e+06 452609 286009 299127 511611 1.4681e+06 2.19223e+06 1.06348e+06 543822 304671 471982 1.50245e+06 1.32958e+06 486234 302656 523202 974352 1.98699e+06 1.3833e+06 445865 294789 295223 457634 1.18337e+06 1.53904e+06 525253 308138 568885 1.11687e+06 2.26323e+06 1.50623e+06 484259 308361 311265 505725 1.26522e+06 1.63423e+06 566966 325850 592288 1.15654e+06 2.38458e+06 1.58504e+06 496574 317000 318124 513202 1.34085e+06 1.68236e+06 577719 324544 590147 1.16357e+06 2.39574e+06 1.54466e+06 497969 312250 303942 490670 1.26868e+06 1.54844e+06 609390 333237 328539 556537 1.91805e+06 2.71342e+06 1.34407e+06 647052 330129 546294 1.70135e+06 1.38089e+06 547712 325942 334070 618038 1.60006e+06 1.7992e+06 589635 317854 342472 725442 1.95387e+06 2.15275e+06 730124 326741 638362 1.34191e+06 2.7697e+06 1.62768e+06 521275 311640 303152 515037 1.29272e+06 1.39771e+06 563028 303487 296854 559356 1.46574e+06 1.51969e+06 571542 292093 289600 598801 1.53229e+06 1.51628e+06 607755 287902 284926 613105 1.49471e+06 1.45945e+06 611861 283200 280447 607047 1.42298e+06 1.38501e+06 598063 278351 276010 591156 1.34746e+06 1.31128e+06 586267 274795 273702 583054 1.27741e+06 1.24599e+06 581246 273704 273848 580348 1.21707e+06 1.19059e+06 580062 274685 275647 579985 1.16642e+06 1.14459e+06 579831 277268 278689 579481 1.12484e+06 1.10712e+06 578803 280488 281908 577619 1.09118e+06 1.07694e+06 576060 283453 284548 573936 1.06422e+06 1.05297e+06 571466 285635 286242 568434 1.043e+06 1.03428e+06 565148 286745 286686 561330 1.02661e+06 1.01998e+06 557367 286518 285920 552932 1.0142e+06 1.00926e+06 548475 285212 283841 543590 1.00498e+06 1.00137e+06 538735 282722 280964 533509 998259 995664 528239 279874 278189 522706 993431 991600 517264 277146 275509 511630 990027 988758 506175 274484 272872 500581 987670 986806 495234 271853 270246 489783 986065 985482 484629 269210 267589 479406 984965 984602 474515 266528 264887 469578 984239 983985 464977 263794 262137 460374 983760 983575 456101 261027 259360 451838 983440 983303 447901 258243 256578 443969 983201 983053 440368 255466 253822 436765 982943 982763 433484 252720 251095 430198 982629 982394 427236 250019 248431 424252 982226 981941 421578 247377 245836 418878 981742 981404 416481 244814 243331 414043 981169 980797 411887 242339 240915 409684 980538 980135 407758 239956 238596 405775 979843 979424 404046 237647 236322 402253 979110 978676 400711 235404 234121 399087 978339 977904 397703 233232 231993 396230 977561 977123 395000 231143 229951 393667 976774 976342 392561 229137 227992 391346 975998 975565 390357 227223 226128 389248 975221 974797 388355 225396 224349 387330 974456 974045 386540 223661 222663 385598 973706 973303 384878 222012 221059 384005 972973 972586 383364 220445 219549 382565 972264 971888 381976 218962 218110 381237 971582 971225 380703 217558 216749 380020 970939 970599 379542 216234 215464 378909 970333 970015 378473 214980 214251 377889 969772 969477 377495 213798 213107 376958 969260 968988 376595 212683 212029 376104 968798 968548 375767 211631 211012 375317 968389 968165 374999 210639 210053 374589 968038 967840 374289 209703 209149 373915 967745 967578 373631 208819 208298 373287 967510 967377 373023 207988 207495 372700 967330 967237 372457 207204 206738 372155 967210 967152 371930 206466 206024 371645 967144 967126 371435 205771 205352 371170 967132 967135 370972 205118 204717 370722 967166 967185 370533 204499 204116 370297 967245 967280 370115 203912 203545 369891 967367 967426 369718 203355 203003 369508 967534 967612 369343 202826 202488 369145 967740 967834 368987 202324 201998 368798 967981 968090 368647 201846 201529 368466 968256 968381 368322 201388 201081 368148 968567 968708 368008 200948 200649 367841 968914 969069 367708 200525 200233 367549 969292 969461 367423 200117 199834 367273 969704 969885 367158 199725 199454 367019 970143 970334 366918 199352 199093 366793 970604 970801 366707 198998 198754 366596 971078 971277 366524 198666 198434 366426 971559 971759 366365 198353 198133 366278 972043 972243 366224 198057 197845 366141 972530 972733 366093 197774 197570 366017 973023 973229 365972 197502 197305 365899 973525 973734 365859 197241 197051 365792 974033 974246 365756 196990 196806 365693 974550 974766 365663 196749 196571 365607 975073 975290 365580 196517 196344 365529 975600 975820 365507 196294 196127 365464 976131 976352 365445 196080 195918 365406 976665 976887 365392 195874 195717 365361 977201 977424 365349 195675 195523 365322 977739 977963 365314 195484 195337 365295 978279 978503 365289 195301 195157 365274 978821 979046 365272 195123 194984 365264 979363 979588 365264 194953 194817 365261 979907 980132 365265 194788 194657 365266 980451 980676 365273 194630 194501 365276 980995 981220 365289 194477 194353 365296 981539 981763 365314 194331 194209 365323 982082 982305 365346 194190 194073 365359 982622 982843 365387 194055 193941 365402 983158 983377 365436 193926 193816 365455 983689 983903 365494 193804 193697 365516 984212 984418 365561 193687 193608 365592 984722 984916 365639 193551 193487 365667 984847 985414 365725 193481 193385 365754 986082 985878 365812 193398 193268 365846 986197 986341 366022 193298 193135 365654 986258 986213 365902 193097 192753 365107 985875 988065 366578 193334 193549 367556 992005 1.00133e+06 372275 195415 196329 373258 996574 984316 362315 191216 189043 357520 966905 105556 58765 31743.5 19383.9 18093.8 12107.6 8863.02 7362.08 6977.84 5268.22 3869.95 3078.14 2400.61 1826.56 1368.29 1015.03 757.782 573.039 441.679 347.537 279.258 229.002 191.484 163.1 141.415 124.704 111.904 102.118 94.964 89.8916 86.6111 84.7075 83.8449 83.1774 82.1034 80.7518 79.2376 77.644 75.9953 74.3233 72.5993 70.8038 68.8847 66.7178 64.132 61.084 57.6909 54.2065 50.9473 48.1526 45.9064 44.1699 42.8447 41.8206 41.0009 40.3112 39.6986 39.1299 38.5859 38.0548 37.5287 37.0099 36.4993 35.9952 35.4963 34.9997 34.5031 34.0024 33.4927 32.9693 32.4273 31.863 31.2733 30.657 30.0128 29.3375 28.6272 27.8789 27.0941 26.2735 25.4161 24.5242 23.6042 22.6603 21.6912 20.7021 19.7044 18.7001 17.6891 16.6841 15.6967 14.7216 13.7618 12.8338 11.9395 11.0702 10.2355 9.44612 8.69487 7.97842 7.30647 6.67849 6.08765 5.53617 5.02582 4.55254 4.11485 3.71214 3.34264 3.00407 2.69436 2.41269 2.15664 1.92427 1.71408 1.52443 1.35352 1.19998 1.06225 0.938955 0.828775 0.730675 0.643275 0.565739 0.49697 0.436171 0.382464 0.335141 0.293506 0.256945 0.224891 0.196838 0.172333 0.150953 0.132333 0.116144 0.102082 0.0898875 0.0793271 0.0701887 0.0622887 0.0554657 0.0495741 0.0444908 0.0401049 0.0363204 0.0330536 0.0302308 0.0277895 0.0256755 0.0238407 0.0222449 0.0208532 0.0196357 0.0185668 0.0176248 0.0167913 0.0160504 0.0153891 0.0147964 0.0142628 0.0137805 0.013343 0.0129447 0.012581 0.012248 0.0119424 0.0116612 0.0114019 0.0111624 0.0109407 0.0107352 0.0105441 0.0103661 0.0101999 0.0100443 0.00989816 0.00976045 0.00963031 0.00950699 0.00938994 0.0092788 0.00917342 0.00907376 0.00897989 0.00889205 0.00881039 0.00873478 0.00866491 0.00860049 0.00854115 0.00848652 0.00843627 0.00839019 0.00834819 0.00831034 0.0082769 0.00824811 0.00822401 0.00820424 0.00818808 0.0081747 0.00816315 0.00815278 0.00814281 0.00813296 0.00812275 0.00811256 0.00811441 0.00811735 0.00812088 0.00812477 0.00812906 0.00813337 0.00813699 0.00813931 0.00814004 0.00813916 0.00813676 0.00813296 0.00812789 0.00812169 0.00811448 0.00810636 0.00809734 0.00808746 0.00807672 0.00806511 0.00805263 0.00803931 0.00802514 0.00801012 0.00799428 0.00797762 0.00796015 0.00794189 0.00792286 0.00790307 0.00788254 0.00786127 0.0078393 0.00781664 0.0077933 0.00776931 0.00774468 0.00771944 0.0076936 0.0076672 0.00764025 0.00761277 0.0075848 0.00755636 0.00752747 0.00749816 0.00746847 0.00743841 0.00740803 0.00737734 0.00734638 0.00731519 0.00728379 0.00725223 0.00722054 0.00718878 0.00715702 0.00712542 0.00709431 0.00706443 0.0070376 0.00701815 0.0070161 0.00705523 0.00719016 0.00754437 0.00838723 0.0102855 0.0144495 0.0233883 0.0419715 0.0795079 0.153231 0.295266 0.564552 1.06922 2.00799 3.74007 6.84913 11.9719 18.9282 26.0318 31.9695 38.4449 54.8082 110.789 352.177 1704.38 5094.25 6275.25 6376.59 7291.25 7254.53 7994.45 7909.91 8525.67 8406.18 8952.83 8808.59 9302.43 9139.99 9592.34 9416.44 9835.74 9649.6 10042.2 9847.96 10219.1 10018.4 10372.1 10166.2 10505.1 10294.9 10621.5 10407.7 10723.6 10506.8 10813.6 10594.5 10893.6 10673 10966 10744.6 11032.7 10810.8 11094.9 10872.9 11154.1 10932.2 11211.4 10990 11267.8 11047.1 11324 11103.9 11380.1 11160.8 11436.6 11218.1 11493.4 11275.6 11550 11332.5 11605.9 11388.8 11661.3 11444.6 11716 11499.7 11770 11554.2 11823.4 11608 11876.2 11661 11927.8 11712.7 11977.9 11762.6 12025.6 11809.8 12069.7 11852.5 12108.3 11888.8 12138.7 11915.7 12158.3 11929.9 12162.7 11926.9 12146.9 11901.1 12105.2 11846.9 12031.8 11759.1 11922.3 11620.5 11769.1 11447.5 11583.3 11246.5 11369.7 11019.7 11131.3 10772 10872.7 10507.1 10601.7 10238.1 10330.5 9979.62 10073.1 9739.15 9833.75 9515.94 9612.44 9312.78 9412.75 9133.22 9237.65 8978.98 9088.55 8850.73 8965.86 8747.72 8868.37 8667.52 8793.46 8601.53 8737.68 8555.78 8703.47 8530.67 8689.19 8523.81 8691.86 8532.02 8707.91 8551.64 8733.61 8579.21 8765.72 8611.75 8801.27 8646.29 8837.23 8679.98 8871.26 8711.38 8902.91 8740.76 8932.62 8768.18 8959.77 8792.38 8982.83 8812.08 9001.25 8827.64 9016.18 8840.54 9029.03 8851.71 9040.11 8860.97 9049.03 8868.01 9055.61 8870.43 9068.78 8870.51 9084.99 8859.13 9080.58 8699.44 8998.2 8104.79 7955.97 6379.15 4284.58 4612.4 5020.64 3260.6 5432.73 5078.96 3287.91 5496.64 5096.73 3331.31 5524.97 5124.35 3337.63 5539.47 5138.02 3354.08 5545.96 5147.61 3357.4 5555.18 5156.73 3369.1 5561.98 5163.86 3374.48 5568.05 5170.11 3382.11 5572.61 5175.08 3387.44 5575.88 5178.39 3392.3 5576.78 5179.22 3395.72 5574.94 5177.74 3397.92 5571.01 5174.88 3399.05 5566.11 5171.38 3399.37 5560.61 5167.18 3399.1 5554.26 5162.28 3398.61 5547.46 5157.61 3398.31 5541.82 5154.98 3398.97 5539.35 5156.06 3401.41 5541.78 5162.38 3406.48 5550.93 5175.76 3415.11 5568.85 5197.84 3428.28 5596.8 5229.13 3446.57 5634.81 5269.45 3470.57 5682.95 5319.53 3501.43 5742.68 5381.62 3539.59 5816.63 5457.53 3585.47 5906.02 5547.49 3639.42 6010.44 5650.75 3701.1 6128.92 5766.2 3769.94 6259.68 5891.31 3844.3 6399.2 6022.86 3922.54 6545.51 6160.7 4002.34 6699.28 6303.08 4082.08 6854.23 6440.92 4155.98 7000.28 6566.67 4220.34 7132.35 6677.95 4271.17 7249.04 6773.3 4309.44 7347.47 6849.78 4332.55 7425.11 6905.62 4339 7480.8 6940.53 4333.68 7513.92 6955.81 4317.95 7526.19 6953.14 4290.24 7520.61 6935.54 4252.3 7500.67 6906.26 4206 7469.83 6868.28 4153.17 7431.03 6824.02 4095.41 7386.5 6775.34 4034.16 7338.14 6723.81 3970.6 7287.46 6670.73 3905.68 7235.61 6616.99 3840.11 7183.3 6563.06 3774.37 7130.8 6509.05 3708.74 7078.11 6454.97 3643.4 7025.23 6400.79 3578.43 6972.09 6346.47 3513.89 6918.56 6291.77 3449.8 6864.25 6236.29 3386.25 6808.62 6179.33 3323.39 6750.6 6120.14 3261.46 6689.62 6058.8 3200.83 6627.79 5996.94 3140.18 6565.41 5934.39 3078.91 6502.12 5870.74 3016.69 6437.48 5805.5 2953.15 6370.84 5737.89 2887.85 6301.29 5666.97 2820.31 6227.71 5591.7 2750.04 6148.96 5511.09 2676.58 6064.14 5424.76 2599.5 5972.59 5332.67 2518.31 5872.82 5232.46 2432.37 5763.88 5122.31 2341.03 5644.65 4999.27 2243.73 5509.55 4859.09 2135.45 5354.76 4698.4 2012.93 5178.78 4516.75 1878.9 4979.02 4311.48 1732.74 4751.78 4079.45 1574.19 4492.8 3817.32 1403.97 4197.14 3521.24 1223.6 3857.28 3182.96 1031.85 3460.09 2782.84 822.085 2979.04 2296.65 591.139 2378.86 200.722 297.893 391.553 480.122 564.694 646.378 725.404 801.117 873.385 942.128 1006.88 1067.84 1125.78 1181.3 1234.87 1286.84 1337.5 1387.02 1435.63 1483.54 1531 1578.24 1625.49 1672.89 1720.64 1769.18 1818.71 1869.3 1920.95 1973.68 2027.55 2082.58 2138.79 2196.1 2254.31 2313.06 2371.85 2429.93 2486.41 2540.11 2589.94 2634.16 2671.94 2700.38 2721.09 2728.24 2724.83 2713.92 2691.19 2659.14 2621.72 2581.19 2540.09 2500.88 2465.09 2432.44 2405.66 2383.91 2367.54 2356.58 2350.68 2350.46 2351.92 2355.94 2362.88 2371 2379.65 2388.3 2396.45 2403.71 2409.74 2414.22 2416.82 2417.57 2417.3 2415.68 2411.53 2405.8 2399.06 2391.5 2382.49 2375.62 2361.9 2355.82 2306.86 2399.27 2995.61 3261.91 3231.88 2942.8 2405.38 2227.57 2236.85 2080.86 2081.72 2030.67 2033.91 2051.02 2067.65 2072.88 2080.84 2087.14 2093.85 2099.33 2103.45 2105.23 2105.75 2105.24 2102.13 2096.28 2088.31 2078.23 2035.35 2049.46 2060.82 2069.6 2075.65 2078.38 2078.61 2077.97 2075.82 2071.14 2064.81 2058.31 2050.29 2044.2 2028.45 2020.58 2018.18 2048.7 2048.84 2153.94 2146.23 2261.53 2261.62 2203.54 2229.46 2238.94 2729.76 2718.88 2646.38 2529.57 2509.19 2750.29 2756 3510.08 3425.57 3830.43 3888.5 3884.75 3941.24 3989.32 4016.73 2756.42 2251.49 2259.59 2268.76 2275.28 2797.7 2786.11 2767.93 4047.22 4075.43 4102.02 6462.08 6810.68 6412.3 6757.92 6363.36 6706.61 6313.71 6650.68 6265.27 6602.68 6198.13 6465.52 6203.03 5613.64 5603.21 5201.8 5736.01 5778.91 7893.37 7568.26 12058.7 12504.6 13378 8702.8 9358.85 13705.8 13639 8890.39 9520.87 14006.3 13834.9 8957.09 9489.77 14007.5 26870.7 26865.8 26812.8 26826.7 26312.3 26448 24762.9 24231.3 26846.1 13839.4 8920.42 9626.52 14076.1 13870.9 9036.46 9545.44 14059.4 13870.9 8984.79 9680.3 14101.4 13923.5 9095.98 9599.34 14088.5 26801 26783.1 26849.8 26795.3 26860.5 26811.7 26882.2 26735 13901.1 9040.59 9737.45 14131.3 13954.9 9152.29 9655.16 14119.7 13934.2 9097.26 9794.4 14163.8 13988.5 9210.47 9711.51 14152.2 26671 26659 26711.8 26670 26736.2 26724.1 26777.2 26605.2 13967.2 9153.63 9850.41 14194.8 14020 9266.86 9766.84 14182.5 13998.8 9209.59 9906.5 14225.5 14052.3 9323.74 6863.18 9822.81 14214.4 26541.6 26529.6 26581.6 26540.4 26605.6 26593.8 26646.4 26478.3 14032.3 9265.87 6510.66 4127.75 2809.94 2279.47 2281.15 2281.48 2279.67 2825.89 2823.74 2818.27 4150.63 4171.43 4189.48 4205.87 2826.32 2273.85 2264.84 2252.67 2237.07 2804.69 2816.01 2823.86 4219.67 4229.97 4237.23 6816.41 7195.69 6774.68 7149.74 6732.49 7103.3 6689.55 7056.73 6646.22 7009.82 6602.26 6962.43 6557.28 6913.73 9380.18 9962.76 14258 14086.1 14247.5 9878.19 9321.02 10017.9 14290.9 14066.4 26420.3 26481.4 26469.1 26520 26462.6 26412.7 14119.8 9435.14 9932.01 14280.3 26425.4 26366.3 14099.9 9374.45 10071.3 14323.1 14152.6 9488.57 9984.63 14312.3 14133.1 9427.15 10124.5 14355.7 14186.5 9542.21 10037.7 14345.8 26325.1 26311.6 26359.5 26316.1 26373.2 26360.1 26409.1 26270.1 14167.6 9480.07 10177.9 14388.9 14220.3 9595.59 10090.5 14378.8 14201.6 9532.87 10231.7 14422.3 14255.1 9649.86 10144.6 14413.5 26239.1 26225.2 26271.5 26227.2 26280.7 26267 26314 26186.4 14237.6 9586.91 10286.9 14457.5 14290.9 9704.84 10199.2 14448.3 14273 9641.08 10342.5 14491.6 14325.8 9760.64 7242.34 10255.4 14482.7 26152.9 26140.1 26186.9 26144.1 26197.9 26184.2 26230.4 26096.3 14308.9 9697.66 6858.93 4241.25 2789.95 2218.31 2018.67 2066.06 2051.93 2036.13 2018.94 2000.65 1981.61 1962.25 1943.07 1924.55 1907.36 1892.67 1881.57 1876.23 1874.75 1878.22 1889.99 1612.37 1629.24 1653.59 1681.69 1711.33 1742.72 1775.15 1807.8 1839.87 1870.82 1900.32 1928.13 1954.02 1977.84 1999.46 2196.1 2170.35 2141.07 2717.05 2746.48 2770.56 4240.79 4237.27 4227.85 4210.09 2681.23 2107.97 2070.91 2029.57 1983.74 2521.76 2585.61 2637.98 4181.3 4138.24 4051.06 6993.2 7477.95 7047.62 7498.77 7051.38 7480.06 7027.86 7441.01 6990.65 7392.4 6947.04 7340.96 6902.38 7290.59 9820.72 10401.7 14527.3 14363.5 14520.9 10316.9 9759.53 10467.4 14568.5 14349.5 26038.9 26100 26088.5 26136.9 26076.6 26026.6 14407.9 9886.94 10385.5 14567 26036.8 25974.7 14399.9 9828.23 10541.8 14621.5 14465.9 9961.33 10464 14628.9 14467.5 9905.54 10626.6 14693 14542.8 10043.9 10551.3 14709.4 25910.2 25900.4 25949.2 25912.6 25972.7 25962.5 26011.8 25848.4 14552.9 9988.25 10717.6 14782.1 14636.3 10128.9 10641.5 14806.1 14653.6 10069.8 10807.7 14885.7 14742 10208.1 10724.2 14912.3 25752.2 25747.9 25805.2 25775.3 25842.4 25833.5 25882.7 25658.8 14758 10136.5 10878.3 14986.1 14835.7 10257.3 10778.8 14996.1 14817.2 10151 10896.6 15044.5 14869.9 10245.3 7393.62 10748.9 15029.2 25390.5 25315.9 25454.1 25386.7 25564.8 25576.3 25683.5 25198.8 14808.8 10093.1 6880.51 3934.32 2447.61 1933.51 1878.77 1820.33 1760.09 2145.09 2259.49 2360.83 3796.28 3612.14 3339.52 3116.83 2034.89 1700.38 1640.67 1583.13 1530.44 1676.27 1793.1 1917.86 2887.88 2590.7 2343.43 3855.42 4417.41 4351.45 5104.81 5002.53 5681.29 5456.94 5955.8 5893.94 6640.91 6433.41 6997.51 6692.06 7239.5 10135.5 10810.8 15005.5 14776.8 14904.6 10615.5 9918.5 10566.9 14737.4 14598.2 25067.8 25181.2 25172.1 25269.8 25043.3 24826.2 14400.4 9902.32 10314.4 14469.3 24839.2 24433.2 14023.3 9611.75 10113.6 14054.5 13320.9 9422.72 9695.43 12853.9 11553.7 9094.12 9787.02 9613.28 11347 17256.3 16979.3 21708.2 23075 24279.7 37385.7 28733.5 30075.7 29963.6 17199.7 18283.6 30939 29822.6 16368.3 9692.77 9453.57 8901.31 8302.81 14313.3 16570.9 15441.6 17467.1 16055.6 17974.9 30654.4 29304.7 30081.1 28555.7 28973.1 26090.7 24692.6 14739.8 11772.1 7227.58 6748.58 6144.86 5729.57 3850.41 3360.01 2080.04 1554.9 1481.38 1604.44 1906.36 1925.52 1946.46 1966.88 1985.74 2000.84 2008.13 2010.19 2003.96 1986.68 1961.62 1929.89 1893 1850.5 1803.8 1754.33 1343.72 1390.07 1435.3 1478.4 1517.95 1552.24 1580.18 1600.87 1613.86 1619.65 1619.7 1618.36 1614.75 1609.22 1602.69 1441.16 1420.09 1409.9 1298.75 1347.99 1431.33 1766.04 1518.14 1323.56 1230.8 1268.63 1404.09 1394.52 1381.62 1363.31 1178.01 1211.21 1240.39 1164.93 1097.25 1044.33 988.659 1092.28 1268.94 1436.21 1853.67 2524.3 3218.15 3300.5 4450.85 5040.97 8171.92 9239.72 9154.3 10323.5 10024.6 11240.1 10760.2 12352.2 18335.3 18090.6 30860.3 42487.9 32008.2 28872 16650.6 16630.7 29048.9 27494.4 15456.5 15256.4 13940.5 13214.1 23867.8 25005.6 27150.2 42043.7 31285.6 17626.1 11262.1 10782.5 8443.31 8318.38 16942.5 17593.3 32442.8 31089.3 31718.5 17733.1 15012.9 8119.87 6969.93 11734.7 15422.3 26950.4 28433 18751.6 18396.9 11809.7 9670.24 5509.51 5068.6 8252.38 9758.98 15061.8 15676.6 28659 33945 33441.6 47414.8 28051.7 24975.3 12741.3 10810.9 7924.17 7649.47 3867.81 3386.61 6144.68 13124.2 16667.3 17791.7 17915 33454.6 46875.6 34516.8 30048.8 25997.5 17484.2 11114.8 9159.96 4335.52 2339.39 1987.68 2946.19 2080.87 1614.35 1514.13 1272.52 1785.57 2453.08 3695.02 4816.82 6134.96 7846.26 12659.3 15529.9 31242.7 32340 49429.1 24012.6 22049.9 10731.3 7817.07 13512 25600.5 44053.6 23209.1 11581.4 6915.83 11793.8 7635.21 4423.89 3434.09 4656.46 7573.1 16027.1 23245 45403.1 31282 14785.5 23585.2 12899.4 7176.39 4640.09 3358.82 2705.09 1920.55 1553.32 1875.6 2362.8 2742.48 3343.53 4249.9 2983.59 2647.4 2171.8 1622.46 2237.22 2416.92 3558.21 6110.83 8417.08 19486 25523.3 10215.8 10261.8 26185.9 24218.8 9671.49 7958.85 20527.3 14089.2 56076.3 25895.7 63046.5 33190.1 39729.2 89254.9 41532.1 72652.4 39844 43345.8 77671.8 43483 45780.3 77088.7 44776.2 46274.9 75685.9 44839.3 46413.4 74462 44779.3 45922.1 72974.4 44100.5 45460.1 71618.2 43669.4 44755.2 69318.1 39111.4 48023.3 50971.4 74701.6 48041.4 47993.4 74206 46041.9 47567.3 74262.1 46532.1 46993.4 73585.6 45239.4 46780.2 73106 45712.9 46397.4 72624.7 44788.2 46289 73788.2 46240.4 46919.4 78735.2 43099.4 65294.1 39982.5 42122.8 67976.5 41313 42696.7 67837.6 42390.1 43378 69316.7 42871.1 44285.8 70838.2 44445.8 45978.7 78896.3 43601.1 67016.3 42885.9 45409.3 72509.8 45090.7 46442.4 79508.3 43381.4 66845.9 41433.2 44485.9 72540.3 45251.1 47110.5 81676.7 45062.1 69441.1 44463.3 47283.1 75936.3 47284.4 49161.4 84713.1 46358.5 72010.8 44751.7 48549.2 85755.1 47181.7 73654.9 45638.7 49044.7 86177 47114.1 73761.4 45713.7 49770.8 87748.6 48494.2 75798.3 46971.3 50833.9 89025.7 48844.2 76900 47670.5 52160.1 92939.8 51371.1 87500.9 47404.1 77780 47292.1 52350.5 92468.6 50485.4 80090.1 50930.6 55476.6 97256.9 53571.4 91036.2 49255 81259.8 49161.5 54265.3 96484.9 52655.2 90221.8 49051.5 81684.2 51404.8 57046.6 98971.2 54887.5 93165.4 50407.6 83615.7 50513.9 56116.7 99292.8 54667.3 93673.5 51252.6 85339.4 53814.1 60058 103971 58016.6 98657.3 53584.4 89543 54059.1 60260.4 106592 58832.8 101366 54922.3 98432.8 52784.6 89486.3 54341.3 61734.1 108448 61041.5 104957 57474.8 102624 54796.8 92959.6 55712.3 62749.5 110249 60942.4 105407 57136.2 102678 55175.9 93902.5 57236.5 65097 113535 64364.5 110416 60692 108821 58384.3 99191.2 59621.8 67167.3 117354 65367.2 112673 61534.8 111246 59926 109173 58764.2 100492 62917.2 71417.4 122116 68993.9 118586 64463 116797 62064.5 113182 59837.6 102709 61505.9 69735.8 121293 67645.8 117303 63967.8 116091 62453.7 114303 61546.5 105049 66087.5 75196.8 127595 72445 124235 67923 122786 65556.1 119678 63449.2 108461 65217.2 73984.7 128915 71938.1 124572 68069.2 123076 66452.8 121219 65306.3 111814 70332.6 80061.6 136062 77261 132899 72363.5 131512 70051.6 129098 68154 125352 65782.2 113030 67889.1 77518 134545 74685.9 129657 70676.1 128389 68621.3 125552 67096.9 114962 70080 80543 138798 79576 136245 75546.3 135995 73046.7 132996 70275.2 120211 72529.6 82783.3 142803 79434.3 137653 75071 136174 72620.1 132591 70638.6 121034 73796.4 84704.7 145504 83440.5 143250 79148 143018 76297.6 139594 73315.5 125345 75319.3 85992.2 148352 82368.2 142639 77586.8 140242 75579.7 129464 81588.1 92921.9 157187 89074.1 152874 82843.8 149246 78917 134759 81338.5 92624.2 159999 88426.2 153413 83099.6 150455 80705.5 138335 86898.2 98719.4 167071 94182.6 161942 87012.2 157312 82453 141159 84687.8 96314.1 167206 91674.6 160139 85914.4 156422 83286.4 142588 89225.8 101217 171688 95902.8 164181 87764.7 147904 88789.4 99951.9 174640 96137.7 167228 89315.7 161793 85267.4 146299 88295 100848 174044 97692.4 167421 89916.2 151066 91084.3 102549 177755 96602.8 167447 89078.2 150312 91118.2 103127 177820 99287.3 158071 97260 107573 186871 102890 177711 95305.1 160320 100457 112078 189862 104568 165808 101440 112294 193474 105846 169825 107788 118026 201674 110178 175394 106979 117851 204547 110761 177782 112204 122631 209570 113232 181629 109914 120550 210662 112715 181283 113474 123463 210895 113332 179136 108234 116668 191733 116207 122736 212597 115942 182997 110706 120777 196096 122970 126942 203520 124943 129496 223792 116890 186223 111264 119560 195337 119579 123114 199358 120506 124003 198605 122266 125573 200955 121106 124920 202353 114920 144991 149163 218132 132600 134427 212810 112648 139442 143828 218057 115588 143866 149599 223505 123704 149090 150044 214616 123405 123430 155531 152924 223639 131155 134488 153979 149285 160243 153558 204935 111159 116356 124398 126733 127795 128212 128421 128046 127942 127021 126625 125185 124706 123093 122694 121146 120784 119447 119195 118121 118027 117295 117356 117030 117223 117137 117644 117676 118430 118565 119522 119731 120838 121111 122363 122698 124078 124453 125919 126314 127823 128214 129724 130093 131566 131894 133291 133564 134859 135064 136258 136334 137395 137450 138305 138242 138938 138809 139325 139143 139503 139314 139560 139264 139464 139133 139269 138892 139013 138604 138713 138277 138374 137914 138000 137522 137599 137105 137174 136671 136733 136221 136292 135757 135824 135289 135334 134813 134853 134332 134369 133847 133879 133357 133387 132865 132891 132370 132393 131873 131894 131375 131394 130877 130894 130381 130397 129887 129901 129396 129410 128908 128921 128424 128438 127946 127959 127471 127485 127001 127014 126536 126549 126074 126087 125618 125632 125167 125181 124721 124735 124277 124290 123836 123850 123398 123412 122966 122981 122540 122556 122122 122140 121712 121731 121309 121329 120912 120933 120520 120542 120133 120156 119751 119775 119373 119397 119000 119026 118632 118658 118268 118295 117909 117936 117554 117582 117203 117232 116857 116887 116515 116545 116177 116208 115843 115875 115513 115546 115188 115221 114867 114901 114550 114585 114238 114274 113930 113967 113628 113678 113328 113371 113030 113087 112750 112787 112464 112512 112166 112222 111845 111884 111537 111600 111746 112614 111118 110013 61668.8 32128.9 35428.2 63763.9 66225.4 38788.9 19339.4 19350.7 20289.6 10497.1 7441.29 7427.07 7691.03 11000.7 21782.3 35907.5 65057.7 65837.9 38385.9 35628.2 65006.1 66145 38750.4 22260.8 12433.8 11882.5 22767.5 35925.9 65406 66487.8 38987.9 36102.4 65691.2 66734.8 38973.7 23598.7 12677.8 8920.37 8744.38 11994.6 23120.8 36124.1 65914.5 66949 39131.9 36205.3 66140.9 67177.8 39106.3 23689.4 12733.9 11996.7 23225 36214.3 66342.7 67398.5 39216.5 36263.7 66569.1 67616.1 39186.2 23638.1 12703.8 9030.4 5340.28 5354.61 4960.36 4814.69 3384.43 3533.51 3666.17 3692.24 3725.51 5431.21 8967.05 11992.3 23219.6 36260.4 66783.9 67824.1 39278.1 36292.7 67006.2 68059.9 39243.5 23587.9 12712.3 11997.8 23181.2 36287.9 67217.8 68273.7 39319.9 36307.9 67437.9 68504.7 39272.9 23533.6 12707.6 9035.45 9030.94 12001.1 23130.5 36291.6 67650.1 68717.2 39338.3 36300.3 67868.4 68946.3 39280.4 23471 12712 12008.6 23071.1 36272.2 68077.9 69156 39331.6 36268.2 68292.5 69381.1 39260.5 23400.3 12712.9 9080.01 5448.06 5445.38 5424.79 3721.08 3724.22 3722.36 2640.17 2646.16 2651.58 2656.77 2646.98 2635.96 2579.46 2513.1 1863.88 1889.65 1906.65 1908.1 1374.78 1379 1378.37 1371.63 1009.81 1009.16 1003.15 997.213 989.217 1367.51 1905.46 1897.58 1890.3 1881.42 1342.1 1350.79 1359.36 981.725 973.795 966.158 708.122 714.403 720.935 727.351 734.256 740.244 746.901 750.081 566.602 562.695 557.068 551.81 424.162 428.511 432.979 436.72 343.861 340.58 337.011 333.477 330.052 419.828 546.292 541.085 535.96 531.011 407.933 411.753 415.719 326.811 323.726 320.782 317.962 404.229 526.152 701.866 958.454 1333.49 1873.32 2633.75 3720.76 5459.32 9084.79 12016.9 23003.3 36227.6 68497.2 69585.5 39296.1 36209.7 68705.3 69803.7 39210.6 23321.8 12721.5 12029.4 22928 36154.9 68901.9 69999.8 39228.9 36122 69101 70208.6 39127.7 23236.8 12727.7 9131.79 9142.44 12043.5 22846.2 36052.4 69287.5 70394.4 39127.8 36003.6 69475.3 70591.4 39009.6 23144.9 12742.5 12062.1 22758.4 35917.8 69648.8 70763.6 38989.5 35851.4 69821.7 70945.1 38852 23048.4 12756.1 9188.32 5478.11 5473.02 5464 3718.59 3716.54 3713.88 3711.28 5485.93 9204.2 12083.4 22665.9 35747.8 69978.5 71100 38810 35662.6 70133.1 71262.5 38651.9 22947.2 12778.2 12109.9 22569.8 35540.1 70269.8 71396.5 38586.3 35434.5 70402.3 71535.7 38405 22844.1 12801 9249.41 9269.84 12139.8 22471.8 35291 70513.9 71643.4 38313.5 35163.7 70618.8 71754.6 38108.2 22740.2 12832.5 12175.6 22373.7 34999.6 70702.6 71835.3 37991.6 34851.9 70781 71920.4 37763 22639.5 12866.9 9314.58 5502.94 5497.83 5491.16 3708.15 3705.09 3701.48 3698.05 5508.81 9339.1 12216.8 22279.6 34667.9 70838.6 71974.5 37622 34500.2 70890 72032.3 37369.6 22546.3 12911.5 12265.2 22193.6 34296 70919.4 72057 37202.9 34106.3 70939.5 72080.9 36922.6 22464.6 12960.4 9383.83 9411.56 12318.7 22117.6 33878 70932.2 72066.2 36726.1 33663.8 70911 72047.3 36416.4 22393.6 13018.6 12378.4 22052.7 33412.6 70860.4 71989 36192.8 33177.9 70796.5 71927.8 35858.4 22337.6 13081.2 9455.38 5522.01 5517.89 5513.46 3694.08 3690.17 3685.88 3681.79 5526.2 9485.1 12443.4 22003.4 32908.5 70704.2 71827.2 35613.5 32658.7 70598.2 71722.8 35260 22302.1 13153 12515.3 21974.9 32377.6 70462.4 71576.9 35002.4 32121.5 70311 71425.3 34640 22293.4 13230.9 9527.67 9558.45 12593.5 21972.3 31839.2 70127.8 71229.3 34383.1 31589.8 69927.1 71027.7 34027.3 22314.9 13318.6 12678.5 21999 31322.1 69698.3 70792.3 33791.5 31098.8 69436.2 70523.3 33465.6 22369.2 13412.8 9599.37 5535.64 5533 5529.99 3677.65 3673.4 3668.84 2530.01 2536.66 2543.45 2550.19 2557.26 2564.34 2571.46 2578.64 2585.72 2592.89 2599.89 2606.91 2613.74 2620.59 2627.17 1864.49 1856.17 1847.47 1307.82 1316.34 1324.85 950.94 943.435 936.096 928.768 1299.44 1839.08 1830.45 1822.07 1813.57 1274.63 1282.83 1291.08 921.601 914.476 907.462 661.024 666.584 672.235 677.972 683.802 689.726 695.759 521.416 516.775 512.24 393.789 397.161 400.642 315.263 312.681 310.207 307.861 390.52 507.802 503.457 499.205 495.043 381.307 384.28 387.35 305.612 303.478 301.452 299.534 378.429 490.968 655.545 900.524 1266.54 1805.25 1796.86 1788.71 1780.54 1242.78 1250.6 1258.52 893.676 886.918 880.257 873.698 1235.1 1772.59 1764.72 1757.08 1749.47 1212.71 1220.07 1227.52 867.24 860.88 854.596 619.719 624.577 629.51 634.533 639.651 644.855 650.168 486.984 483.09 479.29 370.382 372.968 375.65 297.719 296.019 294.422 292.937 367.904 475.58 471.968 468.433 464.99 361.011 363.217 365.506 291.557 290.279 289.089 237.661 238.046 238.536 239.127 239.834 240.666 241.615 242.682 243.87 245.174 246.61 248.153 249.835 251.63 253.556 255.606 257.784 260.09 262.536 265.138 267.907 270.803 273.727 276.515 226.914 224.559 222.097 219.664 183.609 185.718 187.845 189.849 161.795 160.074 158.191 156.305 154.514 181.612 217.354 215.201 213.198 211.332 176.474 178.049 179.759 152.854 151.325 149.925 129.467 130.778 132.21 133.756 135.414 137.147 138.846 140.349 123.845 122.51 120.946 119.319 106.88 108.439 109.915 111.139 101.436 100.266 98.8418 97.3199 95.7968 105.345 117.739 116.251 114.861 113.573 101.169 102.481 103.874 94.3159 92.8873 91.5171 84.1588 85.6131 87.0987 88.6151 90.1504 91.6631 93.0669 94.2319 89.1573 87.9993 86.605 85.0857 81.8412 83.3701 84.7537 85.8861 84.0171 82.9189 81.5497 80.0226 78.4219 80.251 83.5219 81.9585 80.4056 78.8579 75.404 77.0348 78.6465 76.7914 75.14 73.45 71.6968 73.7348 77.3076 82.7399 90.2146 99.9511 112.396 128.277 148.654 175.031 209.6 208.001 206.535 205.205 171.539 172.56 173.725 147.519 146.528 145.688 145 170.664 204.012 202.955 202.034 201.248 168.929 169.359 169.938 144.468 144.095 143.897 124.125 124.223 124.487 124.937 125.543 126.305 127.22 111.341 110.426 109.656 97.0137 97.8542 98.8401 88.9954 87.8815 86.9003 86.0813 96.3289 109.049 108.6 108.329 108.217 95.2368 95.465 95.7986 85.3498 84.6492 83.9251 83.0663 95.0383 108.214 124.138 143.835 168.636 200.594 200.075 199.675 199.404 168.592 168.484 168.504 143.898 144.101 144.443 144.93 168.847 199.285 199.269 199.357 199.558 170.291 169.713 169.217 145.494 146.272 146.959 125.997 126.284 126.126 125.657 125.016 124.599 124.313 108.43 108.686 108.811 93.5963 94.3834 94.7934 81.8532 80.2623 78.2803 76.033 92.1511 108.753 108.266 107.035 105.176 86.2003 88.1146 90.2378 73.8735 72.1112 70.9247 59.1604 59.8585 60.9995 62.6386 64.7219 67.0581 69.4043 71.5527 73.4014 74.9991 76.4166 77.6695 78.8618 80.063 81.3679 75.7538 74.2031 72.5996 68.1094 70.1806 72.0072 69.842 67.7913 65.3764 62.5437 65.71 70.7993 68.7896 66.56 64.1309 57.1558 60.1163 63.0174 59.3784 56.0698 52.8798 50.0447 54.325 61.5647 58.9941 56.6057 54.5727 48.0435 49.6977 51.7999 47.6917 45.8356 44.4131 43.3273 46.7922 52.9776 51.8135 51.0059 50.4571 44.6004 45.1559 45.8599 42.481 41.7933 41.2021 40.6669 44.133 50.0757 58.8016 70.3543 84.9089 103.217 124.916 147.211 171.033 199.874 237.376 287.988 358.874 461.61 614.927 848.374 1205.41 1741.96 2523.24 3663.99 5537.32 9630.19 12769.2 22057.1 30868.4 69141.8 70219.3 33278.3 30696 68802.4 69866.9 33009 22455.6 13516.1 12866.3 22145.9 30524 68422.2 69470 32888.5 30412.4 67990.9 69020.3 32678.5 22571.7 13625.5 9668.44 9697.69 12968.8 22263.4 30292.9 67519.8 68530.4 32605.3 30217.2 67007.9 68000 32421 22714.9 13743.3 13077.2 22407.8 30119.8 66467.4 67442.1 32364.3 30059.7 65893.9 66850.2 32190.4 22886.4 13867.2 9732.03 5538.09 5538.68 5538.35 3658.89 3653.45 3647.5 3641.2 5536.35 9758.07 13190.8 22580.5 29977 65296.3 66233.8 32149.9 29934.3 64668.2 65586.5 31990.1 23089.1 13998.8 13309.5 22783.7 29870.1 64019.8 64917.4 31970.8 29849 63343 64220.4 31829.5 23325.5 14136.2 9786.89 9807.41 13432.2 23019.7 29807.1 62652.3 63508.8 31835.8 29810.9 61958.2 62776.5 31717.1 23597.4 14280 13558.8 23290.5 29795.4 61220.1 62036.6 31754.3 29829 60486 61283.4 31662.9 23904.6 14428.1 9828.5 5523.35 5529.07 5533.38 3634.32 3626.87 3618.87 3610.06 5515.71 9840.95 13688 23597.8 29843 59754.8 60533 31735.2 29909.5 59017.4 59778.3 31678.8 24234.8 14580.7 13819 23941.5 29958.4 58292.7 59035.6 31790.3 30062.4 57570.9 58298.9 31773.9 24603.3 14735.9 9851.53 9852.5 13950.1 24322.2 30150.3 56871.7 57583.2 31929.8 30295.7 56185 56885 31958 25010.2 14892.7 14080.1 24739.6 30426.1 55535.1 56222.4 32162.9 30615.8 54934.4 55596.8 32240 25454.8 15047.5 9850.65 5480.13 5494.48 5506.37 3600.44 3589.75 3577.85 3564.48 5462.4 9841.57 14207.1 25192.1 30791.8 54344.1 55013.7 32498.5 31029.4 53836.8 54488.4 32629.3 25934.7 15199.6 14327.4 25676.8 31255.4 53398.6 54053.5 32950.8 31548.9 53065 53740.9 33147.9 26446.1 15345.5 9823.64 9795.45 14438.8 26187.9 31831.4 52867.2 53588.9 33539.5 32177.2 52805.1 53543.2 33793.4 26981 15481.6 14537.6 26718 32502.1 52789.7 53568.3 34236.8 32887.4 52882.9 53705.7 34535.9 27531.5 15603.5 9755.48 5384.18 5415.13 5440.99 3549.22 3531.88 3511.9 2387.44 2402.24 2415.18 2426.76 2437.17 2446.81 2455.82 2464.34 2472.49 2480.27 2487.85 2495.23 2502.4 2509.5 2516.39 1734.41 1726.84 1719.24 1183.59 1190.88 1198.14 842.197 836.044 829.902 823.753 1176.31 1711.59 1703.92 1696.12 1688.21 1153.92 1161.52 1168.93 817.563 811.281 804.84 581.842 586.744 591.494 596.172 600.827 605.492 610.19 458.292 455.021 451.79 352.813 354.794 356.808 286.967 286.006 285.093 284.201 350.871 448.574 445.349 442.071 438.676 344.964 346.988 348.917 283.282 282.55 280.229 276.553 341.48 435.114 576.752 798.177 1146.14 1680.04 1671.69 1662.96 1653.87 1121.03 1129.75 1138.09 791.251 784.014 776.636 765.929 1111.77 1644.2 1633.74 1622.04 1609.59 1068.77 1088.21 1102.52 751.106 733.506 713.573 506.963 517.049 529.058 542.906 555.048 565.149 571.389 430.22 422.495 413.311 326.079 330.075 336.112 272.963 271.322 270.856 271.088 324.048 405.476 399.588 395.487 392.39 322.853 322.887 323.166 272.318 273.578 274.857 275.939 322.902 389.893 498.569 693.783 1044.51 1592.6 2370.38 3488.88 5347.14 9701.96 14619.3 27259.5 33248.5 53057.8 53899.8 35026.3 33669.6 53315.1 54213.3 35367 28087.8 15705.4 14678.1 27801.2 34063.7 53647.2 54590.5 35901.5 34516.7 54070.8 55099.8 36280.3 28636 15780.3 9632.81 9545.62 14707 28328.6 34937.6 54596.1 55674.8 36851.9 35413.5 55213.1 56379.3 37260.6 29157.3 15819.7 14698.3 28821.2 35851.8 55929.3 57143.5 37859.3 36340.1 56727.4 58021 38287.8 29625.5 15815.7 9437.61 5187.12 5250.11 5302.95 3462.08 3431.12 3394.79 3352.63 5111.54 9304.99 14643.9 29251 36783.7 57608.9 58941.5 38898.8 37268.5 58553.6 59949.8 39331.3 30002.4 15762 14537.5 29577 37698.6 59556.3 60971.6 39931.8 38156.9 60589.9 62039.6 40351.7 30207.6 15660.1 9124.95 8860.19 14353.4 29739.3 38550.7 61638.7 63071.9 40908.8 38951.5 62663.8 64073.8 41295.4 30138.8 15475.3 14066 29654.6 39278.6 63617.8 64943.3 41755.3 39575.4 64455.8 65626.7 42055.2 29730.3 15165.7 8525.78 4746.86 4903.74 5019.31 3292.41 3216.81 3129.08 3027.94 4579.09 8120.28 13614.4 29206.8 39775.9 65067.4 66019.7 42387.8 39953.2 65289.7 66071.4 42528.9 29042.2 14648.9 12965.1 28074.5 39956.7 65158.4 65787.6 42635.1 39836.7 64423.5 64886.7 42497.1 27552.3 13902.1 7663.22 7094.97 12044.2 26076.5 39417.5 62848.9 63178.8 42137.9 38682.3 60207.2 60031.7 41121.3 25135.3 12791.1 10591.2 22095.2 37034.4 54546.5 51670 39103.9 35136.1 43150 75015.3 76048.7 41688.2 35340.5 37796.6 19833 10966.8 6283.71 3761.2 4094.31 4370.18 2879.82 2708 2500.19 2266.63 3400.22 5464.64 8861.21 15034.8 15044 30274.3 61626.2 75392.4 71130.5 64888.3 44667.9 84084 82892.2 47430.5 24185.9 8195.18 20477 35579.5 65478.3 59822.4 36357 27678 44541.1 76059.9 71964.5 56587.8 25466.3 49082.4 84802.6 75709.4 56111.3 35306.4 20923.5 36127.6 14698.9 26399.4 44684.5 75629.2 69637.2 39398.3 23194.1 26416.4 53248 45053.4 71204.2 61227 41439 78806.8 72429.2 30870.9 55872.5 37500.7 72213 62145.9 34798.8 18575.6 9669.8 5217.38 11002 17835.1 34496 34048.9 8903.9 10806.6 6247.34 4120.31 6043.59 5009.65 9116.89 12603.1 7069.29 14310.7 28855.4 40775.3 4067.56 4366.07 2996.21 2000.29 1737.56 2685.49 2221.78 3202.96 2854.16 2294.25 3155.6 2815.73 3954.26 6361.5 11862.7 22079.1 39086.1 68728.2 58919.8 38458.6 71277.8 61749.6 33998.5 17513.4 32545.7 21314.1 11768.6 21881 37923.2 67211.8 56923.2 35481 66379.2 55135.5 30346.2 16801.8 31223.8 21177.2 8403.49 4953.54 8409.67 5907.51 3039.71 2588.65 3715.69 6016.72 11038 19429.9 31942.9 55453 40849 71421.4 61389.4 37451.7 70261.9 59858.5 22949 37828.9 67525.7 52602.6 30744.9 54816.1 40332.6 72463.5 60807 32378.8 18427.9 22705 13406 26126.6 7617.84 4503.71 9338.6 15163.5 32467.7 27800.9 25806.7 18575 7628.79 5463.07 3309.58 5152.89 8458.15 6229.04 10566.5 19900.6 34941.8 62574.4 50359.3 29807.8 53955.2 39322.4 67639.5 55650.6 18667.4 32808.6 56498.7 37876.4 66103 52910.8 30722.2 55236.2 40008.5 68120.9 55733.2 18539 26006.6 14803.9 29259.8 20347.3 11812.7 22072.1 4728.97 8953.19 14262.1 25597.5 27485.7 18555 7152.29 3937.68 6186.56 4767.08 2500.03 1858.79 2380.62 2750.93 2055.65 1796.19 1368.66 907.791 1263.25 1483.65 1935.38 2214.76 1549.56 2026.33 1317.67 1534.57 1986.31 1201.57 1440.29 851.189 1022.67 1220.84 1413.98 1588.65 1738.87 1867.54 1977.51 2068.62 2135.53 2198.41 2251.26 2293.35 2328.76 2350.79 1567.4 1535.77 1499.2 960.049 986.584 1017.3 677.001 660.772 645.742 629.101 930.411 1457.25 1414.62 1365.89 1309.26 825.997 866.328 901.017 611.565 590.128 566.441 432.45 447.094 459.183 469.034 477.138 484.236 491.244 387.541 385.179 382.304 321.513 322.403 322.804 276.561 276.818 276.577 275.083 319.556 378.523 373.101 365.273 356.311 304.526 310.643 315.934 272.422 268.748 264.014 258.547 297.619 346.51 416.72 537.966 779.137 1236.12 1156.16 1060.94 953.76 607.342 664.545 726.458 507.885 476.38 445.959 414.279 546.125 833.498 729.274 624.71 543.46 402.402 442.274 495.282 386.122 356.281 332.241 288.388 306.592 325.731 344.653 363.255 382.09 399.728 336.093 324.163 311.4 271.615 281.515 290.062 252.464 245.616 237.65 228.54 260.737 297.711 283.922 269.591 255.134 226.04 237.884 249.378 218.791 208.877 198.827 188.361 213.79 240.52 270.01 305.8 359.757 465.415 702.966 574.648 922.644 784.011 584.893 964.354 804.739 1323.27 956.622 791.134 557.522 365.634 484.375 581.021 386.393 498.068 355.996 398.925 491.308 357.982 409.479 330.562 286.45 262.925 297.473 276.238 317.701 288.046 256.109 298.264 272.605 337.915 278.336 251.933 314.626 456.009 746.684 1163.32 1610.01 2062.32 2759.14 2291.56 3339.23 5464.14 8908.88 6758.16 11448.4 21717.1 37799.3 65465.8 52144.6 28874.5 14498.2 19640.7 30515.3 54471.5 39326.5 66337.8 54154.6 18178.3 31639.1 54169 35932.3 62451.4 49227.9 28021.3 50617.3 35592.4 61886.9 49309.7 16245.7 23257.5 13563.2 27071.6 18952.1 11223 20957.6 4520.56 7178.1 5060 8095.99 6050.93 9691.4 17742.5 29907.9 51555 35292.7 62070.6 49938.7 27867.6 47801.9 32965.6 59344.5 46188.9 24975.6 14543 19541.3 11843.1 25599.6 22433.5 15879.2 7531.81 4024.58 5429.36 3511.15 6408.53 4532.8 3089.87 2162.92 1779.29 2370.56 1919.03 2750.46 4330.75 6489.37 11696.8 22942.7 43559.1 56326.2 32435.5 47520.5 26459.1 41710.1 23432.5 17239.4 10541.5 19747.2 15989.3 13554.4 8776.94 14754.5 6122.28 23377.8 42040.5 27581 47773.2 32275.3 58238.1 44587.1 23619.7 13987.1 19232 7175.45 5056.22 3081.16 3914.63 5412.46 8415.51 13622.5 21854.3 39401.3 24171 43222.5 28206.1 48397.3 32689.6 57115.8 45065.6 24662.7 40960.8 27493.1 48036.2 33099.6 56504.8 43810.2 15153.6 22277.9 13026 17660.7 11084.3 23441.4 20791.9 14807 9671.28 17772.6 15642.5 12249.1 6218.86 3465.42 5237.02 7080.24 3904.82 7609.04 5928.29 9135.73 15088.9 24092.1 41757.3 26227.4 46233.3 31244.5 53568.4 40968 22037.3 38730.6 25101.7 41501.8 27416.6 47682.9 32380.4 55651.8 42912.2 14637.6 23311.9 40073.8 23908.3 40927.7 25812.7 45226.9 30712.5 52025 39836.4 21566.8 37629.7 24463.5 40046.7 26562.6 45728.2 31311 52787.6 40733.9 14357.8 21962.8 37623.2 22333.3 38213.9 23922.5 41924.2 28157.1 48186.7 36593.6 19415 34023.7 21646.3 35763.7 22835.2 39329.6 25503.4 42812.2 28618.3 50235.6 38178.2 20689.2 12702.8 18124.1 11492 15772.3 10211.5 19751.5 14104.8 9294.21 16072.5 12241.5 8596.8 14030.2 5693.81 3860.62 7358.7 12754.3 21329.7 17666.9 11184.7 21797.9 15392.3 9805.68 19081.4 17257.3 13014.6 8879.88 14855.8 6061.86 3518.08 4636.38 3223.84 5690.76 7582.73 13167.3 18057.3 11360.4 22108.7 15665 10165.7 17416.8 13322.5 19390.8 6299.38 4560.92 5955.18 4088.63 2625.77 3672.46 2921.99 4904.65 7140.06 5228.42 4122.63 2003.4 1551.4 2133.84 1663.13 2306.04 1794.13 2599.35 3985.54 5650.6 4429.81 5889.75 4642.99 6540.67 4906.75 6809.24 5164.34 7632.25 11931 18757.4 33100.9 19840 35053.7 21901.8 37059 23386.1 40831.2 27496.9 46702.8 35565.3 18991.3 33152.2 21278.1 34731.5 22354.9 38064.9 24851.5 41106.8 27573.5 47913.4 36497.7 20125.1 12455.5 17821.5 11442.7 15510 9935.31 19279.3 13786.7 9240.71 17239.6 16107.4 12084.4 8324.75 14319 13267.1 10515.8 5594.86 3304.76 4702.15 6108.86 3593.67 6437.89 5222.57 6977.79 3847.89 7452.37 11762.8 18149.5 31612.5 19004.9 33310.4 20785.7 35095.2 22169.9 38366.5 25814.9 43772.3 33290.6 17765.8 30744 19581.2 31987.9 20349.3 34405.3 22141.1 35625.8 23383.3 39879.5 27041.5 45856 35279.8 12496.5 18569.1 11659.2 16246.9 10599.3 14432.8 9564.32 18227.3 13144.2 8758.59 15246.2 11507.4 8268.16 13721.1 12985.2 10478.9 5384.4 3969.61 5485.85 4371.19 5683.91 4528.34 6257.27 4759.25 6457.05 4936.65 6998.88 5332.98 7634.64 12358.3 19091.2 32557.6 19986.9 34419.4 22278.7 37428.6 25140.9 42873.6 33487.6 18368.4 29629.4 19279 32410.8 21141.5 33750.1 22438.7 37818.9 26098 43289 33534.2 12357.2 18295.2 30727.3 18217.3 30719.8 19041.2 32373.8 21054.8 35147.7 23714.7 40302.5 31519 17431.5 28008.3 18297.5 30563.2 20052 31918.6 21297.2 35836.1 24668.7 41162.2 32075.1 11772 17097 10908 14837.3 9816.7 13000.7 8854.55 17305.8 15764.6 11731.7 8195.18 13220.7 10432.8 7656.55 11925.3 5307.33 3764.47 6746.59 11238.5 18070.8 15566.1 10275.2 13583.2 9001.53 18120.9 16373.4 12086.2 8553.34 14639.7 13726.5 10852 5767.33 3511.43 4513.11 3258.65 5405.25 4174.53 3049.94 3826.45 2837.9 3538.28 2659.56 1882.26 1467.64 2019.77 1539.9 2141.64 1629.46 2284.59 1711.97 2414.1 1842.25 2656.44 3873.42 5288.25 4212.51 5440.86 4418.64 6004.49 4654.95 6227.01 4828.93 6753.32 5248.44 7401.65 11776.9 17792.7 29667.6 18689.9 31505.6 20895.4 34347.6 23551.9 39466.1 31317.6 17813.3 28042.6 18874.9 31203.5 21105.7 33750.5 23439 39286 30674.1 17788.5 11329 15475.4 10215 13283.9 8849.41 17392.1 15711.7 11681 8329.27 14030.2 13141.8 10428.6 5750.39 3525.6 4492.38 3252.8 5354.39 4117.63 3031.82 3754.33 2834.54 3468.61 2044.8 1564.71 2176.88 1655.94 2321.25 1750.46 2462.79 3813.56 7176.97 11075.5 16400.7 27105.6 17374 28985.9 19398.2 31768.9 21854.6 36632.8 29044 16726.4 26257.3 17749 29318.9 19907.3 31909 22271.9 37218.9 29256.3 17089.2 10896.6 14601.3 9735.86 12579.3 8572.87 14863.3 11116.3 8026.64 13239.1 12314.1 9987.73 5325.96 4013.93 5483.38 4472.67 5874.83 4606.03 6448.02 5014.21 6981.89 10772.8 15873 26056.8 16979.6 28108.5 19170.3 30935.8 21652.2 35754 28895.9 17167.5 26752.7 18894.6 30842.3 22355.2 35499.3 28683.7 11403.7 17215.1 27269.8 18062.2 28722.5 20166.7 33280.2 26919.3 16112.6 25049 17789.8 29021 21148.5 33618 27349.3 10996 16505.1 26112.7 17454.7 27652.7 19633 32120.2 26245.5 16112.5 24801.3 17971 28872.5 21507.5 33235.9 27660.9 11492.4 17510.9 27335.9 19116.2 30493.7 24562.2 15457.6 24401.6 17651 27322.3 20367.1 32454.2 26887 16597.7 10727.9 13391 9111.38 15442.6 11578.6 8004.06 12647.6 3902.97 5749.06 4418.2 6464.75 5014.6 7168.68 11273.6 16607.2 25812.3 19013.6 30602.1 25717.6 16512.4 25475.6 19281.8 30701.6 25687.3 16026.1 10472.1 12730.6 8695.28 15480.3 13524.2 10384.4 6298.41 3671.9 7179.1 11096.2 16096.1 24803.1 18410.3 29461.1 24919 16153.8 24882.5 19054.5 30083.7 25370.8 15945.5 10422.5 12510.2 8630.83 15109.8 13260.6 10349.6 5561.99 4216.32 6243.96 4929.49 7122.08 11212.9 16303.2 24903.7 19039.5 29986.3 26016.2 17458.3 28360.3 24280.9 11249.2 16651.9 25250.5 18946.9 28991.6 24923.9 17010.4 27252.1 23174.9 14808.6 9606.38 15891.1 11697.7 7741.61 12722.9 3713.73 6514.12 8975.76 15816.3 13434.2 13582.3 10465.8 5485.81 3069.35 4671.83 3718.54 2648.77 1922.7 1323.11 1746.94 2270.28 3150.33 3845.72 2797.2 1868.72 2435.74 3423.14 6040.3 10154.1 15274.1 12465.2 8320.68 15536.9 13809.9 10430.1 7457.82 11602.2 5555.7 4275.76 3078.55 5095.59 6325.98 9675.12 12213.5 8463.28 15646.6 14173.1 10838.9 7554.03 12010.1 3877.5 6660.88 10275.2 15755.4 12995 8637.32 16606.9 14880.1 11106.5 8020.73 12076 9723.53 13142.5 5654.87 3500.51 6081.26 5014.64 4402.52 3178.87 3952.49 2913.65 3572.34 2721.51 1973.48 1418.34 1890.12 1357.47 1041.52 831.585 1121.98 1539.83 2142.15 1635.99 2305.66 1750.39 2483.87 1905.61 2789.13 4225.35 5956.59 4632.39 3718.97 5509.96 2022.1 1559.4 2207.82 1697.62 1300.5 923.954 1197.84 858.042 1116.15 1427.15 1028.12 1345.26 972.043 1251.57 914.838 1174.31 860.194 645.681 522.208 684.145 540.311 717.385 565.256 754.977 598.208 810.107 626.926 496.318 670.18 525.25 717.273 996.074 1405.34 2014.47 1569.1 1100 842.513 1202.44 924.465 656.217 513.764 722.107 1031.38 1492.66 2206.56 1692.27 2650.53 4460.33 7011.43 10619.6 15284.9 23276.6 18034.6 28217.3 24755.4 16933.8 27205.1 23591.4 11369.8 16461.6 24820.5 18996.4 28582.3 24997.8 16172.6 9846.26 11705.6 7860.37 12740.3 5112.83 3181.03 5377.46 8631.74 15182.8 13190.9 12888.3 9950.86 6359.52 3896.84 2327.85 3861.72 5806.04 4741.77 7234.08 11549.9 17442.3 26623.8 23314.1 15067.3 9387.41 10862.3 16734.6 26559.8 23374.1 14907.7 10847.4 16194 24754.1 21251.7 13956.2 8805.17 10152.7 7013.29 4604.35 2825.85 5521.13 3417.51 2074.78 3496.29 5241.01 4337.92 6490.43 12019 25763 28678.2 18793.4 23133.1 15255 14028.2 18832.5 28682.5 24492.5 17437.6 28199.5 25295.5 12100.6 18883.5 28788.4 24730.8 17658.8 28561.5 25674.8 12232.6 19034.1 29357.8 25162.3 17875.4 29588.6 26886.5 12188.7 20389.8 31789.2 27844.6 21222.8 13684.5 8163.53 16026.8 3042.7 6168.23 10288.1 16274 26322.4 23122.3 16322.8 27224.6 23923.4 14325.6 7969.79 13990.9 9379.75 5462.93 9772.87 16043.5 26754.5 23095.6 13431.3 7223.44 8811.51 15814.9 27055.1 23434 13612.4 8949.62 15023.9 26140.1 22102.9 12223.6 6163.24 7857.55 4704.99 3346.45 1466.02 2346.9 3764.51 7261.84 12247.6 22555.1 17584.8 9268.56 4282.34 5958.28 9880.71 18176.6 11713.9 21141.2 15900.6 4529.79 7177.97 12498.6 5497.5 8494.74 4264.71 5885.33 3432.73 4127.23 4724.29 4985.68 4968.26 4357.93 2721.57 2009.69 1889.93 1560.46 1234.2 1581.03 1656.64 2078.6 2944.46 2928.14 2811.47 2618.22 1955.49 1975.61 2042.99 1619.04 1269.5 868.164 1213.97 1593.36 1527.15 1609.81 2459.46 2166.01 1991.78 2822.17 3380.73 2728.93 2215.83 3656.56 1465.52 908.614 1304.57 1023.62 1138.68 757.09 567.491 640.122 685.046 712.565 749.355 827.68 941.275 1101.18 1309.45 1338.97 1140.3 987.897 887.752 847.019 1057.69 1228.53 1060.19 844.582 1091.23 1397.44 1224.79 888.848 1274.77 1235.82 1017.56 1059.7 894.209 850.365 807.937 975.042 1193.3 1149.81 1106.15 1062.87 852.474 892.184 933.19 767.593 729.046 692.513 569.223 603.144 639.787 679.326 723.058 770.086 679.504 625.523 551.671 607.643 553.795 491.229 435.219 499.727 579.324 539.934 504.581 472.844 396.586 426.321 460.981 397.122 363.257 335.45 310.731 369.857 443.89 537.681 657.898 814.192 1020.37 1296.99 1703.14 1651.18 1599.15 1547.62 1496.98 1447.49 1399.26 1352.34 1306.72 1262.34 1219.17 1177.2 1136.46 1097.13 1059.16 1021.74 727.385 758.277 789.718 821.664 854.372 888.053 922.834 958.836 996.17 1034.93 1075.19 1116.97 1160.23 1204.83 1250.53 979.032 939.101 900.753 709.444 742.609 777.54 625.236 594.472 565.552 538.396 678.036 864.071 829.074 795.722 763.929 593.662 620.248 648.334 512.906 488.966 466.448 370.182 389.399 409.963 432.008 455.666 481.07 508.361 417.412 393.06 370.618 304.109 324.027 345.854 288.926 269.29 251.534 235.371 285.855 349.89 330.713 312.943 296.446 239.378 253.635 269.083 220.608 207.08 194.654 183.211 226.193 281.101 352.188 445.218 568.445 733.579 704.529 676.612 649.645 499.495 521.52 544.45 425.148 406.111 387.993 370.696 478.233 623.41 597.615 572.119 547.258 418.298 437.625 457.622 354.151 338.307 323.115 252.034 264.147 276.87 290.273 304.427 319.408 335.297 266.799 253.442 240.946 192.077 202.631 213.975 172.652 162.885 153.831 145.417 182.239 229.233 218.227 207.855 198.048 156.323 164.427 173.045 137.578 130.25 123.373 96.6728 102.679 109.073 115.91 123.249 131.154 139.694 148.946 158.997 169.944 181.901 195 209.407 225.318 243.043 262.872 285.67 311.545 343.972 380.854 437.405 503.997 449.6 385.659 336.995 388.894 485.802 612.804 499.168 646.66 921.147 1581.02 2285.55 1508.31 1206.28 2385.64 1635.37 890.95 1235.71 589.22 854.787 1296.14 2425.57 3764.31 2867.6 1966.27 3334.23 1911.35 4132.15 1112.37 1521.73 2285.19 4589.59 8382.98 15006.4 13763.7 6219.97 3924.96 6598.92 3443 8564.87 14998.2 13893 6576.38 8839.15 14844.1 13663.4 5137.05 2565.05 3087.42 4327.07 1787.38 1138.95 1489.61 993.22 1312.91 1679.56 1127.95 1489.44 1898.65 1283.55 1008.96 773.116 608.323 885.305 680.306 534.581 774.01 600.097 870.997 1311.51 975.937 746.284 556.479 818.316 572.156 425.611 321.026 401.485 295.228 386.538 515.447 672.212 466.654 360.18 277.736 205.444 257.565 328.035 417.909 295.493 374.274 472.911 334.144 425.143 537.847 694.572 885.294 1149.08 794.939 619.141 486.193 346.993 440.065 559.727 401.995 318.422 252.179 200.406 274.511 380.712 302.736 240.345 193.013 266.593 212.772 171.337 235.112 188.398 153.61 127.08 169.847 223.362 189.102 246.722 209.566 273.5 355.658 463.842 617.204 503.91 386.909 297.236 228.951 192.09 245.245 310.042 391.612 326.794 398.517 331.407 285.519 246.999 289.677 333.149 298.465 268.206 244.349 208.919 230.675 258.351 219.486 195.17 175.764 144.78 161.681 182.428 206.014 237.352 274.455 222.947 264.094 209.917 164.475 140.605 178.449 155.427 193.898 168.302 148.585 131.192 116.786 92.1852 104.217 118.564 134.802 105.837 122.195 94.2234 108.889 127.026 148.645 175.263 133.313 158.687 119.031 142.523 105.866 88.3809 74.4417 100.32 85.1125 113.352 96.6445 82.799 71.2918 52.9603 61.8224 72.3775 53.3272 62.916 45.7879 54.4019 64.7959 77.6754 93.601 113.398 138.734 101.106 124.784 154.96 111.868 139.92 174.842 219.254 159.282 126.067 100.295 71.1264 89.8176 114.132 145.027 184.544 233.642 294.305 372.652 474.035 601.881 780.683 563.182 439.15 348.639 259.5 326.652 414.626 310.532 391.528 295.411 374.232 468.267 356.141 450.529 344.091 431.141 332.173 413.955 319.01 404.263 496.3 629.157 781.573 999.489 1271.76 947.109 1207.02 903.827 1147.35 1482.54 1912.73 1381.4 1103.31 861.168 663.303 840.028 1031.67 1334.24 1000.33 1254.72 951.598 1200.42 916.046 1143.18 872.488 1112.93 1356.06 1832.81 2384.51 1688.68 2251.42 1606.14 2100.08 3069.39 4291.12 5506.05 3902.18 2829.3 3566.29 1976.25 1513.27 1202.12 964.078 1250.13 1011.24 1330.35 1029.3 812.602 650.774 797.927 636.61 768.357 933.534 1150.32 1436.11 1851.1 1339.65 1116.5 898.405 706.462 893.436 1039.94 1312.04 1009.35 1262.44 982.73 1208.75 1465.94 1883.12 1378.56 1811.8 2308.87 1676.52 2133.06 1587.79 1969.09 1471.15 1261.75 1005.54 1167.89 1440.88 1106.81 1405.08 1626.27 2118.01 2600.77 3835.23 7273.22 6131.79 8807.24 4953.56 2347.61 1954.51 1579.14 1287.76 1097.39 829.913 698.853 934.657 740.5 497.209 383.578 559.596 768.22 1009.51 1292.03 1061.51 1351.64 1090.45 937.964 1165.81 950.236 781.572 614.247 737.54 557.656 723.918 880.123 675.283 842.565 648.154 456.724 282.367 205.462 307.801 477.999 366.293 528.435 406.145 306.401 459.125 328.619 475.808 642.525 811.901 674.808 845.893 703.407 554.687 460.073 598.166 745.653 613.809 495.959 391.655 514.892 415.854 541.927 686.501 868.158 683.765 579.787 722.397 588.363 742.863 608.551 772.233 623.795 793.266 653.064 521.782 411.652 514.972 403.13 495.219 386.557 481.874 373.51 462.319 349.327 457.967 543.482 425.082 345.196 256.552 201.751 279.536 207.915 287.902 221.921 303.093 231.668 314.491 245.392 332.916 431.511 546.523 695.476 560.532 721.639 579.998 753.055 599.301 467.464 365.718 454.119 354.728 439.424 340.205 267.017 201.883 277.511 211.853 289.402 377.926 485.485 386.591 311.854 239.879 173.969 232.219 298.513 220.633 167.362 123.617 87.8231 118.442 158.521 112.17 151.254 107.197 142.791 194.669 251.992 182.096 137.57 100.7 77.5596 58.9015 80.2157 61.3249 84.2592 63.3681 47.0639 36.2576 46.2826 36.4638 44.9399 58.1507 73.0136 97.9391 127.628 175.823 122.456 164.606 114.954 155.828 110.736 142.769 101.26 138.808 181.187 252.036 318.254 230.203 307.441 217.014 287.563 372.75 469.844 345.436 270.853 197.842 133.324 183.886 241.204 337.211 422.976 536.087 398.899 508.205 372.516 251.904 178.996 277.419 200.851 305.321 226.425 161.44 129.9 100.496 82.4337 100.814 118.038 153.207 113.572 143.076 112.14 130.669 170.824 214.612 152.041 197.976 264.405 176.847 238.554 170.669 136.756 121.245 146.889 120.668 107.788 129.151 106.057 95.2544 85.601 92.7999 84.8806 96.14 104.377 95.1101 107.873 116.995 135.336 158.257 188.47 252.167 316.888 461.298 591.449 773.16 1006.09 1194.64 1530.07 1766.91 1356.66 1713.76 1246.37 835.064 683.215 1023.16 779.535 1171.02 861.06 715.915 495.371 386.849 256.341 313.821 450.894 569.617 369.272 469.86 307.127 418.131 518.399 338.43 287.873 232.518 198.388 230.011 255.933 218.122 202.546 180.289 169.666 183.826 208.098 259.29 209.57 281.353 223.766 195.397 163.571 186.365 166.155 179.437 163.586 152.681 144.376 153.896 138.518 147.873 138.827 147.256 163.538 198.873 277.76 219.611 180.947 149.518 132.883 146.63 172.936 149.41 131.559 123.035 110.833 119.946 134.737 117.082 108.385 98.1045 91.3966 101.438 108.72 103.453 94.5751 86.6948 81.9986 87.9972 98.2158 104.063 115.963 122.68 136.273 126.055 117.177 108.151 100.153 111.083 117.98 130.964 122.943 130.055 121.222 135.086 142.824 158.479 167.531 186.09 197.536 221.505 237.673 214.683 240.242 215.339 234.006 251.154 226.546 247.225 222.581 236.687 254.286 226.851 212.708 199.652 177.499 189.335 201.586 177.535 166.6 155.917 145.362 165.456 185.634 205.751 193.952 213.965 195.336 183.843 198.757 185.329 202.756 182.552 172.896 155.883 144.314 159.252 169.629 157.767 168.053 152.224 167.198 177.724 160.364 173.89 154.273 135.142 124.872 142.627 132.243 149.751 136.807 127.561 143.465 128.754 143.635 133.427 121.78 135.724 147.587 132.565 125.144 111.674 101.485 114.605 121.608 111.609 102.12 91.6123 82.4645 89.3261 100.849 108.025 121.231 107.543 114.964 101.467 111.843 121.177 105.611 115.198 98.9787 107.629 116.628 125.747 135.117 144.702 154.394 163.862 172.967 181.824 190.595 199.055 206.811 213.567 219.541 224.75 229.529 233.241 236.442 238.163 239.867 240.105 239.825 239.101 237.794 236.179 234.426 232.623 231.116 229.896 229.817 230.496 232.454 235.142 236.736 237.098 237.033 237.069 237.174 200.276 200.838 201.22 171.36 171.908 171.72 146.941 145.805 143.946 142.687 169.851 200.985 199.749 197.437 196.293 167.364 167.402 168.133 142.242 142.427 143.423 122.541 121.375 120.474 120.136 120.393 121.33 123.069 101.686 100.983 100.821 84.363 84.1772 84.3254 70.1582 70.1431 70.3403 70.6508 84.856 101.152 101.886 102.795 103.763 86.7554 86.1195 85.4707 70.9805 71.3001 71.5903 71.8312 87.3474 104.722 123.803 144.766 168.311 196.026 196.695 198.098 199.818 173.205 171.434 169.746 146.283 147.854 149.396 150.818 174.945 201.66 203.498 205.212 206.695 179.013 177.932 176.55 152.024 152.944 153.421 129.654 129.55 129.214 128.492 127.496 126.334 125.084 105.639 106.478 107.201 88.5361 88.2951 87.8667 71.9526 71.9882 71.9796 71.8718 88.6163 107.693 107.901 107.955 107.871 88.0768 88.4701 88.6209 71.6322 71.2574 70.7382 56.2798 56.861 57.3454 57.7315 58.028 58.2536 58.4264 58.5458 58.615 58.6344 58.6301 58.6066 58.5583 58.5662 58.6311 49.7827 49.5425 49.3321 42.9491 43.3244 43.7144 40.163 39.6768 39.1981 38.7224 42.5754 49.1341 48.9225 48.6865 48.4371 41.4245 41.8119 42.1957 38.2513 37.7841 37.3191 36.8535 41.03 48.1688 47.8765 47.5515 47.1869 39.7545 40.2013 40.6244 36.3844 35.9069 35.416 34.9062 39.2777 46.7744 46.3044 45.7703 45.1696 37.6106 38.21 38.7646 34.3724 33.8102 33.2164 32.5907 36.9669 44.5027 55.6005 70.0766 87.4778 107.443 129.606 153.594 179.579 207.761 208.26 208.396 207.618 178.636 179.597 179.79 153.55 152.939 151.965 150.632 177.36 206.292 204.509 201.749 198.467 169.838 172.868 175.449 148.628 146.169 143.29 118.892 121.615 123.942 125.893 127.324 128.319 129.12 106.738 105.876 104.783 84.6574 85.7833 86.7147 69.2814 68.3525 67.2795 66.032 83.2988 103.343 101.54 99.378 96.8978 77.5759 79.7295 81.6579 64.5813 62.9343 61.1208 59.1634 75.2335 94.1761 115.792 139.835 166.029 194.246 189.557 184.192 178.198 151.557 156.938 161.764 135.989 131.682 126.929 121.783 145.663 171.472 164.112 156.392 148.51 125.591 132.537 139.241 116.207 110.456 104.461 85.3941 90.4509 95.3205 100.079 104.511 108.595 112.379 91.1954 87.9678 84.5276 67.1791 70.0292 72.7079 57.0905 54.9097 52.5993 50.159 64.1203 80.7944 76.8372 72.7819 68.616 54.2684 57.6164 60.9146 47.6208 45.0116 42.3888 32.978 34.9996 37.018 38.9966 40.9092 42.7439 44.4926 46.1634 47.7551 49.2483 50.621 51.8627 52.9696 53.9508 54.8239 43.7709 42.9704 42.0916 34.7498 35.5418 36.2789 31.9318 31.2363 30.4992 29.718 33.8987 41.1279 40.0756 38.9357 37.7139 30.9923 32.0183 32.9882 28.893 28.0255 27.1152 26.1658 29.9162 36.4242 35.0764 33.6751 32.2205 26.4508 27.642 28.7979 25.1834 24.1735 23.1356 22.0734 25.2251 30.7157 29.1711 27.6078 26.0405 21.4573 22.7206 23.9779 20.999 19.9173 18.8293 17.7461 20.1971 24.4772 30.9688 39.7922 50.9502 64.4573 80.3189 98.4362 118.594 140.499 132.251 123.811 115.351 96.9139 104.194 111.453 92.3573 86.207 80.079 74.0375 89.7531 107.085 99.0741 91.2992 83.7894 69.8214 76.2112 82.8438 68.2025 62.6271 57.2905 46.3307 50.7098 55.3031 60.117 65.0965 70.1499 75.2515 60.3249 56.192 52.1164 41.1593 44.38 47.6536 37.2155 34.6745 32.1728 29.7036 37.9745 48.0935 44.209 40.5144 36.9912 29.2292 32.0029 34.9118 27.34 25.0898 22.9439 20.9439 26.6398 33.6809 42.166 52.1613 63.6516 76.5284 90.6037 82.7112 96.8606 88.0272 80.2338 93.5421 83.3319 95.2609 88.996 78.0123 72.5201 62.2841 67.6955 76.8836 65.5041 71.9413 61.1624 68.0041 75.0507 63.0105 69.6005 57.741 47.2585 42.6512 52.1708 47.0475 56.9296 51.2255 45.9772 55.1832 49.0864 58.0866 52.5657 45.8546 53.7272 62.7118 73.2225 84.6074 95.09 104.961 114.32 101.766 110.163 103.722 92.2636 86.0031 92.795 98.4582 91.6982 81.8868 76.1678 69.0722 76.0473 83.9977 76.1014 69.7466 61.5876 55.1764 60.9928 67.0051 73.5448 80.0086 85.4544 89.6581 83.2235 89.0513 79.2721 74.4048 79.314 70.4896 75.4581 82.2701 93.1277 83.8145 95.9392 83.9376 71.8694 66.0406 73.3889 66.9192 75.9454 70.4075 65.7708 58.0543 62.2297 57.6741 61.7354 54.9854 59.9245 65.8923 73.7274 86.5888 108.063 145.762 112.294 155.706 121.578 173.394 124.774 92.2237 73.4851 91.1462 74.1087 86.5327 71.5709 64.0469 54.6565 62.0279 55.3881 63.9994 77.8383 100.502 76.8453 65.3948 82.7991 63.9543 83.2928 67.4578 88.2601 68.6424 91.5329 71.9847 55.3392 44.1906 55.2709 44.7497 53.8246 44.138 54.5657 46.028 52.4093 44.9674 54.5435 62.1498 52.9657 47.4936 39.8943 35.888 40.1992 33.4463 37.8377 33.367 38.0537 31.6292 36.8396 31.1734 36.968 45.4528 35.8308 29.9113 24.0101 29.0048 23.6363 28.9417 36.8051 48.6517 66.5143 93.0646 131.357 184.199 252.351 191.467 261.511 200.917 271.428 211.448 284.153 220.976 169.839 232.889 179.45 244.624 191.188 137.548 97.3828 128.69 90.9219 121.331 160.252 114.047 152.62 108.141 144.787 102.815 136.815 96.8007 68.7989 52.3092 72.903 54.1268 76.2219 57.0617 80.5459 60.3295 85.6699 63.8696 48.0108 68.3783 51.3422 73.3397 104.296 146.806 203.222 274.86 217.334 170.427 132.757 94.189 122.057 157.894 112.711 86.2166 66.1382 50.9374 72.921 103.45 80.7994 63.32 49.9421 34.7561 44.2329 56.639 39.408 30.6712 24.005 16.4845 21.1527 27.2823 35.376 46.1194 60.3298 79.4097 55.5491 42.0536 32.0723 22.3298 29.3351 38.8032 27.2388 36.038 25.5273 33.9512 45.0364 32.168 42.7999 30.8723 40.9745 30.0679 39.1723 29.1514 38.4072 49.8137 37.1515 29.0796 22.4174 17.827 22.7788 28.7083 22.9878 18.4424 14.6027 11.6327 14.1504 17.6548 22.6885 17.3606 22.8135 17.5177 23.4403 17.8092 24.3439 18.3714 13.939 19.3268 14.6015 20.582 15.6395 11.8831 17.0153 24.5141 18.8486 14.5487 11.2857 7.72809 10.0146 13.0379 9.06954 6.92866 5.31431 3.68621 4.8401 6.37475 8.39149 11.0789 7.97783 10.5306 7.75641 10.2671 13.5119 10.1928 13.3588 10.299 13.4656 10.6414 13.6233 10.9959 9.08278 7.11449 8.61642 6.60739 8.15408 6.26456 7.89382 5.98956 7.74514 5.85049 4.40656 5.8622 4.40423 6.01964 4.54855 3.42986 2.59146 1.85464 2.47603 3.30821 2.4596 3.29559 2.52432 3.39058 4.52173 3.57442 4.74128 3.83019 5.07638 4.181 5.45391 4.56161 5.95858 7.62758 9.75225 12.2336 15.3592 18.9798 16.0349 19.9189 17.1383 20.4548 25.2942 29.8516 25.7107 21.8309 17.7906 15.6379 19.1171 22.5517 27.1238 24.0515 27.7457 24.6882 29.7358 26.6828 30.062 27.1741 32.3932 36.0506 42.5348 46.9436 42.5681 49.6887 45.3434 49.6157 57.425 62.8378 57.0458 52.6636 45.5971 41.6411 35.7096 38.9817 35.2088 38.6299 32.8118 29.8531 27.0293 32.0126 28.9425 32.532 38.1646 42.0494 48.5115 52.9328 49.5606 44.3923 38.8056 35.5929 40.3668 46.0958 50.7336 46.717 53.5709 49.2929 53.9005 61.3205 66.0184 61.4221 69.7072 74.6299 70.6259 77.1949 71.7446 65.9747 58.471 64.2323 57.0579 51.94 56.8883 49.4256 45.0177 40.589 44.9711 40.7492 46.5422 52.6596 47.6952 53.1056 60.1965 66.7609 61.4876 53.8637 48.1155 42.9492 47.9221 55.3393 48.7295 42.5735 37.5205 32.1034 36.8484 42.198 36.677 41.3313 36.4865 31.3321 35.9126 30.5848 34.4439 38.592 42.7379 38.4022 42.3647 36.4839 32.2799 27.5584 31.0539 34.6299 29.4642 25.9203 21.5869 24.2648 21.0939 23.715 26.4523 29.318 24.5378 21.4512 23.9629 19.7875 22.1073 19.1666 21.4776 17.6608 19.9287 16.8847 13.7723 12.0985 14.9473 13.1903 15.6452 13.8109 17.0281 15.0363 17.6313 15.5984 19.0834 22.0379 19.6522 16.8492 13.6929 11.4636 13.1787 10.5666 12.1248 10.075 11.5683 9.21103 10.5835 8.67047 9.95773 11.3931 13.0213 14.9044 11.9467 13.767 11.2655 13.0666 10.403 8.92383 7.6901 9.76944 8.47668 10.4217 9.09074 7.33989 5.72296 6.63765 5.2566 6.11359 7.10705 8.29039 6.47296 5.03818 3.84705 3.25804 4.28374 5.52233 4.72013 3.65064 2.76294 2.3418 3.10996 4.03352 3.441 4.50705 3.8501 4.91795 6.33553 7.90024 6.82873 5.44621 4.20593 3.2752 2.48172 2.92765 2.24036 2.64348 1.9817 1.67387 1.41022 1.89207 1.59283 2.0959 2.77508 3.57889 4.65894 5.86932 7.50624 6.45518 7.97103 6.8532 8.70836 7.47398 9.14117 7.84682 9.89044 11.9163 14.7497 17.3671 15.2034 18.5988 16.2333 19.0526 22.9364 26.513 23.6501 20.0491 16.6926 14.0089 11.3727 13.1955 11.025 12.8066 10.2835 8.80183 7.48586 9.40653 7.95565 9.74143 11.9704 14.5026 17.3598 20.8498 24.2705 28.8545 32.7637 29.1165 34.4567 30.6028 26.769 22.2798 25.5632 22.2772 25.474 21.2024 18.1588 14.9236 12.4779 10.6433 12.7344 15.6638 18.34 15.7391 19.2613 16.4283 19.3439 23.0543 26.9864 23.4516 27.2578 31.9888 27.5653 32.3345 28.0449 23.6274 20.3832 23.6861 20.024 16.889 19.7264 16.6506 13.8876 11.7345 14.1313 11.8707 14.4129 16.952 14.3621 17.2834 20.2643 23.9088 27.9202 32.233 37.5415 42.3553 49.2262 54.3675 62.8707 68.3275 78.3262 84.1456 95.5004 86.6999 92.7731 83.4031 73.9465 68.6166 77.6198 67.3122 75.746 70.3059 60.6593 55.784 47.5816 41.2601 48.8406 53.2622 62.2059 54.3583 59.0477 51.294 59.3152 65.6454 57.6808 50.3391 44.4475 38.0154 42.5398 49.5234 41.6374 35.899 31.9883 28.1038 33.6115 39.9113 46.9346 39.723 46.2386 42.2413 35.4779 30.233 36.1747 30.6932 33.8023 28.5449 23.9126 21.5749 25.8295 21.4502 25.5552 23.0472 27.3257 32.1585 37.5229 43.2546 36.5231 32.7071 27.442 23.2444 28.1534 31.2809 26.6635 23.9682 19.6306 17.5096 20.6309 24.1119 20.1646 17.3509 14.4809 12.0718 14.774 16.9228 14.1618 12.4984 10.0566 8.39062 10.4973 11.88 14.7142 16.5256 20.2433 22.5675 18.981 16.9981 13.8509 11.5625 14.2064 15.8796 19.3132 16.0919 17.8956 14.8335 17.8316 19.9446 23.3076 26.5789 30.1011 34.6189 38.7016 43.9117 36.3742 40.9022 33.6763 37.8727 42.3001 34.4953 38.4051 31.0013 34.4589 38.1891 30.5154 27.5482 24.7863 19.6728 21.8368 24.1637 19.0318 17.2312 15.5603 14.0061 17.6699 22.2445 27.825 24.8818 30.8507 27.4365 24.3221 29.8703 26.4598 32.1981 28.5688 24.9828 21.9076 17.9473 20.5264 23.4066 19.0368 21.5399 17.4076 19.6532 22.152 17.7551 19.9104 15.846 12.5913 11.2865 14.1616 12.6188 15.7814 13.9907 12.373 15.3827 13.5336 16.7215 14.6239 12.7888 15.7009 19.1908 16.5551 14.6363 12.2653 10.1418 11.9456 13.6322 11.1485 9.72643 8.34615 6.83918 7.91053 9.07413 10.3849 11.8613 9.59051 10.9089 8.78173 9.93161 11.2082 8.98675 10.0852 8.12612 9.06219 10.0743 11.1726 12.3715 13.6552 15.0402 16.5089 18.0468 19.6927 21.4188 23.2217 25.1086 27.0321 28.9814 22.9368 21.4269 19.9372 16.5408 17.7406 18.9582 16.682 15.6329 14.6003 13.601 15.3772 18.4857 17.0961 15.7577 14.4806 12.1446 13.1785 14.2599 12.6393 11.7056 10.8108 9.96538 11.1701 13.282 12.1385 11.0591 10.0561 8.54185 9.36169 10.2414 9.16045 8.39479 7.67845 7.00863 7.77477 9.1185 8.24943 7.44934 6.70728 5.78083 6.39506 7.05755 6.37953 5.79473 5.25342 4.75149 5.21329 6.0253 7.2694 6.48832 7.98724 7.08823 6.27763 7.74748 6.82032 8.41628 7.36931 6.43391 5.59451 4.58267 5.24413 5.98812 4.88841 5.54691 4.56291 5.14202 5.78098 4.83453 5.40277 4.69302 4.28903 3.86424 4.21638 3.78056 4.31866 3.84986 3.4242 4.03944 3.56984 4.29903 3.77494 3.31093 4.00264 4.87143 5.95022 7.28643 8.94009 10.9662 13.3464 10.9452 13.2109 11.8188 9.62968 8.55294 10.2776 12.3182 9.93807 8.78024 7.01755 5.86266 7.32729 8.2937 6.8983 6.1091 4.91008 4.16417 5.04071 5.73394 7.12525 7.99193 9.77913 8.0816 9.05896 7.51963 6.22114 5.41846 6.62279 5.49225 6.59669 5.88154 4.81241 4.14528 3.52681 2.9623 3.42849 4.03767 4.82389 3.96667 4.57354 3.79846 4.44531 5.12845 4.22362 3.66108 3.15401 2.62757 3.03097 3.48676 2.8973 2.5299 2.2054 1.92119 2.27811 2.72489 3.27895 2.81293 3.37347 2.85726 2.4736 2.06652 2.3938 2.01323 2.34973 1.97308 1.67157 1.45029 1.70157 1.46999 1.73585 1.4785 1.73697 2.04668 2.42432 2.90147 3.51486 4.27657 5.15041 6.15861 7.36282 8.74236 10.3514 12.2015 10.1688 12.1751 9.96364 8.36037 9.92559 8.11526 9.69513 11.4747 13.4632 11.3385 13.3966 10.7926 9.01789 7.58558 9.11911 7.69945 9.5102 7.96014 6.68088 5.41699 6.47809 5.27733 6.33513 5.04654 6.02045 7.18912 8.56511 10.155 8.2893 6.68362 5.33921 6.33548 5.10687 6.08589 7.20452 8.47157 6.68806 5.39438 6.36929 4.96863 5.85383 4.67974 5.51379 4.2647 5.01681 3.96358 3.03004 2.55423 3.35371 2.82293 3.60616 3.03459 3.94936 3.31646 4.19281 3.51991 4.54294 5.66116 4.76629 3.80751 2.9432 2.31273 2.77381 2.12299 2.5426 1.97604 2.36591 1.79425 2.14438 1.64733 1.9673 2.34107 1.76318 1.33688 0.993866 1.18521 0.885887 1.05546 1.25497 1.48883 1.76328 2.08594 2.4677 2.92568 3.48402 2.61192 3.14442 2.35768 2.88091 2.1386 2.66684 1.97696 1.45587 1.8714 1.37979 1.82686 1.35629 1.01557 0.778786 1.06636 0.841934 1.15587 1.57902 1.28133 1.74214 1.4362 1.95119 1.62727 2.18649 1.83817 1.54856 1.14552 1.36348 0.998027 1.19398 0.87253 1.05266 0.763757 0.933255 0.67691 0.488659 0.610877 0.442448 0.567623 0.746232 1.00588 1.38908 1.95971 2.81285 4.08831 5.98772 8.79756 12.9179 18.8964 27.463 39.5888 56.538 79.9363 64.1859 89.9784 72.8438 59.4068 82.613 68.0019 56.275 46.8326 39.1523 27.7632 33.3581 40.228 48.7544 34.5004 42.1783 51.8571 36.4821 45.2871 31.6112 25.3751 20.4935 29.5752 24.1013 19.7396 28.3666 23.4254 19.411 16.1315 23.1717 32.8153 27.5871 38.6583 32.7221 45.3542 38.6572 32.9959 45.4242 61.41 81.4331 70.8621 92.6352 81.0098 71.1715 53.7616 61.6255 45.9191 53.1079 39.0429 28.1956 24.0988 33.5619 28.8806 39.7805 34.4438 46.8826 62.5226 81.5752 104.064 129.845 158.618 189.795 223.419 205.37 189.307 174.955 145.732 158.761 173.366 143.871 130.761 119.103 108.631 133.966 162.003 150.265 139.582 129.825 104.891 113.672 123.32 99.1986 90.6694 82.9302 63.9929 70.6548 78.0284 86.2095 95.3201 105.492 116.95 93.0364 83.2505 74.5791 56.9978 64.2016 72.3581 55.0098 48.3915 42.5748 37.4429 50.6 66.8387 59.9178 53.7139 48.1456 35.3552 39.8569 44.9151 32.9171 28.9242 25.4033 22.2998 31.3476 43.1416 57.9601 75.8859 96.8733 120.886 112.67 105.097 98.0906 76.5428 82.7736 89.5272 69.455 63.5665 58.1594 53.1797 70.7728 91.5858 85.5205 79.8371 74.4807 55.7004 60.3971 65.4073 48.5791 44.317 40.3591 28.4165 31.5915 35.0551 38.8377 42.9748 47.5082 52.4856 38.6402 34.5875 30.9356 21.7718 24.6025 27.7796 19.5654 17.1562 15.0327 13.16 19.2479 27.6408 24.6653 21.9761 19.5442 13.1904 14.986 16.9962 11.5073 10.0478 8.75803 5.7266 6.63293 7.6686 8.85282 10.2079 11.7595 13.5371 15.574 17.9082 20.5812 23.64 27.137 31.1337 35.6968 40.9195 29.8328 25.82 22.3356 15.7499 18.3474 21.3569 24.8371 17.607 20.6056 14.4679 17.023 20.0287 23.568 27.7515 19.6132 23.2398 16.2621 19.3933 13.4408 11.2206 9.38114 13.6589 11.4841 16.5725 14.01 11.8432 10.008 6.82623 8.12279 9.65932 6.56933 7.84929 5.2956 6.35883 7.63981 9.19177 11.0805 13.3909 16.23 11.1043 13.5639 16.6321 11.3482 14.0447 17.4644 21.8439 14.9631 11.9092 9.53251 7.66655 6.19485 9.21343 7.50971 6.14247 9.12232 7.51625 6.2079 5.13693 4.25654 2.816 3.41381 4.14387 5.03915 3.3422 4.09226 5.02579 3.33282 4.12863 5.13525 6.41818 8.06018 10.1771 6.89251 5.42744 4.29613 2.86657 3.64593 4.66087 3.15884 2.45194 1.91297 1.50056 2.26541 3.41765 2.73208 2.19371 1.76862 2.70081 2.19554 1.78948 2.73633 2.24436 1.84312 1.51452 2.32422 3.52884 2.92502 4.41035 3.67137 5.49619 4.59417 3.835 5.73021 8.44948 12.287 10.4259 15.037 12.8281 10.9323 9.30518 13.5067 19.3057 16.6748 14.3917 12.4131 8.47224 9.90572 11.5722 7.91095 6.71798 5.69901 3.78073 4.49252 5.33149 6.31838 7.47713 8.8352 5.99921 7.12521 4.80311 3.19581 2.65775 4.01879 3.35607 5.04287 4.23152 3.54461 2.96433 2.47524 1.60056 1.93137 2.32642 2.79697 1.82603 2.20547 1.43237 1.73656 2.10034 2.53467 3.05292 2.00458 2.42286 1.58113 1.91785 1.24433 1.02146 0.837358 1.30187 1.07005 1.65571 1.36468 1.12214 0.920395 0.586062 0.718082 0.877629 0.559604 0.685234 0.435761 0.534371 0.65427 0.800106 0.977799 1.19498 1.46137 0.943923 1.16084 1.43077 0.926962 1.15168 1.43643 1.79966 1.18358 0.938547 0.747991 0.598906 0.481535 0.748636 0.606254 0.491971 0.768751 0.626668 0.510999 0.41655 0.339304 0.215319 0.26462 0.325205 0.39981 0.255023 0.314406 0.38853 0.249723 0.31036 0.387574 0.486577 0.61438 0.780407 0.997279 1.28218 1.65794 2.15485 1.48703 1.13281 0.867558 0.595991 0.786409 1.04332 0.74771 0.557562 0.418114 0.315774 0.454612 0.668425 0.518573 0.405139 0.318837 0.212006 0.270982 0.349511 0.240659 0.185313 0.144326 0.101551 0.130655 0.17054 0.225424 0.301123 0.40548 0.549255 0.414254 0.303263 0.223443 0.171088 0.23341 0.32077 0.254467 0.352427 0.28603 0.397475 0.552319 0.455815 0.631452 0.525918 0.72769 0.609369 0.836797 0.702888 0.963524 1.30482 1.09862 0.810556 0.59081 0.496875 0.681654 0.924211 0.776513 0.572906 0.418075 0.305996 0.362698 0.4305 0.511759 0.370029 0.440317 0.317909 0.379419 0.27281 0.327605 0.235735 0.170117 0.206202 0.14959 0.184598 0.135062 0.100122 0.126786 0.166161 0.125116 0.0956658 0.0744739 0.0572193 0.0730684 0.0953611 0.0755365 0.0582529 0.0460822 0.0374731 0.045895 0.0591385 0.0801859 0.113789 0.167431 0.252745 0.201767 0.162152 0.131142 0.201795 0.163688 0.133244 0.207252 0.168688 0.137478 0.0891794 0.108826 0.0718906 0.0873252 0.106701 0.0715029 0.0872472 0.107423 0.133486 0.090859 0.0734891 0.060208 0.049957 0.0419733 0.0591279 0.0493407 0.041559 0.0595467 0.0496455 0.073343 0.112195 0.175179 0.276089 0.224374 0.354702 0.288174 0.455967 0.370667 0.300673 0.477138 0.753023 1.17859 0.967492 1.50855 1.24366 1.02327 0.840429 1.32423 2.06385 3.17785 4.82988 7.24069 10.6999 9.21763 7.93531 6.82588 4.49794 5.27626 6.18345 4.08938 3.45896 2.9225 2.46606 3.83006 5.86564 5.03405 4.31346 3.68873 2.34166 2.76447 3.25676 2.07771 1.74726 1.46611 0.906416 1.09022 1.30832 1.56699 1.8737 2.23726 2.66798 1.71847 1.42895 1.18653 0.743154 0.902308 1.09391 0.689124 0.564193 0.461235 0.376519 0.611119 0.983739 0.814204 0.672565 0.554313 0.336169 0.411101 0.501696 0.306911 0.24979 0.202978 0.122787 0.151649 0.187185 0.230868 0.284479 0.35016 0.430474 0.528464 0.647717 0.79243 0.500499 0.614599 0.387568 0.243438 0.196812 0.314177 0.254266 0.406778 0.330055 0.267445 0.216497 0.175142 0.108386 0.134112 0.166034 0.205536 0.128391 0.158976 0.100187 0.12382 0.15311 0.189263 0.233714 0.147744 0.182142 0.115966 0.142514 0.0917209 0.0751583 0.0617858 0.0944398 0.0770409 0.119809 0.0972052 0.0789877 0.0643628 0.0427919 0.0517827 0.0630277 0.0423792 0.0510197 0.0353697 0.0420147 0.0502902 0.0605757 0.0416934 0.0353058 0.0301767 0.0231635 0.0263726 0.0303669 0.0353447 0.0267985 0.0307459 0.0357044 0.027525 0.0316177 0.0368643 0.0436631 0.0525725 0.0643779 0.0479546 0.039718 0.0335805 0.027438 0.0318098 0.0377413 0.0313356 0.026912 0.0236766 0.0212681 0.0241664 0.0289473 0.0254008 0.0226477 0.0204806 0.0242998 0.0217341 0.0196752 0.0236387 0.0210984 0.0190485 0.0173882 0.0205823 0.0260611 0.022762 0.0300467 0.025793 0.0354669 0.0299543 0.0255704 0.0356283 0.0526657 0.0811923 0.0659795 0.103755 0.0839741 0.0681387 0.0554945 0.0877038 0.14165 0.114578 0.0927394 0.0751546 0.0472289 0.0578357 0.0711144 0.045422 0.0374156 0.0310646 0.021825 0.0256164 0.0304208 0.0364982 0.0441709 0.0538359 0.0359368 0.0433433 0.0299385 0.0220921 0.0193367 0.0254314 0.0218682 0.0300684 0.025429 0.0217676 0.0188819 0.0166098 0.0137039 0.0150857 0.0168361 0.0190552 0.0154288 0.0171555 0.0144788 0.0158412 0.0175511 0.0196999 0.0224008 0.0180049 0.02012 0.0168275 0.0185037 0.0160378 0.0149345 0.0140284 0.015473 0.0143749 0.0163109 0.0149521 0.0138592 0.0129764 0.0121435 0.012748 0.0134806 0.0126558 0.0132795 0.0126645 0.0132104 0.0138543 0.0146208 0.0155408 0.0166537 0.01801 0.0162121 0.0173546 0.0187516 0.0169998 0.0182238 0.0197468 0.0216764 0.0194381 0.0180165 0.0168864 0.0159673 0.0152036 0.0159989 0.0151671 0.0144656 0.0152674 0.0144777 0.0138104 0.0132405 0.0127489 0.0124875 0.0128907 0.0133461 0.0138657 0.0135099 0.0139982 0.0145563 0.0141927 0.0147297 0.0153506 0.0160844 0.016973 0.0180783 0.0194908 0.0213443 0.0238357 0.0272537 0.0320209 0.03875 0.048327 0.0620175 0.0816189 0.109636 0.0911775 0.123778 0.104214 0.142425 0.196694 0.165736 0.229043 0.193566 0.267703 0.226351 0.311827 0.263433 0.223116 0.163647 0.192107 0.140487 0.164481 0.120508 0.140828 0.103333 0.120691 0.0890206 0.0667995 0.0773855 0.0586852 0.0684072 0.0525334 0.0414895 0.0337912 0.0303261 0.0366256 0.0456685 0.0405396 0.0513185 0.0455879 0.0584831 0.0769793 0.0672742 0.0892572 0.077723 0.10381 0.0900174 0.120607 0.104105 0.139979 0.189514 0.258582 0.352021 0.48131 0.651783 0.546759 0.742398 0.621536 0.831941 1.11921 1.47846 1.2365 0.93519 0.695639 0.581549 0.780555 1.03223 1.37547 1.14628 1.49744 1.24747 1.64627 1.36973 1.76851 1.47195 1.9239 2.45509 3.17718 3.99777 3.34528 4.26285 3.54617 4.48181 5.58888 7.00762 5.89517 4.65864 3.75148 2.94538 2.33295 2.79461 2.19361 2.64225 2.04599 1.7057 1.4239 1.82123 1.51513 1.94812 2.44762 3.13365 3.87993 4.93601 4.11393 3.23811 2.61249 2.17739 2.71032 3.42291 4.23081 3.53907 4.40866 3.69558 4.51824 5.61181 6.7754 5.6817 6.98359 8.40225 7.10638 8.44616 7.01562 6.00347 4.81821 5.80173 4.79207 3.91422 4.69577 3.78206 3.0986 2.5948 3.18751 2.70078 3.26071 4.05271 3.43104 4.01001 5.06689 5.83136 4.88361 4.26334 3.35189 2.82127 3.57719 4.09123 3.45587 2.9835 2.39115 2.06802 2.45246 2.9037 2.28688 2.72412 2.29536 1.82826 2.17414 1.78216 2.09596 2.48127 2.95792 2.3947 2.85605 2.27149 1.82072 1.43737 1.70898 2.04042 1.62795 1.26583 1.00022 1.19153 0.923718 1.10559 1.32806 1.59829 1.22588 0.948299 1.13925 0.865395 1.03864 0.795111 0.954471 0.717983 0.860856 0.651367 0.486542 0.407886 0.544118 0.455517 0.599613 0.502038 0.663388 0.55506 0.722734 0.605854 0.791019 1.02305 0.85654 0.66228 0.510443 0.393989 0.466336 0.356707 0.422039 0.323108 0.382703 0.289736 0.343008 0.260029 0.307673 0.365596 0.435747 0.520232 0.385001 0.458639 0.340088 0.404417 0.29677 0.250681 0.212347 0.286477 0.241979 0.323731 0.272958 0.205185 0.154315 0.180571 0.135939 0.158616 0.186013 0.218988 0.161534 0.120299 0.0904065 0.0790307 0.103949 0.138273 0.118973 0.0903903 0.0695981 0.0617807 0.0791653 0.102998 0.0898047 0.117218 0.10181 0.132684 0.174875 0.231067 0.196642 0.149989 0.114921 0.0891516 0.0700031 0.0789383 0.0622414 0.069891 0.0553176 0.0499736 0.0455607 0.0559436 0.0507606 0.0626639 0.0787761 0.100371 0.129615 0.168441 0.220976 0.189069 0.246214 0.210748 0.274447 0.234829 0.30354 0.260328 0.33519 0.432709 0.557454 0.720266 0.608847 0.775987 0.656482 0.842919 1.0639 1.36278 1.14551 0.899821 0.714178 0.60933 0.765531 0.969094 1.21341 1.53132 1.90626 1.60652 2.01424 1.69677 1.43264 1.16561 1.36345 1.09929 1.29487 1.02952 0.82553 0.65536 0.523958 0.453881 0.565145 0.707451 0.879714 0.757513 0.936789 0.802375 1.00224 1.21503 1.52213 1.30388 1.54579 1.95329 1.66327 1.93219 1.64167 1.41797 1.12438 1.31464 1.11961 0.889389 1.03636 0.865342 0.691446 0.599717 0.749743 0.651361 0.768116 0.963205 0.829777 0.967387 1.21106 1.39987 1.74711 2.03615 2.47937 2.95041 2.51092 2.0726 1.73202 1.47219 1.74856 2.12042 1.78335 1.4854 1.2546 1.07747 1.26225 1.48239 1.19753 1.03612 0.837309 0.728357 0.888358 1.02909 0.889011 0.76455 0.635976 0.557276 0.661845 0.771825 0.923012 1.07453 1.26732 1.50297 1.27482 1.08592 0.925755 0.80322 0.936358 1.09073 1.26394 1.08934 1.25811 1.09337 1.25412 1.43719 1.64384 1.87744 2.14221 2.44061 2.7757 3.14981 2.696 3.04103 2.69495 3.02203 3.38379 3.11855 3.47468 2.79322 2.49788 2.22976 2.39889 2.13206 2.3868 2.10878 1.86029 1.6385 1.48166 1.67539 1.89144 1.76766 1.98702 1.57005 1.39226 1.23286 1.30866 1.44158 1.26629 1.11069 0.972971 0.893694 1.01627 1.15403 1.09003 0.962368 0.848436 0.747175 0.78512 0.851512 0.952203 0.828549 0.943434 0.815086 0.703503 0.607891 0.69156 0.795512 0.673429 0.577244 0.490639 0.434923 0.507943 0.591255 0.523739 0.451747 0.389207 0.335379 0.372747 0.418392 0.473547 0.54006 0.620149 0.716104 0.583987 0.667772 0.567232 0.459728 0.52347 0.440178 0.501015 0.572363 0.656704 0.528065 0.609476 0.491168 0.395797 0.347345 0.429997 0.37876 0.4604 0.403979 0.356667 0.29821 0.335339 0.272607 0.306756 0.251892 0.282589 0.319094 0.362993 0.416172 0.480833 0.559712 0.443252 0.517728 0.403554 0.472404 0.369378 0.31774 0.275543 0.347798 0.302371 0.382411 0.332696 0.265094 0.212627 0.241002 0.191688 0.217359 0.248786 0.287459 0.225146 0.17649 0.202643 0.158421 0.181889 0.141892 0.163066 0.126629 0.145403 0.112969 0.0884725 0.0787505 0.0993889 0.0883092 0.111333 0.0988638 0.124659 0.110616 0.139309 0.123698 0.155214 0.196475 0.173026 0.137855 0.110887 0.0897277 0.0991432 0.080319 0.0886762 0.0718436 0.0792577 0.0642968 0.070804 0.0576228 0.0633236 0.0702797 0.0566405 0.046497 0.0389062 0.0419171 0.0353604 0.0379221 0.0410118 0.04474 0.049238 0.0546696 0.0612105 0.0690957 0.0785819 0.0603563 0.068225 0.0528435 0.059355 0.0464147 0.0518233 0.041029 0.0334781 0.0365934 0.0303233 0.0330459 0.0278156 0.0259292 0.0244631 0.0281911 0.02648 0.0309698 0.0373424 0.0343211 0.0419742 0.0383014 0.0474559 0.0429815 0.0538288 0.048403 0.043895 0.0361559 0.0392584 0.0327002 0.0352479 0.029738 0.0318212 0.0272133 0.0289158 0.0250793 0.0223285 0.02329 0.0209962 0.0218079 0.022824 0.0241405 0.0259136 0.0283995 0.0245885 0.0218584 0.0198657 0.0188963 0.0205446 0.0227898 0.0215261 0.0196338 0.0182316 0.0171624 0.0176543 0.0183769 0.0172337 0.016329 0.0155912 0.0152744 0.0159157 0.0166896 0.0163205 0.0156346 0.0150576 0.0148968 0.0154293 0.016053 0.0168072 0.0177506 0.0189709 0.020598 0.0198856 0.0184636 0.0173823 0.0170848 0.0180568 0.0193163 0.0188455 0.0203289 0.0197674 0.0215256 0.0239148 0.0229355 0.0257894 0.0245896 0.0279938 0.0265266 0.0305688 0.0287814 0.0335662 0.0401429 0.0370234 0.0314031 0.0272807 0.0260153 0.0295942 0.0344289 0.0322697 0.0280796 0.0249471 0.0225836 0.0233458 0.0242384 0.025287 0.0227076 0.0235734 0.0213923 0.0221039 0.0202606 0.0208448 0.0192861 0.0180971 0.0184451 0.0174242 0.0177172 0.016833 0.0161177 0.0163102 0.0165338 0.0158449 0.015267 0.0147672 0.0146546 0.0151293 0.015672 0.0155201 0.0150056 0.0145512 0.0144524 0.01489 0.015381 0.0159453 0.016612 0.0164126 0.0171651 0.0169313 0.0177891 0.0188676 0.0184989 0.0197544 0.0193117 0.0207793 0.0202474 0.0219668 0.0213291 0.0207769 0.0193738 0.0197827 0.0185739 0.0189212 0.0178759 0.0181708 0.017262 0.0175129 0.0167172 0.016057 0.0162289 0.0156369 0.0157864 0.0152501 0.0147789 0.0143559 0.0142602 0.0146703 0.0151244 0.0150023 0.0154942 0.0153565 0.0158944 0.0165187 0.0163327 0.0170318 0.0168186 0.0176084 0.0173635 0.0182625 0.0179807 0.0190109 0.0202957 0.0219295 0.0240408 0.0268071 0.0304689 0.0289623 0.0332328 0.0314611 0.0364148 0.0429841 0.0516957 0.0476296 0.0400816 0.0343449 0.0326158 0.0376736 0.0442756 0.0529375 0.0490738 0.0589515 0.054534 0.0657479 0.0607048 0.0734239 0.0676887 0.0819423 0.100308 0.123604 0.153757 0.137842 0.170557 0.153017 0.18918 0.23431 0.291813 0.257874 0.20872 0.169629 0.138336 0.113492 0.124605 0.101958 0.11181 0.0915129 0.0841371 0.0778903 0.0936471 0.0865699 0.10407 0.125943 0.153171 0.187287 0.229452 0.205481 0.169155 0.139192 0.127213 0.153646 0.185131 0.225785 0.203375 0.243715 0.21909 0.266272 0.316725 0.388044 0.343381 0.405977 0.495476 0.434615 0.512979 0.452305 0.383308 0.32098 0.360176 0.305134 0.253719 0.282772 0.238717 0.197978 0.179776 0.214922 0.194427 0.228745 0.272522 0.244826 0.287437 0.340184 0.400423 0.3564 0.304041 0.258878 0.234804 0.273928 0.31948 0.289058 0.249158 0.214844 0.185523 0.201766 0.221411 0.188867 0.207265 0.176855 0.150407 0.164032 0.139796 0.152522 0.167168 0.183993 0.152779 0.16775 0.140269 0.116882 0.0983667 0.106278 0.115378 0.0959992 0.0804795 0.0679277 0.0725494 0.0613126 0.0653167 0.0699772 0.0754484 0.0628786 0.0529527 0.0564968 0.0477716 0.0508579 0.0431854 0.0458681 0.0391703 0.0414935 0.035664 0.0311608 0.0299268 0.0339744 0.0325369 0.0372117 0.0355451 0.0409214 0.038986 0.0451539 0.0429101 0.0499354 0.0588057 0.0553182 0.0473337 0.0409611 0.0358539 0.0373156 0.0328556 0.0341076 0.0302287 0.0313032 0.0279438 0.0288652 0.025964 0.0267572 0.0276683 0.0287303 0.029979 0.0266303 0.0276979 0.0248232 0.0257335 0.0232675 0.0226036 0.0220285 0.0240457 0.0233746 0.0257213 0.0249385 0.0227883 0.0210758 0.0215242 0.0200482 0.0204364 0.0208709 0.021364 0.0198729 0.0186861 0.0177234 0.017486 0.0183924 0.0194979 0.019161 0.0181233 0.0172642 0.017054 0.0178732 0.0188542 0.0185699 0.0196962 0.0193723 0.0206713 0.0222693 0.0242574 0.0236557 0.021803 0.0203011 0.0190699 0.0180486 0.0183029 0.0174099 0.0176368 0.0168514 0.0166533 0.0164576 0.0171897 0.0169749 0.0178047 0.0187853 0.0199589 0.0213796 0.0231185 0.0252667 0.0246453 0.0271326 0.0264108 0.0292842 0.0284438 0.0317521 0.0307695 0.0345644 0.0392555 0.0450723 0.0523054 0.0496694 0.0578289 0.0547735 0.0638979 0.0751923 0.0890266 0.0829515 0.0705563 0.060352 0.0520708 0.0452821 0.0473465 0.0413165 0.043081 0.0377446 0.0363977 0.0351877 0.0397391 0.0383209 0.0434359 0.0496652 0.0572117 0.0664631 0.0776197 0.0914344 0.107901 0.128623 0.118446 0.139828 0.128556 0.118734 0.101697 0.10952 0.0931591 0.100052 0.08533 0.0729149 0.0628278 0.0544139 0.0519141 0.0595898 0.068749 0.0799361 0.0751663 0.0870987 0.0817832 0.0948639 0.110176 0.128782 0.119314 0.138669 0.161886 0.14924 0.173264 0.16026 0.138726 0.120262 0.128657 0.111255 0.0963951 0.102758 0.0889364 0.0771463 0.073144 0.0838496 0.0795621 0.091034 0.10451 0.0990545 0.113473 0.13027 0.149793 0.172522 0.198855 0.229424 0.264825 0.305722 0.352955 0.407462 0.470158 0.54238 0.624883 0.719878 0.649903 0.744339 0.688803 0.657075 0.577247 0.60368 0.528508 0.566886 0.494218 0.430458 0.374732 0.326081 0.308223 0.353017 0.404125 0.46236 0.444122 0.506541 0.389037 0.340571 0.297979 0.260622 0.269039 0.283698 0.246802 0.214728 0.18691 0.178933 0.204933 0.234798 0.227904 0.199301 0.174345 0.152589 0.156322 0.162809 0.141942 0.123924 0.108361 0.10493 0.119673 0.136688 0.13366 0.117221 0.102951 0.090586 0.0921797 0.0949429 0.0833861 0.0866784 0.0760774 0.0669867 0.0697532 0.061415 0.0641126 0.0672908 0.0709655 0.0617859 0.0650538 0.0567043 0.0496791 0.0476873 0.0541421 0.0518831 0.0589149 0.0564204 0.0542943 0.0482342 0.0499154 0.0443836 0.0459246 0.0409045 0.0422842 0.0438383 0.0455756 0.0475107 0.0417766 0.0370409 0.033105 0.0340943 0.0306029 0.0314488 0.0323812 0.0334142 0.0298876 0.0270046 0.0276886 0.0251743 0.0257623 0.0235765 0.0240853 0.0221901 0.0226332 0.0209913 0.01964 0.0193412 0.0206323 0.0202985 0.0217828 0.021406 0.0231104 0.0226817 0.0246373 0.0241447 0.0263824 0.0290899 0.0283654 0.0258141 0.0236929 0.0219212 0.022286 0.0207328 0.0210567 0.0196965 0.0199872 0.0187968 0.0190606 0.018018 0.0182602 0.0185158 0.0175703 0.0167658 0.016073 0.0162638 0.015647 0.0158253 0.016003 0.0161802 0.0163584 0.0165402 0.0167286 0.0169267 0.0171374 0.0164319 0.0166194 0.0159895 0.0161569 0.0155893 0.0157389 0.0152227 0.0147645 0.0148826 0.0144568 0.0145632 0.0141645 0.0140685 0.0139719 0.0143508 0.0142447 0.0146476 0.0150919 0.0149634 0.0154444 0.0153034 0.015829 0.0156742 0.0162539 0.0160836 0.0159189 0.0153768 0.015524 0.0150302 0.0151656 0.0147118 0.0148368 0.0144162 0.0145316 0.0141385 0.0137764 0.0138745 0.0135312 0.0136211 0.0137099 0.0137975 0.0138841 0.0139698 0.0140552 0.0141413 0.0142298 0.014324 0.0144298 0.0145578 0.0147272 0.0149717 0.0144379 0.0139679 0.0135466 0.0137199 0.0132974 0.0129155 0.0130768 0.0126883 0.0123367 0.012016 0.0121271 0.0123204 0.0119435 0.0121973 0.0117934 0.0121318 0.0116874 0.0113066 0.0116403 0.0122594 0.0133905 0.0125179 0.0140603 0.0129734 0.0121073 0.0112438 0.0118145 0.011189 0.0116729 0.0112175 0.0109768 0.010688 0.0108582 0.0105497 0.010786 0.0104467 0.0107771 0.0114139 0.0126114 0.0148214 0.0188377 0.0260369 0.0387744 0.0610235 0.0993876 0.164671 0.274265 0.455672 0.75159 1.22697 1.97851 3.14698 4.93308 7.61771 11.5857 17.3439 25.5032 36.6759 51.2825 69.4156 91.0008 116.891 148.671 188.74 240.462 308.507 399.598 523.028 697.033 984.743 948.081 911.615 875.21 838.733 802.065 765.096 727.711 689.788 651.215 611.801 571.195 529.182 485.774 441.116 395.328 254.762 285.64 316.252 346.502 376.292 405.574 434.439 463.327 492.388 521.406 550.362 579.325 608.383 637.625 667.144 499.339 476.102 453.231 346.354 363.715 381.434 294.403 280.725 267.397 254.351 329.275 430.642 408.26 386.022 363.877 279.114 295.713 312.413 241.526 228.868 216.324 169.201 178.743 188.41 198.251 208.318 218.668 229.362 179.871 171.383 163.218 127.848 134.491 141.413 110.744 104.873 99.2169 93.7113 121.423 155.32 147.631 140.091 132.64 102.776 108.959 115.15 88.2897 82.8839 77.4275 71.8616 96.5264 125.216 159.739 203.828 262.502 341.799 319.632 297.226 274.607 211.307 228.497 245.633 191.299 178.714 166.136 153.586 194.165 251.853 229.054 206.331 183.821 143.622 160.287 177.139 141.041 128.438 115.661 90.7803 101.491 111.746 121.657 131.331 140.859 150.31 117.748 110.144 102.305 76.5638 83.498 90.128 66.1425 60.2441 54.1675 47.9513 69.2863 94.1321 85.5453 76.4975 67.0026 45.836 53.8136 61.6774 41.6723 35.4459 29.4195 23.7284 37.9339 57.1639 79.5377 102.556 127.003 161.577 223.668 348.515 300.766 251.867 201.383 149.434 98.3785 64.2369 95.2591 127.967 160.439 192.276 139.376 117.195 94.7517 76.5751 93.6987 110.423 89.1168 75.0948 60.5138 45.7149 59.1494 72.3507 51.0932 41.9527 31.4649 20.772 31.513 43.3803 55.6359 67.7865 47.1874 37.3667 28.0294 16.8504 23.2301 30.3211 18.4949 13.8198 9.77232 6.41562 11.357 19.5399 12.3574 6.95011 3.82402 2.08563 3.58406 5.58138 8.05561 10.9896 14.366 18.1531 22.3035 26.7573 31.4415 36.2809 41.2063 46.1611 51.1048 56.007 60.8608 65.6892 70.5291 75.4268 80.4344 85.607 64.5981 59.9822 55.5263 39.367 43.1442 47.1075 33.2405 30.0302 27.0259 24.2117 35.7559 51.1946 46.9592 42.8015 38.7143 25.8126 28.9831 32.297 21.575 19.106 16.7976 10.7471 12.3625 14.1205 16.0321 18.1102 20.3699 22.828 15.3526 13.5498 11.9168 7.72038 8.8683 10.1512 6.60909 5.71663 4.92669 4.22725 6.69269 10.4371 9.09546 7.87882 6.77596 4.20899 4.94746 5.77216 3.60782 3.05934 2.57413 2.14582 3.54883 5.77768 9.26529 14.6453 22.7898 34.7038 30.7903 26.9998 23.3621 14.6963 17.222 19.9231 12.6463 10.7992 9.1034 7.55925 12.3559 19.909 16.673 13.6847 10.9705 6.53896 8.26928 10.2106 6.16754 4.92905 3.8438 2.22374 2.89347 3.67113 4.55942 5.56046 6.67646 7.91015 4.8767 4.06742 3.34551 1.98091 2.43936 2.96064 1.76917 1.43991 1.15447 0.909711 1.58179 2.70747 2.15016 1.67041 1.26459 0.707262 0.9484 1.23872 0.702673 0.53043 0.389933 0.212863 0.293173 0.393403 0.515914 0.663056 0.837249 1.04109 1.27751 1.54996 1.86259 2.22038 2.62928 3.09626 3.62944 4.23814 2.67715 2.26978 1.91669 1.16957 1.39907 1.66668 1.02368 0.850997 0.704487 0.580349 0.972953 1.61082 1.34605 1.11714 0.919601 0.538501 0.660989 0.804712 0.475342 0.386702 0.312089 0.179828 0.224527 0.278286 0.34273 0.41979 0.511745 0.621286 0.373481 0.305095 0.248293 0.146564 0.181134 0.223194 0.133377 0.107863 0.0871083 0.0702704 0.118219 0.201211 0.162279 0.130182 0.103817 0.0608201 0.0761513 0.0950406 0.056652 0.0456775 0.0368725 0.0298465 0.0484413 0.082265 0.142825 0.24953 0.434475 0.74966 0.604149 0.480405 0.376153 0.211604 0.272849 0.34658 0.197366 0.154202 0.118847 0.0902685 0.161372 0.289386 0.218257 0.161012 0.115942 0.0638537 0.0887064 0.12082 0.0675439 0.0498321 0.0363529 0.0220878 0.029291 0.0389094 0.0514419 0.0674393 0.0875171 0.112375 0.0647588 0.0506582 0.0394244 0.0244129 0.0306195 0.0385132 0.0242786 0.0199045 0.0165058 0.0139001 0.0196006 0.0305986 0.0237827 0.0186269 0.0148215 0.0111917 0.0131917 0.0159322 0.0119339 0.0104771 0.00941883 0.00866496 0.00976873 0.0120898 0.0168438 0.026376 0.045128 0.081351 0.150057 0.277943 0.511309 0.928381 1.65822 2.91042 5.02429 8.55061 6.43898 4.6415 3.15736 1.76585 2.64282 3.72664 2.12544 1.48253 0.973044 0.588315 1.08873 1.98616 1.12902 0.604882 0.32001 0.167357 0.313006 0.527212 0.817468 1.19175 0.656584 0.44306 0.281122 0.148287 0.236757 0.356096 0.191034 0.125647 0.0782853 0.0458249 0.0860846 0.164421 0.0871497 0.0460398 0.0255351 0.0155824 0.0256616 0.0422723 0.0671456 0.102301 0.0555746 0.0370063 0.0241723 0.0152755 0.0217971 0.0314468 0.0192226 0.0142748 0.0109961 0.00894978 0.0111306 0.0158192 0.0108945 0.00874508 0.00778507 0.00737473 0.00796395 0.00898488 0.0106302 0.0131466 0.010188 0.00890504 0.00806648 0.00766509 0.00811288 0.00878207 0.00813599 0.00776634 0.00750402 0.00731059 0.00736584 0.0075367 0.00721337 0.00716267 0.00716031 0.0071786 0.00730656 0.00745268 0.00762892 0.00785533 0.00815975 0.00857785 0.00915358 0.0099402 0.0110017 0.0124148 0.0142716 0.016683 0.0197835 0.0237374 0.0287459 0.0350555 0.0429686 0.0528549 0.0651661 0.0804532 0.0496923 0.0406279 0.033396 0.0224936 0.0267156 0.0320505 0.022065 0.0189335 0.0164697 0.0145349 0.0191614 0.027643 0.0230814 0.0194779 0.0166433 0.0128729 0.0144816 0.016539 0.0130185 0.0118318 0.0109043 0.0098987 0.0104527 0.0111558 0.0120501 0.013189 0.0146398 0.0164872 0.0134138 0.0123051 0.0114306 0.010506 0.0110566 0.0117454 0.0108556 0.0104027 0.0100321 0.00972568 0.010063 0.0107391 0.0101903 0.00975238 0.00940037 0.00916549 0.0094095 0.00970377 0.0094694 0.00925215 0.00906527 0.0089019 0.00896017 0.00911463 0.00946036 0.01018 0.0116194 0.0144246 0.0126981 0.0113636 0.0103399 0.00931311 0.00989369 0.0106464 0.00961408 0.00917107 0.0088226 0.00854602 0.0088657 0.00956081 0.00897211 0.00852942 0.00819649 0.00803789 0.00825085 0.00852004 0.00832328 0.0081401 0.00798528 0.00798205 0.00810931 0.00825063 0.00841222 0.00860216 0.00883083 0.00911137 0.00887965 0.00868318 0.00851547 0.00849375 0.00863086 0.00878439 0.00875653 0.00862464 0.00850239 0.00838717 0.00836828 0.00836878 0.00823707 0.00811555 0.00800091 0.00802976 0.00813856 0.00825062 0.0082767 0.00816878 0.00806226 0.00809571 0.0082014 0.00830756 0.00841507 0.0085252 0.00863965 0.00876085 0.00889091 0.00903258 0.00918948 0.00936576 0.00956663 0.00979861 0.0100701 0.0103917 0.0101578 0.00990871 0.0096915 0.00964949 0.00983708 0.0100462 0.0102816 0.0102042 0.0104325 0.010378 0.0106036 0.0108526 0.0111296 0.0114407 0.0113084 0.0116086 0.0115073 0.0118023 0.0117217 0.0114502 0.0111985 0.0112376 0.0109895 0.0110373 0.0107904 0.0105642 0.0103558 0.0103491 0.0105474 0.0107603 0.0107458 0.0109644 0.0109499 0.0111753 0.0114157 0.011673 0.0119489 0.0122458 0.0125667 0.0124882 0.0128128 0.0131639 0.0130729 0.0134307 0.0138198 0.0142481 0.0141143 0.0137132 0.0133451 0.0130038 0.0126851 0.0127412 0.0124319 0.0121423 0.0121862 0.0119041 0.0116399 0.011392 0.011159 0.011145 0.0113726 0.011614 0.0118701 0.0118404 0.0121053 0.0123864 0.0123452 0.0126361 0.0129453 0.0132749 0.0136283 0.0140107 0.0139228 0.0135542 0.0132118 0.0131513 0.0134849 0.0138426 0.0137656 0.0134171 0.0130911 0.0127846 0.0128382 0.0128912 0.0125896 0.012305 0.0120362 0.0120708 0.0118116 0.0115664 0.0115903 0.011354 0.0111308 0.0109198 0.0109302 0.0109396 0.0107329 0.0107382 0.0105391 0.0105412 0.0103494 0.0101689 0.0101638 0.0101627 0.0101721 0.00998296 0.0099984 0.00981138 0.00964009 0.00948201 0.0094796 0.0094998 0.00932863 0.00917408 0.00903281 0.00904807 0.00918105 0.00932436 0.00933526 0.00919869 0.00907041 0.00909468 0.00922036 0.00935337 0.00949475 0.00964593 0.0098083 0.00981543 0.00998316 0.00998996 0.00999933 0.0098395 0.00982711 0.00967396 0.00965888 0.00951188 0.00937347 0.00924273 0.00911875 0.0091416 0.00926425 0.00939335 0.00952965 0.00954651 0.00968878 0.00970224 0.00985095 0.0100084 0.0101751 0.0103517 0.0103539 0.0105379 0.0105357 0.0107273 0.0107203 0.0105317 0.0103532 0.0103546 0.0101834 0.0101802 0.0100159 0.00986066 0.00971378 0.00972315 0.00986822 0.0100215 0.0100247 0.0101844 0.010183 0.0103495 0.0105254 0.0107112 0.0109076 0.0111151 0.0113345 0.0113132 0.0115411 0.0117818 0.0117503 0.0120002 0.0122641 0.0125431 0.0124952 0.0122215 0.0119622 0.0117167 0.011484 0.0115137 0.0112896 0.0110773 0.0110974 0.0108931 0.0106997 0.0105166 0.0103433 0.0103346 0.0105054 0.0106857 0.0108761 0.0108567 0.0110546 0.0112635 0.011235 0.0114518 0.0116806 0.011922 0.0121767 0.0124455 0.0127294 0.01303 0.013349 0.0136894 0.0136129 0.0132799 0.0129672 0.0129026 0.0132092 0.0135353 0.0134563 0.0131368 0.012836 0.012552 0.0126132 0.0126724 0.0123936 0.0121296 0.0118794 0.0118344 0.0120802 0.0123395 0.0122832 0.0120286 0.0117871 0.0117376 0.0119747 0.0122248 0.0124887 0.0127675 0.0130626 0.0133758 0.0132938 0.0129866 0.012697 0.0126248 0.012909 0.0132103 0.0131254 0.01344 0.0133477 0.0136775 0.014032 0.0139253 0.0143012 0.0141865 0.0145879 0.0144644 0.0148963 0.0147624 0.0152311 0.0157578 0.0155976 0.0150846 0.0146267 0.0144872 0.0149352 0.0154361 0.015272 0.0147817 0.0143424 0.0139448 0.0140821 0.0142133 0.0143401 0.0139553 0.0140715 0.0137106 0.0138183 0.0134776 0.0135779 0.0132544 0.0129515 0.0130391 0.0127489 0.0128297 0.0125508 0.0122872 0.0123562 0.0124234 0.0121643 0.0119188 0.011686 0.0116323 0.0118609 0.0121019 0.0120376 0.0118011 0.0115768 0.0113642 0.0114156 0.0114652 0.0115127 0.0115581 0.0116013 0.0116422 0.0114172 0.011204 0.0110019 0.0110295 0.0108348 0.0106503 0.0106692 0.0104916 0.0103235 0.0103101 0.0104755 0.0104571 0.010629 0.0108104 0.0107837 0.010972 0.0111706 0.0113802 0.0113409 0.011135 0.0109398 0.0107548 0.0105796 0.0106054 0.0104364 0.0102764 0.0102943 0.0101402 0.0101534 0.0101644 0.010173 0.0101792 0.0100239 0.0100255 0.00987632 0.00987346 0.00973023 0.00959453 0.0095858 0.00957483 0.00956168 0.00942859 0.00941189 0.00928421 0.00916272 0.00904662 0.00902451 0.00900061 0.00897525 0.00894913 0.00892371 0.00890202 0.00878008 0.00866467 0.00855381 0.00858409 0.00869316 0.00880587 0.0088335 0.00872228 0.00861421 0.0085081 0.00847736 0.00844596 0.00833981 0.00823434 0.00812889 0.00816123 0.00826665 0.00837184 0.00840293 0.00829789 0.00819248 0.00822251 0.00832786 0.00843273 0.00853762 0.00864328 0.0087507 0.00886096 0.0088873 0.00877777 0.00867091 0.0086969 0.0088032 0.00891205 0.00893499 0.00882686 0.00872117 0.00861691 0.00859211 0.00856566 0.00846108 0.00835644 0.00825125 0.00827868 0.00838359 0.00848791 0.00851318 0.00840929 0.00830478 0.00819937 0.0081729 0.00814523 0.00811636 0.00808633 0.00805517 0.00802297 0.00798987 0.00795619 0.00792263 0.00789074 0.00786394 0.00785009 0.00786501 0.00794376 0.00774729 0.00758786 0.0074505 0.00746971 0.00759026 0.00771928 0.00772742 0.00761171 0.00749825 0.00738374 0.00735231 0.00732465 0.00720576 0.00723646 0.00726853 0.00730104 0.00741655 0.0075304 0.00764144 0.00775161 0.00778253 0.00767425 0.00756375 0.00759726 0.00770796 0.00781585 0.00784969 0.00774161 0.00763048 0.0075154 0.00748271 0.00744969 0.00733357 0.00736596 0.00739811 0.00742996 0.00754768 0.0076632 0.00777477 0.00788321 0.00791605 0.00780725 0.00769532 0.00772679 0.00783895 0.00794801 0.00797902 0.00786981 0.00775756 0.00764151 0.00761077 0.00757948 0.00746147 0.00749261 0.00752336 0.00755367 0.00767168 0.00778761 0.00789981 0.00800903 0.008038 0.00792892 0.00781691 0.00784545 0.00795712 0.00806593 0.00809277 0.00798438 0.00787319 0.00775849 0.0077302 0.00770125 0.00758353 0.0076129 0.00764175 0.00767007 0.00778612 0.00790013 0.00801069 0.00811853 0.00822462 0.00832952 0.00843352 0.00853688 0.00864003 0.00874367 0.00884868 0.00895604 0.00906679 0.00918189 0.00930223 0.00931817 0.0094432 0.00945564 0.00946588 0.00934363 0.00933197 0.00921405 0.00919901 0.00908497 0.00897516 0.00886864 0.00876441 0.00878337 0.00888676 0.00899235 0.00910113 0.0091153 0.00922703 0.00923796 0.00935318 0.00947395 0.00960102 0.00973499 0.00973745 0.00987678 0.00987501 0.01002 0.0100137 0.00987094 0.00973568 0.00973762 0.00960738 0.00960529 0.00947988 0.00936066 0.00924688 0.00925383 0.0093661 0.00948371 0.00948548 0.00960732 0.00960526 0.00973154 0.00986464 0.0100051 0.00999437 0.00985623 0.00972533 0.00971713 0.00984577 0.00998153 0.0101249 0.0101075 0.0102563 0.0104135 0.0103886 0.0105516 0.0107237 0.0109054 0.0110972 0.0112994 0.0112558 0.0110572 0.010869 0.0108306 0.0110153 0.0112101 0.0111626 0.0109715 0.0107903 0.0106187 0.0106556 0.0106907 0.0105217 0.0103617 0.0102103 0.0102343 0.0100882 0.00994992 0.00996669 0.00983335 0.00970702 0.00958716 0.00959507 0.00960113 0.00948311 0.00948524 0.00937107 0.00936955 0.00925886 0.0091526 0.00914611 0.00913775 0.0091275 0.00902098 0.00900762 0.00890303 0.00880058 0.00869933 0.00868124 0.00866148 0.00855899 0.00845627 0.0083529 0.0083749 0.00847754 0.00857951 0.00859845 0.00849732 0.00839553 0.00841478 0.00851561 0.00861581 0.00871575 0.00881604 0.00891748 0.00893012 0.00903247 0.00904212 0.00904997 0.0089501 0.00894099 0.00884178 0.00882976 0.00873051 0.00863159 0.00853242 0.00843264 0.00844911 0.00854775 0.00864581 0.00874363 0.00875513 0.0088521 0.00886076 0.0089575 0.00905604 0.00915728 0.00926202 0.00926334 0.0093707 0.00936855 0.00947905 0.00947319 0.00936459 0.00926074 0.00926289 0.00916133 0.00916017 0.00906039 0.00896321 0.00886777 0.00887318 0.00896727 0.00906305 0.00906406 0.00916081 0.00915867 0.00925689 0.00935893 0.00946558 0.00957745 0.00969508 0.00981905 0.00980297 0.00993132 0.010067 0.0100439 0.0101845 0.010333 0.0104899 0.0104563 0.0103025 0.0101569 0.0101277 0.0102702 0.0104208 0.01058 0.0107482 0.0109258 0.0111132 0.0113109 0.0115194 0.0117394 0.0119715 0.0122164 0.0124752 0.012398 0.0126667 0.0125832 0.0128628 0.0131601 0.0130647 0.0133763 0.0132734 0.0136013 0.0134891 0.0138362 0.0137122 0.0135816 0.0132474 0.0133717 0.0130562 0.0131674 0.0128674 0.0129676 0.0126811 0.0127728 0.0124983 0.0122395 0.0123195 0.0120703 0.0121441 0.0119038 0.0116761 0.0114603 0.0113996 0.0116112 0.0118345 0.0117637 0.011995 0.0119181 0.0121579 0.0124118 0.0123225 0.0125865 0.0124869 0.0127622 0.0126497 0.0129379 0.0128115 0.0131156 0.0134442 0.0138014 0.0141925 0.0146243 0.0151054 0.014938 0.0154696 0.0152954 0.015887 0.0165636 0.0173458 0.0171314 0.0163694 0.0157076 0.0155364 0.0161844 0.0169277 0.017789 0.017573 0.0185492 0.0183174 0.0194257 0.019174 0.0204328 0.0201562 0.0215857 0.0232786 0.0252946 0.0277059 0.0271046 0.0298342 0.0291348 0.0322077 0.0358835 0.0402818 0.0389357 0.0348377 0.0313946 0.0284998 0.0260579 0.0265562 0.0243863 0.0248196 0.0228991 0.0225527 0.0222383 0.0239925 0.0236369 0.0256079 0.0279265 0.0306614 0.0338966 0.0377278 0.0366522 0.0330565 0.0300056 0.0294269 0.0323164 0.0357067 0.0396951 0.0386554 0.0430626 0.0419736 0.0468529 0.0525504 0.0592116 0.0575398 0.0648879 0.0734421 0.0716666 0.0811695 0.0798895 0.0706401 0.0626497 0.0634701 0.0564096 0.0503249 0.0512232 0.0458005 0.041142 0.0405776 0.0450874 0.0446733 0.0498039 0.0557548 0.0402496 0.0364349 0.0366944 0.0371406 0.0377969 0.034217 0.0348917 0.0316774 0.0289266 0.0265678 0.0269599 0.0274133 0.0252047 0.0233186 0.0217017 0.0219547 0.0205145 0.020743 0.0209973 0.021278 0.0199024 0.0187281 0.0189415 0.0179019 0.0181015 0.0171812 0.0173703 0.0165543 0.0167352 0.0160093 0.0153745 0.0152224 0.0158448 0.0156914 0.0163855 0.0162295 0.0170064 0.0168464 0.017719 0.017553 0.0185341 0.0196712 0.0194623 0.0183593 0.0174039 0.0165719 0.0167015 0.0159578 0.0160867 0.0154204 0.0155498 0.0149504 0.0150809 0.0145396 0.0146718 0.0148141 0.0149661 0.015127 0.0146125 0.0147728 0.0143064 0.0144648 0.0140395 0.0138865 0.0137374 0.0141524 0.0140053 0.0144595 0.0143152 0.013867 0.0134615 0.0135951 0.0132217 0.0133603 0.0135055 0.0136538 0.0133016 0.0129776 0.0126781 0.0125412 0.012837 0.0131572 0.0130154 0.0126982 0.0124051 0.0122745 0.0125653 0.0128799 0.0127533 0.013092 0.0129722 0.0133377 0.0137384 0.0141804 0.0140556 0.0136196 0.013224 0.0128627 0.0125309 0.0126368 0.0123275 0.0124412 0.0121526 0.0120412 0.0119408 0.0122246 0.0121322 0.0124352 0.0127633 0.0131203 0.013511 0.0139411 0.0144179 0.0143071 0.0148314 0.0147243 0.0153037 0.0152 0.0158429 0.015742 0.0164576 0.0172718 0.0182035 0.0192752 0.0191095 0.0203111 0.0201326 0.021479 0.0230377 0.0248486 0.0245411 0.0227954 0.021287 0.021128 0.0225941 0.0242854 0.026242 0.0285107 0.0311473 0.0307401 0.0337002 0.0333488 0.0331444 0.0303022 0.0304632 0.0279725 0.0281908 0.025991 0.0240882 0.0224391 0.021006 0.020923 0.0223337 0.0239537 0.0258195 0.0257195 0.0278453 0.0238753 0.0222721 0.0208746 0.0196526 0.0196908 0.0197564 0.019853 0.0199794 0.0188412 0.0189648 0.0179473 0.0180664 0.0171562 0.0170567 0.0169728 0.0178463 0.017764 0.0187398 0.0186627 0.0177018 0.0168539 0.0169049 0.016145 0.0162022 0.0162732 0.0163582 0.0156548 0.0150311 0.0151092 0.0145462 0.0146292 0.0141192 0.0142075 0.0137435 0.013837 0.0134124 0.0130266 0.0129426 0.0133241 0.0132458 0.0136606 0.0135884 0.0140422 0.0139761 0.0144749 0.0144148 0.0149651 0.0155807 0.0155192 0.0149105 0.0143653 0.0138748 0.0139205 0.0134743 0.0135264 0.0131188 0.0131775 0.0128034 0.0128683 0.012523 0.0125938 0.0126738 0.0123494 0.0120498 0.011772 0.0118513 0.0115901 0.0116771 0.0117753 0.0118847 0.0120048 0.0121333 0.0122666 0.0124 0.0125287 0.0122646 0.0123801 0.0121272 0.0122284 0.0119848 0.0120736 0.0118387 0.0116165 0.0116913 0.0114767 0.0115447 0.0113373 0.0112734 0.0112074 0.0114063 0.0113324 0.0115378 0.011755 0.0116648 0.0118892 0.0117847 0.0120171 0.0118981 0.0121406 0.012011 0.0118805 0.0116448 0.0117724 0.0115492 0.0116707 0.0114571 0.0115658 0.0113595 0.0114529 0.0112527 0.0110633 0.011138 0.0109541 0.011019 0.0110809 0.0111408 0.0111991 0.0112558 0.011062 0.0108783 0.0107043 0.0106588 0.0108292 0.0110091 0.0109547 0.0107785 0.0106117 0.0104539 0.0104975 0.0105396 0.0103837 0.0102362 0.0100968 0.0100643 0.0102007 0.0103449 0.0103046 0.0101636 0.0100303 0.00999475 0.0101249 0.0102627 0.0104086 0.010563 0.0107262 0.0108987 0.0108407 0.0106721 0.0105125 0.0104596 0.0106153 0.01078 0.0107148 0.0108842 0.010807 0.0109808 0.0111647 0.0110669 0.0112561 0.0111439 0.0113401 0.0112189 0.0114247 0.0113025 0.0115204 0.011754 0.0116356 0.0114036 0.0111873 0.0110823 0.0112973 0.0115278 0.0114316 0.0112026 0.0109891 0.0107898 0.0108819 0.0109855 0.0110991 0.0109092 0.0110264 0.0108463 0.0109597 0.0107866 0.0108886 0.0107205 0.0105619 0.0106428 0.0104876 0.0105546 0.0104031 0.0102601 0.0103125 0.0103617 0.0102192 0.0100847 0.00995765 0.00991869 0.0100425 0.0101736 0.010125 0.00999751 0.00987723 0.00983213 0.00994851 0.0100718 0.0102025 0.010341 0.010271 0.0104122 0.0103271 0.010471 0.010624 0.0105195 0.0106775 0.0105663 0.0107318 0.010622 0.0107974 0.010695 0.0106041 0.0104311 0.0105209 0.0103589 0.0104585 0.0103064 0.0104118 0.0102676 0.0103715 0.0102329 0.0101029 0.0101916 0.0100641 0.0101378 0.0100122 0.00989362 0.00978175 0.00972423 0.00983093 0.00994406 0.0098667 0.00998104 0.0098907 0.0100077 0.0101331 0.0100333 0.0101648 0.0100684 0.0102083 0.0101206 0.0102701 0.0101933 0.0103533 0.0105253 0.0107098 0.0109077 0.0111197 0.0113467 0.0112726 0.0115136 0.0114465 0.0117021 0.0119768 0.012273 0.0122055 0.0119124 0.0116408 0.0115875 0.0118564 0.0121466 0.0124612 0.012408 0.0127476 0.0127005 0.0130694 0.0130288 0.0134314 0.0133976 0.0138388 0.0143262 0.0148671 0.01547 0.0154334 0.0161023 0.0160739 0.0168198 0.0176598 0.0186105 0.0185801 0.0176355 0.0168001 0.0160576 0.0153951 0.0154091 0.0148138 0.0148351 0.0142974 0.0142784 0.0142675 0.0148017 0.0137848 0.0137948 0.0138122 0.0133727 0.012973 0.0129967 0.0126309 0.0126617 0.0123258 0.012363 0.0120529 0.0120959 0.011808 0.0115417 0.0115028 0.0117671 0.011733 0.0120172 0.0119888 0.0122962 0.0122743 0.0126082 0.0125932 0.0129574 0.0133563 0.013347 0.0129485 0.0125847 0.0122516 0.0122598 0.0119538 0.0119678 0.0116856 0.0117058 0.0114446 0.0114705 0.0112272 0.0112577 0.0112944 0.0113377 0.0113882 0.0111527 0.0112083 0.0109858 0.0110477 0.0108376 0.0107778 0.0107272 0.0109328 0.0108877 0.011105 0.0110642 0.0108495 0.0106489 0.0106846 0.0104945 0.0105349 0.0105834 0.0106413 0.0104581 0.0102873 0.0101282 0.0100742 0.0102322 0.0104017 0.010355 0.0101869 0.0100301 0.00999468 0.0101502 0.0103166 0.0102854 0.0104612 0.0104339 0.0106193 0.0108175 0.0110299 0.0110013 0.0107911 0.010595 0.0104118 0.0102402 0.0102602 0.0100976 0.0101208 0.00996677 0.00994509 0.00992857 0.0100794 0.0100656 0.0102247 0.0103944 0.0105757 0.01077 0.0109785 0.0112028 0.0111846 0.0114253 0.0114125 0.0116722 0.0116645 0.0119458 0.0114051 0.0111655 0.0111724 0.0109501 0.0109615 0.0107543 0.0105614 0.0105519 0.0107438 0.0107378 0.0109436 0.0105465 0.0103682 0.0103731 0.0103816 0.0102134 0.0100558 0.00990783 0.00991634 0.009776 0.00978698 0.00980224 0.00982272 0.00984953 0.00988392 0.00992713 0.00998035 0.0100446 0.00990668 0.00998184 0.0098533 0.00993873 0.00981858 0.00991111 0.00979765 0.00969227 0.00978146 0.00967932 0.00975926 0.00965816 0.00958361 0.00950299 0.00959429 0.00950918 0.00960446 0.00970737 0.00962443 0.00973437 0.00966071 0.00977892 0.00971595 0.00984312 0.00979055 0.00974799 0.00962172 0.00966386 0.00954646 0.00959822 0.00948931 0.00955145 0.0094505 0.00952286 0.009429 0.00934217 0.00942082 0.00933864 0.00941762 0.00949363 0.00956279 0.00962347 0.00967611 0.00972229 0.00976374 0.0098019 0.00983775 0.00987183 0.00990436 0.00993541 0.00996493 0.00999288 0.0100192 0.00988899 0.00991099 0.00978518 0.00966603 0.00968139 0.00956603 0.0094563 0.00935163 0.00925143 0.00924442 0.00934275 0.0094454 0.00955297 0.00953834 0.00964906 0.00976576 0.00974478 0.0098654 0.00984024 0.00972229 0.00961058 0.00963057 0.00952219 0.00941903 0.00943296 0.00933235 0.0092359 0.00914287 0.00914965 0.00915493 0.00906132 0.00906346 0.00897058 0.00896971 0.008877 0.00878523 0.00878004 0.00877331 0.00876501 0.00866958 0.00865846 0.00856159 0.00846419 0.00847788 0.00857397 0.00858488 0.00867916 0.00868723 0.00869381 0.00860236 0.00859434 0.00850113 0.00849019 0.00839498 0.00838119 0.0083661 0.00834972 0.00833205 0.0083131 0.00829287 0.00827138 0.00824862 0.00814318 0.00803603 0.00792623 0.00795149 0.00806039 0.00816671 0.00818911 0.00808375 0.00797587 0.00786475 0.00783927 0.00781305 0.00769783 0.007725 0.00775155 0.00777747 0.00788948 0.00799938 0.00810609 0.00821036 0.00823046 0.0081274 0.00802197 0.00804365 0.00814766 0.00824939 0.00826714 0.00816686 0.00806439 0.00795889 0.00793657 0.00791342 0.00780273 0.00782732 0.00785119 0.00787435 0.00798039 0.00808417 0.00818499 0.0082837 0.00829907 0.00820204 0.00810298 0.00812081 0.00821799 0.00831325 0.00840748 0.00841869 0.00851069 0.00851889 0.00860897 0.00869891 0.0087889 0.00887928 0.00888004 0.00896991 0.00896775 0.00905765 0.0090525 0.00896412 0.00887718 0.00887933 0.00879183 0.00879109 0.00870257 0.00861417 0.00852575 0.00853129 0.008618 0.00870481 0.00870566 0.00879115 0.00878907 0.0088736 0.00895905 0.00904589 0.00913464 0.00922591 0.00932046 0.00930713 0.00940363 0.00950458 0.00948552 0.00958914 0.00969831 0.00981356 0.00978538 0.00967285 0.00956626 0.00946504 0.00936853 0.00938679 0.00929236 0.00920162 0.00921448 0.00912496 0.00903785 0.00895256 0.00886862 0.00886224 0.00894466 0.00902839 0.00911386 0.00910133 0.00918732 0.00927616 0.00925851 0.00934884 0.00944312 0.00954194 0.00964593 0.00975572 0.00972453 0.0096175 0.00951611 0.00948863 0.0095874 0.00969164 0.00965657 0.00955524 0.00945918 0.00936775 0.00939469 0.00941973 0.00932767 0.00923939 0.00915435 0.00917158 0.00908735 0.00900517 0.0090175 0.00893534 0.00885446 0.0087746 0.00878079 0.00878561 0.00870328 0.00870514 0.00862162 0.00862048 0.00853553 0.00845078 0.00844464 0.00843726 0.00842861 0.00833799 0.00832622 0.00823284 0.00813764 0.00803965 0.00802078 0.00800102 0.00789677 0.00791842 0.00793929 0.00795936 0.00805762 0.00815345 0.00824657 0.00825919 0.00834856 0.00835793 0.00836611 0.00828108 0.0082707 0.008182 0.00816825 0.00807466 0.00797862 0.00799704 0.00809076 0.00810592 0.00819472 0.0082064 0.00829035 0.00837312 0.00845568 0.00853847 0.00854016 0.00862146 0.00862001 0.00870008 0.00869555 0.00861728 0.00853979 0.00854059 0.00846183 0.00845936 0.00837896 0.0082985 0.00821702 0.00822658 0.00830554 0.00838363 0.00838716 0.00846312 0.00846323 0.00853777 0.00861328 0.00868972 0.00876705 0.00884529 0.00892459 0.00891238 0.00899136 0.00907188 0.00905482 0.00913552 0.00921867 0.0093049 0.00928026 0.00919614 0.00911491 0.00903601 0.00895891 0.00897598 0.00889866 0.00882265 0.0088347 0.00875813 0.00868257 0.00860802 0.00853455 0.00853012 0.0086015 0.00867408 0.0087478 0.00873601 0.00880903 0.0088833 0.00886613 0.00893992 0.00901518 0.0090922 0.00917142 0.00925333 0.0093384 0.00942718 0.00952034 0.00961852 0.00957624 0.00948162 0.00939171 0.00935151 0.00943766 0.00952812 0.00947256 0.00938686 0.00930509 0.00922661 0.00926906 0.00930587 0.00922346 0.00914396 0.00906694 0.00903846 0.00911298 0.00918971 0.00915087 0.00907741 0.00900589 0.00896812 0.00903603 0.00910561 0.00917718 0.00925115 0.0093281 0.00940869 0.00933741 0.0092616 0.0091894 0.00912145 0.00918974 0.00926187 0.00918677 0.00926166 0.00919091 0.0092709 0.00935721 0.00929535 0.00938857 0.00933695 0.00943771 0.00939578 0.00950453 0.00947129 0.00958837 0.00971426 0.00968817 0.00956264 0.0094456 0.00942628 0.00954334 0.00966849 0.00965408 0.00952933 0.00941224 0.00930237 0.00931681 0.00933648 0.00936242 0.00926111 0.00929482 0.00920097 0.0092435 0.00915671 0.00920897 0.00912879 0.00905424 0.0091166 0.00904733 0.00911677 0.00905095 0.00898857 0.00905622 0.00912008 0.00905302 0.0089878 0.00892411 0.00887341 0.00893261 0.00899342 0.00892908 0.00887203 0.00881699 0.00876358 0.00881552 0.0088617 0.00890167 0.00893605 0.00896584 0.00899197 0.0089187 0.0088469 0.00877652 0.00879372 0.00872264 0.00865289 0.00866421 0.00859368 0.00852447 0.00851757 0.00858451 0.0085739 0.00863998 0.00870754 0.0086905 0.00875715 0.00882526 0.00889482 0.0088677 0.00880076 0.00873527 0.00867125 0.00860876 0.00862534 0.00856173 0.0084997 0.00850934 0.00844633 0.00845209 0.00845663 0.00845999 0.00846219 0.00839083 0.00838956 0.00831631 0.00831147 0.00823509 0.00815679 0.00814556 0.00813332 0.00812011 0.00803132 0.00801461 0.00804715 0.00806209 0.00807612 0.00808922 0.00816703 0.00824254 0.00824894 0.00832006 0.00832273 0.00839099 0.00839005 0.00832434 0.00825864 0.00825431 0.00818451 0.00817627 0.0081014 0.00811265 0.00812297 0.00819176 0.00819802 0.00826194 0.00832488 0.00838799 0.00838479 0.00832434 0.0082642 0.00826543 0.0083227 0.00838041 0.0084393 0.00843089 0.00848855 0.00854784 0.00853201 0.00858993 0.0086494 0.00871036 0.00877277 0.00883656 0.00880049 0.0087405 0.00868178 0.00864884 0.00870324 0.00875881 0.00871157 0.0086608 0.00861118 0.00856266 0.00859563 0.00862439 0.00856841 0.00851387 0.00846085 0.00847569 0.00842099 0.00836785 0.00837479 0.00831993 0.00826561 0.00821085 0.00820757 0.00820329 0.00814079 0.00813234 0.00814829 0.00815486 0.00816049 0.00821314 0.00826471 0.00831597 0.0083107 0.00835941 0.00840938 0.00839574 0.00844365 0.00849297 0.00854365 0.0085152 0.00846885 0.00842366 0.00837972 0.00833703 0.00834924 0.00830393 0.00825928 0.00826264 0.00821438 0.00816515 0.00816879 0.00821448 0.00821328 0.00825442 0.00829542 0.00828489 0.00832247 0.00836099 0.0084006 0.00844127 0.00848294 0.00852558 0.00856924 0.00861404 0.0086602 0.00870796 0.00875761 0.00880948 0.00886398 0.00892153 0.0089825 0.00891991 0.00898477 0.00893063 0.00900075 0.00907598 0.00903207 0.00911358 0.00907858 0.0091667 0.00913959 0.00923467 0.0092144 0.00919926 0.0091025 0.00911852 0.00902865 0.00905064 0.00896735 0.00899621 0.00891923 0.008956 0.00888503 0.0088189 0.00886523 0.00880425 0.00885924 0.00880243 0.00874921 0.00869923 0.00864554 0.00869464 0.00874745 0.00870026 0.00875736 0.00871827 0.00878043 0.00884737 0.00881672 0.00888945 0.00886563 0.00894443 0.00892651 0.00901168 0.00899898 0.00909077 0.00918842 0.00929223 0.00940252 0.00951962 0.00964395 0.0096373 0.00976857 0.009764 0.00990244 0.0100495 0.010206 0.0102018 0.0100459 0.00989945 0.00976151 0.0096312 0.00963331 0.0095097 0.00951336 0.00939626 0.00939261 0.00939072 0.00950779 0.00927965 0.00928171 0.00928562 0.00918117 0.0090827 0.00899007 0.0089844 0.00907768 0.00917677 0.00917441 0.00907493 0.00898125 0.00889356 0.00889705 0.00890327 0.00891294 0.0088326 0.0088469 0.00877271 0.00879211 0.00872375 0.00874901 0.00868626 0.00862838 0.00866079 0.00860785 0.00864746 0.0085987 0.00855918 0.00852649 0.00857521 0.00854873 0.00860219 0.00866047 0.0086401 0.00870382 0.00868858 0.00875788 0.00874724 0.00882236 0.00881574 0.00881201 0.00873647 0.00874035 0.00867061 0.00867767 0.00861342 0.00862454 0.0085656 0.00858144 0.00852767 0.00847852 0.00849985 0.00845522 0.00848189 0.00851446 0.00855367 0.00859986 0.00865214 0.00860758 0.00856518 0.00852456 0.00847978 0.00851735 0.00855725 0.00851207 0.00847357 0.00843782 0.00840449 0.00844415 0.0084854 0.00844743 0.00841049 0.0083745 0.00834591 0.00837745 0.00841013 0.00837327 0.00834388 0.00831607 0.00828684 0.00831198 0.00833923 0.00836877 0.00840082 0.00843559 0.00847337 0.00844108 0.00840372 0.00836951 0.00834355 0.00837738 0.00841451 0.00839293 0.00843371 0.00841693 0.00846205 0.00851152 0.00849995 0.00855428 0.008547 0.00860626 0.00860223 0.00866664 0.00854292 0.00848833 0.0084925 0.00844247 0.00845016 0.00840469 0.00836335 0.00837591 0.00833877 0.00835587 0.0083223 0.00829203 0.0083128 0.00833821 0.00830965 0.00828373 0.00826037 0.00823818 0.00826014 0.00828501 0.008265 0.00824122 0.00822064 0.00820747 0.00822665 0.00824928 0.0082755 0.00830533 0.00829261 0.008326 0.00831745 0.00835503 0.00839669 0.00839216 0.00843815 0.00835027 0.00831252 0.00827909 0.00828405 0.00825494 0.00826317 0.00823774 0.00821621 0.00819827 0.00819253 0.00820953 0.00823017 0.00822588 0.0082502 0.00820583 0.00818941 0.00817582 0.00817846 0.00818337 0.00819137 0.00820307 0.00821902 0.00823948 0.00826365 0.00828965 0.00831542 0.00833947 0.00830539 0.00827215 0.00823934 0.00824784 0.00821061 0.00817251 0.00817129 0.00817227 0.00820627 0.00820014 0.00822882 0.00825717 0.0082859 0.00826446 0.0082402 0.00821636 0.00819219 0.00816695 0.00817045 0.00816179 0.00818261 0.00820239 0.00822195 0.00824216 0.0082208 0.00820385 0.00818788 0.00817439 0.00818777 0.00820239 0.00818809 0.00817509 0.00816335 0.00815214 0.00816137 0.00817196 0.00815521 0.0081479 0.00814086 0.00813496 0.00814506 0.00815527 0.00816598 0.00817778 0.00817081 0.00815984 0.00814975 0.00814614 0.00815597 0.00816652 0.00816419 0.00815379 0.00814395 0.00813423 0.00813656 0.00814004 0.00813042 0.00812693 0.00812432 7265.06 21074.4 25320.2 14281.7 11713.2 24864.5 28189.9 17834.8 15941.7 5918.6 5224.23 14887 6749.29 5005.95 5458.41 4643.21 16414.2 6604.07 5005.69 6080.96 29527.5 17811.1 6052.17 4976.48 6540.06 14095.2 32422.1 19170 16366.6 21883.8 6311.84 5231.77 7042.36 17576.6 40652.2 23552.5 5956.62 4527.91 47506.8 27453.2 25805.1 56562.1 32743.2 7673.72 8604.05 9104.45 4826.23 1644.49 1051 3471.52 2716.38 796.501 144.619 47.5795 25.6082 18.8613 15.8795 12.8078 9.00923 5.4374 2.98661 1.59074 0.839858 0.440145 0.228858 0.118244 0.0613173 0.0328584 0.0190315 0.0123951 0.009283 0.00786827 0.00724642 0.00698809 0.00689613 0.0068752 0.0068841 0.00690551 0.00693217 0.00696109 0.00699102 0.00702144 0.00705212 0.00708294 0.00711384 0.00714476 0.00717568 0.00720655 0.00723733 0.00726799 0.0072985 0.00732883 0.00735894 0.0073888 0.00741839 0.00744766 0.0074766 0.00750518 0.00753336 0.00756113 0.00758845 0.00761531 0.00764167 0.00766753 0.00769284 0.00771761 0.00774179 0.00776538 0.00778836 0.00781071 0.00783242 0.00785346 0.00787383 0.00789351 0.00791248 0.00793074 0.00794827 0.00796506 0.00798111 0.00799639 0.00801092 0.00802468 0.00803766 0.00804988 0.00806132 0.00807196 0.00808175 0.0080906 0.0080984 0.00810502 0.00811033 0.00811419 0.00811643 0.00811702 0.00811614 0.00811423 0.00811167 0.0081088 106.421 346.816 1283.43 39.7711 ) ; boundaryField { bottomEmptyFaces { type empty; } topEmptyFaces { type empty; } inlet { type turbulentMixingLengthFrequencyInlet; mixingLength 2000; phi phi; k k; value nonuniform List<scalar> 95 ( 0.00810035 0.00809986 0.00809848 0.00809555 0.00809048 0.0080828 0.00807297 0.00806156 0.00804918 0.00803615 0.0080226 0.00800857 0.00799407 0.00797908 0.00796356 0.00794747 0.00793079 0.00791347 0.00789552 0.00787691 0.00785766 0.00783776 0.00781723 0.00779606 0.00777428 0.00775189 0.00772891 0.00770535 0.00768123 0.00765656 0.00763137 0.00760568 0.00757952 0.00755289 0.00752583 0.00749836 0.00747052 0.00744232 0.0074138 0.00738498 0.0073559 0.00732659 0.00729707 0.00726738 0.00723755 0.00720762 0.00717761 0.00714757 0.00711752 0.0070875 0.00705754 0.00702769 0.00699796 0.00696841 0.00693905 0.00690994 0.0068811 0.00685256 0.00682437 0.00679656 0.00676916 0.00674221 0.00671575 0.0066898 0.0066644 0.00663959 0.0066154 0.00659185 0.00656898 0.00654682 0.00652541 0.00650478 0.00648497 0.00646597 0.00644773 0.00643011 0.00641286 0.00639587 0.00637928 0.00636412 0.00635257 0.00634661 0.00634568 0.00634721 0.00635066 0.00635147 0.00634697 0.00633719 0.00632042 0.00634935 0.00635126 0.00810043 0.00614239 0.00626055 0.00629264 ) ; } outlet { type inletOutlet; inletValue uniform 2000; value nonuniform List<scalar> 36 ( 84.7075 86.6111 89.8916 94.964 102.118 111.904 124.704 141.415 163.1 191.484 229.002 279.258 347.537 441.679 573.039 757.782 1015.03 1368.29 1826.56 2400.61 3078.14 3869.95 6977.84 5268.22 7362.08 8863.02 18093.8 12107.6 19383.9 31743.5 58765 105556 966905 357520 189043 83.8449 ) ; } walls { blending binomial2; n 2; beta1 0.075; type omegaWallFunction; value nonuniform List<scalar> 1055 ( 1.24599e+06 1.21707e+06 1.19059e+06 1.16642e+06 1.14459e+06 1.12484e+06 1.10712e+06 1.09118e+06 1.07694e+06 1.06422e+06 1.05297e+06 1.043e+06 1.03428e+06 1.02661e+06 1.01998e+06 1.0142e+06 1.00926e+06 1.00498e+06 1.00137e+06 998259 995664 993431 991600 990027 988758 987670 986806 986065 985482 984965 984602 984239 983985 983760 983575 983440 983303 983201 983053 982943 982763 982629 982394 982226 981941 981742 981404 981169 980797 980538 980135 979843 979424 979110 978676 978339 977904 977561 977123 976774 976342 975998 975565 975221 974797 974456 974045 973706 973303 972973 972586 972264 971888 971582 971225 970939 970599 970333 970015 969772 969477 969260 968988 968798 968548 968389 968165 968038 967840 967745 967578 967510 967377 967330 967237 967210 967152 967144 967126 967132 967135 967166 967185 967245 967280 967367 967426 967534 967612 967740 967834 967981 968090 968256 968381 968567 968708 968914 969069 969292 969461 969704 969885 970143 970334 970604 970801 971078 971277 971559 971759 972043 972243 972530 972733 973023 973229 973525 973734 974033 974246 974550 974766 975073 975290 975600 975820 976131 976352 976665 976887 977201 977424 977739 977963 978279 978503 978821 979046 979363 979588 979907 980132 980451 980676 980995 981220 981539 981763 982082 982305 982622 982843 983158 983377 983689 983903 984212 984418 984722 984916 984847 985414 986082 985878 986197 986341 986258 986213 985875 988065 992005 1.00133e+06 996574 984316 594084 711397 983913 576602 574669 716656 917135 807647 923066 1.03493e+06 993035 678471 961345 1.11491e+06 787203 854645 944580 817004 697369 829405 549322 533145 655670 883732 570413 562888 696894 911170 712348 926897 683234 906977 517374 459974 598331 825736 643184 873018 633152 744113 1.03812e+06 660807 774214 757162 831841 802388 880035 861276 975200 807963 891268 631597 741728 733269 797549 595146 964939 1.11133e+06 869643 973781 637863 755311 597093 965099 1.11308e+06 743774 830423 813414 917601 552814 896655 1.04071e+06 614975 749046 558981 889544 1.03666e+06 755550 878272 602456 713503 788574 901975 714029 797128 706761 787241 780071 896387 558516 601202 710167 921601 1.05156e+06 555819 904678 1.03875e+06 544830 586098 703064 704537 776481 771254 883953 906565 1.03864e+06 627534 742894 580845 926168 1.07729e+06 781324 854189 587450 970219 1.11536e+06 836476 962490 731935 802263 626345 728144 717777 793532 773455 835807 812689 924488 622717 744251 578949 927853 1.08423e+06 745628 830844 771289 850603 832733 934290 547242 483181 554596 715446 648883 855036 512134 713014 833509 560845 682193 554456 872115 1.03897e+06 585537 713779 527255 843505 986475 729416 845251 616347 765678 808237 965149 595983 760080 596260 758661 517433 783775 945927 517968 588614 740285 809546 966777 503054 666686 889605 524122 590637 757531 566005 819068 1.02051e+06 574744 730859 791573 979058 804819 977669 547783 612722 760855 526729 800722 964643 853485 1.01613e+06 472932 498418 610331 820479 560685 690383 948380 572439 691223 956650 574897 705831 964367 563564 697541 962930 587999 811368 1.03007e+06 559120 717014 961907 554002 727502 562764 575144 736704 804899 1.0067e+06 509052 527454 647427 869335 618008 839344 674771 896930 493989 659446 865803 547693 778841 959848 579296 705533 527689 834726 981961 529340 851256 989490 581791 699881 712599 814915 720368 834147 599409 714376 715819 813715 823498 993444 838334 784804 816299 647390 778119 969031 613876 656014 887742 476653 541115 1.15307e+06 1.10928e+06 693255 707990 1.02365e+06 1.02835e+06 1.09853e+06 1.46159e+06 1.21328e+06 501804 1.63311e+06 569191 1.14725e+06 692604 1.27105e+06 643554 980439 1.75683e+06 1.27769e+06 1.7697e+06 440740 491600 567293 692401 655049 994474 1.11738e+06 1.17202e+06 1.28512e+06 1.76551e+06 1.30386e+06 1.82e+06 1.4681e+06 1.50245e+06 2.19223e+06 1.32958e+06 1.3833e+06 1.98699e+06 457542 506801 545486 582373 671264 587061 925151 403147 436958 468157 502379 536946 593571 705757 624998 986283 434879 477887 508827 536860 563119 589935 611887 630451 636668 644150 715238 583696 959638 395855 424076 441954 448692 459029 649213 473580 485006 491728 499648 502572 798296 882644 510237 681055 817719 911861 1.04218e+06 641553 671227 794243 1.02424e+06 1.18251e+06 848742 941146 512801 506471 509166 511842 509524 507516 505839 504528 728512 1.12625e+06 1.32199e+06 763601 911687 878298 983312 503431 502582 501874 501055 500909 500872 500337 500155 777985 926296 891395 1.01305e+06 499732 500207 499840 499503 499734 499976 499641 499299 811236 991861 909643 1.0433e+06 1.00042e+06 1.16469e+06 776786 1.14719e+06 1.38138e+06 499522 748656 499735 499370 1.1223e+06 1.33327e+06 499277 498887 973136 1.14505e+06 499350 498938 498815 737776 897560 1.01627e+06 768908 922971 974915 1.13013e+06 1.10903e+06 1.31841e+06 977200 1.1379e+06 863699 981429 721780 859656 835301 925772 690698 1.07673e+06 1.25875e+06 947505 1.08852e+06 702055 948452 1.09985e+06 1.08316e+06 1.26808e+06 736787 882565 893207 1.02267e+06 1.00498e+06 1.17398e+06 946908 1.2929e+06 1.62052e+06 498382 498823 498373 497950 988947 498060 498198 497732 986001 497296 1.3512e+06 1.6861e+06 1.05163e+06 1.36782e+06 950722 1.03903e+06 1.31874e+06 1.30796e+06 1.61195e+06 1.00828e+06 1.29611e+06 497396 497524 497052 496609 496705 496830 496357 495912 496009 496134 495663 495219 495318 495445 494977 901722 494534 1.14031e+06 879717 1.08058e+06 1.05509e+06 1.25709e+06 856354 1.2278e+06 1.49444e+06 494637 494764 494302 493859 493969 494094 493643 493479 786041 982243 1.16401e+06 1.13278e+06 1.35517e+06 975993 1.14986e+06 752464 782375 946105 1.1259e+06 1.33029e+06 824328 1.00592e+06 786993 820169 1.00803e+06 1.13511e+06 1.36821e+06 891984 845584 1.19613e+06 1.45682e+06 940886 1.20255e+06 999004 1.26237e+06 493030 1.24293e+06 493443 1.5187e+06 492996 492837 492391 492808 492366 492211 988166 491769 492192 1.32987e+06 1.65835e+06 491752 491604 491165 491598 491157 963098 490741 1.08251e+06 1.17429e+06 1.56955e+06 1.02281e+06 1.33719e+06 1.06437e+06 1.39356e+06 1.00361e+06 490870 1.21556e+06 490745 1.61619e+06 490884 490187 490338 1.11404e+06 490214 490102 1.31113e+06 1.78729e+06 490264 1.18804e+06 1.4683e+06 1.90118e+06 1.39054e+06 1.76349e+06 1.04169e+06 1.33718e+06 1.32895e+06 1.65704e+06 489895 490095 489499 485737 479904 473591 451414 425630 1.18337e+06 1.53904e+06 1.26522e+06 1.50623e+06 2.26323e+06 1.34085e+06 1.68236e+06 1.63423e+06 1.58504e+06 2.38458e+06 892288 999345 1.38089e+06 1.60006e+06 1.7992e+06 1.26868e+06 1.54466e+06 2.39574e+06 1.54844e+06 1.91805e+06 1.70135e+06 2.71342e+06 607002 1.95387e+06 757007 828653 644555 770735 2.15275e+06 1.29272e+06 1.62768e+06 2.7697e+06 756971 829329 797153 880147 1.39771e+06 619694 651497 768718 989781 1.15061e+06 1.46574e+06 854949 973288 965925 1.1256e+06 1.51969e+06 1.53229e+06 1.51628e+06 1.49471e+06 1.45945e+06 631046 1.42298e+06 773526 857693 824217 905557 878474 1.00259e+06 1.00014e+06 1.1663e+06 784517 862103 668819 801854 828288 921235 1.38501e+06 1.34746e+06 1.31128e+06 1.27741e+06 836713 915277 624782 1.01081e+06 1.174e+06 897216 1.02138e+06 795587 870640 966905 396397 249708 246685 243472 234741 230346 224457 221626 217280 214416 210918 208885 206226 204716 202594 201421 199636 198682 197106 196285 194839 194097 192731 192036 190730 190071 188819 188195 186997 186406 185259 184700 183595 183058 181983 181458 180399 179876 178822 178294 177239 176703 175646 175104 174051 173506 172457 171912 170869 170323 169284 168735 167698 167144 166104 165543 164497 163927 162873 162293 161229 160639 159563 158963 157874 157264 156160 155538 154418 153784 152643 151996 150834 150175 148992 148322 147120 146442 145223 144542 143313 142636 141405 140742 139519 138883 137682 137086 135923 135385 134277 133814 132781 132413 131477 131224 130423 130287 129658 129638 129193 129294 129079 129254 129195 129536 129563 130054 130176 130803 130994 131699 131933 132684 132951 133738 134031 134834 135137 135935 136235 137009 137296 138029 138292 138969 139206 139819 140025 140567 140739 141207 141344 141739 141842 142169 142241 142507 142550 142764 142783 142948 142947 143068 143054 143140 143114 143170 143131 143166 143094 143118 143027 143046 142937 142950 142826 142835 142699 142703 142556 142556 142398 142393 142225 142215 142067 141993 141896 141790 141784 141118 140550 138699 136318 127868 114086 128764 252750 ) ; } rightWall { type inletOutlet; inletValue uniform 2000; value nonuniform List<scalar> 28 ( 21671.5 10942 7051.48 5373.71 4440.44 3573.05 3278.99 2731.87 2483.68 2259.11 2138.71 2047.6 2015.78 2027.68 2081.95 2219.45 2406.52 2873.81 3188.16 4012.43 6399.99 12403.3 128764 55883.1 25729.1 396397 124636 53281.7 ) ; } symmetryLine { type symmetryPlane; } } // ************************************************************************* //
03b267ecc6f655e81ea6f0a35bf49fdd211a405d
8523123cacd378d808dbd3f02bbe0b66e2c69290
/SC2 Multi Lossbot/SC2 Multi Lossbot/clsMemory.cpp
399b69361f84a076a7c48b3eb97952d8f84b0e0b
[]
no_license
shneezyn/sc2-multi-lossbot
568194a12cba168b0bbac9ed046a2fb717cd6bb3
47ed28853067689679d7e189344599b716ae4c5f
refs/heads/master
2016-08-09T07:33:50.243624
2010-11-30T20:32:22
2010-11-30T20:32:22
44,065,340
0
0
null
null
null
null
UTF-8
C++
false
false
2,594
cpp
#include "stdafx.h" #include "clsMemory.h" using namespace std; // Used to check if game has been found or still in game or what the map is string clsMemory::MapName(HANDLE procHandle) { string value = ""; char buffer[255] = {NULL}; DWORD addrValue = 0x1C4C0C8; // base address ReadProcessMemory(procHandle, (LPCVOID)addrValue, &addrValue, sizeof(DWORD), NULL); // base address points to ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x2A0), &buffer, sizeof(buffer), NULL); // offset return value = buffer; } // Used to check if game is over string clsMemory::ScreenChat(HANDLE procHandle) { string value = ""; char buffer[255] = {NULL}; DWORD addrValue = 0x17D1988; // base address ReadProcessMemory(procHandle, (LPCVOID)addrValue, &addrValue, sizeof(DWORD), NULL); // base address points to ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x2D8), &addrValue, sizeof(DWORD), NULL); // offset ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x7C), &addrValue, sizeof(DWORD), NULL); // offset ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x1DC), &addrValue, sizeof(DWORD), NULL); // offset ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x14), &addrValue, sizeof(DWORD), NULL); // offset ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x0), &buffer, sizeof(buffer), NULL); // offset return value = buffer; } // used to determine the player name string clsMemory::PlayerName(HANDLE procHandle, int playerNumber) { string value = ""; char buffer[255] = {NULL}; DWORD addrValue = 0x0; if (playerNumber == 1) addrValue += 0x0250D6FC; else if (playerNumber == 2) addrValue += 0x0250DF9C; ReadProcessMemory(procHandle, (LPVOID)(addrValue + 0x0), &buffer, sizeof(buffer), NULL); // offset return value = buffer; } // used to check food supply & if in game string clsMemory::FoodSupply(HANDLE procHandle) { string value = ""; char buffer[255] = {NULL}; DWORD addrValue = 0x800000 + 0xFD1988; // base address ReadProcessMemory(procHandle, (LPCVOID)addrValue, &addrValue, sizeof(DWORD), NULL); // base address points to ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x364), &addrValue, sizeof(DWORD), NULL); // offset ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x7C), &addrValue, sizeof(DWORD), NULL); // offset ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x1DC), &addrValue, sizeof(DWORD), NULL); // offset ReadProcessMemory(procHandle, (LPCVOID)(addrValue + 0x14), &buffer, sizeof(buffer), NULL); // offset return value = buffer; }
34cd88fa1c3effd83b353fdae66886ecfa87ad88
c4e1830e428ae80ecf92585c1f0d8ef49701dbe7
/SymulatorX/SymulatorX/genrand.h
7c441d5243c6c0d95f3de636c2ee40d1586334cd
[]
no_license
schadow7/SymulatorX
75dc28776a251ab8efbcd45c2ca0816a476fb766
ab2304a906f811e98783cc2805ad7f370f6fdc44
refs/heads/master
2020-03-07T07:24:10.089127
2018-04-13T13:17:23
2018-04-13T13:17:23
127,348,308
0
0
null
2018-04-03T19:51:48
2018-03-29T21:17:03
null
UTF-8
C++
false
false
794
h
#ifndef GENRAND_H #define GENRAND_H #include <random> /** * @brief Generator białego szumu */ class GenRand { public: /** * @brief Konstruktor * @param Wariancja */ GenRand(double var); /** * @brief Destruktor */ ~GenRand(); /** * @brief Ustawienie wariancji * @param Wariancja */ void setParam(double var); /** * @brief Generuje losową próbkę o średniej 0 i ustawionej wariancji * @return Losowa próbka */ double gen(); private: double m_var=0.0; /** Rozkład normalny do symulacji zakłuceń*/ //std::normal_distribution<> d{0,.1}; std::normal_distribution<> *m_distribution=NULL; std::default_random_engine engine; }; #endif // GENRAND_H
389598615953b8c935153e1e76fcf02f4ffe2b64
36c7b12edf18733085ceae8ac7d81944995c91bd
/src/pos_estimate.cpp
7d2965f743ddb6495ebf25c6e993c18b95383c4d
[]
no_license
Wei-Fan/position_estimate
91c34904a1bd5d1e35b3d0bab15a43c0b5d004b8
4977bc94bcbe63d04a9b0fb46d2c5e86fde1a2fa
refs/heads/master
2020-12-03T00:18:53.431179
2017-07-12T14:07:03
2017-07-12T14:07:03
96,014,351
1
0
null
null
null
null
UTF-8
C++
false
false
9,224
cpp
#include <ros/ros.h> #include <opencv2/opencv.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/ml.hpp> #include "ardrone_autonomy/navdata_altitude.h" #include "ardrone_autonomy/Navdata.h" #include <sensor_msgs/Image.h> #include <sensor_msgs/image_encodings.h> #include <geometry_msgs/Point.h> #include "std_msgs/Int8.h" #include "std_msgs/Bool.h" #include <cv_bridge/cv_bridge.h> #include <image_transport/image_transport.h> #include <vector> #include <iostream> #include <fstream> #include "position_estimate/points.h" #include "position_estimate/renew.h" #include "point_feature.h" using namespace cv; using namespace std; //#define PRESET_POS_PATH "/home/wade/catkin_ws/src/position_estimate/test_file/setpoint.csv" #define RENEW_POS_PATH "/home/wade/catkin_ws/src/position_estimate/test_file/preset_renew_position.csv" #define FEATURE_VEC_PATH "/home/wade/catkin_ws/src/position_estimate/test_file/preset_feature.csv" #define POINT_NUM 9 #define BLUE_X -0.00044051 #define BLUE_Y 0.635 class Pos_Estimate { public: Pos_Estimate(); private: ros::NodeHandle node; ros::Subscriber blue_sub; ros::Subscriber yellow_sub; ros::Subscriber red_sub; ros::Subscriber pos_sub; //ros::Subscriber correct_sub; ros::Subscriber index_sub; ros::Publisher pos_pub; ros::Publisher renew_pub; ros::Publisher yellow_pub; void blueCallback(const geometry_msgs::Point &msg); void yellowCallback(const geometry_msgs::Point &msg); void redCallback(const position_estimate::points &msg); void posCallback(const ardrone_autonomy::Navdata &msgs); //void correctCallback(const geometry_msgs::Point &msgs); //void indexCallback(const std_msgs::Int8 &msg); bool read_csv(char *filepath, Mat &image); Mat renew_points = Mat(Size(2,POINT_NUM), CV_32FC1); Mat feature_vectors = Mat(Size(30,POINT_NUM), CV_32FC1); //Mat preset_position = Mat(Size(4,292), CV_32FC1); bool isRenew; bool isYellowFound; bool allowFindBlue; int current_index; int next_feature_index; geometry_msgs::Point current_pos; geometry_msgs::Point current_v; geometry_msgs::Point preset_pos; float delt; float beta = 0.05; }; Pos_Estimate::Pos_Estimate() { blue_sub = node.subscribe("/blue_point", 1, &Pos_Estimate::blueCallback, this); yellow_sub = node.subscribe("/yellow_point", 1, &Pos_Estimate::yellowCallback, this); red_sub = node.subscribe("/red_real_points", 1, &Pos_Estimate::redCallback, this); pos_sub = node.subscribe("/ardrone/navdata", 1, &Pos_Estimate::posCallback, this); //correct_sub = node.subscribe("/delt", 1, &Pos_Estimate::correctCallback, this); //index_sub = node.subscribe("/index", 1, &Pos_Estimate::indexCallback, this); pos_pub = node.advertise<geometry_msgs::Point>("/ardrone_position", 2); renew_pub = node.advertise<position_estimate::renew>("/is_renew", 2); yellow_pub = node.advertise<std_msgs::Bool>("/is_yellow", 2); read_csv(RENEW_POS_PATH, renew_points); read_csv(FEATURE_VEC_PATH, feature_vectors); //read_csv(PRESET_POS_PATH, preset_position); //current_index = 0; current_pos.x = 0; current_pos.y = 0; next_feature_index = 0; isRenew = true; isYellowFound = false;//false; //true;//test allowFindBlue = false; } void Pos_Estimate::posCallback(const ardrone_autonomy::Navdata &msg) { static bool start = true; static float last_time = 0; if (start) { start = false; last_time = msg.tm; current_pos.x = 0; current_pos.y = 0; } if (fabs(msg.tm-last_time) <= 1000000) { float dt = (msg.tm - last_time)/1000000.0; last_time = msg.tm; current_v.x = msg.vx; current_v.y = msg.vy; current_pos.x += msg.vx * dt/1000.0; //&&&&& current_pos.y += msg.vy * dt/1000.0; } pos_pub.publish(current_pos);//^^^ //cout << "position = " << current_pos.x << '\t' << current_pos.y << endl; } /*void Pos_Estimate::indexCallback(const std_msgs::Int8 &msg) { current_index = msg.data; }*/ /*void Pos_Estimate::correctCallback(const geometry_msgs::Point &msg) { if (!isRenew) { preset_pos.x = preset_position.at<float>(current_index, 2); preset_pos.y = preset_position.at<float>(current_index, 3); current_pos.x = current_pos.x - beta * (current_pos.x - preset_pos.x - msg.x); current_pos.y = current_pos.y - beta * (current_pos.y - preset_pos.y - msg.y); } }*/ void Pos_Estimate::blueCallback(const geometry_msgs::Point &msg) { if (allowFindBlue) { current_pos.x = -msg.x + BLUE_X; current_pos.y = -msg.y + BLUE_Y; ROS_INFO("this blue %f, %f", current_pos.x, current_pos.y); } } void Pos_Estimate::yellowCallback(const geometry_msgs::Point &msg) { if (!isYellowFound) { float d = sqrt(msg.x*msg.x + msg.y*msg.y); //float v = sqrt(current_v.x*current_v.x+current_v.y*current_v.y); if ((d >= 0.15) )//|| (v >= 0.4)) { current_pos.x = -msg.x; current_pos.y = -msg.y; ROS_INFO("this yellow %f, %f", current_pos.x, current_pos.y); } else { isYellowFound = true; cout << "isYellowFound-----------------------------------\n\n"; std_msgs::Bool b; b.data = true; yellow_pub.publish(b); } } } void Pos_Estimate::redCallback(const position_estimate::points &msg) { //cout << "redCallback start!\n"; if (isYellowFound == true && !allowFindBlue) { vector<vector<float> > feature_vec(POINT_NUM); for (int i = 0; i < feature_vectors.rows; ++i) { for (int j = 0; j < feature_vectors.cols; ++j) { feature_vec[i].push_back(feature_vectors.at<float>(i,j)); } } //cout << "453!\n"; int p_index = msg.point.size(); int f_index = feature_vec.size(); int min_p, min2_p; float min_d = 100; float min2_d = 100; for (int i = 0; i < p_index; ++i) { //point list vector<float> p_vec_x; vector<float> p_vec_y; p_vec_x.push_back(msg.point[i].x); p_vec_y.push_back(msg.point[i].y); for (int k = 0; k < p_index; ++k) { float dx = msg.point[i].x-msg.point[k].x; float dy = msg.point[i].y-msg.point[k].y; float d = sqrt(dx*dx + dy*dy); if (d <= 0.3 && k!=i) { p_vec_x.push_back(msg.point[k].x); p_vec_y.push_back(msg.point[k].y); } } //cout << "66!\n"; if (p_vec_x.size() >= 3) { vector<float> red_feature; p_feature_extraction(p_vec_x, p_vec_y, 30, red_feature); float angle; float f_d = p_feature_sdistance(feature_vec[next_feature_index], red_feature, 30, angle); float f_dx = (renew_points.at<float>(next_feature_index,0) - current_pos.x); float f_dy = (renew_points.at<float>(next_feature_index,1) - current_pos.y); //f_d += 0.2*sqrt(f_dx*f_dx + f_dy*f_dy); //cout << "No." << i << ',' << j << endl; //cout << "distant = " << f_d << endl; if (f_d < min_d) { min2_d = min_d; min_d = f_d; min2_p = min_p; min_p = i; } else if (f_d < min2_d) { min2_d = f_d; min2_p = i; } } } /*condition for using feature match*/ if(min_d < 100.0) { //cout << "match raw position : " << renew_points.at<float>(min_p_f,0) << '\t' <<renew_points.at<float>(min2_p_f,1) << endl; //cout << "--------------------------------------\n"; if (min_d/min2_d > 0.4 || min_d > 1.2)//(fabs(distant[0]-distant[1]) <= 0.4)//wait for trying //^^^^ { position_estimate::renew r; r.isRenew = false; renew_pub.publish(r); } else { /*publish current position*/ current_pos.x = -msg.point[min_p].x + renew_points.at<float>(next_feature_index,0); current_pos.y = -msg.point[min_p].y + renew_points.at<float>(next_feature_index,1); //cout << "*************************\nmatch position : " << current_pos.x << '\t' << current_pos.y << endl; cout << "*********************************\n"; cout << "*******feature distant : " << min_d << '\t' << min2_d << endl; cout << "*******next feature index = " << next_feature_index << endl; position_estimate::renew r; isRenew = true; r.isRenew = isRenew; r.index = next_feature_index; next_feature_index++; if (next_feature_index == POINT_NUM) { allowFindBlue = true; } cout << "^^^^^^^^^match feature index = " << next_feature_index << endl; renew_pub.publish(r); } } } } bool Pos_Estimate::read_csv(char *filepath, Mat &image) { string pixel; ifstream file(filepath, ifstream::in); if (!file) { cout << "CSV read fail" << endl; return false; } int nc = image.cols*image.rows; int eolElem = image.cols - 1; int elemCount = 0; for (int j = 0; j < nc; j++) { if(elemCount == eolElem){ getline(file,pixel,'\n'); image.at<float>((int)(j/image.cols), elemCount) = (float)atof(pixel.c_str()); //cout << (int)(j/image.cols) << '\t' << elemCount << '\t' << image.at<float>((int)(j/image.cols), elemCount) << endl; elemCount = 0; } else { getline(file,pixel,','); image.at<float>((int)(j/image.cols), elemCount) = (float)atof(pixel.c_str()); //cout << (int)(j/image.cols) << '\t' << elemCount << '\t' << image.at<float>((int)(j/image.cols), elemCount) << endl; elemCount++; } } return true; } int main(int argc, char **argv) { ros::init(argc, argv, "pos_estimate"); Pos_Estimate pe; ros::spin(); return 0; }
229cdcfb0ed390853505ae2512069b942af4f83a
6dc37dad6f7dbf47e53f4dabd13ba21799e6297a
/.vim/plugin/pq.h
cfc1176be6d06afc772c721c142d1f78f2aa4232
[ "MIT" ]
permissive
utkarshayachit/vim-configuration
731ee579d7d33966b12803905e5eec5ef305738d
553353d8c5f53770ca5cad2ee4bcbdf2090a1dd5
refs/heads/master
2021-01-10T22:10:31.012929
2018-04-01T20:36:42
2018-04-01T20:36:42
17,708,207
0
0
null
null
null
null
UTF-8
C++
false
false
1,621
h
/*========================================================================= Program: ParaView Module: $CLASSNAME$.h Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of the ParaView license version 1.2. See License_v1.2.txt for the full ParaView license. A copy of this license can be obtained by contacting Kitware Inc. 28 Corporate Drive Clifton Park, NY 12065 USA THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ========================================================================*/ #ifndef $CLASSNAME$_h #define $CLASSNAME$_h #include <QObject> class VTK_EXPORT $CLASSNAME$ : public QObject { Q_OBJECT typedef QObject Superclass; public: $CLASSNAME$(QObject* parent=0); virtual ~$CLASSNAME$(); private: Q_DISABLE_COPY($CLASSNAME$) }; #endif
61dbb7a911c88b0f9edae7b74bb73ec067b152fd
4f4ddc396fa1dfc874780895ca9b8ee4f7714222
/src/xtp/Samples/Controls/WindowPos/WindowPos.h
6cb951fc52b440aa8b27345f03de681da30fcb96
[]
no_license
UtsavChokshiCNU/GenSym-Test2
3214145186d032a6b5a7486003cef40787786ba0
a48c806df56297019cfcb22862dd64609fdd8711
refs/heads/master
2021-01-23T23:14:03.559378
2017-09-09T14:20:09
2017-09-09T14:20:09
102,960,203
3
5
null
null
null
null
UTF-8
C++
false
false
2,123
h
// WindowPos.h : main header file for the WINDOWPOS application // // This file is a part of the XTREME TOOLKIT PRO MFC class library. // (c)1998-2011 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN // CONSENT OF CODEJOCK SOFTWARE. // // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A // SINGLE COMPUTER. // // CONTACT INFORMATION: // [email protected] // http://www.codejock.com // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_WINDOWPOS_H__8CD4C7D2_5C22_438C_9F84_DAD00A1DA862__INCLUDED_) #define AFX_WINDOWPOS_H__8CD4C7D2_5C22_438C_9F84_DAD00A1DA862__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CWindowPosApp: // See WindowPos.cpp for the implementation of this class // class CWindowPosApp : public CWinApp { public: CWindowPosApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CWindowPosApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CWindowPosApp) afx_msg void OnAppAbout(); // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_WINDOWPOS_H__8CD4C7D2_5C22_438C_9F84_DAD00A1DA862__INCLUDED_)
0fd4c0644f2a2bb0533fa5de8dc2d57a85d8ecf5
4b15331951e5a6bdbc577ac08932b8841464ed73
/Projects/XOR Engine.cpp
f0a1454e7eaf936620bfab2f26f0c07c2674ee6a
[]
no_license
abhaychandna/Practice
2d37db548272e836b44b47a77035889f2bd96b5a
2726564341eed6bdd912c9a7c67fc4f25cdd0c31
refs/heads/master
2022-12-26T11:11:21.641702
2022-12-17T13:35:44
2022-12-17T13:35:44
250,537,173
0
0
null
2020-03-27T14:15:32
2020-03-27T13:09:00
C++
UTF-8
C++
false
false
341
cpp
#include<iostream> #include<bitset> using namespace std; int main() { int n = 5; int a[] = { 15,13,11,28,16}; int sum = 0; long long int x = n * pow(2,32); for (int i = 0; i < n; i++) { sum += a[i]; } x = x - sum; int p = 3; sum = sum xor p; x = x xor p; cout <<bitset<32>(sum) << endl << bitset<32>(x); }
b36510ea568bd77a43be4b5dbfb31240e50d169c
aaf2967b230641ab4b37e246044be20de5cbc60d
/chrome/browser/ui/views/toolbar/chrome_labs_bubble_view.h
eb37d5bcceeccf128935639a7f49315946050dcc
[ "BSD-3-Clause" ]
permissive
neelpatel23/chromium
5dce4b1d8a6591bf182699a5fac8be70f8c5c0a2
6eea28e0d348777c9cb9a05699773881fb31c40a
refs/heads/master
2023-02-05T00:01:43.312850
2021-01-11T12:06:01
2021-01-11T12:06:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,148
h
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_CHROME_LABS_BUBBLE_VIEW_H_ #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_CHROME_LABS_BUBBLE_VIEW_H_ #include "chrome/browser/ui/views/toolbar/chrome_labs_bubble_view_model.h" #include "chrome/browser/ui/views/toolbar/chrome_labs_item_view.h" #include "components/flags_ui/feature_entry.h" #include "components/flags_ui/flags_state.h" #include "components/flags_ui/flags_storage.h" #include "ui/views/bubble/bubble_dialog_delegate_view.h" #include "ui/views/layout/flex_layout_view.h" // TODO(elainechien): Use composition instead of inheritance. class ChromeLabsBubbleView : public views::BubbleDialogDelegateView { public: static void Show(views::View* anchor_view, std::unique_ptr<ChromeLabsBubbleViewModel> model); static bool IsShowing(); static void Hide(); ~ChromeLabsBubbleView() override; // Getter functions for testing. static ChromeLabsBubbleView* GetChromeLabsBubbleViewForTesting(); flags_ui::FlagsState* GetFlagsStateForTesting(); flags_ui::FlagsStorage* GetFlagsStorageForTesting(); views::View* GetMenuItemContainerForTesting(); bool IsRestartPromptVisibleForTesting(); private: ChromeLabsBubbleView(views::View* anchor_view, std::unique_ptr<ChromeLabsBubbleViewModel> model); std::unique_ptr<ChromeLabsItemView> CreateLabItem( const LabInfo& lab, int default_index, const flags_ui::FeatureEntry* entry); int GetIndexOfEnabledLabState(const flags_ui::FeatureEntry* entry); bool IsFeatureSupportedOnPlatform(const flags_ui::FeatureEntry* entry); void ShowRelaunchPrompt(); std::unique_ptr<flags_ui::FlagsStorage> flags_storage_; flags_ui::FlagsState* flags_state_; // This view will hold all the child lab items. views::FlexLayoutView* menu_item_container_; std::unique_ptr<ChromeLabsBubbleViewModel> model_; views::View* restart_prompt_; }; #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_CHROME_LABS_BUBBLE_VIEW_H_
68ca929b2b45ed4c8b68edef65686615c6bec9c4
329d7a38745ab8b01e99c30f00925f4c53b151fa
/Layout/main.cpp
d03b150f19b5e4f9005a2866021f0d001a77c7e4
[]
no_license
Auxiliary-xzb/Qt
674560402d5c8e800206af4002965199d28b7c4f
6533bc4d59fc6e257e882d5b864f09b3a4bf8e0a
refs/heads/master
2023-04-23T00:17:01.533461
2021-05-10T03:22:05
2021-05-10T03:22:05
131,687,236
1
0
null
null
null
null
UTF-8
C++
false
false
166
cpp
#include "widget.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); Widget w; w.show(); return a.exec(); }
f9c76833f3ab30eb0f2600211861441a9f76f65d
7a8b730cf9c8b0e9fe397a439ad6a01c85365f22
/LR2/OOP/OOP/Treangle.cpp
90dc725dde58da45ef87640fbd56f800139b51ce
[]
no_license
EugeneKurlovich/OOP
aa840778fa2ea510757bf1ffdf1fcbd1187ecd70
264127f1d8e76e69041110bde5e64a32eb239945
refs/heads/master
2020-04-18T05:10:48.626185
2016-12-22T15:42:45
2016-12-22T15:42:45
68,534,591
0
1
null
null
null
null
WINDOWS-1251
C++
false
false
5,346
cpp
#include "stdafx.h" #include "Treangle.h" static int max_rb = 0 , min_rb = 100; static int max_rs = 0 , min_rs = 100; static int max_pr = 0 , min_pr = 100; static int type_one = 0; static int type_two = 0; static int type_three = 0; Treangle::Treangle() { } Treangle::Treangle(int t_x1, int t_y1, int t_x2, int t_y2, int t_x3, int t_y3) : x1(t_x1),y1(t_y1),x2(t_x2),y2(t_y2),x3(t_x3),y3(t_y3) { } Treangle::Treangle(const Treangle&A) { x1 = A.x1; y1 = A.y1; x2 = A.x2; y2 = A.y2; x3 = A.x3; y3 = A.y3; } Treangle::~Treangle() { } void Treangle::setdata(int t_x1, int t_y1, int t_x2, int t_y2, int t_x3, int t_y3) { x1 = t_x1; y1 = t_y1; x2 = t_x2; y2 = t_y2; x3 = t_x3; y3 = t_y3; } void Treangle::getdata() { cout << "Координаты Треугольника" << endl; cout << "(x1,y1) = (" << x1 << ", " << y1 << ");" << endl; cout << "(x2,y2) = (" << x2 << ", " << y2 << ");" << endl; cout << "(x3,y3) = (" << x3 << ", " << y3 << ");" << endl; } void Treangle::len_perimetr() { int A = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); int B = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2)); int C = sqrt(pow(x3 - x1, 2) + pow(y3 - y1, 2)); cout << "Длина стороны А = " << A << "см." << endl; cout << "Длина стороны B = " << B << "см." << endl; cout << "Длина стороны C = " << C << "см." << endl; int result; result = A + B + C; cout << "Периметр = " << result << "см." <<endl; } bool Treangle::type_treangle3() { int A = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); int B = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2)); int C = sqrt(pow(x3 - x1, 2) + pow(y3 - y1, 2)); if (A != B && A != C && B != C) { return true; } else return false; } bool Treangle::type_treangle2() { int A = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); int B = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2)); int C = sqrt(pow(x3 - x1, 2) + pow(y3 - y1, 2)); if (B == C && B!= A ) { return true; } else return false; } bool Treangle::type_treangle1() { int A = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); int B = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2)); int C = sqrt(pow(x3 - x1, 2) + pow(y3 - y1, 2)); if (A == B && A == C && B == C) { return true; } else return false; } void Treangle::all_type_treangles() { int A = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); int B = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2)); int C = sqrt(pow(x3 - x1, 2) + pow(y3 - y1, 2)); if (A == B && A == C && B == C) { int min; cout << "Равносторонний треугольник" << endl; type_one++; } else if (B == C || A == B || A == C && !(A == B == C)) { cout << "Равнобедренный треугольник" << endl; type_two++; } else { cout << "Произвольный треугольник" << endl; type_three++; } } int Treangle::get_perimetr() { int A = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); int B = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2)); int C = sqrt(pow(x3 - x1, 2) + pow(y3 - y1, 2)); int result; result = A + B + C; return result; } void result() { cout << type_one << " Равносторонних треугольника" << endl; cout << type_two << " Равнобедренных треугольника" << endl; cout << type_three << " Произвольных треугольника" << endl; } void max_perimetr(Treangle *arr, int size) { for (int i = 1; i < size; i++) { if (arr[i].type_treangle1() == true) if (arr[i].get_perimetr() > max_rs) max_rs = arr[i].get_perimetr(); } std::cout << "Максимальный периметр равноcторонних треугольников = " << max_rs << endl; for (int i = 1; i < size; i++) { if (arr[i].type_treangle2() == true) if (arr[i].get_perimetr() > max_rb) max_rb = arr[i].get_perimetr(); } std::cout << "Максимальный периметр равнобедренных треугольников = " << max_rb << endl; for (int i = 1; i < size; i++) { if (arr[i].type_treangle3() == true) if (arr[i].get_perimetr() > max_pr) max_pr = arr[i].get_perimetr(); } cout << "Максимальный периметр произвольных треугольников = " << max_pr << endl; } void min_perimetr(Treangle *arr, int size) { for (int i = 0; i < size; i++) { if (arr[i].type_treangle1() == true) if (arr[i].get_perimetr() < min_rs) min_rs = arr[i].get_perimetr(); } std::cout << "Минимальный периметр равноcторонних треугольников = " << min_rs << endl; for (int i = 0; i < size; i++) { if (arr[i].type_treangle2() == true) if (arr[i].get_perimetr() < min_rb) min_rb = arr[i].get_perimetr(); } std::cout << "Минимальный периметр равнобедренных треугольников = " << min_rb << endl; for (int i = 0; i < size; i++) { if (arr[i].type_treangle3() == true) if (arr[i].get_perimetr() < min_pr) min_pr = arr[i].get_perimetr(); } cout << "Минимальный периметр произвольных треугольников = " << min_pr << endl; }
ed8f1d847783addb056063c1542363edf4cdc93d
bba21a9bbd9a136ef7f38cad3233bf7a8e80f153
/Main/Games/Quake2/Player.cpp
6f80407bbdddf9112ac6137009cd447e7fc8cf2f
[]
no_license
rezanour/randomoldstuff
da95141b3eb7698a55c27b788b2bf3315462545c
f78ccc05e5b86909325f7f2140b18d6134de5904
refs/heads/master
2021-01-19T18:02:40.190735
2014-12-15T05:27:17
2014-12-15T05:28:41
27,686,761
3
0
null
null
null
null
UTF-8
C++
false
false
12,295
cpp
#include "Player.h" #include "Quake2Game.h" #include "QuakeProperties.h" #include <Transform.h> #include <GameWorld.h> using namespace GDK; namespace Quake2 { static float s_playerHeight = 0; GameObjectCreateParameters Player::Create(_In_ const std::shared_ptr<IGameWorld>& gameWorld, _In_ const std::shared_ptr<QuakeProperties>& quakeProps) { GameObjectCreateParameters params; params.className = L"player"; params.position = quakeProps->GetOrigin(); params.rotation = quakeProps->GetAngle(); if (gameWorld->IsEditing()) { params.visuals.push_back(VisualInfo( Matrix::Identity(), L"models\\monsters\\insane\\tris.md2.geometry", L"models\\monsters\\insane\\i_skin.pcx.texture")); } auto geometry = Content::LoadGeometryContent(L"models\\monsters\\insane\\tris.md2.geometry"); auto shape = Collision::AlignedCapsuleFromGeometry(geometry, 0, 10.0f); AlignedCapsule* capsule = static_cast<AlignedCapsule*>(shape.get()); s_playerHeight = capsule->length + 2 * capsule->radius; params.physicsType = PhysicsBodyType::Normal; params.collisionPrimitive = shape; params.controller.reset(GDKNEW Player); return params; } Player::Player() : _currentWeapon(Item::Type::Blaster), _armorType(ArmorType::Body), _armor(0), _health(100), _inputEnabled(true), _aim(0.0f), _onGround(false) { _hasWeapon[_currentWeapon] = true; } uint32_t Player::GetTypeID() const { return static_cast<uint32_t>(GameControllerType::Player); } void Player::OnCreate(_In_ const std::weak_ptr<IGameObject>& gameObject) { _gameObject = gameObject; } void Player::OnDestroy() { } void Player::OnActivate() { } void Player::OnUpdate() { static struct KeyToWeaponMapping { QuakeKey key; Item::Type weapon; } Mappings[] = { { QuakeKey::SelectBlaster, Item::Type::Blaster }, { QuakeKey::SelectRailgun, Item::Type::Railgun }, { QuakeKey::SelectBFG, Item::Type::BFG }, { QuakeKey::SelectChaingun, Item::Type::Chaingun }, { QuakeKey::SelectGrenadeLauncher, Item::Type::GrenadeLauncher }, { QuakeKey::SelectRocketLauncher, Item::Type::RocketLauncher }, { QuakeKey::SelectMachinegun, Item::Type::Machinegun }, { QuakeKey::SelectShotgun, Item::Type::Shotgun }, { QuakeKey::SelectSuperShotgun, Item::Type::SuperShotgun }, { QuakeKey::SelectHyperBlaster, Item::Type::HyperBlaster }, }; auto gameObject = _gameObject.lock(); auto gameWorld = gameObject->GetGameWorld(); // // Process contacts // _onGround = false; auto& contacts = gameObject->GetContacts(); for (auto i = contacts.begin(); i != contacts.end(); ++i) { if (!i->other) { // static geometry. If normal is "close enough" to upward, count as on ground if (Vector3::Dot(i->normal, Vector3::Up()) > 0.707f) { _onGround = true; } } else { auto controller = i->other->GetController(); switch (static_cast<GameControllerType>(controller->GetTypeID())) { case GameControllerType::Item: { Item* theItem = static_cast<Item*>(controller.get()); switch(theItem->GetItemType()) { case Item::Type::StimPack: case Item::Type::MediumHealth: case Item::Type::LargeHealth: case Item::Type::MegaHealth: if (AddHealth(theItem->GetValue())) { gameWorld->RemoveObject(i->other); gameWorld->GetDeviceContext().audioDevice->PlayClip(Quake2Game::GetContentCache()->GetAudioClip(L"sound\\items\\s_health.wav")); } break; case Item::Type::HandGrenade: case Item::Type::Blaster: case Item::Type::Shotgun: case Item::Type::SuperShotgun: case Item::Type::Machinegun: case Item::Type::Chaingun: case Item::Type::GrenadeLauncher: case Item::Type::RocketLauncher: case Item::Type::HyperBlaster: case Item::Type::Railgun: case Item::Type::BFG: if (AddWeapon(theItem->GetItemType())) { gameWorld->RemoveObject(i->other); gameWorld->GetDeviceContext().audioDevice->PlayClip(Quake2Game::GetContentCache()->GetAudioClip(L"sound\\misc\\w_pkup.wav")); } break; } } break; } } } if (_hud) { if (_inputEnabled) { for (uint32_t i = 0; i < _countof(Mappings); ++i) { auto weapon = Mappings[i].weapon; if (GDK::Input::WasButtonPressed(Mappings[i].key) && HasWeapon(weapon)) { SwitchWeapon(weapon); } } if (GDK::Input::WasButtonPressed(QuakeKey::Fire)) { auto& weaponInfo = Items::GetWeaponInfo(_currentWeapon); if (HasEnoughAmmo(weaponInfo.ammoType, weaponInfo.ammoPerShot)) { // Fire! ReduceAmmo(weaponInfo.ammoType, weaponInfo.ammoPerShot); _hud->SetAmmo(GetAmmo(weaponInfo.ammoType)); } } if (_onGround && GDK::Input::WasButtonPressed(QuakeKey::Jump)) { gameObject->AddImpulse(Vector3::Up() * 600.0f); } _hud->SetHealth(_health); UpdateMovement(gameObject->GetGameWorld()->GetTime().deltaTime); } } } void Player::AppendProperties(_Inout_ std::map<std::wstring, std::wstring>& properties) const { // fix the classname to make this a spawn location properties[L"classname"] = L"info_player_start"; } void Player::SetHud(_In_ const std::shared_ptr<Hud>& hud) { _hud = hud; auto& weaponInfo = Items::GetWeaponInfo(_currentWeapon); _hud->SetWeapon(_currentWeapon); _hud->SetAmmoType(weaponInfo.ammoType); _hud->SetAmmo(GetAmmo(weaponInfo.ammoType)); _hud->SetArmorType(_armorType); _hud->SetArmor(_armor); _hud->SetHealth(_health); } void Player::SwitchWeapon(_In_ Item::Type type) { auto& weaponInfo = Items::GetWeaponInfo(type); _currentWeapon = type; _hud->SetWeapon(type); _hud->SetAmmoType(weaponInfo.ammoType); _hud->SetAmmo(GetAmmo(weaponInfo.ammoType)); } byte_t Player::GetAmmo(_In_ Item::Type type) { auto it = _ammos.find(type); return (it != _ammos.end()) ? it->second : 0; } void Player::AddAmmo(_In_ Item::Type type, _In_ byte_t amount) { // TODO: powerups that allow us to carry more ammo would affect the calculation below // Note: the casts to int16_t are to protect against possible overflow, especially if we allow much more than 100 or so ammo for this type auto total = std::min(static_cast<int16_t>(GetAmmo(type)) + amount, 255); // cap to 255, the max we can store in a byte _ammos[type] = std::min(static_cast<byte_t>(total), Items::GetAmmoInfo(type).maxAmmo); // cap to the actual max ammo allowed for this type } bool Player::HasEnoughAmmo(_In_ Item::Type type, _In_ byte_t neededAmount) { return GetAmmo(type) >= neededAmount; } void Player::ReduceAmmo(_In_ Item::Type type, _In_ byte_t amount) { auto total = std::max(static_cast<int16_t>(GetAmmo(type)) - amount, 0); _ammos[type] = static_cast<byte_t>(total); } bool Player::AddWeapon(_In_ Item::Type type) { bool autoSwitchWeapon = !_hasWeapon[type]; WeaponInfo weaponInfo = Items::GetWeaponInfo(type); AmmoInfo ammoInfo = Items::GetAmmoInfo(weaponInfo.ammoType); uint16_t totalAmmo = _ammos[ammoInfo.ammoType] + ammoInfo.ammoAmount; if (_hasWeapon[type] && totalAmmo > ammoInfo.maxAmmo) { return false; } _hasWeapon[type] = true; AddAmmo(ammoInfo.ammoType, ammoInfo.ammoAmount); if (autoSwitchWeapon) { SwitchWeapon(type); } return true; } bool Player::HasWeapon(_In_ Item::Type type) { auto it = _hasWeapon.find(type); return (it != _hasWeapon.end() && it->second); } bool Player::AddHealth(_In_ uint16_t health) { if (_health == 255) { return false; } uint16_t newHealth = health + _health; if (newHealth > 255) { _health = 255; } else { _health = (byte_t)newHealth; } return true; } bool Player::ReduceHealth(_In_ uint16_t health) { int newHealth = _health - health; if (newHealth > 0) { _health = (byte_t)newHealth; return true; } _health = 0; return false; } void Player::EnableInput(_In_ bool enable) { _inputEnabled = enable; } void Player::UpdateMovement(float elapsedGameTime) { static const float RotateSpeed = 0.008f; static const float MoveSpeed = 250.0f; GDK::Vector2 mouseCurDelta = Input::GetMouseDelta(); // protect against invalid/first frame huge deltas if (mouseCurDelta.Length() > 300) { mouseCurDelta = Vector2::Zero(); } GDK::Vector2 rotationDelta(mouseCurDelta * RotateSpeed); GDK::Vector3 positionOffset; _aim += rotationDelta.y; auto gameObject = _gameObject.lock(); float rotation = gameObject->GetTransform().GetRotation(); rotation += rotationDelta.x; // Limit aim to straight up or straight down auto newAim = std::max(-GDK::Math::PiOver2, _aim); newAim = std::min(GDK::Math::PiOver2, newAim); _aim = newAim; Matrix worldMatrix = gameObject->GetTransform().GetWorld(); auto forward = worldMatrix.GetForward(); auto right = worldMatrix.GetRight(); if (GDK::Input::IsButtonDown(QuakeKey::MoveLeft)) { positionOffset -= right; } if (GDK::Input::IsButtonDown(QuakeKey::MoveRight)) { positionOffset += right; } if (GDK::Input::IsButtonDown(QuakeKey::MoveForward)) { positionOffset += forward; } if (GDK::Input::IsButtonDown(QuakeKey::MoveBackward)) { positionOffset -= forward; } if (positionOffset.LengthSquared() > 0) { // normalize * scale movement uniformly to avoid "cheats" where moving diagonal is faster than straight :) positionOffset = Vector3::Normalize(positionOffset) * elapsedGameTime * MoveSpeed; } // Update Player's rotation and position gameObject->GetTransform().SetRotation(rotation); gameObject->GetTransform().SetPosition(gameObject->GetTransform().GetPosition() + positionOffset); } float Player::GetHeight() const { return s_playerHeight; } }
fa1b24a16c8c9b6ae96b794710d4bbb88c742141
5b1dd5d3cc755696c75a423da841daf2aa39afb5
/aliyun-api-ram/2015-05-01/include/ali_ram_delete_group_types.h
99561a4c42dc3131dca750f1b1dcdf0515e5be51
[ "Apache-2.0" ]
permissive
aliyun-beta/aliyun-openapi-cpp-sdk
1c61ffd2f0f85fb149ba9941c77e193f5db4d364
5e708130870a27e0c749777118f9e26ace96e7d9
refs/heads/master
2016-08-12T06:21:57.634675
2015-12-15T08:14:59
2015-12-15T08:14:59
47,530,214
5
4
null
null
null
null
UTF-8
C++
false
false
288
h
#ifndef ALI_RAM_DELETE_GROUP_TYPESH #define ALI_RAM_DELETE_GROUP_TYPESH #include <stdio.h> #include <string> #include <vector> namespace aliyun { struct RamDeleteGroupRequestType { std::string group_name; }; struct RamDeleteGroupResponseType { }; } // end namespace #endif
850699421d8c86f9e3eec75888d5bb71c087d9c5
8c87fc51a773673aa6cb5867287cc3f42c057a5b
/engine/module/time/TimeModule.h
6b02f19b50c6816d91342cce5b81c4328b17c08b
[]
no_license
onesmash/Wukong
e407758f3a8ba74320292f93108cb8fcbc264d36
8ba81c3fc3e824e0eee5c8307c8ef2ae3921e6c8
refs/heads/master
2020-04-06T14:18:27.114151
2016-11-15T12:28:56
2016-11-15T12:28:56
52,526,211
3
0
null
null
null
null
UTF-8
C++
false
false
549
h
// // TimeModule.hpp // AppCore // // Created by Xuhui on 16/1/20. // Copyright © 2016年 Xuhui. All rights reserved. // #ifndef __AppCore_Module__Time_h #define __AppCore_Module__Time_h #include "Module.h" namespace WukongEngine { namespace Runtime { class TimeModule: public Module { public: virtual ~TimeModule() {} virtual ModuleType moduleType() const { return ModuleTime; } virtual std::string moduleName() const { return "runtime.time"; } double now(); }; } } #endif /* TimeModule_h */
2856158a383a461398c6162adae751c6224b0f79
587b0949416ee313d12bcf65fe1d2266403d1567
/1003.cpp
b146218b22427851f13c8b83a0f8b95d4d8c7c85
[]
no_license
marcosgiunta/URI-Solutions
301836c1dd71cc00a0143f9cde1b886b56d84ba0
a9e286a47e28cdc2ec423bfaed43165b6ee39ee4
refs/heads/master
2020-09-06T09:13:57.006611
2019-11-09T20:00:41
2019-11-09T20:00:41
220,383,316
0
0
null
null
null
null
UTF-8
C++
false
false
158
cpp
#include <iostream> using namespace std; int main(int argc, char *argv[]) { int A,B,SOMA; cin>>A>>B; SOMA=A+B; cout<<"SOMA = "<<SOMA<<endl; return 0; }
a04d35756eb9ecd8e13fbdfe36a8773d5582a3f0
b111f61b47581aa6236ff720c999d5fb0503b83c
/Course 1: Algorithmic Toolbox/week2_algorithmic_warmup/8_last_digit_of_the_sum_of_squares_of_fibonacci_numbers/fibonacci_sum_squares.cpp
c8a841c08e8dbd3876cf343eeb4a70664eab1c11
[]
no_license
biqar/data-structures-and-algorithms-specialization
2e8d41b1538e66a5fd91a6a0058d123378f6d066
7c149a3330b79366c3710b4409d3e77e097f4040
refs/heads/master
2021-07-25T02:41:23.546913
2020-12-24T06:04:03
2020-12-24T06:04:03
231,165,213
0
0
null
null
null
null
UTF-8
C++
false
false
527
cpp
#include <iostream> int fibonacci_sum_squares_naive(long long n) { if (n <= 1) return n; long long previous = 0; long long current = 1; long long sum = 1; for (long long i = 0; i < n - 1; ++i) { long long tmp_previous = previous; previous = current; current = tmp_previous + current; sum += current * current; } return sum % 10; } //not solved int main() { long long n = 0; std::cin >> n; std::cout << fibonacci_sum_squares_naive(n); }
d73be24fd69e7ca0c6b50db9a98adb8385f48232
ae23afe2f8b7b5afb3c002694c40c9ec1ea5ad34
/R_ignore/old code/src/Hungarian.cpp
76632def305292fe91fa484d8596d5f5425bfd51
[ "MIT" ]
permissive
bobverity/MALECOT
36ed61a104252746c87b46e66b6155d6e26393d9
713d220d14f282dc63618ca10c83e2a902a83266
refs/heads/master
2020-03-18T21:13:25.986166
2019-02-26T14:55:58
2019-02-26T14:55:58
135,267,552
3
0
null
2018-05-29T08:48:19
2018-05-29T08:46:23
C++
UTF-8
C++
false
false
6,429
cpp
// // MALECOT // Hungarian.cpp // // Created: Bob on 06/12/2016 // // Distributed under the MIT software licence - see LICENSE.md file for details // // Further details (if any) of this set of functions can be found in the corresponding header file. // // --------------------------------------------------------------------------- #include "Hungarian.h" #include "misc.h" using namespace std; //------------------------------------------------ // the functions augmentLeft and augmentRight work together to find an augmented path. They call each other, which normally could lead to an infinite recursion, but this is avoided as eventually either an augmented path will be found or no more moves will be possible. Return full path, or -1 if no path found. vector<int> augmentLeft(int i, vector< vector<double> > &M, vector<int> &edgesRight, vector<int> &blockedLeft, vector<int> &blockedRight) { blockedLeft[i] = 1; vector<int> output(1,-1); // search all unmatched edges for (int j=0; j<int(M.size()); j++) { if (M[i][j]==0 && edgesRight[j]!=i && blockedRight[j]==0) { // if edge leads to augmented path then add current node to path and return output = augmentRight(j, M, edgesRight, blockedLeft, blockedRight); if (output[0]>=0) { output.push_back(i); return(output); } } } // if no more moves then return -1 return(output); } vector<int> augmentRight(int j, vector< vector<double> > &M, vector<int> &edgesRight, vector<int> &blockedLeft, vector<int> &blockedRight) { blockedRight[j] = 1; vector<int> output(1); // if node j is unmatched then return j as start of augmented path if (edgesRight[j]<0) { output[0] = j; return(output); } // otherwise continue chain of augmenting output = augmentLeft(edgesRight[j], M, edgesRight, blockedLeft, blockedRight); if (output[0]>=0) { output.push_back(j); } return(output); } //------------------------------------------------ // carry out Hungarian algorithm to find best matching given cost matrix M. If no best matching found then return vector with first element -1 to indicate error. vector<int> hungarian(vector< vector<double> > &M, vector<int> &edgesLeft, vector<int> &edgesRight, vector<int> &blockedLeft, vector<int> &blockedRight) { int n = int(M.size()); // define maximum number of reps in Hungarian algorithm before aborting int maxReps = int(1e6); // initialise assignment objects int numberAssigned; // search for solution until maxReps reached for (int rep=0; rep<maxReps; rep++) { // zero assignment objects for (int i=0; i<n; i++) { edgesLeft[i] = -1; edgesRight[i] = -1; } numberAssigned = 0; // subtract smallest element from all rows and columns double minRow; vector<double> minCol = M[0]; for (int i=0; i<int(M.size()); i++) { minRow = min(M[i]); for (int j=0; j<int(M[i].size()); j++) { M[i][j] -= minRow; if (M[i][j]<minCol[j]) { minCol[j] = M[i][j]; } } } for (int i=0; i<int(M.size()); i++) { for (int j=0; j<int(M[i].size()); j++) { M[i][j] -= minCol[j]; } } // generate an initial matching for (int i=0; i<n; i++) { for (int j=0; j<n; j++) { if (M[i][j]==0 && edgesRight[j]<0) { edgesLeft[i] = j; edgesRight[j] = i; numberAssigned++; break; } } } // if this matching is perfect then we are done if (numberAssigned==n) { return(edgesLeft); } // continue augmenting paths until no more possible bool continueAugmenting = true; while (continueAugmenting) { continueAugmenting = false; // search all unmatched nodes for (int i=0; i<n; i++) { if (edgesLeft[i]<0) { // attempt to find augmented path blockedLeft = vector<int>(n); blockedRight = vector<int>(n); vector<int> path = augmentLeft(i, M, edgesRight, blockedLeft, blockedRight); // if successful then augment if (path[0]>=0) { continueAugmenting = true; numberAssigned ++; for (int j=0; j<int(path.size()/2); j++) { edgesLeft[path[j*2+1]] = path[j*2]; edgesRight[path[j*2]] = path[j*2+1]; } // if best matching found then finish if (numberAssigned==n) { return(edgesLeft); } } } } } // find minimum value in cost matrix, looking at all elements in which neither the row or the column is part of the minimum vertex cover double minVal = -log(double(0)); for (int i=0; i<n; i++) { for (int j=0; j<n; j++) { if (blockedLeft[i]==1 && blockedRight[j]==0 && M[i][j]<minVal) { minVal = M[i][j]; } } } // add or subtract this value from cost matrix as required for (int i=0; i<n; i++) { for (int j=0; j<n; j++) { if (blockedLeft[i]==1 && blockedRight[j]==0) { M[i][j] -= minVal; } if (blockedLeft[i]==0 && blockedRight[j]==1) { M[i][j] += minVal; } } } // at this point we have a new cost matrix and can repeat the process from the top } // rep loop // if reached this point then not managed to find best matching print("Warning: Hungarian algorithm unable to find best matching"); edgesLeft[0] = -1; return(edgesLeft); }
e2c78852d77dac9b59693e4949823d8098766640
c1e7d614739b6214f050003b232195f3feab409b
/src/ntypes/NodeSet.cpp
4192bc500ddd1319c29dacd9ee3b92df81c09dff
[]
no_license
drorgl/node-nupic
316c431165fcbfdef588eb49d80b1c87ed4e73f1
ea725f50746a866874ca8c5340797d889131e803
refs/heads/master
2021-07-14T19:30:16.104898
2017-10-20T21:05:26
2017-10-20T21:05:26
105,366,858
0
0
null
null
null
null
UTF-8
C++
false
false
3,186
cpp
#include "NodeSet.hpp" namespace node_nupic { namespace ntypes { void NodeSet::Init(v8::Handle<v8::Object> target, std::shared_ptr<namespace_wrap> overload) { } } } //// /* --------------------------------------------------------------------- //// * Numenta Platform for Intelligent Computing (NuPIC) //// * Copyright (C) 2013, Numenta, Inc. Unless you have an agreement //// * with Numenta, Inc., for a separate license for this software code, the //// * following terms and conditions apply: //// * //// * This program is free software: you can redistribute it and/or modify //// * it under the terms of the GNU Affero Public License version 3 as //// * published by the Free Software Foundation. //// * //// * This program is distributed in the hope that it will be useful, //// * but WITHOUT ANY WARRANTY; without even the implied warranty of //// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. //// * See the GNU Affero Public License for more details. //// * //// * You should have received a copy of the GNU Affero Public License //// * along with this program. If not, see http://www.gnu.org/licenses. //// * //// * http://numenta.org/licenses/ //// * --------------------------------------------------------------------- //// */ //import nupic_module from "../bindings"; //import { size_t } from "../types/Types"; //// #ifndef NTA_NODESET_HPP //// #define NTA_NODESET_HPP // //// #include "nupic/utils/Log.hpp" // //// #include <set> // //// namespace nupic //// { //// /** //// * A NodeSet represents the set of currently-enabled nodes in a Region //// * It is just a set of indexes, with the ability to add/remove an index, and the //// * ability to iterate through enabled nodes. //// * //// * There are many ways to represent such a set, and the best way to represent //// * it depends on what nodes are typically enabled through this mechanism. //// * In NuPIC 1 we used an IndexRangeList, which is a list of index ranges. //// * This is natural, for example, in the original pictures app, where in //// * training level N+1 we would enable a square patch of nodes at level N. //// * (which is a list of ranges). In the NuPIC 1 API such ranges were initially //// * specified with ranges ("1-4"). With new algorithms and new training paradigms //// * I think we may always enable nodes individually. //// * //// * So for NuPIC 2 we're starting with the simplest possible solution (a set) and //// * might switch to something else (e.g. a range list) if needed. //// * //// * TODO: split into hpp/cpp //// */ //export interface NodeSet_Static { // new(nnodes: size_t): NodeSet; //} //export interface NodeSet { // // // typedef std::set<size_t>::const_iterator const_iterator; // // // const_iterator begin() const // // { // // return set_.begin(); // // }; // // // const_iterator end() const // // { // // return set_.end(); // // } // // allOn(): void; // // allOff(): void; // // add(index: size_t): void; // // remove(index: size_t): void; // //} // //export let NodeSet: NodeSet_Static = nupic_module.x; // //// } // namespace nupic // //// #endif // NTA_NODESET_HPP
9f25f405bffbf09de44404503697786b25d16972
09b5eec80877cd590063d635b1dc1c779a024223
/Topcoder/SouthAmericaCollegiate23June/b.cpp
87a4d09820d4135888c8b8756ed339b71593906e
[]
no_license
Shahraaz/CP_P_S4
c8cb95a60a6b7024fc3110ebfd35e271e164073c
73d9d7fa5108349607fd9f71050c2eed7aaaf494
refs/heads/master
2020-05-24T22:11:09.211716
2019-07-15T23:55:11
2019-07-15T23:55:11
187,492,748
0
0
null
null
null
null
UTF-8
C++
false
false
1,420
cpp
//Optimise #include <bits/stdc++.h> using namespace std; // #define Online 1 // #define multitest 1 #define Debug 1 #ifdef Debug #define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__); template <typename Arg1> void ZZ(const char *name, Arg1 &&arg1) { std::cerr << name << " = " << arg1 << endl; } template <typename Arg1, typename... Args> void ZZ(const char *names, Arg1 &&arg1, Args &&... args) { const char *comma = strchr(names + 1, ','); std::cerr.write(names, comma - names) << " = " << arg1; ZZ(comma, args...); } #else #define db(...) #endif typedef long long ll; typedef long double ld; #define f first #define s second #define pb push_back const long long mod = 1000000007; class OrderlyString { private: /* data */ public: int longestLength(string s) { int n = s.length(); vector<vector<int>> Dp(n, vector<int>(26)); Dp[0][s[0] - 'A'] = 1; int maxi = 1; for (int i = 1; i < n; ++i) { int cur = s[i] - 'A'; for (int j = 0; j < 26; ++j) { if (j <= cur) Dp[i][curr] = max(Dp[i][curr], Dp[i - 1][j] + 1); else Dp[i][curr] = max(Dp[i][curr], Dp[i - 1][j]); Dp[i][j] = max(Dp[i][j], Dp[i - 1][j]); maxi = max(maxi, Dp[i][curr]); } } return maxi; } }; #ifndef Online int main() { ios_base::sync_with_stdio(0); cin.tie(0); int t = 1; #ifdef multitest cin >> t; #endif OrderlyString S; while (t--) cout << S.longestLength("GFEDCBA"); return 0; } #endif
80dc7f3e3f544c479e3f14a2646d2182e8811c6f
3f24e581b425251ccdeaedf70d95591a78f2f7a3
/src/GY521Sensor.h
297934e945c3df83e0eee7bff144eeb813be07f4
[]
no_license
Gobluin/TelescopeTracker
8716e83757bef42218ed5cf50ba5ea222beadb4e
fb4b0d28abd8c5a8f570e544d7dde4d2f69791ea
refs/heads/master
2021-01-01T05:50:46.742003
2015-09-11T13:02:21
2015-09-11T13:02:21
25,923,456
0
0
null
null
null
null
UTF-8
C++
false
false
1,162
h
/* * GY521Sensor.h * * Created on: 27 окт. 2014 г. * Author: shrike */ #ifndef GY521SENSOR_H_ #define GY521SENSOR_H_ #include "cmsis_device.h" #include "mpu6050.h" class GY521Sensor { public: GY521Sensor(I2C_TypeDef*); virtual ~GY521Sensor(); bool Init(); float Temperature(); int16_t GypoX(); int16_t GypoY(); int16_t GypoZ(); void ReadData(); protected: I2C_TypeDef* i2c; DeviceControl deviceControl; int16_t gyroX; int16_t gyroY; int16_t gyroZ; int16_t accelX; int16_t accelY; int16_t accelZ; float temperature; uint16_t buf16; uint8_t readBuf[2]; protected: void ErrorHandler(); void EventHandler(); uint8_t ReadRegister(uint8_t); void ReadRegister(uint8_t,uint16_t&); void WriteRegister(uint8_t , uint8_t*, uint32_t ); void LowLevelInit(); void ReadTemperature(); void ReadGypoX(); void ReadGypoY(); void ReadGypoZ(); void ReadAccelX(); void ReadAccelY(); void ReadAccelZ(); friend void ErrorHandler(uint32_t num); friend void EventHandler(uint32_t num); }; #endif /* GY521SENSOR_H_ */
fd68c49d6a1ae8cbbd7b9e6b76175716e3bf1c3f
c390d7a9e4ea0e6dc4a16f1757922e7ddbf414dc
/rcon_packet/sdk/cssdk/include/cssdk/engine/edict.h
e0419efc451853b32936dde6071ff3d2802b43c6
[]
no_license
francoromaniello/rcon_packet
b1de1d71169cdcb395bcbe320916942960f11759
22785b39ba3744f81049cc4bd90737e1bc739d34
refs/heads/main
2023-06-20T19:22:02.188869
2021-07-30T20:57:18
2021-07-30T20:57:18
389,636,376
0
0
null
null
null
null
UTF-8
C++
false
false
1,647
h
// *********************************************************************** // Created : 04-01-2020 // // Last Modified By : the_hunter // Last Modified On : 04-01-2020 // *********************************************************************** // Copyright (c) 1996-2002, Valve LLC. All rights reserved. // *********************************************************************** #pragma once #include <cssdk/engine/entity_vars.h> #include <cssdk/public/base_types.h> //-V::122 /// <summary> /// <para>The maximum entity leafs.</para> /// </summary> constexpr auto MAX_ENT_LEAFS = 48; /// <summary> /// Struct Link /// </summary> struct Link { /// <summary> /// </summary> Link* prev{}; /// <summary> /// </summary> Link* next{}; }; /// <summary> /// <para>Struct Edict (entity dictionary).</para> /// </summary> struct Edict { /// <summary> /// </summary> qboolean free{}; /// <summary> /// </summary> int serial_number{}; /// <summary> /// <para>Linked to a division node or leaf.</para> /// </summary> Link area{}; /// <summary> /// <para>-1 to use normal leaf check.</para> /// </summary> int head_node{}; /// <summary> /// </summary> int num_leafs{}; /// <summary> /// </summary> short leaf_nums[MAX_ENT_LEAFS]{}; /// <summary> /// <para>sv.time when the object was freed.</para> /// </summary> float free_time{}; /// <summary> /// <para>Allocated and freed by engine, used by DLLs.</para> /// </summary> void* private_data{}; /// <summary> /// <para>C exported fields from progs.</para> /// </summary> EntityVars vars{}; // Other fields from progs come immediately after. };
340cfe9426f1bffac0090b67bd311cfd2ae32335
53f3f38eac3ed44f23f8f58d34aa8bd89555eaef
/src/msvc/include/AutoGemmKernelSources/cgemm_Col_TT_B1_MX032_NX032_KX08_src.cpp
cc7766aecbd339caaea8897858ce88945384ad63
[ "Apache-2.0" ]
permissive
gajgeospatial/clBLAS-1.10
16039ddfad67b6c26a00767f33911e7c6fe374dc
2f5f1347e814e23b93262cd6fa92ec1d228963ac
refs/heads/master
2022-06-27T09:08:34.399452
2020-05-12T16:50:46
2020-05-12T16:50:46
263,172,549
0
0
null
null
null
null
UTF-8
C++
false
false
7,053
cpp
/******************************************************************************* * This file was auto-generated using the AutoGemm.py python script. * DO NOT modify this file! Instead, make changes to scripts in * clBLAS/src/library/blas/AutoGemm/ then re-generate files * (otherwise local changes will be lost after re-generation). ******************************************************************************/ #ifndef KERNEL_CGEMM_COL_TT_B1_MX032_NX032_KX08_SRC_H #define KERNEL_CGEMM_COL_TT_B1_MX032_NX032_KX08_SRC_H const unsigned int cgemm_Col_TT_B1_MX032_NX032_KX08_workGroupNumRows = 16; const unsigned int cgemm_Col_TT_B1_MX032_NX032_KX08_workGroupNumCols = 16; const unsigned int cgemm_Col_TT_B1_MX032_NX032_KX08_microTileNumRows = 2; const unsigned int cgemm_Col_TT_B1_MX032_NX032_KX08_microTileNumCols = 2; const unsigned int cgemm_Col_TT_B1_MX032_NX032_KX08_unroll = 8; const char * const cgemm_Col_TT_B1_MX032_NX032_KX08_src ="\n" "/* cgemm_Col_TT_B1_MX032_NX032_KX08 */\n" "\n" "/* kernel parameters */\n" "#define WG_NUM_ROWS 16\n" "#define WG_NUM_COLS 16\n" "#define MICRO_TILE_NUM_ROWS 2\n" "#define MICRO_TILE_NUM_COLS 2\n" "#define MACRO_TILE_NUM_ROWS 32\n" "#define MACRO_TILE_NUM_COLS 32\n" "#define NUM_UNROLL_ITER 8\n" "\n" "#define LOCAL_ROW_PAD 0\n" "#define LOCAL_COL_PAD 0\n" "\n" "/* global memory indices */\n" "#define GET_GLOBAL_INDEX_A(ROW,COL) ((ROW)*lda+(COL))\n" "#define GET_GLOBAL_INDEX_B(ROW,COL) ((ROW)*ldb+(COL))\n" "#define GET_GLOBAL_INDEX_C(ROW,COL) ((COL)*ldc+(ROW))\n" "\n" "/* local memory indices */\n" "#define GET_LOCAL_INDEX_A(ROW,COL) ((ROW) + (COL)*((MACRO_TILE_NUM_ROWS)+(LOCAL_COL_PAD)) )\n" "#define GET_LOCAL_INDEX_B(ROW,COL) ((COL) + (ROW)*((MACRO_TILE_NUM_COLS)+(LOCAL_ROW_PAD)) )\n" "\n" "/* data types */\n" "#define DATA_TYPE_STR float2\n" "#define TYPE_MAD(MULA,MULB,DST) \\\n" " DST.s0 = mad( MULA.s0, MULB.s0, DST.s0 ); \\\n" " DST.s0 = mad( -MULA.s1, MULB.s1, DST.s0 ); \\\n" " DST.s1 = mad( MULA.s0, MULB.s1, DST.s1 ); \\\n" " DST.s1 = mad( MULA.s1, MULB.s0, DST.s1 );\n" "#define TYPE_MAD_WRITE( DST, ALPHA, REG, BETA ) \\\n" " /* (1) */ \\\n" " type_mad_tmp = REG.s0; \\\n" " REG.s0 *= ALPHA.s0; \\\n" " REG.s0 = mad( -ALPHA.s1, REG.s1, REG.s0 ); \\\n" " REG.s1 *= ALPHA.s0; \\\n" " REG.s1 = mad( ALPHA.s1, type_mad_tmp, REG.s1 ); \\\n" " /* (2) */ \\\n" " REG.s0 = mad( BETA.s0, DST.s0, REG.s0 ); \\\n" " REG.s0 = mad( -BETA.s1, DST.s1, REG.s0 ); \\\n" " REG.s1 = mad( BETA.s1, DST.s0, REG.s1 ); \\\n" " REG.s1 = mad( BETA.s0, DST.s1, REG.s1 ); \\\n" " /* (3) */ \\\n" " DST = REG;\n" "\n" "/* 2x2 micro-tile */\n" "#define MICRO_TILE \\\n" " rA[0] = localA[offA + 0*WG_NUM_ROWS]; \\\n" " rA[1] = localA[offA + 1*WG_NUM_ROWS]; \\\n" " rB[0] = localB[offB + 0*WG_NUM_COLS]; \\\n" " rB[1] = localB[offB + 1*WG_NUM_COLS]; \\\n" " offA += (MACRO_TILE_NUM_ROWS+LOCAL_COL_PAD); \\\n" " offB += (MACRO_TILE_NUM_COLS+LOCAL_ROW_PAD); \\\n" " TYPE_MAD(rA[0],rB[0],rC[0][0]); \\\n" " TYPE_MAD(rA[0],rB[1],rC[0][1]); \\\n" " TYPE_MAD(rA[1],rB[0],rC[1][0]); \\\n" " TYPE_MAD(rA[1],rB[1],rC[1][1]); \\\n" " mem_fence(CLK_LOCAL_MEM_FENCE);\n" "\n" "__attribute__((reqd_work_group_size(WG_NUM_COLS,WG_NUM_ROWS,1)))\n" "__kernel void cgemm_Col_TT_B1_MX032_NX032_KX08(\n" " __global DATA_TYPE_STR const * restrict A,\n" " __global DATA_TYPE_STR const * restrict B,\n" " __global DATA_TYPE_STR * C,\n" " DATA_TYPE_STR const alpha,\n" " DATA_TYPE_STR const beta,\n" " uint const M,\n" " uint const N,\n" " uint const K,\n" " uint const lda,\n" " uint const ldb,\n" " uint const ldc,\n" " uint const offsetA,\n" " uint const offsetB,\n" " uint const offsetC\n" ") {\n" "\n" " /* apply offsets */\n" " A += offsetA;\n" " B += offsetB;\n" " C += offsetC;\n" "\n" " /* allocate registers */\n" " DATA_TYPE_STR rC[MICRO_TILE_NUM_ROWS][MICRO_TILE_NUM_COLS] = { {0} };\n" " DATA_TYPE_STR rA[MICRO_TILE_NUM_ROWS];\n" " DATA_TYPE_STR rB[MICRO_TILE_NUM_COLS];\n" "\n" " /* allocate local memory */\n" " __local DATA_TYPE_STR localA[NUM_UNROLL_ITER*(MACRO_TILE_NUM_ROWS+LOCAL_COL_PAD)];\n" " __local DATA_TYPE_STR localB[NUM_UNROLL_ITER*(MACRO_TILE_NUM_COLS+LOCAL_ROW_PAD)];\n" "\n" " /* work item indices */\n" " uint groupRow = get_group_id(0);\n" " uint groupCol = get_group_id(1);\n" " uint localRow = get_local_id(0);\n" " uint localCol = get_local_id(1);\n" " uint localSerial = localRow + localCol*WG_NUM_ROWS;\n" "\n" " /* global indices being loaded */\n" "#define globalARow(LID) (groupRow*MACRO_TILE_NUM_ROWS + (localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)/NUM_UNROLL_ITER)\n" "#define globalACol(LID) ((localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)%NUM_UNROLL_ITER)\n" "#define globalBRow(LID) ((localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)/MACRO_TILE_NUM_COLS)\n" "#define globalBCol(LID) (groupCol*MACRO_TILE_NUM_COLS + (localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)%MACRO_TILE_NUM_COLS)\n" "\n" " /* loop over k */\n" " uint block_k = K / NUM_UNROLL_ITER;\n" " do {\n" "\n" " /* local indices being written */\n" "#define localARow (localSerial / NUM_UNROLL_ITER)\n" "#define localACol (localSerial % NUM_UNROLL_ITER)\n" "#define localAStride (WG_NUM_ROWS*WG_NUM_COLS/NUM_UNROLL_ITER)\n" "#define localBRow ( localSerial / MACRO_TILE_NUM_COLS )\n" "#define localBCol ( localSerial % MACRO_TILE_NUM_COLS )\n" "#define localBStride (WG_NUM_ROWS*WG_NUM_COLS)\n" " __local DATA_TYPE_STR *lA = localA + GET_LOCAL_INDEX_A(localARow, localACol);\n" " __local DATA_TYPE_STR *lB = localB + GET_LOCAL_INDEX_B(localBRow, localBCol);\n" " barrier(CLK_LOCAL_MEM_FENCE);\n" "\n" " /* load global -> local */\n" " lA[ 0*localAStride ] = A[ GET_GLOBAL_INDEX_A( globalARow(0), globalACol(0) ) ];\n" " lB[ 0*localBStride ] = B[ GET_GLOBAL_INDEX_B( globalBRow(0), globalBCol(0) ) ];\n" " barrier(CLK_LOCAL_MEM_FENCE);\n" " uint offA = localRow;\n" " uint offB = localCol;\n" "\n" " /* do mads */\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" "\n" " /* shift to next k block */\n" " A += NUM_UNROLL_ITER;\n" " B += ldb*NUM_UNROLL_ITER;\n" "\n" " } while (--block_k > 0);\n" "\n" "\n" " /* which global Cij index */\n" " uint globalCRow = groupRow * MACRO_TILE_NUM_ROWS + localRow;\n" " uint globalCCol = groupCol * MACRO_TILE_NUM_COLS + localCol;\n" "\n" " /* write global Cij */\n" " float type_mad_tmp;\n" " TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[0][0], beta )\n" " TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[0][1], beta )\n" " TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[1][0], beta )\n" " TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[1][1], beta )\n" "\n" "}\n" ""; #else #endif
c7254345bf38c922886bfc7f79d2ca74dee25e0a
63c9392f25072f46c2204becc78654f1bc5ad355
/01_WinMain/InteractionManager.h
b08c6eff0b351db60cfd09139a7740554d3ff850
[]
no_license
labyrinth6843/Necrodancer
0618eb923c32f4b693aa30b3a14b19e8b1a96592
eb8b9a1edfeeaccec0ecd3f64d89f8ab37ae4916
refs/heads/main
2023-04-02T11:41:23.541020
2021-03-31T03:15:30
2021-03-31T03:15:30
346,194,661
0
0
null
null
null
null
UTF-8
C++
false
false
321
h
#pragma once class Image; class InteractionManager { Singleton(InteractionManager); private: Image* mShovelImage = ImageManager::GetInstance()->FindImage(L"Shovel"); public: InteractionManager(); void Render(HDC hdc); bool ShowShovel(int x, int y); Image* GetShovelImg(int x, int y) { return mShovelImage; }; };
476a70dfce270ad657f501748591b41327c8ea6a
15dbe015aebba8ef5a94557566bed36763b1aba9
/src/wallet/test/wallet_tests.cpp
4c2a8753346a5d124d2c12fb9deb404f264d510b
[ "MIT" ]
permissive
AM16031993N/Helpico
cef35b2ce20dcc066786bf17117879fa77c28c69
7b912a593b4863f113e4b1c1d1922df77831253f
refs/heads/master
2021-10-24T02:29:16.635062
2019-03-21T12:32:06
2019-03-21T12:32:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
16,504
cpp
// Copyright (c) 2012-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "wallet/wallet.h" #include <set> #include <stdint.h> #include <utility> #include <vector> #include "test/test_helpico.h" #include <boost/foreach.hpp> #include <boost/test/unit_test.hpp> // how many times to run all the tests to have a chance to catch errors that only show up with particular random shuffles #define RUN_TESTS 100 // some tests fail 1% of the time due to bad luck. // we repeat those tests this many times and only complain if all iterations of the test fail #define RANDOM_REPEATS 5 using namespace std; typedef set<pair<const CWalletTx*,unsigned int> > CoinSet; BOOST_FIXTURE_TEST_SUITE(wallet_tests, TestingSetup) static CWallet wallet; static vector<COutput> vCoins; static void add_coin(const CAmount& nValue, int nAge = 6*24, bool fIsFromMe = false, int nInput=0) { static int nextLockTime = 0; CMutableTransaction tx; tx.nLockTime = nextLockTime++; // so all transactions get different hashes tx.vout.resize(nInput+1); tx.vout[nInput].nValue = nValue; if (fIsFromMe) { // IsFromMe() returns (GetDebit() > 0), and GetDebit() is 0 if vin.empty(), // so stop vin being empty, and cache a non-zero Debit to fake out IsFromMe() tx.vin.resize(1); } CWalletTx* wtx = new CWalletTx(&wallet, tx); if (fIsFromMe) { wtx->fDebitCached = true; wtx->nDebitCached = 1; } COutput output(wtx, nInput, nAge, true, true); vCoins.push_back(output); } static void empty_wallet(void) { BOOST_FOREACH(COutput output, vCoins) delete output.tx; vCoins.clear(); } static bool equal_sets(CoinSet a, CoinSet b) { pair<CoinSet::iterator, CoinSet::iterator> ret = mismatch(a.begin(), a.end(), b.begin()); return ret.first == a.end() && ret.second == b.end(); } BOOST_AUTO_TEST_CASE(coin_selection_tests) { CoinSet setCoinsRet, setCoinsRet2; CAmount nValueRet; LOCK(wallet.cs_wallet); // test multiple times to allow for differences in the shuffle order for (int i = 0; i < RUN_TESTS; i++) { empty_wallet(); // with an empty wallet we can't even pay one cent BOOST_CHECK(!wallet.SelectCoinsMinConf( 1 * CENT, 1, 6, vCoins, setCoinsRet, nValueRet)); add_coin(1*CENT, 4); // add a new 1 cent coin // with a new 1 cent coin, we still can't find a mature 1 cent BOOST_CHECK(!wallet.SelectCoinsMinConf( 1 * CENT, 1, 6, vCoins, setCoinsRet, nValueRet)); // but we can find a new 1 cent BOOST_CHECK( wallet.SelectCoinsMinConf( 1 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1 * CENT); add_coin(2*CENT); // add a mature 2 cent coin // we can't make 3 cents of mature coins BOOST_CHECK(!wallet.SelectCoinsMinConf( 3 * CENT, 1, 6, vCoins, setCoinsRet, nValueRet)); // we can make 3 cents of new coins BOOST_CHECK( wallet.SelectCoinsMinConf( 3 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 3 * CENT); add_coin(5*CENT); // add a mature 5 cent coin, add_coin(10*CENT, 3, true); // a new 10 cent coin sent from one of our own addresses add_coin(20*CENT); // and a mature 20 cent coin // now we have new: 1+10=11 (of which 10 was self-sent), and mature: 2+5+20=27. total = 38 // we can't make 38 cents only if we disallow new coins: BOOST_CHECK(!wallet.SelectCoinsMinConf(38 * CENT, 1, 6, vCoins, setCoinsRet, nValueRet)); // we can't even make 37 cents if we don't allow new coins even if they're from us BOOST_CHECK(!wallet.SelectCoinsMinConf(38 * CENT, 6, 6, vCoins, setCoinsRet, nValueRet)); // but we can make 37 cents if we accept new coins from ourself BOOST_CHECK( wallet.SelectCoinsMinConf(37 * CENT, 1, 6, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 37 * CENT); // and we can make 38 cents if we accept all new coins BOOST_CHECK( wallet.SelectCoinsMinConf(38 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 38 * CENT); // try making 34 cents from 1,2,5,10,20 - we can't do it exactly BOOST_CHECK( wallet.SelectCoinsMinConf(34 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 35 * CENT); // but 35 cents is closest BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); // the best should be 20+10+5. it's incredibly unlikely the 1 or 2 got included (but possible) // when we try making 7 cents, the smaller coins (1,2,5) are enough. We should see just 2+5 BOOST_CHECK( wallet.SelectCoinsMinConf( 7 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 7 * CENT); BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // when we try making 8 cents, the smaller coins (1,2,5) are exactly enough. BOOST_CHECK( wallet.SelectCoinsMinConf( 8 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK(nValueRet == 8 * CENT); BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); // when we try making 9 cents, no subset of smaller coins is enough, and we get the next bigger coin (10) BOOST_CHECK( wallet.SelectCoinsMinConf( 9 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 10 * CENT); BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // now clear out the wallet and start again to test choosing between subsets of smaller coins and the next biggest coin empty_wallet(); add_coin( 6*CENT); add_coin( 7*CENT); add_coin( 8*CENT); add_coin(20*CENT); add_coin(30*CENT); // now we have 6+7+8+20+30 = 71 cents total // check that we have 71 and not 72 BOOST_CHECK( wallet.SelectCoinsMinConf(71 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK(!wallet.SelectCoinsMinConf(72 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); // now try making 16 cents. the best smaller coins can do is 6+7+8 = 21; not as good at the next biggest coin, 20 BOOST_CHECK( wallet.SelectCoinsMinConf(16 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 20 * CENT); // we should get 20 in one coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); add_coin( 5*CENT); // now we have 5+6+7+8+20+30 = 75 cents total // now if we try making 16 cents again, the smaller coins can make 5+6+7 = 18 cents, better than the next biggest coin, 20 BOOST_CHECK( wallet.SelectCoinsMinConf(16 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 18 * CENT); // we should get 18 in 3 coins BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); add_coin( 18*CENT); // now we have 5+6+7+8+18+20+30 // and now if we try making 16 cents again, the smaller coins can make 5+6+7 = 18 cents, the same as the next biggest coin, 18 BOOST_CHECK( wallet.SelectCoinsMinConf(16 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 18 * CENT); // we should get 18 in 1 coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // because in the event of a tie, the biggest coin wins // now try making 11 cents. we should get 5+6 BOOST_CHECK( wallet.SelectCoinsMinConf(11 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 11 * CENT); BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // check that the smallest bigger coin is used add_coin( 1*COIN); add_coin( 2*COIN); add_coin( 3*COIN); add_coin( 4*COIN); // now we have 5+6+7+8+18+20+30+100+200+300+400 = 1094 cents BOOST_CHECK( wallet.SelectCoinsMinConf(95 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1 * COIN); // we should get 1 BTC in 1 coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); BOOST_CHECK( wallet.SelectCoinsMinConf(195 * CENT, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 2 * COIN); // we should get 2 BTC in 1 coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // empty the wallet and start again, now with fractions of a cent, to test small change avoidance empty_wallet(); add_coin(0.1*MIN_CHANGE); add_coin(0.2*MIN_CHANGE); add_coin(0.3*MIN_CHANGE); add_coin(0.4*MIN_CHANGE); add_coin(0.5*MIN_CHANGE); // try making 1 * MIN_CHANGE from the 1.5 * MIN_CHANGE // we'll get change smaller than MIN_CHANGE whatever happens, so can expect MIN_CHANGE exactly BOOST_CHECK( wallet.SelectCoinsMinConf(MIN_CHANGE, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, MIN_CHANGE); // but if we add a bigger coin, small change is avoided add_coin(1111*MIN_CHANGE); // try making 1 from 0.1 + 0.2 + 0.3 + 0.4 + 0.5 + 1111 = 1112.5 BOOST_CHECK( wallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1 * MIN_CHANGE); // we should get the exact amount // if we add more small coins: add_coin(0.6*MIN_CHANGE); add_coin(0.7*MIN_CHANGE); // and try again to make 1.0 * MIN_CHANGE BOOST_CHECK( wallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1 * MIN_CHANGE); // we should get the exact amount // run the 'mtgox' test (see http://blockexplorer.com/tx/29a3efd3ef04f9153d47a990bd7b048a4b2d213daaa5fb8ed670fb85f13bdbcf) // they tried to consolidate 10 50k coins into one 500k coin, and ended up with 50k in change empty_wallet(); for (int i = 0; i < 20; i++) add_coin(50000 * COIN); BOOST_CHECK( wallet.SelectCoinsMinConf(500000 * COIN, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 500000 * COIN); // we should get the exact amount BOOST_CHECK_EQUAL(setCoinsRet.size(), 10U); // in ten coins // if there's not enough in the smaller coins to make at least 1 * MIN_CHANGE change (0.5+0.6+0.7 < 1.0+1.0), // we need to try finding an exact subset anyway // sometimes it will fail, and so we use the next biggest coin: empty_wallet(); add_coin(0.5 * MIN_CHANGE); add_coin(0.6 * MIN_CHANGE); add_coin(0.7 * MIN_CHANGE); add_coin(1111 * MIN_CHANGE); BOOST_CHECK( wallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1111 * MIN_CHANGE); // we get the bigger coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // but sometimes it's possible, and we use an exact subset (0.4 + 0.6 = 1.0) empty_wallet(); add_coin(0.4 * MIN_CHANGE); add_coin(0.6 * MIN_CHANGE); add_coin(0.8 * MIN_CHANGE); add_coin(1111 * MIN_CHANGE); BOOST_CHECK( wallet.SelectCoinsMinConf(MIN_CHANGE, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, MIN_CHANGE); // we should get the exact amount BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // in two coins 0.4+0.6 // test avoiding small change empty_wallet(); add_coin(0.05 * MIN_CHANGE); add_coin(1 * MIN_CHANGE); add_coin(100 * MIN_CHANGE); // trying to make 100.01 from these three coins BOOST_CHECK( wallet.SelectCoinsMinConf(100.01 * MIN_CHANGE, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 101.05 * MIN_CHANGE); // we should get all coins BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); // but if we try to make 99.9, we should take the bigger of the two small coins to avoid small change BOOST_CHECK( wallet.SelectCoinsMinConf(99.9 * MIN_CHANGE, 1, 1, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 101 * MIN_CHANGE); BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // test with many inputs for (CAmount amt=1500; amt < COIN; amt*=10) { empty_wallet(); // Create 676 inputs (= MAX_STANDARD_TX_SIZE / 148 bytes per input) for (uint16_t j = 0; j < 676; j++) add_coin(amt); BOOST_CHECK(wallet.SelectCoinsMinConf(2000, 1, 1, vCoins, setCoinsRet, nValueRet)); if (amt - 2000 < MIN_CHANGE) { // needs more than one input: uint16_t returnSize = std::ceil((2000.0 + MIN_CHANGE)/amt); CAmount returnValue = amt * returnSize; BOOST_CHECK_EQUAL(nValueRet, returnValue); BOOST_CHECK_EQUAL(setCoinsRet.size(), returnSize); } else { // one input is sufficient: BOOST_CHECK_EQUAL(nValueRet, amt); BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); } } // test randomness { empty_wallet(); for (int i2 = 0; i2 < 100; i2++) add_coin(COIN); // picking 50 from 100 coins doesn't depend on the shuffle, // but does depend on randomness in the stochastic approximation code BOOST_CHECK(wallet.SelectCoinsMinConf(50 * COIN, 1, 6, vCoins, setCoinsRet , nValueRet)); BOOST_CHECK(wallet.SelectCoinsMinConf(50 * COIN, 1, 6, vCoins, setCoinsRet2, nValueRet)); BOOST_CHECK(!equal_sets(setCoinsRet, setCoinsRet2)); int fails = 0; for (int i = 0; i < RANDOM_REPEATS; i++) { // selecting 1 from 100 identical coins depends on the shuffle; this test will fail 1% of the time // run the test RANDOM_REPEATS times and only complain if all of them fail BOOST_CHECK(wallet.SelectCoinsMinConf(COIN, 1, 6, vCoins, setCoinsRet , nValueRet)); BOOST_CHECK(wallet.SelectCoinsMinConf(COIN, 1, 6, vCoins, setCoinsRet2, nValueRet)); if (equal_sets(setCoinsRet, setCoinsRet2)) fails++; } BOOST_CHECK_NE(fails, RANDOM_REPEATS); // add 75 cents in small change. not enough to make 90 cents, // then try making 90 cents. there are multiple competing "smallest bigger" coins, // one of which should be picked at random add_coin( 5*CENT); add_coin(10*CENT); add_coin(15*CENT); add_coin(20*CENT); add_coin(25*CENT); fails = 0; for (int i = 0; i < RANDOM_REPEATS; i++) { // selecting 1 from 100 identical coins depends on the shuffle; this test will fail 1% of the time // run the test RANDOM_REPEATS times and only complain if all of them fail BOOST_CHECK(wallet.SelectCoinsMinConf(90*CENT, 1, 6, vCoins, setCoinsRet , nValueRet)); BOOST_CHECK(wallet.SelectCoinsMinConf(90*CENT, 1, 6, vCoins, setCoinsRet2, nValueRet)); if (equal_sets(setCoinsRet, setCoinsRet2)) fails++; } BOOST_CHECK_NE(fails, RANDOM_REPEATS); } } empty_wallet(); } BOOST_AUTO_TEST_CASE(ApproximateBestSubset) { CoinSet setCoinsRet; CAmount nValueRet; LOCK(wallet.cs_wallet); empty_wallet(); // Test vValue sort order for (int i = 0; i < 1000; i++) add_coin(1000 * COIN); add_coin(3 * COIN); BOOST_CHECK(wallet.SelectCoinsMinConf(1003 * COIN, 1, 6, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1003 * COIN); BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); empty_wallet(); // Test trimming for (int i = 0; i < 100; i++) add_coin(10 * COIN); for (int i = 0; i < 100; i++) add_coin(1000 * COIN); BOOST_CHECK(wallet.SelectCoinsMinConf(100001 * COIN, 1, 6, vCoins, setCoinsRet, nValueRet)); // We need all 100 larger coins and exactly one small coin. // Superfluous small coins must be trimmed from the set: BOOST_CHECK_EQUAL(nValueRet, 100010 * COIN); BOOST_CHECK_EQUAL(setCoinsRet.size(), 101); } BOOST_AUTO_TEST_SUITE_END()
25bc3832423a6861054e5e0f9e772a4e51dbff98
b90ef27306fe5d4a9d611726984b6760cc3bc83d
/LEDMatrixV2ro3/char.ino
24e10cddf05d83eaa95a96b9742cccff05dd8959
[]
no_license
tehniq3/matrix_clock_weather_net
1d498dab00762b36d8ac75b8317ba01543bcf67c
ad5230ffb619beb8cc7732f197aecfacd9bdee27
refs/heads/master
2021-06-28T21:45:24.833774
2021-01-20T09:12:26
2021-01-20T09:12:26
212,754,036
3
2
null
null
null
null
UTF-8
C++
false
false
1,544
ino
void showDigit(char ch, int col, const uint8_t *data) { if (dy < -8 | dy > 8) return; int len = pgm_read_byte(data); int w = pgm_read_byte(data + 1 + ch * len); col += dx; for (int i = 0; i < w; i++) if (col + i >= 0 && col + i < 8 * NUM_MAX) { byte v = pgm_read_byte(data + 1 + ch * len + 1 + i); if (!dy) scr[col + i] = v; else scr[col + i] |= dy > 0 ? v >> dy : v << -dy; } } // ======================================================================= void setCol(int col, byte v) { if (dy < -8 | dy > 8) return; col += dx; if (col >= 0 && col < 8 * NUM_MAX) if (!dy) scr[col] = v; else scr[col] |= dy > 0 ? v >> dy : v << -dy; } // ======================================================================= int showChar(char ch, const uint8_t *data) { int len = pgm_read_byte(data); int i, w = pgm_read_byte(data + 1 + ch * len); for (i = 0; i < w; i++) scr[NUM_MAX * 8 + i] = pgm_read_byte(data + 1 + ch * len + 1 + i); scr[NUM_MAX * 8 + i] = 0; return w; } // ======================================================================= void printCharWithShift(unsigned char c, int shiftDelay) { if (c < ' ' || c > '~' + 31) return; c -= 32; int w = showChar(c, font); for (int i = 0; i < w + 1; i++) { delay(shiftDelay); scrollLeft(); refreshAll(); } } // ======================================================================= void printStringWithShift(const char* s, int shiftDelay) { while (*s) { printCharWithShift(*s, shiftDelay); s++; } }
9c33e18d2ba86c531589fec8cdb2cc2171231f4f
b511bb6461363cf84afa52189603bd9d1a11ad34
/second year/jshd.cpp
19ff9e4c68a429976b6278a75b9042b7eb7c4f68
[]
no_license
masumr/problem_solve
ec0059479425e49cc4c76a107556972e1c545e89
1ad4ec3e27f28f10662c68bbc268eaad9f5a1a9e
refs/heads/master
2021-01-16T19:07:01.198885
2017-08-12T21:21:59
2017-08-12T21:21:59
100,135,794
0
0
null
null
null
null
UTF-8
C++
false
false
582
cpp
#include<bits/stdc++.h> using namespace std; int main(){ int t,c=0; cin>>t; getchar(); for(int k=0;k<t;k++){ cout<<endl; int n,m; cin>>n>>m; int a[100000]; for(int i=1;i<=n;i++) cin>>a[i]; printf("Case %d:\n",++c); for(int i=1;i<=m;i++){ int x,y; cin>>x>>y; int count=0; for(int i=x;i<=y;i++){ for(int j=i+1;j<=y;j++) if(a[i]%a[j]==0 && a[i]/a[j]>1)count++; } cout<<count<<endl; } } }
5cae6ec5ba9a4b9abb5b777492967b562a79c49f
92cba07e4387fb37c485bc366ce156cdd195bc37
/SecA/03-May22/define1badone.cpp
71511564ffdbad66a1ba7db1d4ea855832723332
[]
no_license
dkamin/20132notes
c9792ed39097e6642ad28e35e5fa163e68b6ed82
c9734280d7917b951e0fde2d233b2c8fa9026d6a
refs/heads/master
2021-01-22T18:46:13.682860
2013-07-26T15:14:00
2013-07-26T15:14:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
172
cpp
#include <iostream> using namespace std; #define PI 3.14159265 #define sum a+b int main(){ int a = 2; int b = 3; int c; c = sum * 4; cout<<c<<endl; return 0; }