text
stringlengths
1
1.05M
// Author: btjanaka (Bryon Tjanaka) // Problem: (UVa) 990 #include <bits/stdc++.h> #define GET(x) scanf("%d", &x) #define GED(x) scanf("%lf", &x) typedef long long ll; using namespace std; int max_d, w, n; int d[40]; int v[40]; pair<int, pair<int, int>> dp[40][350]; // {max_value, {next_id, next_d}} pair<int, pair<int, int>> backtrack(int id, int cur_d) { if (dp[id][cur_d].first != -1) return dp[id][cur_d]; if (cur_d > max_d) return {INT_MIN, {-1, -1}}; else if (id == n) dp[id][cur_d] = {0, {-1, -1}}; else { pair<int, pair<int, int>> yes = backtrack(id + 1, cur_d + d[id]); yes.first += v[id]; pair<int, pair<int, int>> no = backtrack(id + 1, cur_d); if (yes.first > no.first) { dp[id][cur_d] = {yes.first, {id + 1, cur_d + d[id]}}; } else { dp[id][cur_d] = {no.first, {id + 1, cur_d}}; } } return dp[id][cur_d]; } int main() { bool first = true; while (GET(max_d) > 0) { // input GET(w); GET(n); for (int i = 0; i < n; ++i) { GET(d[i]); GET(v[i]); } max_d /= (3 * w); // work in terms of depth instead of time // reset for (int i = 0; i < 40; ++i) { for (int j = 0; j < 350; ++j) { dp[i][j].first = -1; dp[i][j].second.first = -1; dp[i][j].second.second = -1; } } // execute backtrack(0, 0); // debugging // for (int i = 0; i < 5; ++i) { // for (int j = 0; j < 350; ++j) { // if (dp[i][j].first != -1) // printf("(%d,%d):%d|%d,%d ", i, j, dp[i][j].first, // dp[i][j].second.first, dp[i][j].second.second); // } // putchar('\n'); // } // output if (first) first = false; else printf("\n"); // result printf("%d\n", dp[0][0].first); // count number of treasures int num = 0; int cur_d = 0; pair<int, pair<int, int>> cur = dp[0][0]; while (cur.second.first != -1) { // don't count if the time did not change in the next position // if the next one has an increased depth, that means we chose this one if (cur.second.second > cur_d) ++num; cur_d = cur.second.second; cur = dp[cur.second.first][cur.second.second]; } printf("%d\n", num); // print treasures cur_d = 0; cur = dp[0][0]; while (cur.second.first != -1) { if (cur.second.second > cur_d) printf("%d %d\n", d[cur.second.first - 1], v[cur.second.first - 1]); cur_d = cur.second.second; cur = dp[cur.second.first][cur.second.second]; } } return 0; }
; A226577: Smallest number of integer sided squares needed to tile a 4 X n rectangle. ; 0,4,2,4,1,5,3,5,2,6,4,6,3,7,5,7,4,8,6,8,5,9,7,9,6,10,8,10,7,11,9,11,8,12,10,12,9,13,11,13,10,14,12,14,11,15,13,15,12,16,14,16,13,17,15,17,14,18,16,18,15,19,17,19,16,20,18,20,17,21,19,21,18,22,20,22,19,23,21,23,20,24,22,24,21,25,23,25,22,26,24,26,23,27,25,27,24,28,26,28 mov $6,2 mov $7,$0 lpb $6 mov $0,$7 sub $6,1 add $0,$6 sub $0,1 mov $2,$0 mov $3,2 mov $4,3 lpb $2 add $0,$3 lpb $4 sub $0,$3 mov $4,$2 lpe add $0,$4 add $2,$3 add $0,$2 trn $2,6 lpe mov $5,$6 mov $8,$0 lpb $5 mov $1,$8 sub $5,1 lpe lpe lpb $7 sub $1,$8 mov $7,0 lpe trn $1,1 mov $0,$1
; int obstack_grow0_callee(struct obstack *ob, void *data, size_t size) SECTION code_alloc_obstack PUBLIC _obstack_grow0_callee _obstack_grow0_callee: pop af pop hl pop de pop bc push af INCLUDE "alloc/obstack/z80/asm_obstack_grow0.asm"
; ; ZX Spectrum specific routines ; ; int trdos_installed(); ; ; The result is: ; - 0 (false) if the TRDOS system variables are not installed ; - 1 (true) if the Betadisk interface is connected and activated. ; ; $Id: ; XLIB trdos_installed trdos_installed: ld hl,(23635) ld de,23867 sbc hl,de ld a,h or l ld hl,0 ret nz inc hl ret
; A212262: a(n) = 3^n + Fibonacci(n). ; 1,4,10,29,84,248,737,2200,6582,19717,59104,177236,531585,1594556,4783346,14349517,43047708,129141760,387423073,1162265648,3486791166,10460364149,31381077320,94143207484,282429582849,847288684468,2541865949722,7625597681405,22876792772772,68630377879112,205891132926689,617673397630216,1853020191030150,5559060570080101,16677181705369456,50031545108227172,150094635311929473,450283905915155180,1350851717712080258,4052555153082222253,12157665459159262956,36472996377336366544,109418989131780273505,328256967394970572064,984770902184312641614,2954312706551968601813,8862938119654337407832,26588814358960474502860,79766443076877317390337,239299329230625308332132,717897987691865175039274,2153693963075578131321821,6461081889226706250212340,19383245667680073213087896,58149737003040145957961441,174449211009120318655032952,523347633027360763064945238,1570042899082081977075830725,4710128697246245426208333568,14130386091738735461486837108,42391158275216205062303189121,127173474825648613047614081564,381520424476945835681389436690,1144561273430837501443420016269,3433683820292512495268058947004,10301051460877537471141227445408,30903154382632612389698531838817,92709463147897837130707495623440,278128389443693511330009236479902,834385168331080533889526359156277,2503155504993241601505964476794984,7509466514979724804254777479427676,22528399544939174412338601886651905,67585198634817523236326959157367316,202755595904452569707866300417882426,608266787713357709121795477696839357 mov $1,3 pow $1,$0 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. add $1,1001 add $1,$0 sub $1,1001 mov $0,$1
// // Persistent Heap (based on randomized meldable heap) // // Description: // Meldable heap with O(1) copy. // // Algorithm: // It is a persistence version of randomized meldable heap. // // Complexity: // O(log n) time/space for each operations. // // #include <iostream> #include <vector> #include <cstdio> #include <queue> #include <cstdlib> #include <map> #include <cmath> #include <cstring> #include <functional> #include <algorithm> #include <unordered_map> #include <unordered_set> using namespace std; #define fst first #define snd second #define all(c) ((c).begin()), ((c).end()) template <class T> struct persistent_heap { struct node { T x; node *l, *r; } *root; persistent_heap() : root(0) { } node *merge(node *a, node *b) { if (!a || !b) return a ? a : b; if (a->x > b->x) swap(a, b); if (rand() % 2) return new node({a->x, merge(a->l, b), a->r}); else return new node({a->x, a->l, merge(a->r, b)}); } void merge(persistent_heap b) { root = merge(root, b.root); } void push(T x) { root = merge(root, new node({x})); } void pop() { root = merge(root->l, root->r); } T top() const { return root->x; } }; int main() { priority_queue<int, vector<int>, greater<int>> que; persistent_heap<int> heap; int n = 10000; for (int i = 0; i < n; ++i) { int x = rand(); heap.push(x); que.push(x); } auto tmp_que = que; auto tmp_heap = heap; while (!que.empty()) { if (heap.top() != que.top()) cout << "***" << endl; que.pop(); heap.pop(); } heap = tmp_heap; que = tmp_que; while (!que.empty()) { if (heap.top() != que.top()) cout << "***" << endl; que.pop(); heap.pop(); } }
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; shadowssdt asm stub for 6.1.7600-sp0-windows-7 amd64 option casemap:none option prologue:none option epilogue:none .code ; ULONG64 __stdcall NtUserGetThreadState( ULONG64 arg_01 ); NtUserGetThreadState PROC STDCALL mov r10 , rcx mov eax , 4096 ;syscall db 0Fh , 05h ret NtUserGetThreadState ENDP ; ULONG64 __stdcall NtUserPeekMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserPeekMessage PROC STDCALL mov r10 , rcx mov eax , 4097 ;syscall db 0Fh , 05h ret NtUserPeekMessage ENDP ; ULONG64 __stdcall NtUserCallOneParam( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserCallOneParam PROC STDCALL mov r10 , rcx mov eax , 4098 ;syscall db 0Fh , 05h ret NtUserCallOneParam ENDP ; ULONG64 __stdcall NtUserGetKeyState( ULONG64 arg_01 ); NtUserGetKeyState PROC STDCALL mov r10 , rcx mov eax , 4099 ;syscall db 0Fh , 05h ret NtUserGetKeyState ENDP ; ULONG64 __stdcall NtUserInvalidateRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserInvalidateRect PROC STDCALL mov r10 , rcx mov eax , 4100 ;syscall db 0Fh , 05h ret NtUserInvalidateRect ENDP ; ULONG64 __stdcall NtUserCallNoParam( ULONG64 arg_01 ); NtUserCallNoParam PROC STDCALL mov r10 , rcx mov eax , 4101 ;syscall db 0Fh , 05h ret NtUserCallNoParam ENDP ; ULONG64 __stdcall NtUserGetMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetMessage PROC STDCALL mov r10 , rcx mov eax , 4102 ;syscall db 0Fh , 05h ret NtUserGetMessage ENDP ; ULONG64 __stdcall NtUserMessageCall( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtUserMessageCall PROC STDCALL mov r10 , rcx mov eax , 4103 ;syscall db 0Fh , 05h ret NtUserMessageCall ENDP ; ULONG64 __stdcall NtGdiBitBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiBitBlt PROC STDCALL mov r10 , rcx mov eax , 4104 ;syscall db 0Fh , 05h ret NtGdiBitBlt ENDP ; ULONG64 __stdcall NtGdiGetCharSet( ULONG64 arg_01 ); NtGdiGetCharSet PROC STDCALL mov r10 , rcx mov eax , 4105 ;syscall db 0Fh , 05h ret NtGdiGetCharSet ENDP ; ULONG64 __stdcall NtUserGetDC( ULONG64 arg_01 ); NtUserGetDC PROC STDCALL mov r10 , rcx mov eax , 4106 ;syscall db 0Fh , 05h ret NtUserGetDC ENDP ; ULONG64 __stdcall NtGdiSelectBitmap( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSelectBitmap PROC STDCALL mov r10 , rcx mov eax , 4107 ;syscall db 0Fh , 05h ret NtGdiSelectBitmap ENDP ; ULONG64 __stdcall NtUserWaitMessage( ); NtUserWaitMessage PROC STDCALL mov r10 , rcx mov eax , 4108 ;syscall db 0Fh , 05h ret NtUserWaitMessage ENDP ; ULONG64 __stdcall NtUserTranslateMessage( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserTranslateMessage PROC STDCALL mov r10 , rcx mov eax , 4109 ;syscall db 0Fh , 05h ret NtUserTranslateMessage ENDP ; ULONG64 __stdcall NtUserGetProp( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetProp PROC STDCALL mov r10 , rcx mov eax , 4110 ;syscall db 0Fh , 05h ret NtUserGetProp ENDP ; ULONG64 __stdcall NtUserPostMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserPostMessage PROC STDCALL mov r10 , rcx mov eax , 4111 ;syscall db 0Fh , 05h ret NtUserPostMessage ENDP ; ULONG64 __stdcall NtUserQueryWindow( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserQueryWindow PROC STDCALL mov r10 , rcx mov eax , 4112 ;syscall db 0Fh , 05h ret NtUserQueryWindow ENDP ; ULONG64 __stdcall NtUserTranslateAccelerator( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserTranslateAccelerator PROC STDCALL mov r10 , rcx mov eax , 4113 ;syscall db 0Fh , 05h ret NtUserTranslateAccelerator ENDP ; ULONG64 __stdcall NtGdiFlush( ); NtGdiFlush PROC STDCALL mov r10 , rcx mov eax , 4114 ;syscall db 0Fh , 05h ret NtGdiFlush ENDP ; ULONG64 __stdcall NtUserRedrawWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserRedrawWindow PROC STDCALL mov r10 , rcx mov eax , 4115 ;syscall db 0Fh , 05h ret NtUserRedrawWindow ENDP ; ULONG64 __stdcall NtUserWindowFromPoint( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserWindowFromPoint PROC STDCALL mov r10 , rcx mov eax , 4116 ;syscall db 0Fh , 05h ret NtUserWindowFromPoint ENDP ; ULONG64 __stdcall NtUserCallMsgFilter( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserCallMsgFilter PROC STDCALL mov r10 , rcx mov eax , 4117 ;syscall db 0Fh , 05h ret NtUserCallMsgFilter ENDP ; ULONG64 __stdcall NtUserValidateTimerCallback( ULONG64 arg_01 ); NtUserValidateTimerCallback PROC STDCALL mov r10 , rcx mov eax , 4118 ;syscall db 0Fh , 05h ret NtUserValidateTimerCallback ENDP ; ULONG64 __stdcall NtUserBeginPaint( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserBeginPaint PROC STDCALL mov r10 , rcx mov eax , 4119 ;syscall db 0Fh , 05h ret NtUserBeginPaint ENDP ; ULONG64 __stdcall NtUserSetTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetTimer PROC STDCALL mov r10 , rcx mov eax , 4120 ;syscall db 0Fh , 05h ret NtUserSetTimer ENDP ; ULONG64 __stdcall NtUserEndPaint( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserEndPaint PROC STDCALL mov r10 , rcx mov eax , 4121 ;syscall db 0Fh , 05h ret NtUserEndPaint ENDP ; ULONG64 __stdcall NtUserSetCursor( ULONG64 arg_01 ); NtUserSetCursor PROC STDCALL mov r10 , rcx mov eax , 4122 ;syscall db 0Fh , 05h ret NtUserSetCursor ENDP ; ULONG64 __stdcall NtUserKillTimer( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserKillTimer PROC STDCALL mov r10 , rcx mov eax , 4123 ;syscall db 0Fh , 05h ret NtUserKillTimer ENDP ; ULONG64 __stdcall NtUserBuildHwndList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtUserBuildHwndList PROC STDCALL mov r10 , rcx mov eax , 4124 ;syscall db 0Fh , 05h ret NtUserBuildHwndList ENDP ; ULONG64 __stdcall NtUserSelectPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSelectPalette PROC STDCALL mov r10 , rcx mov eax , 4125 ;syscall db 0Fh , 05h ret NtUserSelectPalette ENDP ; ULONG64 __stdcall NtUserCallNextHookEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserCallNextHookEx PROC STDCALL mov r10 , rcx mov eax , 4126 ;syscall db 0Fh , 05h ret NtUserCallNextHookEx ENDP ; ULONG64 __stdcall NtUserHideCaret( ULONG64 arg_01 ); NtUserHideCaret PROC STDCALL mov r10 , rcx mov eax , 4127 ;syscall db 0Fh , 05h ret NtUserHideCaret ENDP ; ULONG64 __stdcall NtGdiIntersectClipRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiIntersectClipRect PROC STDCALL mov r10 , rcx mov eax , 4128 ;syscall db 0Fh , 05h ret NtGdiIntersectClipRect ENDP ; ULONG64 __stdcall NtUserCallHwndLock( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserCallHwndLock PROC STDCALL mov r10 , rcx mov eax , 4129 ;syscall db 0Fh , 05h ret NtUserCallHwndLock ENDP ; ULONG64 __stdcall NtUserGetProcessWindowStation( ); NtUserGetProcessWindowStation PROC STDCALL mov r10 , rcx mov eax , 4130 ;syscall db 0Fh , 05h ret NtUserGetProcessWindowStation ENDP ; ULONG64 __stdcall NtGdiDeleteObjectApp( ULONG64 arg_01 ); NtGdiDeleteObjectApp PROC STDCALL mov r10 , rcx mov eax , 4131 ;syscall db 0Fh , 05h ret NtGdiDeleteObjectApp ENDP ; ULONG64 __stdcall NtUserSetWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtUserSetWindowPos PROC STDCALL mov r10 , rcx mov eax , 4132 ;syscall db 0Fh , 05h ret NtUserSetWindowPos ENDP ; ULONG64 __stdcall NtUserShowCaret( ULONG64 arg_01 ); NtUserShowCaret PROC STDCALL mov r10 , rcx mov eax , 4133 ;syscall db 0Fh , 05h ret NtUserShowCaret ENDP ; ULONG64 __stdcall NtUserEndDeferWindowPosEx( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserEndDeferWindowPosEx PROC STDCALL mov r10 , rcx mov eax , 4134 ;syscall db 0Fh , 05h ret NtUserEndDeferWindowPosEx ENDP ; ULONG64 __stdcall NtUserCallHwndParamLock( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserCallHwndParamLock PROC STDCALL mov r10 , rcx mov eax , 4135 ;syscall db 0Fh , 05h ret NtUserCallHwndParamLock ENDP ; ULONG64 __stdcall NtUserVkKeyScanEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserVkKeyScanEx PROC STDCALL mov r10 , rcx mov eax , 4136 ;syscall db 0Fh , 05h ret NtUserVkKeyScanEx ENDP ; ULONG64 __stdcall NtGdiSetDIBitsToDeviceInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 ); NtGdiSetDIBitsToDeviceInternal PROC STDCALL mov r10 , rcx mov eax , 4137 ;syscall db 0Fh , 05h ret NtGdiSetDIBitsToDeviceInternal ENDP ; ULONG64 __stdcall NtUserCallTwoParam( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserCallTwoParam PROC STDCALL mov r10 , rcx mov eax , 4138 ;syscall db 0Fh , 05h ret NtUserCallTwoParam ENDP ; ULONG64 __stdcall NtGdiGetRandomRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetRandomRgn PROC STDCALL mov r10 , rcx mov eax , 4139 ;syscall db 0Fh , 05h ret NtGdiGetRandomRgn ENDP ; ULONG64 __stdcall NtUserCopyAcceleratorTable( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserCopyAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4140 ;syscall db 0Fh , 05h ret NtUserCopyAcceleratorTable ENDP ; ULONG64 __stdcall NtUserNotifyWinEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserNotifyWinEvent PROC STDCALL mov r10 , rcx mov eax , 4141 ;syscall db 0Fh , 05h ret NtUserNotifyWinEvent ENDP ; ULONG64 __stdcall NtGdiExtSelectClipRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiExtSelectClipRgn PROC STDCALL mov r10 , rcx mov eax , 4142 ;syscall db 0Fh , 05h ret NtGdiExtSelectClipRgn ENDP ; ULONG64 __stdcall NtUserIsClipboardFormatAvailable( ULONG64 arg_01 ); NtUserIsClipboardFormatAvailable PROC STDCALL mov r10 , rcx mov eax , 4143 ;syscall db 0Fh , 05h ret NtUserIsClipboardFormatAvailable ENDP ; ULONG64 __stdcall NtUserSetScrollInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetScrollInfo PROC STDCALL mov r10 , rcx mov eax , 4144 ;syscall db 0Fh , 05h ret NtUserSetScrollInfo ENDP ; ULONG64 __stdcall NtGdiStretchBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); NtGdiStretchBlt PROC STDCALL mov r10 , rcx mov eax , 4145 ;syscall db 0Fh , 05h ret NtGdiStretchBlt ENDP ; ULONG64 __stdcall NtUserCreateCaret( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserCreateCaret PROC STDCALL mov r10 , rcx mov eax , 4146 ;syscall db 0Fh , 05h ret NtUserCreateCaret ENDP ; ULONG64 __stdcall NtGdiRectVisible( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiRectVisible PROC STDCALL mov r10 , rcx mov eax , 4147 ;syscall db 0Fh , 05h ret NtGdiRectVisible ENDP ; ULONG64 __stdcall NtGdiCombineRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiCombineRgn PROC STDCALL mov r10 , rcx mov eax , 4148 ;syscall db 0Fh , 05h ret NtGdiCombineRgn ENDP ; ULONG64 __stdcall NtGdiGetDCObject( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetDCObject PROC STDCALL mov r10 , rcx mov eax , 4149 ;syscall db 0Fh , 05h ret NtGdiGetDCObject ENDP ; ULONG64 __stdcall NtUserDispatchMessage( ULONG64 arg_01 ); NtUserDispatchMessage PROC STDCALL mov r10 , rcx mov eax , 4150 ;syscall db 0Fh , 05h ret NtUserDispatchMessage ENDP ; ULONG64 __stdcall NtUserRegisterWindowMessage( ULONG64 arg_01 ); NtUserRegisterWindowMessage PROC STDCALL mov r10 , rcx mov eax , 4151 ;syscall db 0Fh , 05h ret NtUserRegisterWindowMessage ENDP ; ULONG64 __stdcall NtGdiExtTextOutW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); NtGdiExtTextOutW PROC STDCALL mov r10 , rcx mov eax , 4152 ;syscall db 0Fh , 05h ret NtGdiExtTextOutW ENDP ; ULONG64 __stdcall NtGdiSelectFont( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSelectFont PROC STDCALL mov r10 , rcx mov eax , 4153 ;syscall db 0Fh , 05h ret NtGdiSelectFont ENDP ; ULONG64 __stdcall NtGdiRestoreDC( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiRestoreDC PROC STDCALL mov r10 , rcx mov eax , 4154 ;syscall db 0Fh , 05h ret NtGdiRestoreDC ENDP ; ULONG64 __stdcall NtGdiSaveDC( ULONG64 arg_01 ); NtGdiSaveDC PROC STDCALL mov r10 , rcx mov eax , 4155 ;syscall db 0Fh , 05h ret NtGdiSaveDC ENDP ; ULONG64 __stdcall NtUserGetForegroundWindow( ); NtUserGetForegroundWindow PROC STDCALL mov r10 , rcx mov eax , 4156 ;syscall db 0Fh , 05h ret NtUserGetForegroundWindow ENDP ; ULONG64 __stdcall NtUserShowScrollBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserShowScrollBar PROC STDCALL mov r10 , rcx mov eax , 4157 ;syscall db 0Fh , 05h ret NtUserShowScrollBar ENDP ; ULONG64 __stdcall NtUserFindExistingCursorIcon( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserFindExistingCursorIcon PROC STDCALL mov r10 , rcx mov eax , 4158 ;syscall db 0Fh , 05h ret NtUserFindExistingCursorIcon ENDP ; ULONG64 __stdcall NtGdiGetDCDword( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetDCDword PROC STDCALL mov r10 , rcx mov eax , 4159 ;syscall db 0Fh , 05h ret NtGdiGetDCDword ENDP ; ULONG64 __stdcall NtGdiGetRegionData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetRegionData PROC STDCALL mov r10 , rcx mov eax , 4160 ;syscall db 0Fh , 05h ret NtGdiGetRegionData ENDP ; ULONG64 __stdcall NtGdiLineTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiLineTo PROC STDCALL mov r10 , rcx mov eax , 4161 ;syscall db 0Fh , 05h ret NtGdiLineTo ENDP ; ULONG64 __stdcall NtUserSystemParametersInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSystemParametersInfo PROC STDCALL mov r10 , rcx mov eax , 4162 ;syscall db 0Fh , 05h ret NtUserSystemParametersInfo ENDP ; ULONG64 __stdcall NtGdiGetAppClipBox( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetAppClipBox PROC STDCALL mov r10 , rcx mov eax , 4163 ;syscall db 0Fh , 05h ret NtGdiGetAppClipBox ENDP ; ULONG64 __stdcall NtUserGetAsyncKeyState( ULONG64 arg_01 ); NtUserGetAsyncKeyState PROC STDCALL mov r10 , rcx mov eax , 4164 ;syscall db 0Fh , 05h ret NtUserGetAsyncKeyState ENDP ; ULONG64 __stdcall NtUserGetCPD( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetCPD PROC STDCALL mov r10 , rcx mov eax , 4165 ;syscall db 0Fh , 05h ret NtUserGetCPD ENDP ; ULONG64 __stdcall NtUserRemoveProp( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserRemoveProp PROC STDCALL mov r10 , rcx mov eax , 4166 ;syscall db 0Fh , 05h ret NtUserRemoveProp ENDP ; ULONG64 __stdcall NtGdiDoPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiDoPalette PROC STDCALL mov r10 , rcx mov eax , 4167 ;syscall db 0Fh , 05h ret NtGdiDoPalette ENDP ; ULONG64 __stdcall NtGdiPolyPolyDraw( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiPolyPolyDraw PROC STDCALL mov r10 , rcx mov eax , 4168 ;syscall db 0Fh , 05h ret NtGdiPolyPolyDraw ENDP ; ULONG64 __stdcall NtUserSetCapture( ULONG64 arg_01 ); NtUserSetCapture PROC STDCALL mov r10 , rcx mov eax , 4169 ;syscall db 0Fh , 05h ret NtUserSetCapture ENDP ; ULONG64 __stdcall NtUserEnumDisplayMonitors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserEnumDisplayMonitors PROC STDCALL mov r10 , rcx mov eax , 4170 ;syscall db 0Fh , 05h ret NtUserEnumDisplayMonitors ENDP ; ULONG64 __stdcall NtGdiCreateCompatibleBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiCreateCompatibleBitmap PROC STDCALL mov r10 , rcx mov eax , 4171 ;syscall db 0Fh , 05h ret NtGdiCreateCompatibleBitmap ENDP ; ULONG64 __stdcall NtUserSetProp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetProp PROC STDCALL mov r10 , rcx mov eax , 4172 ;syscall db 0Fh , 05h ret NtUserSetProp ENDP ; ULONG64 __stdcall NtGdiGetTextCharsetInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetTextCharsetInfo PROC STDCALL mov r10 , rcx mov eax , 4173 ;syscall db 0Fh , 05h ret NtGdiGetTextCharsetInfo ENDP ; ULONG64 __stdcall NtUserSBGetParms( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSBGetParms PROC STDCALL mov r10 , rcx mov eax , 4174 ;syscall db 0Fh , 05h ret NtUserSBGetParms ENDP ; ULONG64 __stdcall NtUserGetIconInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserGetIconInfo PROC STDCALL mov r10 , rcx mov eax , 4175 ;syscall db 0Fh , 05h ret NtUserGetIconInfo ENDP ; ULONG64 __stdcall NtUserExcludeUpdateRgn( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserExcludeUpdateRgn PROC STDCALL mov r10 , rcx mov eax , 4176 ;syscall db 0Fh , 05h ret NtUserExcludeUpdateRgn ENDP ; ULONG64 __stdcall NtUserSetFocus( ULONG64 arg_01 ); NtUserSetFocus PROC STDCALL mov r10 , rcx mov eax , 4177 ;syscall db 0Fh , 05h ret NtUserSetFocus ENDP ; ULONG64 __stdcall NtGdiExtGetObjectW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiExtGetObjectW PROC STDCALL mov r10 , rcx mov eax , 4178 ;syscall db 0Fh , 05h ret NtGdiExtGetObjectW ENDP ; ULONG64 __stdcall NtUserDeferWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtUserDeferWindowPos PROC STDCALL mov r10 , rcx mov eax , 4179 ;syscall db 0Fh , 05h ret NtUserDeferWindowPos ENDP ; ULONG64 __stdcall NtUserGetUpdateRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetUpdateRect PROC STDCALL mov r10 , rcx mov eax , 4180 ;syscall db 0Fh , 05h ret NtUserGetUpdateRect ENDP ; ULONG64 __stdcall NtGdiCreateCompatibleDC( ULONG64 arg_01 ); NtGdiCreateCompatibleDC PROC STDCALL mov r10 , rcx mov eax , 4181 ;syscall db 0Fh , 05h ret NtGdiCreateCompatibleDC ENDP ; ULONG64 __stdcall NtUserGetClipboardSequenceNumber( ); NtUserGetClipboardSequenceNumber PROC STDCALL mov r10 , rcx mov eax , 4182 ;syscall db 0Fh , 05h ret NtUserGetClipboardSequenceNumber ENDP ; ULONG64 __stdcall NtGdiCreatePen( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiCreatePen PROC STDCALL mov r10 , rcx mov eax , 4183 ;syscall db 0Fh , 05h ret NtGdiCreatePen ENDP ; ULONG64 __stdcall NtUserShowWindow( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserShowWindow PROC STDCALL mov r10 , rcx mov eax , 4184 ;syscall db 0Fh , 05h ret NtUserShowWindow ENDP ; ULONG64 __stdcall NtUserGetKeyboardLayoutList( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetKeyboardLayoutList PROC STDCALL mov r10 , rcx mov eax , 4185 ;syscall db 0Fh , 05h ret NtUserGetKeyboardLayoutList ENDP ; ULONG64 __stdcall NtGdiPatBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiPatBlt PROC STDCALL mov r10 , rcx mov eax , 4186 ;syscall db 0Fh , 05h ret NtGdiPatBlt ENDP ; ULONG64 __stdcall NtUserMapVirtualKeyEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserMapVirtualKeyEx PROC STDCALL mov r10 , rcx mov eax , 4187 ;syscall db 0Fh , 05h ret NtUserMapVirtualKeyEx ENDP ; ULONG64 __stdcall NtUserSetWindowLong( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetWindowLong PROC STDCALL mov r10 , rcx mov eax , 4188 ;syscall db 0Fh , 05h ret NtUserSetWindowLong ENDP ; ULONG64 __stdcall NtGdiHfontCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiHfontCreate PROC STDCALL mov r10 , rcx mov eax , 4189 ;syscall db 0Fh , 05h ret NtGdiHfontCreate ENDP ; ULONG64 __stdcall NtUserMoveWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserMoveWindow PROC STDCALL mov r10 , rcx mov eax , 4190 ;syscall db 0Fh , 05h ret NtUserMoveWindow ENDP ; ULONG64 __stdcall NtUserPostThreadMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserPostThreadMessage PROC STDCALL mov r10 , rcx mov eax , 4191 ;syscall db 0Fh , 05h ret NtUserPostThreadMessage ENDP ; ULONG64 __stdcall NtUserDrawIconEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtUserDrawIconEx PROC STDCALL mov r10 , rcx mov eax , 4192 ;syscall db 0Fh , 05h ret NtUserDrawIconEx ENDP ; ULONG64 __stdcall NtUserGetSystemMenu( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetSystemMenu PROC STDCALL mov r10 , rcx mov eax , 4193 ;syscall db 0Fh , 05h ret NtUserGetSystemMenu ENDP ; ULONG64 __stdcall NtGdiDrawStream( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDrawStream PROC STDCALL mov r10 , rcx mov eax , 4194 ;syscall db 0Fh , 05h ret NtGdiDrawStream ENDP ; ULONG64 __stdcall NtUserInternalGetWindowText( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserInternalGetWindowText PROC STDCALL mov r10 , rcx mov eax , 4195 ;syscall db 0Fh , 05h ret NtUserInternalGetWindowText ENDP ; ULONG64 __stdcall NtUserGetWindowDC( ULONG64 arg_01 ); NtUserGetWindowDC PROC STDCALL mov r10 , rcx mov eax , 4196 ;syscall db 0Fh , 05h ret NtUserGetWindowDC ENDP ; ULONG64 __stdcall NtGdiD3dDrawPrimitives2( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiD3dDrawPrimitives2 PROC STDCALL mov r10 , rcx mov eax , 4197 ;syscall db 0Fh , 05h ret NtGdiD3dDrawPrimitives2 ENDP ; ULONG64 __stdcall NtGdiInvertRgn( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiInvertRgn PROC STDCALL mov r10 , rcx mov eax , 4198 ;syscall db 0Fh , 05h ret NtGdiInvertRgn ENDP ; ULONG64 __stdcall NtGdiGetRgnBox( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetRgnBox PROC STDCALL mov r10 , rcx mov eax , 4199 ;syscall db 0Fh , 05h ret NtGdiGetRgnBox ENDP ; ULONG64 __stdcall NtGdiGetAndSetDCDword( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiGetAndSetDCDword PROC STDCALL mov r10 , rcx mov eax , 4200 ;syscall db 0Fh , 05h ret NtGdiGetAndSetDCDword ENDP ; ULONG64 __stdcall NtGdiMaskBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 ); NtGdiMaskBlt PROC STDCALL mov r10 , rcx mov eax , 4201 ;syscall db 0Fh , 05h ret NtGdiMaskBlt ENDP ; ULONG64 __stdcall NtGdiGetWidthTable( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiGetWidthTable PROC STDCALL mov r10 , rcx mov eax , 4202 ;syscall db 0Fh , 05h ret NtGdiGetWidthTable ENDP ; ULONG64 __stdcall NtUserScrollDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtUserScrollDC PROC STDCALL mov r10 , rcx mov eax , 4203 ;syscall db 0Fh , 05h ret NtUserScrollDC ENDP ; ULONG64 __stdcall NtUserGetObjectInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserGetObjectInformation PROC STDCALL mov r10 , rcx mov eax , 4204 ;syscall db 0Fh , 05h ret NtUserGetObjectInformation ENDP ; ULONG64 __stdcall NtGdiCreateBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiCreateBitmap PROC STDCALL mov r10 , rcx mov eax , 4205 ;syscall db 0Fh , 05h ret NtGdiCreateBitmap ENDP ; ULONG64 __stdcall NtUserFindWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserFindWindowEx PROC STDCALL mov r10 , rcx mov eax , 4206 ;syscall db 0Fh , 05h ret NtUserFindWindowEx ENDP ; ULONG64 __stdcall NtGdiPolyPatBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiPolyPatBlt PROC STDCALL mov r10 , rcx mov eax , 4207 ;syscall db 0Fh , 05h ret NtGdiPolyPatBlt ENDP ; ULONG64 __stdcall NtUserUnhookWindowsHookEx( ULONG64 arg_01 ); NtUserUnhookWindowsHookEx PROC STDCALL mov r10 , rcx mov eax , 4208 ;syscall db 0Fh , 05h ret NtUserUnhookWindowsHookEx ENDP ; ULONG64 __stdcall NtGdiGetNearestColor( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetNearestColor PROC STDCALL mov r10 , rcx mov eax , 4209 ;syscall db 0Fh , 05h ret NtGdiGetNearestColor ENDP ; ULONG64 __stdcall NtGdiTransformPoints( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiTransformPoints PROC STDCALL mov r10 , rcx mov eax , 4210 ;syscall db 0Fh , 05h ret NtGdiTransformPoints ENDP ; ULONG64 __stdcall NtGdiGetDCPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetDCPoint PROC STDCALL mov r10 , rcx mov eax , 4211 ;syscall db 0Fh , 05h ret NtGdiGetDCPoint ENDP ; ULONG64 __stdcall NtGdiCreateDIBBrush( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiCreateDIBBrush PROC STDCALL mov r10 , rcx mov eax , 4212 ;syscall db 0Fh , 05h ret NtGdiCreateDIBBrush ENDP ; ULONG64 __stdcall NtGdiGetTextMetricsW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetTextMetricsW PROC STDCALL mov r10 , rcx mov eax , 4213 ;syscall db 0Fh , 05h ret NtGdiGetTextMetricsW ENDP ; ULONG64 __stdcall NtUserCreateWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 ); NtUserCreateWindowEx PROC STDCALL mov r10 , rcx mov eax , 4214 ;syscall db 0Fh , 05h ret NtUserCreateWindowEx ENDP ; ULONG64 __stdcall NtUserSetParent( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetParent PROC STDCALL mov r10 , rcx mov eax , 4215 ;syscall db 0Fh , 05h ret NtUserSetParent ENDP ; ULONG64 __stdcall NtUserGetKeyboardState( ULONG64 arg_01 ); NtUserGetKeyboardState PROC STDCALL mov r10 , rcx mov eax , 4216 ;syscall db 0Fh , 05h ret NtUserGetKeyboardState ENDP ; ULONG64 __stdcall NtUserToUnicodeEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtUserToUnicodeEx PROC STDCALL mov r10 , rcx mov eax , 4217 ;syscall db 0Fh , 05h ret NtUserToUnicodeEx ENDP ; ULONG64 __stdcall NtUserGetControlBrush( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetControlBrush PROC STDCALL mov r10 , rcx mov eax , 4218 ;syscall db 0Fh , 05h ret NtUserGetControlBrush ENDP ; ULONG64 __stdcall NtUserGetClassName( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetClassName PROC STDCALL mov r10 , rcx mov eax , 4219 ;syscall db 0Fh , 05h ret NtUserGetClassName ENDP ; ULONG64 __stdcall NtGdiAlphaBlend( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); NtGdiAlphaBlend PROC STDCALL mov r10 , rcx mov eax , 4220 ;syscall db 0Fh , 05h ret NtGdiAlphaBlend ENDP ; ULONG64 __stdcall NtGdiDdBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdBlt PROC STDCALL mov r10 , rcx mov eax , 4221 ;syscall db 0Fh , 05h ret NtGdiDdBlt ENDP ; ULONG64 __stdcall NtGdiOffsetRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiOffsetRgn PROC STDCALL mov r10 , rcx mov eax , 4222 ;syscall db 0Fh , 05h ret NtGdiOffsetRgn ENDP ; ULONG64 __stdcall NtUserDefSetText( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserDefSetText PROC STDCALL mov r10 , rcx mov eax , 4223 ;syscall db 0Fh , 05h ret NtUserDefSetText ENDP ; ULONG64 __stdcall NtGdiGetTextFaceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiGetTextFaceW PROC STDCALL mov r10 , rcx mov eax , 4224 ;syscall db 0Fh , 05h ret NtGdiGetTextFaceW ENDP ; ULONG64 __stdcall NtGdiStretchDIBitsInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 ); NtGdiStretchDIBitsInternal PROC STDCALL mov r10 , rcx mov eax , 4225 ;syscall db 0Fh , 05h ret NtGdiStretchDIBitsInternal ENDP ; ULONG64 __stdcall NtUserSendInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSendInput PROC STDCALL mov r10 , rcx mov eax , 4226 ;syscall db 0Fh , 05h ret NtUserSendInput ENDP ; ULONG64 __stdcall NtUserGetThreadDesktop( ULONG64 arg_01 ); NtUserGetThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4227 ;syscall db 0Fh , 05h ret NtUserGetThreadDesktop ENDP ; ULONG64 __stdcall NtGdiCreateRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiCreateRectRgn PROC STDCALL mov r10 , rcx mov eax , 4228 ;syscall db 0Fh , 05h ret NtGdiCreateRectRgn ENDP ; ULONG64 __stdcall NtGdiGetDIBitsInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); NtGdiGetDIBitsInternal PROC STDCALL mov r10 , rcx mov eax , 4229 ;syscall db 0Fh , 05h ret NtGdiGetDIBitsInternal ENDP ; ULONG64 __stdcall NtUserGetUpdateRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetUpdateRgn PROC STDCALL mov r10 , rcx mov eax , 4230 ;syscall db 0Fh , 05h ret NtUserGetUpdateRgn ENDP ; ULONG64 __stdcall NtGdiDeleteClientObj( ULONG64 arg_01 ); NtGdiDeleteClientObj PROC STDCALL mov r10 , rcx mov eax , 4231 ;syscall db 0Fh , 05h ret NtGdiDeleteClientObj ENDP ; ULONG64 __stdcall NtUserGetIconSize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetIconSize PROC STDCALL mov r10 , rcx mov eax , 4232 ;syscall db 0Fh , 05h ret NtUserGetIconSize ENDP ; ULONG64 __stdcall NtUserFillWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserFillWindow PROC STDCALL mov r10 , rcx mov eax , 4233 ;syscall db 0Fh , 05h ret NtUserFillWindow ENDP ; ULONG64 __stdcall NtGdiExtCreateRegion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiExtCreateRegion PROC STDCALL mov r10 , rcx mov eax , 4234 ;syscall db 0Fh , 05h ret NtGdiExtCreateRegion ENDP ; ULONG64 __stdcall NtGdiComputeXformCoefficients( ULONG64 arg_01 ); NtGdiComputeXformCoefficients PROC STDCALL mov r10 , rcx mov eax , 4235 ;syscall db 0Fh , 05h ret NtGdiComputeXformCoefficients ENDP ; ULONG64 __stdcall NtUserSetWindowsHookEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserSetWindowsHookEx PROC STDCALL mov r10 , rcx mov eax , 4236 ;syscall db 0Fh , 05h ret NtUserSetWindowsHookEx ENDP ; ULONG64 __stdcall NtUserNotifyProcessCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserNotifyProcessCreate PROC STDCALL mov r10 , rcx mov eax , 4237 ;syscall db 0Fh , 05h ret NtUserNotifyProcessCreate ENDP ; ULONG64 __stdcall NtGdiUnrealizeObject( ULONG64 arg_01 ); NtGdiUnrealizeObject PROC STDCALL mov r10 , rcx mov eax , 4238 ;syscall db 0Fh , 05h ret NtGdiUnrealizeObject ENDP ; ULONG64 __stdcall NtUserGetTitleBarInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetTitleBarInfo PROC STDCALL mov r10 , rcx mov eax , 4239 ;syscall db 0Fh , 05h ret NtUserGetTitleBarInfo ENDP ; ULONG64 __stdcall NtGdiRectangle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiRectangle PROC STDCALL mov r10 , rcx mov eax , 4240 ;syscall db 0Fh , 05h ret NtGdiRectangle ENDP ; ULONG64 __stdcall NtUserSetThreadDesktop( ULONG64 arg_01 ); NtUserSetThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4241 ;syscall db 0Fh , 05h ret NtUserSetThreadDesktop ENDP ; ULONG64 __stdcall NtUserGetDCEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetDCEx PROC STDCALL mov r10 , rcx mov eax , 4242 ;syscall db 0Fh , 05h ret NtUserGetDCEx ENDP ; ULONG64 __stdcall NtUserGetScrollBarInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetScrollBarInfo PROC STDCALL mov r10 , rcx mov eax , 4243 ;syscall db 0Fh , 05h ret NtUserGetScrollBarInfo ENDP ; ULONG64 __stdcall NtGdiGetTextExtent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiGetTextExtent PROC STDCALL mov r10 , rcx mov eax , 4244 ;syscall db 0Fh , 05h ret NtGdiGetTextExtent ENDP ; ULONG64 __stdcall NtUserSetWindowFNID( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetWindowFNID PROC STDCALL mov r10 , rcx mov eax , 4245 ;syscall db 0Fh , 05h ret NtUserSetWindowFNID ENDP ; ULONG64 __stdcall NtGdiSetLayout( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetLayout PROC STDCALL mov r10 , rcx mov eax , 4246 ;syscall db 0Fh , 05h ret NtGdiSetLayout ENDP ; ULONG64 __stdcall NtUserCalcMenuBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserCalcMenuBar PROC STDCALL mov r10 , rcx mov eax , 4247 ;syscall db 0Fh , 05h ret NtUserCalcMenuBar ENDP ; ULONG64 __stdcall NtUserThunkedMenuItemInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserThunkedMenuItemInfo PROC STDCALL mov r10 , rcx mov eax , 4248 ;syscall db 0Fh , 05h ret NtUserThunkedMenuItemInfo ENDP ; ULONG64 __stdcall NtGdiExcludeClipRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiExcludeClipRect PROC STDCALL mov r10 , rcx mov eax , 4249 ;syscall db 0Fh , 05h ret NtGdiExcludeClipRect ENDP ; ULONG64 __stdcall NtGdiCreateDIBSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); NtGdiCreateDIBSection PROC STDCALL mov r10 , rcx mov eax , 4250 ;syscall db 0Fh , 05h ret NtGdiCreateDIBSection ENDP ; ULONG64 __stdcall NtGdiGetDCforBitmap( ULONG64 arg_01 ); NtGdiGetDCforBitmap PROC STDCALL mov r10 , rcx mov eax , 4251 ;syscall db 0Fh , 05h ret NtGdiGetDCforBitmap ENDP ; ULONG64 __stdcall NtUserDestroyCursor( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserDestroyCursor PROC STDCALL mov r10 , rcx mov eax , 4252 ;syscall db 0Fh , 05h ret NtUserDestroyCursor ENDP ; ULONG64 __stdcall NtUserDestroyWindow( ULONG64 arg_01 ); NtUserDestroyWindow PROC STDCALL mov r10 , rcx mov eax , 4253 ;syscall db 0Fh , 05h ret NtUserDestroyWindow ENDP ; ULONG64 __stdcall NtUserCallHwndParam( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserCallHwndParam PROC STDCALL mov r10 , rcx mov eax , 4254 ;syscall db 0Fh , 05h ret NtUserCallHwndParam ENDP ; ULONG64 __stdcall NtGdiCreateDIBitmapInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiCreateDIBitmapInternal PROC STDCALL mov r10 , rcx mov eax , 4255 ;syscall db 0Fh , 05h ret NtGdiCreateDIBitmapInternal ENDP ; ULONG64 __stdcall NtUserOpenWindowStation( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserOpenWindowStation PROC STDCALL mov r10 , rcx mov eax , 4256 ;syscall db 0Fh , 05h ret NtUserOpenWindowStation ENDP ; ULONG64 __stdcall NtGdiDdDeleteSurfaceObject( ULONG64 arg_01 ); NtGdiDdDeleteSurfaceObject PROC STDCALL mov r10 , rcx mov eax , 4257 ;syscall db 0Fh , 05h ret NtGdiDdDeleteSurfaceObject ENDP ; ULONG64 __stdcall NtGdiDdCanCreateSurface( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdCanCreateSurface PROC STDCALL mov r10 , rcx mov eax , 4258 ;syscall db 0Fh , 05h ret NtGdiDdCanCreateSurface ENDP ; ULONG64 __stdcall NtGdiDdCreateSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiDdCreateSurface PROC STDCALL mov r10 , rcx mov eax , 4259 ;syscall db 0Fh , 05h ret NtGdiDdCreateSurface ENDP ; ULONG64 __stdcall NtUserSetCursorIconData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetCursorIconData PROC STDCALL mov r10 , rcx mov eax , 4260 ;syscall db 0Fh , 05h ret NtUserSetCursorIconData ENDP ; ULONG64 __stdcall NtGdiDdDestroySurface( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdDestroySurface PROC STDCALL mov r10 , rcx mov eax , 4261 ;syscall db 0Fh , 05h ret NtGdiDdDestroySurface ENDP ; ULONG64 __stdcall NtUserCloseDesktop( ULONG64 arg_01 ); NtUserCloseDesktop PROC STDCALL mov r10 , rcx mov eax , 4262 ;syscall db 0Fh , 05h ret NtUserCloseDesktop ENDP ; ULONG64 __stdcall NtUserOpenDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserOpenDesktop PROC STDCALL mov r10 , rcx mov eax , 4263 ;syscall db 0Fh , 05h ret NtUserOpenDesktop ENDP ; ULONG64 __stdcall NtUserSetProcessWindowStation( ULONG64 arg_01 ); NtUserSetProcessWindowStation PROC STDCALL mov r10 , rcx mov eax , 4264 ;syscall db 0Fh , 05h ret NtUserSetProcessWindowStation ENDP ; ULONG64 __stdcall NtUserGetAtomName( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetAtomName PROC STDCALL mov r10 , rcx mov eax , 4265 ;syscall db 0Fh , 05h ret NtUserGetAtomName ENDP ; ULONG64 __stdcall NtGdiDdResetVisrgn( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdResetVisrgn PROC STDCALL mov r10 , rcx mov eax , 4266 ;syscall db 0Fh , 05h ret NtGdiDdResetVisrgn ENDP ; ULONG64 __stdcall NtGdiExtCreatePen( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiExtCreatePen PROC STDCALL mov r10 , rcx mov eax , 4267 ;syscall db 0Fh , 05h ret NtGdiExtCreatePen ENDP ; ULONG64 __stdcall NtGdiCreatePaletteInternal( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiCreatePaletteInternal PROC STDCALL mov r10 , rcx mov eax , 4268 ;syscall db 0Fh , 05h ret NtGdiCreatePaletteInternal ENDP ; ULONG64 __stdcall NtGdiSetBrushOrg( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiSetBrushOrg PROC STDCALL mov r10 , rcx mov eax , 4269 ;syscall db 0Fh , 05h ret NtGdiSetBrushOrg ENDP ; ULONG64 __stdcall NtUserBuildNameList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserBuildNameList PROC STDCALL mov r10 , rcx mov eax , 4270 ;syscall db 0Fh , 05h ret NtUserBuildNameList ENDP ; ULONG64 __stdcall NtGdiSetPixel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiSetPixel PROC STDCALL mov r10 , rcx mov eax , 4271 ;syscall db 0Fh , 05h ret NtGdiSetPixel ENDP ; ULONG64 __stdcall NtUserRegisterClassExWOW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtUserRegisterClassExWOW PROC STDCALL mov r10 , rcx mov eax , 4272 ;syscall db 0Fh , 05h ret NtUserRegisterClassExWOW ENDP ; ULONG64 __stdcall NtGdiCreatePatternBrushInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiCreatePatternBrushInternal PROC STDCALL mov r10 , rcx mov eax , 4273 ;syscall db 0Fh , 05h ret NtGdiCreatePatternBrushInternal ENDP ; ULONG64 __stdcall NtUserGetAncestor( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetAncestor PROC STDCALL mov r10 , rcx mov eax , 4274 ;syscall db 0Fh , 05h ret NtUserGetAncestor ENDP ; ULONG64 __stdcall NtGdiGetOutlineTextMetricsInternalW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiGetOutlineTextMetricsInternalW PROC STDCALL mov r10 , rcx mov eax , 4275 ;syscall db 0Fh , 05h ret NtGdiGetOutlineTextMetricsInternalW ENDP ; ULONG64 __stdcall NtGdiSetBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4276 ;syscall db 0Fh , 05h ret NtGdiSetBitmapBits ENDP ; ULONG64 __stdcall NtUserCloseWindowStation( ULONG64 arg_01 ); NtUserCloseWindowStation PROC STDCALL mov r10 , rcx mov eax , 4277 ;syscall db 0Fh , 05h ret NtUserCloseWindowStation ENDP ; ULONG64 __stdcall NtUserGetDoubleClickTime( ); NtUserGetDoubleClickTime PROC STDCALL mov r10 , rcx mov eax , 4278 ;syscall db 0Fh , 05h ret NtUserGetDoubleClickTime ENDP ; ULONG64 __stdcall NtUserEnableScrollBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserEnableScrollBar PROC STDCALL mov r10 , rcx mov eax , 4279 ;syscall db 0Fh , 05h ret NtUserEnableScrollBar ENDP ; ULONG64 __stdcall NtGdiCreateSolidBrush( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiCreateSolidBrush PROC STDCALL mov r10 , rcx mov eax , 4280 ;syscall db 0Fh , 05h ret NtGdiCreateSolidBrush ENDP ; ULONG64 __stdcall NtUserGetClassInfoEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserGetClassInfoEx PROC STDCALL mov r10 , rcx mov eax , 4281 ;syscall db 0Fh , 05h ret NtUserGetClassInfoEx ENDP ; ULONG64 __stdcall NtGdiCreateClientObj( ULONG64 arg_01 ); NtGdiCreateClientObj PROC STDCALL mov r10 , rcx mov eax , 4282 ;syscall db 0Fh , 05h ret NtGdiCreateClientObj ENDP ; ULONG64 __stdcall NtUserUnregisterClass( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserUnregisterClass PROC STDCALL mov r10 , rcx mov eax , 4283 ;syscall db 0Fh , 05h ret NtUserUnregisterClass ENDP ; ULONG64 __stdcall NtUserDeleteMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserDeleteMenu PROC STDCALL mov r10 , rcx mov eax , 4284 ;syscall db 0Fh , 05h ret NtUserDeleteMenu ENDP ; ULONG64 __stdcall NtGdiRectInRegion( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiRectInRegion PROC STDCALL mov r10 , rcx mov eax , 4285 ;syscall db 0Fh , 05h ret NtGdiRectInRegion ENDP ; ULONG64 __stdcall NtUserScrollWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtUserScrollWindowEx PROC STDCALL mov r10 , rcx mov eax , 4286 ;syscall db 0Fh , 05h ret NtUserScrollWindowEx ENDP ; ULONG64 __stdcall NtGdiGetPixel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetPixel PROC STDCALL mov r10 , rcx mov eax , 4287 ;syscall db 0Fh , 05h ret NtGdiGetPixel ENDP ; ULONG64 __stdcall NtUserSetClassLong( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetClassLong PROC STDCALL mov r10 , rcx mov eax , 4288 ;syscall db 0Fh , 05h ret NtUserSetClassLong ENDP ; ULONG64 __stdcall NtUserGetMenuBarInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetMenuBarInfo PROC STDCALL mov r10 , rcx mov eax , 4289 ;syscall db 0Fh , 05h ret NtUserGetMenuBarInfo ENDP ; ULONG64 __stdcall NtGdiDdCreateSurfaceEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdCreateSurfaceEx PROC STDCALL mov r10 , rcx mov eax , 4290 ;syscall db 0Fh , 05h ret NtGdiDdCreateSurfaceEx ENDP ; ULONG64 __stdcall NtGdiDdCreateSurfaceObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiDdCreateSurfaceObject PROC STDCALL mov r10 , rcx mov eax , 4291 ;syscall db 0Fh , 05h ret NtGdiDdCreateSurfaceObject ENDP ; ULONG64 __stdcall NtGdiGetNearestPaletteIndex( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetNearestPaletteIndex PROC STDCALL mov r10 , rcx mov eax , 4292 ;syscall db 0Fh , 05h ret NtGdiGetNearestPaletteIndex ENDP ; ULONG64 __stdcall NtGdiDdLockD3D( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdLockD3D PROC STDCALL mov r10 , rcx mov eax , 4293 ;syscall db 0Fh , 05h ret NtGdiDdLockD3D ENDP ; ULONG64 __stdcall NtGdiDdUnlockD3D( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdUnlockD3D PROC STDCALL mov r10 , rcx mov eax , 4294 ;syscall db 0Fh , 05h ret NtGdiDdUnlockD3D ENDP ; ULONG64 __stdcall NtGdiGetCharWidthW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiGetCharWidthW PROC STDCALL mov r10 , rcx mov eax , 4295 ;syscall db 0Fh , 05h ret NtGdiGetCharWidthW ENDP ; ULONG64 __stdcall NtUserInvalidateRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserInvalidateRgn PROC STDCALL mov r10 , rcx mov eax , 4296 ;syscall db 0Fh , 05h ret NtUserInvalidateRgn ENDP ; ULONG64 __stdcall NtUserGetClipboardOwner( ); NtUserGetClipboardOwner PROC STDCALL mov r10 , rcx mov eax , 4297 ;syscall db 0Fh , 05h ret NtUserGetClipboardOwner ENDP ; ULONG64 __stdcall NtUserSetWindowRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetWindowRgn PROC STDCALL mov r10 , rcx mov eax , 4298 ;syscall db 0Fh , 05h ret NtUserSetWindowRgn ENDP ; ULONG64 __stdcall NtUserBitBltSysBmp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtUserBitBltSysBmp PROC STDCALL mov r10 , rcx mov eax , 4299 ;syscall db 0Fh , 05h ret NtUserBitBltSysBmp ENDP ; ULONG64 __stdcall NtGdiGetCharWidthInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetCharWidthInfo PROC STDCALL mov r10 , rcx mov eax , 4300 ;syscall db 0Fh , 05h ret NtGdiGetCharWidthInfo ENDP ; ULONG64 __stdcall NtUserValidateRect( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserValidateRect PROC STDCALL mov r10 , rcx mov eax , 4301 ;syscall db 0Fh , 05h ret NtUserValidateRect ENDP ; ULONG64 __stdcall NtUserCloseClipboard( ); NtUserCloseClipboard PROC STDCALL mov r10 , rcx mov eax , 4302 ;syscall db 0Fh , 05h ret NtUserCloseClipboard ENDP ; ULONG64 __stdcall NtUserOpenClipboard( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserOpenClipboard PROC STDCALL mov r10 , rcx mov eax , 4303 ;syscall db 0Fh , 05h ret NtUserOpenClipboard ENDP ; ULONG64 __stdcall NtGdiGetStockObject( ULONG64 arg_01 ); NtGdiGetStockObject PROC STDCALL mov r10 , rcx mov eax , 4304 ;syscall db 0Fh , 05h ret NtGdiGetStockObject ENDP ; ULONG64 __stdcall NtUserSetClipboardData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetClipboardData PROC STDCALL mov r10 , rcx mov eax , 4305 ;syscall db 0Fh , 05h ret NtUserSetClipboardData ENDP ; ULONG64 __stdcall NtUserEnableMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserEnableMenuItem PROC STDCALL mov r10 , rcx mov eax , 4306 ;syscall db 0Fh , 05h ret NtUserEnableMenuItem ENDP ; ULONG64 __stdcall NtUserAlterWindowStyle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserAlterWindowStyle PROC STDCALL mov r10 , rcx mov eax , 4307 ;syscall db 0Fh , 05h ret NtUserAlterWindowStyle ENDP ; ULONG64 __stdcall NtGdiFillRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiFillRgn PROC STDCALL mov r10 , rcx mov eax , 4308 ;syscall db 0Fh , 05h ret NtGdiFillRgn ENDP ; ULONG64 __stdcall NtUserGetWindowPlacement( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetWindowPlacement PROC STDCALL mov r10 , rcx mov eax , 4309 ;syscall db 0Fh , 05h ret NtUserGetWindowPlacement ENDP ; ULONG64 __stdcall NtGdiModifyWorldTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiModifyWorldTransform PROC STDCALL mov r10 , rcx mov eax , 4310 ;syscall db 0Fh , 05h ret NtGdiModifyWorldTransform ENDP ; ULONG64 __stdcall NtGdiGetFontData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiGetFontData PROC STDCALL mov r10 , rcx mov eax , 4311 ;syscall db 0Fh , 05h ret NtGdiGetFontData ENDP ; ULONG64 __stdcall NtUserGetOpenClipboardWindow( ); NtUserGetOpenClipboardWindow PROC STDCALL mov r10 , rcx mov eax , 4312 ;syscall db 0Fh , 05h ret NtUserGetOpenClipboardWindow ENDP ; ULONG64 __stdcall NtUserSetThreadState( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetThreadState PROC STDCALL mov r10 , rcx mov eax , 4313 ;syscall db 0Fh , 05h ret NtUserSetThreadState ENDP ; ULONG64 __stdcall NtGdiOpenDCW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiOpenDCW PROC STDCALL mov r10 , rcx mov eax , 4314 ;syscall db 0Fh , 05h ret NtGdiOpenDCW ENDP ; ULONG64 __stdcall NtUserTrackMouseEvent( ULONG64 arg_01 ); NtUserTrackMouseEvent PROC STDCALL mov r10 , rcx mov eax , 4315 ;syscall db 0Fh , 05h ret NtUserTrackMouseEvent ENDP ; ULONG64 __stdcall NtGdiGetTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetTransform PROC STDCALL mov r10 , rcx mov eax , 4316 ;syscall db 0Fh , 05h ret NtGdiGetTransform ENDP ; ULONG64 __stdcall NtUserDestroyMenu( ULONG64 arg_01 ); NtUserDestroyMenu PROC STDCALL mov r10 , rcx mov eax , 4317 ;syscall db 0Fh , 05h ret NtUserDestroyMenu ENDP ; ULONG64 __stdcall NtGdiGetBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4318 ;syscall db 0Fh , 05h ret NtGdiGetBitmapBits ENDP ; ULONG64 __stdcall NtUserConsoleControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserConsoleControl PROC STDCALL mov r10 , rcx mov eax , 4319 ;syscall db 0Fh , 05h ret NtUserConsoleControl ENDP ; ULONG64 __stdcall NtUserSetActiveWindow( ULONG64 arg_01 ); NtUserSetActiveWindow PROC STDCALL mov r10 , rcx mov eax , 4320 ;syscall db 0Fh , 05h ret NtUserSetActiveWindow ENDP ; ULONG64 __stdcall NtUserSetInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetInformationThread PROC STDCALL mov r10 , rcx mov eax , 4321 ;syscall db 0Fh , 05h ret NtUserSetInformationThread ENDP ; ULONG64 __stdcall NtUserSetWindowPlacement( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetWindowPlacement PROC STDCALL mov r10 , rcx mov eax , 4322 ;syscall db 0Fh , 05h ret NtUserSetWindowPlacement ENDP ; ULONG64 __stdcall NtUserGetControlColor( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetControlColor PROC STDCALL mov r10 , rcx mov eax , 4323 ;syscall db 0Fh , 05h ret NtUserGetControlColor ENDP ; ULONG64 __stdcall NtGdiSetMetaRgn( ULONG64 arg_01 ); NtGdiSetMetaRgn PROC STDCALL mov r10 , rcx mov eax , 4324 ;syscall db 0Fh , 05h ret NtGdiSetMetaRgn ENDP ; ULONG64 __stdcall NtGdiSetMiterLimit( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetMiterLimit PROC STDCALL mov r10 , rcx mov eax , 4325 ;syscall db 0Fh , 05h ret NtGdiSetMiterLimit ENDP ; ULONG64 __stdcall NtGdiSetVirtualResolution( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiSetVirtualResolution PROC STDCALL mov r10 , rcx mov eax , 4326 ;syscall db 0Fh , 05h ret NtGdiSetVirtualResolution ENDP ; ULONG64 __stdcall NtGdiGetRasterizerCaps( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetRasterizerCaps PROC STDCALL mov r10 , rcx mov eax , 4327 ;syscall db 0Fh , 05h ret NtGdiGetRasterizerCaps ENDP ; ULONG64 __stdcall NtUserSetWindowWord( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetWindowWord PROC STDCALL mov r10 , rcx mov eax , 4328 ;syscall db 0Fh , 05h ret NtUserSetWindowWord ENDP ; ULONG64 __stdcall NtUserGetClipboardFormatName( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetClipboardFormatName PROC STDCALL mov r10 , rcx mov eax , 4329 ;syscall db 0Fh , 05h ret NtUserGetClipboardFormatName ENDP ; ULONG64 __stdcall NtUserRealInternalGetMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserRealInternalGetMessage PROC STDCALL mov r10 , rcx mov eax , 4330 ;syscall db 0Fh , 05h ret NtUserRealInternalGetMessage ENDP ; ULONG64 __stdcall NtUserCreateLocalMemHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserCreateLocalMemHandle PROC STDCALL mov r10 , rcx mov eax , 4331 ;syscall db 0Fh , 05h ret NtUserCreateLocalMemHandle ENDP ; ULONG64 __stdcall NtUserAttachThreadInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserAttachThreadInput PROC STDCALL mov r10 , rcx mov eax , 4332 ;syscall db 0Fh , 05h ret NtUserAttachThreadInput ENDP ; ULONG64 __stdcall NtGdiCreateHalftonePalette( ULONG64 arg_01 ); NtGdiCreateHalftonePalette PROC STDCALL mov r10 , rcx mov eax , 4333 ;syscall db 0Fh , 05h ret NtGdiCreateHalftonePalette ENDP ; ULONG64 __stdcall NtUserPaintMenuBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserPaintMenuBar PROC STDCALL mov r10 , rcx mov eax , 4334 ;syscall db 0Fh , 05h ret NtUserPaintMenuBar ENDP ; ULONG64 __stdcall NtUserSetKeyboardState( ULONG64 arg_01 ); NtUserSetKeyboardState PROC STDCALL mov r10 , rcx mov eax , 4335 ;syscall db 0Fh , 05h ret NtUserSetKeyboardState ENDP ; ULONG64 __stdcall NtGdiCombineTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiCombineTransform PROC STDCALL mov r10 , rcx mov eax , 4336 ;syscall db 0Fh , 05h ret NtGdiCombineTransform ENDP ; ULONG64 __stdcall NtUserCreateAcceleratorTable( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserCreateAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4337 ;syscall db 0Fh , 05h ret NtUserCreateAcceleratorTable ENDP ; ULONG64 __stdcall NtUserGetCursorFrameInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetCursorFrameInfo PROC STDCALL mov r10 , rcx mov eax , 4338 ;syscall db 0Fh , 05h ret NtUserGetCursorFrameInfo ENDP ; ULONG64 __stdcall NtUserGetAltTabInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserGetAltTabInfo PROC STDCALL mov r10 , rcx mov eax , 4339 ;syscall db 0Fh , 05h ret NtUserGetAltTabInfo ENDP ; ULONG64 __stdcall NtUserGetCaretBlinkTime( ); NtUserGetCaretBlinkTime PROC STDCALL mov r10 , rcx mov eax , 4340 ;syscall db 0Fh , 05h ret NtUserGetCaretBlinkTime ENDP ; ULONG64 __stdcall NtGdiQueryFontAssocInfo( ULONG64 arg_01 ); NtGdiQueryFontAssocInfo PROC STDCALL mov r10 , rcx mov eax , 4341 ;syscall db 0Fh , 05h ret NtGdiQueryFontAssocInfo ENDP ; ULONG64 __stdcall NtUserProcessConnect( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserProcessConnect PROC STDCALL mov r10 , rcx mov eax , 4342 ;syscall db 0Fh , 05h ret NtUserProcessConnect ENDP ; ULONG64 __stdcall NtUserEnumDisplayDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserEnumDisplayDevices PROC STDCALL mov r10 , rcx mov eax , 4343 ;syscall db 0Fh , 05h ret NtUserEnumDisplayDevices ENDP ; ULONG64 __stdcall NtUserEmptyClipboard( ); NtUserEmptyClipboard PROC STDCALL mov r10 , rcx mov eax , 4344 ;syscall db 0Fh , 05h ret NtUserEmptyClipboard ENDP ; ULONG64 __stdcall NtUserGetClipboardData( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetClipboardData PROC STDCALL mov r10 , rcx mov eax , 4345 ;syscall db 0Fh , 05h ret NtUserGetClipboardData ENDP ; ULONG64 __stdcall NtUserRemoveMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserRemoveMenu PROC STDCALL mov r10 , rcx mov eax , 4346 ;syscall db 0Fh , 05h ret NtUserRemoveMenu ENDP ; ULONG64 __stdcall NtGdiSetBoundsRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetBoundsRect PROC STDCALL mov r10 , rcx mov eax , 4347 ;syscall db 0Fh , 05h ret NtGdiSetBoundsRect ENDP ; ULONG64 __stdcall NtGdiGetBitmapDimension( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetBitmapDimension PROC STDCALL mov r10 , rcx mov eax , 4348 ;syscall db 0Fh , 05h ret NtGdiGetBitmapDimension ENDP ; ULONG64 __stdcall NtUserConvertMemHandle( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserConvertMemHandle PROC STDCALL mov r10 , rcx mov eax , 4349 ;syscall db 0Fh , 05h ret NtUserConvertMemHandle ENDP ; ULONG64 __stdcall NtUserDestroyAcceleratorTable( ULONG64 arg_01 ); NtUserDestroyAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4350 ;syscall db 0Fh , 05h ret NtUserDestroyAcceleratorTable ENDP ; ULONG64 __stdcall NtUserGetGUIThreadInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetGUIThreadInfo PROC STDCALL mov r10 , rcx mov eax , 4351 ;syscall db 0Fh , 05h ret NtUserGetGUIThreadInfo ENDP ; ULONG64 __stdcall NtGdiCloseFigure( ULONG64 arg_01 ); NtGdiCloseFigure PROC STDCALL mov r10 , rcx mov eax , 4352 ;syscall db 0Fh , 05h ret NtGdiCloseFigure ENDP ; ULONG64 __stdcall NtUserSetWindowsHookAW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetWindowsHookAW PROC STDCALL mov r10 , rcx mov eax , 4353 ;syscall db 0Fh , 05h ret NtUserSetWindowsHookAW ENDP ; ULONG64 __stdcall NtUserSetMenuDefaultItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetMenuDefaultItem PROC STDCALL mov r10 , rcx mov eax , 4354 ;syscall db 0Fh , 05h ret NtUserSetMenuDefaultItem ENDP ; ULONG64 __stdcall NtUserCheckMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserCheckMenuItem PROC STDCALL mov r10 , rcx mov eax , 4355 ;syscall db 0Fh , 05h ret NtUserCheckMenuItem ENDP ; ULONG64 __stdcall NtUserSetWinEventHook( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtUserSetWinEventHook PROC STDCALL mov r10 , rcx mov eax , 4356 ;syscall db 0Fh , 05h ret NtUserSetWinEventHook ENDP ; ULONG64 __stdcall NtUserUnhookWinEvent( ULONG64 arg_01 ); NtUserUnhookWinEvent PROC STDCALL mov r10 , rcx mov eax , 4357 ;syscall db 0Fh , 05h ret NtUserUnhookWinEvent ENDP ; ULONG64 __stdcall NtUserLockWindowUpdate( ULONG64 arg_01 ); NtUserLockWindowUpdate PROC STDCALL mov r10 , rcx mov eax , 4358 ;syscall db 0Fh , 05h ret NtUserLockWindowUpdate ENDP ; ULONG64 __stdcall NtUserSetSystemMenu( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetSystemMenu PROC STDCALL mov r10 , rcx mov eax , 4359 ;syscall db 0Fh , 05h ret NtUserSetSystemMenu ENDP ; ULONG64 __stdcall NtUserThunkedMenuInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserThunkedMenuInfo PROC STDCALL mov r10 , rcx mov eax , 4360 ;syscall db 0Fh , 05h ret NtUserThunkedMenuInfo ENDP ; ULONG64 __stdcall NtGdiBeginPath( ULONG64 arg_01 ); NtGdiBeginPath PROC STDCALL mov r10 , rcx mov eax , 4361 ;syscall db 0Fh , 05h ret NtGdiBeginPath ENDP ; ULONG64 __stdcall NtGdiEndPath( ULONG64 arg_01 ); NtGdiEndPath PROC STDCALL mov r10 , rcx mov eax , 4362 ;syscall db 0Fh , 05h ret NtGdiEndPath ENDP ; ULONG64 __stdcall NtGdiFillPath( ULONG64 arg_01 ); NtGdiFillPath PROC STDCALL mov r10 , rcx mov eax , 4363 ;syscall db 0Fh , 05h ret NtGdiFillPath ENDP ; ULONG64 __stdcall NtUserCallHwnd( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserCallHwnd PROC STDCALL mov r10 , rcx mov eax , 4364 ;syscall db 0Fh , 05h ret NtUserCallHwnd ENDP ; ULONG64 __stdcall NtUserDdeInitialize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserDdeInitialize PROC STDCALL mov r10 , rcx mov eax , 4365 ;syscall db 0Fh , 05h ret NtUserDdeInitialize ENDP ; ULONG64 __stdcall NtUserModifyUserStartupInfoFlags( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserModifyUserStartupInfoFlags PROC STDCALL mov r10 , rcx mov eax , 4366 ;syscall db 0Fh , 05h ret NtUserModifyUserStartupInfoFlags ENDP ; ULONG64 __stdcall NtUserCountClipboardFormats( ); NtUserCountClipboardFormats PROC STDCALL mov r10 , rcx mov eax , 4367 ;syscall db 0Fh , 05h ret NtUserCountClipboardFormats ENDP ; ULONG64 __stdcall NtGdiAddFontMemResourceEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiAddFontMemResourceEx PROC STDCALL mov r10 , rcx mov eax , 4368 ;syscall db 0Fh , 05h ret NtGdiAddFontMemResourceEx ENDP ; ULONG64 __stdcall NtGdiEqualRgn( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiEqualRgn PROC STDCALL mov r10 , rcx mov eax , 4369 ;syscall db 0Fh , 05h ret NtGdiEqualRgn ENDP ; ULONG64 __stdcall NtGdiGetSystemPaletteUse( ULONG64 arg_01 ); NtGdiGetSystemPaletteUse PROC STDCALL mov r10 , rcx mov eax , 4370 ;syscall db 0Fh , 05h ret NtGdiGetSystemPaletteUse ENDP ; ULONG64 __stdcall NtGdiRemoveFontMemResourceEx( ULONG64 arg_01 ); NtGdiRemoveFontMemResourceEx PROC STDCALL mov r10 , rcx mov eax , 4371 ;syscall db 0Fh , 05h ret NtGdiRemoveFontMemResourceEx ENDP ; ULONG64 __stdcall NtUserEnumDisplaySettings( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserEnumDisplaySettings PROC STDCALL mov r10 , rcx mov eax , 4372 ;syscall db 0Fh , 05h ret NtUserEnumDisplaySettings ENDP ; ULONG64 __stdcall NtUserPaintDesktop( ULONG64 arg_01 ); NtUserPaintDesktop PROC STDCALL mov r10 , rcx mov eax , 4373 ;syscall db 0Fh , 05h ret NtUserPaintDesktop ENDP ; ULONG64 __stdcall NtGdiExtEscape( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiExtEscape PROC STDCALL mov r10 , rcx mov eax , 4374 ;syscall db 0Fh , 05h ret NtGdiExtEscape ENDP ; ULONG64 __stdcall NtGdiSetBitmapDimension( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiSetBitmapDimension PROC STDCALL mov r10 , rcx mov eax , 4375 ;syscall db 0Fh , 05h ret NtGdiSetBitmapDimension ENDP ; ULONG64 __stdcall NtGdiSetFontEnumeration( ULONG64 arg_01 ); NtGdiSetFontEnumeration PROC STDCALL mov r10 , rcx mov eax , 4376 ;syscall db 0Fh , 05h ret NtGdiSetFontEnumeration ENDP ; ULONG64 __stdcall NtUserChangeClipboardChain( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserChangeClipboardChain PROC STDCALL mov r10 , rcx mov eax , 4377 ;syscall db 0Fh , 05h ret NtUserChangeClipboardChain ENDP ; ULONG64 __stdcall NtUserSetClipboardViewer( ULONG64 arg_01 ); NtUserSetClipboardViewer PROC STDCALL mov r10 , rcx mov eax , 4378 ;syscall db 0Fh , 05h ret NtUserSetClipboardViewer ENDP ; ULONG64 __stdcall NtUserShowWindowAsync( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserShowWindowAsync PROC STDCALL mov r10 , rcx mov eax , 4379 ;syscall db 0Fh , 05h ret NtUserShowWindowAsync ENDP ; ULONG64 __stdcall NtGdiCreateColorSpace( ULONG64 arg_01 ); NtGdiCreateColorSpace PROC STDCALL mov r10 , rcx mov eax , 4380 ;syscall db 0Fh , 05h ret NtGdiCreateColorSpace ENDP ; ULONG64 __stdcall NtGdiDeleteColorSpace( ULONG64 arg_01 ); NtGdiDeleteColorSpace PROC STDCALL mov r10 , rcx mov eax , 4381 ;syscall db 0Fh , 05h ret NtGdiDeleteColorSpace ENDP ; ULONG64 __stdcall NtUserActivateKeyboardLayout( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserActivateKeyboardLayout PROC STDCALL mov r10 , rcx mov eax , 4382 ;syscall db 0Fh , 05h ret NtUserActivateKeyboardLayout ENDP ; ULONG64 __stdcall NtGdiAbortDoc( ULONG64 arg_01 ); NtGdiAbortDoc PROC STDCALL mov r10 , rcx mov eax , 4383 ;syscall db 0Fh , 05h ret NtGdiAbortDoc ENDP ; ULONG64 __stdcall NtGdiAbortPath( ULONG64 arg_01 ); NtGdiAbortPath PROC STDCALL mov r10 , rcx mov eax , 4384 ;syscall db 0Fh , 05h ret NtGdiAbortPath ENDP ; ULONG64 __stdcall NtGdiAddEmbFontToDC( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiAddEmbFontToDC PROC STDCALL mov r10 , rcx mov eax , 4385 ;syscall db 0Fh , 05h ret NtGdiAddEmbFontToDC ENDP ; ULONG64 __stdcall NtGdiAddFontResourceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiAddFontResourceW PROC STDCALL mov r10 , rcx mov eax , 4386 ;syscall db 0Fh , 05h ret NtGdiAddFontResourceW ENDP ; ULONG64 __stdcall NtGdiAddRemoteFontToDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiAddRemoteFontToDC PROC STDCALL mov r10 , rcx mov eax , 4387 ;syscall db 0Fh , 05h ret NtGdiAddRemoteFontToDC ENDP ; ULONG64 __stdcall NtGdiAddRemoteMMInstanceToDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiAddRemoteMMInstanceToDC PROC STDCALL mov r10 , rcx mov eax , 4388 ;syscall db 0Fh , 05h ret NtGdiAddRemoteMMInstanceToDC ENDP ; ULONG64 __stdcall NtGdiAngleArc( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiAngleArc PROC STDCALL mov r10 , rcx mov eax , 4389 ;syscall db 0Fh , 05h ret NtGdiAngleArc ENDP ; ULONG64 __stdcall NtGdiAnyLinkedFonts( ); NtGdiAnyLinkedFonts PROC STDCALL mov r10 , rcx mov eax , 4390 ;syscall db 0Fh , 05h ret NtGdiAnyLinkedFonts ENDP ; ULONG64 __stdcall NtGdiArcInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); NtGdiArcInternal PROC STDCALL mov r10 , rcx mov eax , 4391 ;syscall db 0Fh , 05h ret NtGdiArcInternal ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_DeleteRbrush( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiBRUSHOBJ_DeleteRbrush PROC STDCALL mov r10 , rcx mov eax , 4392 ;syscall db 0Fh , 05h ret NtGdiBRUSHOBJ_DeleteRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_hGetColorTransform( ULONG64 arg_01 ); NtGdiBRUSHOBJ_hGetColorTransform PROC STDCALL mov r10 , rcx mov eax , 4393 ;syscall db 0Fh , 05h ret NtGdiBRUSHOBJ_hGetColorTransform ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_pvAllocRbrush( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiBRUSHOBJ_pvAllocRbrush PROC STDCALL mov r10 , rcx mov eax , 4394 ;syscall db 0Fh , 05h ret NtGdiBRUSHOBJ_pvAllocRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_pvGetRbrush( ULONG64 arg_01 ); NtGdiBRUSHOBJ_pvGetRbrush PROC STDCALL mov r10 , rcx mov eax , 4395 ;syscall db 0Fh , 05h ret NtGdiBRUSHOBJ_pvGetRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_ulGetBrushColor( ULONG64 arg_01 ); NtGdiBRUSHOBJ_ulGetBrushColor PROC STDCALL mov r10 , rcx mov eax , 4396 ;syscall db 0Fh , 05h ret NtGdiBRUSHOBJ_ulGetBrushColor ENDP ; ULONG64 __stdcall NtGdiBeginGdiRendering( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiBeginGdiRendering PROC STDCALL mov r10 , rcx mov eax , 4397 ;syscall db 0Fh , 05h ret NtGdiBeginGdiRendering ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiCLIPOBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4398 ;syscall db 0Fh , 05h ret NtGdiCLIPOBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_cEnumStart( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiCLIPOBJ_cEnumStart PROC STDCALL mov r10 , rcx mov eax , 4399 ;syscall db 0Fh , 05h ret NtGdiCLIPOBJ_cEnumStart ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_ppoGetPath( ULONG64 arg_01 ); NtGdiCLIPOBJ_ppoGetPath PROC STDCALL mov r10 , rcx mov eax , 4400 ;syscall db 0Fh , 05h ret NtGdiCLIPOBJ_ppoGetPath ENDP ; ULONG64 __stdcall NtGdiCancelDC( ULONG64 arg_01 ); NtGdiCancelDC PROC STDCALL mov r10 , rcx mov eax , 4401 ;syscall db 0Fh , 05h ret NtGdiCancelDC ENDP ; ULONG64 __stdcall NtGdiChangeGhostFont( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiChangeGhostFont PROC STDCALL mov r10 , rcx mov eax , 4402 ;syscall db 0Fh , 05h ret NtGdiChangeGhostFont ENDP ; ULONG64 __stdcall NtGdiCheckBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiCheckBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4403 ;syscall db 0Fh , 05h ret NtGdiCheckBitmapBits ENDP ; ULONG64 __stdcall NtGdiClearBitmapAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiClearBitmapAttributes PROC STDCALL mov r10 , rcx mov eax , 4404 ;syscall db 0Fh , 05h ret NtGdiClearBitmapAttributes ENDP ; ULONG64 __stdcall NtGdiClearBrushAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiClearBrushAttributes PROC STDCALL mov r10 , rcx mov eax , 4405 ;syscall db 0Fh , 05h ret NtGdiClearBrushAttributes ENDP ; ULONG64 __stdcall NtGdiColorCorrectPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiColorCorrectPalette PROC STDCALL mov r10 , rcx mov eax , 4406 ;syscall db 0Fh , 05h ret NtGdiColorCorrectPalette ENDP ; ULONG64 __stdcall NtGdiConfigureOPMProtectedOutput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiConfigureOPMProtectedOutput PROC STDCALL mov r10 , rcx mov eax , 4407 ;syscall db 0Fh , 05h ret NtGdiConfigureOPMProtectedOutput ENDP ; ULONG64 __stdcall NtGdiConvertMetafileRect( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiConvertMetafileRect PROC STDCALL mov r10 , rcx mov eax , 4408 ;syscall db 0Fh , 05h ret NtGdiConvertMetafileRect ENDP ; ULONG64 __stdcall NtGdiCreateBitmapFromDxSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiCreateBitmapFromDxSurface PROC STDCALL mov r10 , rcx mov eax , 4409 ;syscall db 0Fh , 05h ret NtGdiCreateBitmapFromDxSurface ENDP ; ULONG64 __stdcall NtGdiCreateColorTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiCreateColorTransform PROC STDCALL mov r10 , rcx mov eax , 4410 ;syscall db 0Fh , 05h ret NtGdiCreateColorTransform ENDP ; ULONG64 __stdcall NtGdiCreateEllipticRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiCreateEllipticRgn PROC STDCALL mov r10 , rcx mov eax , 4411 ;syscall db 0Fh , 05h ret NtGdiCreateEllipticRgn ENDP ; ULONG64 __stdcall NtGdiCreateHatchBrushInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiCreateHatchBrushInternal PROC STDCALL mov r10 , rcx mov eax , 4412 ;syscall db 0Fh , 05h ret NtGdiCreateHatchBrushInternal ENDP ; ULONG64 __stdcall NtGdiCreateMetafileDC( ULONG64 arg_01 ); NtGdiCreateMetafileDC PROC STDCALL mov r10 , rcx mov eax , 4413 ;syscall db 0Fh , 05h ret NtGdiCreateMetafileDC ENDP ; ULONG64 __stdcall NtGdiCreateOPMProtectedOutputs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiCreateOPMProtectedOutputs PROC STDCALL mov r10 , rcx mov eax , 4414 ;syscall db 0Fh , 05h ret NtGdiCreateOPMProtectedOutputs ENDP ; ULONG64 __stdcall NtGdiCreateRoundRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiCreateRoundRectRgn PROC STDCALL mov r10 , rcx mov eax , 4415 ;syscall db 0Fh , 05h ret NtGdiCreateRoundRectRgn ENDP ; ULONG64 __stdcall NtGdiCreateServerMetaFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiCreateServerMetaFile PROC STDCALL mov r10 , rcx mov eax , 4416 ;syscall db 0Fh , 05h ret NtGdiCreateServerMetaFile ENDP ; ULONG64 __stdcall NtGdiD3dContextCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiD3dContextCreate PROC STDCALL mov r10 , rcx mov eax , 4417 ;syscall db 0Fh , 05h ret NtGdiD3dContextCreate ENDP ; ULONG64 __stdcall NtGdiD3dContextDestroy( ULONG64 arg_01 ); NtGdiD3dContextDestroy PROC STDCALL mov r10 , rcx mov eax , 4418 ;syscall db 0Fh , 05h ret NtGdiD3dContextDestroy ENDP ; ULONG64 __stdcall NtGdiD3dContextDestroyAll( ULONG64 arg_01 ); NtGdiD3dContextDestroyAll PROC STDCALL mov r10 , rcx mov eax , 4419 ;syscall db 0Fh , 05h ret NtGdiD3dContextDestroyAll ENDP ; ULONG64 __stdcall NtGdiD3dValidateTextureStageState( ULONG64 arg_01 ); NtGdiD3dValidateTextureStageState PROC STDCALL mov r10 , rcx mov eax , 4420 ;syscall db 0Fh , 05h ret NtGdiD3dValidateTextureStageState ENDP ; ULONG64 __stdcall NtGdiDDCCIGetCapabilitiesString( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDDCCIGetCapabilitiesString PROC STDCALL mov r10 , rcx mov eax , 4421 ;syscall db 0Fh , 05h ret NtGdiDDCCIGetCapabilitiesString ENDP ; ULONG64 __stdcall NtGdiDDCCIGetCapabilitiesStringLength( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDDCCIGetCapabilitiesStringLength PROC STDCALL mov r10 , rcx mov eax , 4422 ;syscall db 0Fh , 05h ret NtGdiDDCCIGetCapabilitiesStringLength ENDP ; ULONG64 __stdcall NtGdiDDCCIGetTimingReport( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDDCCIGetTimingReport PROC STDCALL mov r10 , rcx mov eax , 4423 ;syscall db 0Fh , 05h ret NtGdiDDCCIGetTimingReport ENDP ; ULONG64 __stdcall NtGdiDDCCIGetVCPFeature( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiDDCCIGetVCPFeature PROC STDCALL mov r10 , rcx mov eax , 4424 ;syscall db 0Fh , 05h ret NtGdiDDCCIGetVCPFeature ENDP ; ULONG64 __stdcall NtGdiDDCCISaveCurrentSettings( ULONG64 arg_01 ); NtGdiDDCCISaveCurrentSettings PROC STDCALL mov r10 , rcx mov eax , 4425 ;syscall db 0Fh , 05h ret NtGdiDDCCISaveCurrentSettings ENDP ; ULONG64 __stdcall NtGdiDDCCISetVCPFeature( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDDCCISetVCPFeature PROC STDCALL mov r10 , rcx mov eax , 4426 ;syscall db 0Fh , 05h ret NtGdiDDCCISetVCPFeature ENDP ; ULONG64 __stdcall NtGdiDdAddAttachedSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdAddAttachedSurface PROC STDCALL mov r10 , rcx mov eax , 4427 ;syscall db 0Fh , 05h ret NtGdiDdAddAttachedSurface ENDP ; ULONG64 __stdcall NtGdiDdAlphaBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdAlphaBlt PROC STDCALL mov r10 , rcx mov eax , 4428 ;syscall db 0Fh , 05h ret NtGdiDdAlphaBlt ENDP ; ULONG64 __stdcall NtGdiDdAttachSurface( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdAttachSurface PROC STDCALL mov r10 , rcx mov eax , 4429 ;syscall db 0Fh , 05h ret NtGdiDdAttachSurface ENDP ; ULONG64 __stdcall NtGdiDdBeginMoCompFrame( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdBeginMoCompFrame PROC STDCALL mov r10 , rcx mov eax , 4430 ;syscall db 0Fh , 05h ret NtGdiDdBeginMoCompFrame ENDP ; ULONG64 __stdcall NtGdiDdCanCreateD3DBuffer( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdCanCreateD3DBuffer PROC STDCALL mov r10 , rcx mov eax , 4431 ;syscall db 0Fh , 05h ret NtGdiDdCanCreateD3DBuffer ENDP ; ULONG64 __stdcall NtGdiDdColorControl( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdColorControl PROC STDCALL mov r10 , rcx mov eax , 4432 ;syscall db 0Fh , 05h ret NtGdiDdColorControl ENDP ; ULONG64 __stdcall NtGdiDdCreateD3DBuffer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiDdCreateD3DBuffer PROC STDCALL mov r10 , rcx mov eax , 4433 ;syscall db 0Fh , 05h ret NtGdiDdCreateD3DBuffer ENDP ; ULONG64 __stdcall NtGdiDdCreateDirectDrawObject( ULONG64 arg_01 ); NtGdiDdCreateDirectDrawObject PROC STDCALL mov r10 , rcx mov eax , 4434 ;syscall db 0Fh , 05h ret NtGdiDdCreateDirectDrawObject ENDP ; ULONG64 __stdcall NtGdiDdCreateFullscreenSprite( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiDdCreateFullscreenSprite PROC STDCALL mov r10 , rcx mov eax , 4435 ;syscall db 0Fh , 05h ret NtGdiDdCreateFullscreenSprite ENDP ; ULONG64 __stdcall NtGdiDdCreateMoComp( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdCreateMoComp PROC STDCALL mov r10 , rcx mov eax , 4436 ;syscall db 0Fh , 05h ret NtGdiDdCreateMoComp ENDP ; ULONG64 __stdcall NtGdiDdDDIAcquireKeyedMutex( ULONG64 arg_01 ); NtGdiDdDDIAcquireKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4437 ;syscall db 0Fh , 05h ret NtGdiDdDDIAcquireKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDICheckExclusiveOwnership( ); NtGdiDdDDICheckExclusiveOwnership PROC STDCALL mov r10 , rcx mov eax , 4438 ;syscall db 0Fh , 05h ret NtGdiDdDDICheckExclusiveOwnership ENDP ; ULONG64 __stdcall NtGdiDdDDICheckMonitorPowerState( ULONG64 arg_01 ); NtGdiDdDDICheckMonitorPowerState PROC STDCALL mov r10 , rcx mov eax , 4439 ;syscall db 0Fh , 05h ret NtGdiDdDDICheckMonitorPowerState ENDP ; ULONG64 __stdcall NtGdiDdDDICheckOcclusion( ULONG64 arg_01 ); NtGdiDdDDICheckOcclusion PROC STDCALL mov r10 , rcx mov eax , 4440 ;syscall db 0Fh , 05h ret NtGdiDdDDICheckOcclusion ENDP ; ULONG64 __stdcall NtGdiDdDDICheckSharedResourceAccess( ULONG64 arg_01 ); NtGdiDdDDICheckSharedResourceAccess PROC STDCALL mov r10 , rcx mov eax , 4441 ;syscall db 0Fh , 05h ret NtGdiDdDDICheckSharedResourceAccess ENDP ; ULONG64 __stdcall NtGdiDdDDICheckVidPnExclusiveOwnership( ULONG64 arg_01 ); NtGdiDdDDICheckVidPnExclusiveOwnership PROC STDCALL mov r10 , rcx mov eax , 4442 ;syscall db 0Fh , 05h ret NtGdiDdDDICheckVidPnExclusiveOwnership ENDP ; ULONG64 __stdcall NtGdiDdDDICloseAdapter( ULONG64 arg_01 ); NtGdiDdDDICloseAdapter PROC STDCALL mov r10 , rcx mov eax , 4443 ;syscall db 0Fh , 05h ret NtGdiDdDDICloseAdapter ENDP ; ULONG64 __stdcall NtGdiDdDDIConfigureSharedResource( ULONG64 arg_01 ); NtGdiDdDDIConfigureSharedResource PROC STDCALL mov r10 , rcx mov eax , 4444 ;syscall db 0Fh , 05h ret NtGdiDdDDIConfigureSharedResource ENDP ; ULONG64 __stdcall NtGdiDdDDICreateAllocation( ULONG64 arg_01 ); NtGdiDdDDICreateAllocation PROC STDCALL mov r10 , rcx mov eax , 4445 ;syscall db 0Fh , 05h ret NtGdiDdDDICreateAllocation ENDP ; ULONG64 __stdcall NtGdiDdDDICreateContext( ULONG64 arg_01 ); NtGdiDdDDICreateContext PROC STDCALL mov r10 , rcx mov eax , 4446 ;syscall db 0Fh , 05h ret NtGdiDdDDICreateContext ENDP ; ULONG64 __stdcall NtGdiDdDDICreateDCFromMemory( ULONG64 arg_01 ); NtGdiDdDDICreateDCFromMemory PROC STDCALL mov r10 , rcx mov eax , 4447 ;syscall db 0Fh , 05h ret NtGdiDdDDICreateDCFromMemory ENDP ; ULONG64 __stdcall NtGdiDdDDICreateDevice( ULONG64 arg_01 ); NtGdiDdDDICreateDevice PROC STDCALL mov r10 , rcx mov eax , 4448 ;syscall db 0Fh , 05h ret NtGdiDdDDICreateDevice ENDP ; ULONG64 __stdcall NtGdiDdDDICreateKeyedMutex( ULONG64 arg_01 ); NtGdiDdDDICreateKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4449 ;syscall db 0Fh , 05h ret NtGdiDdDDICreateKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDICreateOverlay( ULONG64 arg_01 ); NtGdiDdDDICreateOverlay PROC STDCALL mov r10 , rcx mov eax , 4450 ;syscall db 0Fh , 05h ret NtGdiDdDDICreateOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDICreateSynchronizationObject( ULONG64 arg_01 ); NtGdiDdDDICreateSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4451 ;syscall db 0Fh , 05h ret NtGdiDdDDICreateSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyAllocation( ULONG64 arg_01 ); NtGdiDdDDIDestroyAllocation PROC STDCALL mov r10 , rcx mov eax , 4452 ;syscall db 0Fh , 05h ret NtGdiDdDDIDestroyAllocation ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyContext( ULONG64 arg_01 ); NtGdiDdDDIDestroyContext PROC STDCALL mov r10 , rcx mov eax , 4453 ;syscall db 0Fh , 05h ret NtGdiDdDDIDestroyContext ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyDCFromMemory( ULONG64 arg_01 ); NtGdiDdDDIDestroyDCFromMemory PROC STDCALL mov r10 , rcx mov eax , 4454 ;syscall db 0Fh , 05h ret NtGdiDdDDIDestroyDCFromMemory ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyDevice( ULONG64 arg_01 ); NtGdiDdDDIDestroyDevice PROC STDCALL mov r10 , rcx mov eax , 4455 ;syscall db 0Fh , 05h ret NtGdiDdDDIDestroyDevice ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyKeyedMutex( ULONG64 arg_01 ); NtGdiDdDDIDestroyKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4456 ;syscall db 0Fh , 05h ret NtGdiDdDDIDestroyKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyOverlay( ULONG64 arg_01 ); NtGdiDdDDIDestroyOverlay PROC STDCALL mov r10 , rcx mov eax , 4457 ;syscall db 0Fh , 05h ret NtGdiDdDDIDestroyOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroySynchronizationObject( ULONG64 arg_01 ); NtGdiDdDDIDestroySynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4458 ;syscall db 0Fh , 05h ret NtGdiDdDDIDestroySynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIEscape( ULONG64 arg_01 ); NtGdiDdDDIEscape PROC STDCALL mov r10 , rcx mov eax , 4459 ;syscall db 0Fh , 05h ret NtGdiDdDDIEscape ENDP ; ULONG64 __stdcall NtGdiDdDDIFlipOverlay( ULONG64 arg_01 ); NtGdiDdDDIFlipOverlay PROC STDCALL mov r10 , rcx mov eax , 4460 ;syscall db 0Fh , 05h ret NtGdiDdDDIFlipOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIGetContextSchedulingPriority( ULONG64 arg_01 ); NtGdiDdDDIGetContextSchedulingPriority PROC STDCALL mov r10 , rcx mov eax , 4461 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetContextSchedulingPriority ENDP ; ULONG64 __stdcall NtGdiDdDDIGetDeviceState( ULONG64 arg_01 ); NtGdiDdDDIGetDeviceState PROC STDCALL mov r10 , rcx mov eax , 4462 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetDeviceState ENDP ; ULONG64 __stdcall NtGdiDdDDIGetDisplayModeList( ULONG64 arg_01 ); NtGdiDdDDIGetDisplayModeList PROC STDCALL mov r10 , rcx mov eax , 4463 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetDisplayModeList ENDP ; ULONG64 __stdcall NtGdiDdDDIGetMultisampleMethodList( ULONG64 arg_01 ); NtGdiDdDDIGetMultisampleMethodList PROC STDCALL mov r10 , rcx mov eax , 4464 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetMultisampleMethodList ENDP ; ULONG64 __stdcall NtGdiDdDDIGetOverlayState( ULONG64 arg_01 ); NtGdiDdDDIGetOverlayState PROC STDCALL mov r10 , rcx mov eax , 4465 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetOverlayState ENDP ; ULONG64 __stdcall NtGdiDdDDIGetPresentHistory( ULONG64 arg_01 ); NtGdiDdDDIGetPresentHistory PROC STDCALL mov r10 , rcx mov eax , 4466 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetPresentHistory ENDP ; ULONG64 __stdcall NtGdiDdDDIGetPresentQueueEvent( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdDDIGetPresentQueueEvent PROC STDCALL mov r10 , rcx mov eax , 4467 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetPresentQueueEvent ENDP ; ULONG64 __stdcall NtGdiDdDDIGetProcessSchedulingPriorityClass( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdDDIGetProcessSchedulingPriorityClass PROC STDCALL mov r10 , rcx mov eax , 4468 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetProcessSchedulingPriorityClass ENDP ; ULONG64 __stdcall NtGdiDdDDIGetRuntimeData( ULONG64 arg_01 ); NtGdiDdDDIGetRuntimeData PROC STDCALL mov r10 , rcx mov eax , 4469 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetRuntimeData ENDP ; ULONG64 __stdcall NtGdiDdDDIGetScanLine( ULONG64 arg_01 ); NtGdiDdDDIGetScanLine PROC STDCALL mov r10 , rcx mov eax , 4470 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetScanLine ENDP ; ULONG64 __stdcall NtGdiDdDDIGetSharedPrimaryHandle( ULONG64 arg_01 ); NtGdiDdDDIGetSharedPrimaryHandle PROC STDCALL mov r10 , rcx mov eax , 4471 ;syscall db 0Fh , 05h ret NtGdiDdDDIGetSharedPrimaryHandle ENDP ; ULONG64 __stdcall NtGdiDdDDIInvalidateActiveVidPn( ULONG64 arg_01 ); NtGdiDdDDIInvalidateActiveVidPn PROC STDCALL mov r10 , rcx mov eax , 4472 ;syscall db 0Fh , 05h ret NtGdiDdDDIInvalidateActiveVidPn ENDP ; ULONG64 __stdcall NtGdiDdDDILock( ULONG64 arg_01 ); NtGdiDdDDILock PROC STDCALL mov r10 , rcx mov eax , 4473 ;syscall db 0Fh , 05h ret NtGdiDdDDILock ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenAdapterFromDeviceName( ULONG64 arg_01 ); NtGdiDdDDIOpenAdapterFromDeviceName PROC STDCALL mov r10 , rcx mov eax , 4474 ;syscall db 0Fh , 05h ret NtGdiDdDDIOpenAdapterFromDeviceName ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenAdapterFromHdc( ULONG64 arg_01 ); NtGdiDdDDIOpenAdapterFromHdc PROC STDCALL mov r10 , rcx mov eax , 4475 ;syscall db 0Fh , 05h ret NtGdiDdDDIOpenAdapterFromHdc ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenKeyedMutex( ULONG64 arg_01 ); NtGdiDdDDIOpenKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4476 ;syscall db 0Fh , 05h ret NtGdiDdDDIOpenKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenResource( ULONG64 arg_01 ); NtGdiDdDDIOpenResource PROC STDCALL mov r10 , rcx mov eax , 4477 ;syscall db 0Fh , 05h ret NtGdiDdDDIOpenResource ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenSynchronizationObject( ULONG64 arg_01 ); NtGdiDdDDIOpenSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4478 ;syscall db 0Fh , 05h ret NtGdiDdDDIOpenSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIPollDisplayChildren( ULONG64 arg_01 ); NtGdiDdDDIPollDisplayChildren PROC STDCALL mov r10 , rcx mov eax , 4479 ;syscall db 0Fh , 05h ret NtGdiDdDDIPollDisplayChildren ENDP ; ULONG64 __stdcall NtGdiDdDDIPresent( ULONG64 arg_01 ); NtGdiDdDDIPresent PROC STDCALL mov r10 , rcx mov eax , 4480 ;syscall db 0Fh , 05h ret NtGdiDdDDIPresent ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryAdapterInfo( ULONG64 arg_01 ); NtGdiDdDDIQueryAdapterInfo PROC STDCALL mov r10 , rcx mov eax , 4481 ;syscall db 0Fh , 05h ret NtGdiDdDDIQueryAdapterInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryAllocationResidency( ULONG64 arg_01 ); NtGdiDdDDIQueryAllocationResidency PROC STDCALL mov r10 , rcx mov eax , 4482 ;syscall db 0Fh , 05h ret NtGdiDdDDIQueryAllocationResidency ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryResourceInfo( ULONG64 arg_01 ); NtGdiDdDDIQueryResourceInfo PROC STDCALL mov r10 , rcx mov eax , 4483 ;syscall db 0Fh , 05h ret NtGdiDdDDIQueryResourceInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryStatistics( ULONG64 arg_01 ); NtGdiDdDDIQueryStatistics PROC STDCALL mov r10 , rcx mov eax , 4484 ;syscall db 0Fh , 05h ret NtGdiDdDDIQueryStatistics ENDP ; ULONG64 __stdcall NtGdiDdDDIReleaseKeyedMutex( ULONG64 arg_01 ); NtGdiDdDDIReleaseKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4485 ;syscall db 0Fh , 05h ret NtGdiDdDDIReleaseKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIReleaseProcessVidPnSourceOwners( ULONG64 arg_01 ); NtGdiDdDDIReleaseProcessVidPnSourceOwners PROC STDCALL mov r10 , rcx mov eax , 4486 ;syscall db 0Fh , 05h ret NtGdiDdDDIReleaseProcessVidPnSourceOwners ENDP ; ULONG64 __stdcall NtGdiDdDDIRender( ULONG64 arg_01 ); NtGdiDdDDIRender PROC STDCALL mov r10 , rcx mov eax , 4487 ;syscall db 0Fh , 05h ret NtGdiDdDDIRender ENDP ; ULONG64 __stdcall NtGdiDdDDISetAllocationPriority( ULONG64 arg_01 ); NtGdiDdDDISetAllocationPriority PROC STDCALL mov r10 , rcx mov eax , 4488 ;syscall db 0Fh , 05h ret NtGdiDdDDISetAllocationPriority ENDP ; ULONG64 __stdcall NtGdiDdDDISetContextSchedulingPriority( ULONG64 arg_01 ); NtGdiDdDDISetContextSchedulingPriority PROC STDCALL mov r10 , rcx mov eax , 4489 ;syscall db 0Fh , 05h ret NtGdiDdDDISetContextSchedulingPriority ENDP ; ULONG64 __stdcall NtGdiDdDDISetDisplayMode( ULONG64 arg_01 ); NtGdiDdDDISetDisplayMode PROC STDCALL mov r10 , rcx mov eax , 4490 ;syscall db 0Fh , 05h ret NtGdiDdDDISetDisplayMode ENDP ; ULONG64 __stdcall NtGdiDdDDISetDisplayPrivateDriverFormat( ULONG64 arg_01 ); NtGdiDdDDISetDisplayPrivateDriverFormat PROC STDCALL mov r10 , rcx mov eax , 4491 ;syscall db 0Fh , 05h ret NtGdiDdDDISetDisplayPrivateDriverFormat ENDP ; ULONG64 __stdcall NtGdiDdDDISetGammaRamp( ULONG64 arg_01 ); NtGdiDdDDISetGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4492 ;syscall db 0Fh , 05h ret NtGdiDdDDISetGammaRamp ENDP ; ULONG64 __stdcall NtGdiDdDDISetProcessSchedulingPriorityClass( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdDDISetProcessSchedulingPriorityClass PROC STDCALL mov r10 , rcx mov eax , 4493 ;syscall db 0Fh , 05h ret NtGdiDdDDISetProcessSchedulingPriorityClass ENDP ; ULONG64 __stdcall NtGdiDdDDISetQueuedLimit( ULONG64 arg_01 ); NtGdiDdDDISetQueuedLimit PROC STDCALL mov r10 , rcx mov eax , 4494 ;syscall db 0Fh , 05h ret NtGdiDdDDISetQueuedLimit ENDP ; ULONG64 __stdcall NtGdiDdDDISetVidPnSourceOwner( ULONG64 arg_01 ); NtGdiDdDDISetVidPnSourceOwner PROC STDCALL mov r10 , rcx mov eax , 4495 ;syscall db 0Fh , 05h ret NtGdiDdDDISetVidPnSourceOwner ENDP ; ULONG64 __stdcall NtGdiDdDDISharedPrimaryLockNotification( ULONG64 arg_01 ); NtGdiDdDDISharedPrimaryLockNotification PROC STDCALL mov r10 , rcx mov eax , 4496 ;syscall db 0Fh , 05h ret NtGdiDdDDISharedPrimaryLockNotification ENDP ; ULONG64 __stdcall NtGdiDdDDISharedPrimaryUnLockNotification( ULONG64 arg_01 ); NtGdiDdDDISharedPrimaryUnLockNotification PROC STDCALL mov r10 , rcx mov eax , 4497 ;syscall db 0Fh , 05h ret NtGdiDdDDISharedPrimaryUnLockNotification ENDP ; ULONG64 __stdcall NtGdiDdDDISignalSynchronizationObject( ULONG64 arg_01 ); NtGdiDdDDISignalSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4498 ;syscall db 0Fh , 05h ret NtGdiDdDDISignalSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIUnlock( ULONG64 arg_01 ); NtGdiDdDDIUnlock PROC STDCALL mov r10 , rcx mov eax , 4499 ;syscall db 0Fh , 05h ret NtGdiDdDDIUnlock ENDP ; ULONG64 __stdcall NtGdiDdDDIUpdateOverlay( ULONG64 arg_01 ); NtGdiDdDDIUpdateOverlay PROC STDCALL mov r10 , rcx mov eax , 4500 ;syscall db 0Fh , 05h ret NtGdiDdDDIUpdateOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForIdle( ULONG64 arg_01 ); NtGdiDdDDIWaitForIdle PROC STDCALL mov r10 , rcx mov eax , 4501 ;syscall db 0Fh , 05h ret NtGdiDdDDIWaitForIdle ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForSynchronizationObject( ULONG64 arg_01 ); NtGdiDdDDIWaitForSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4502 ;syscall db 0Fh , 05h ret NtGdiDdDDIWaitForSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForVerticalBlankEvent( ULONG64 arg_01 ); NtGdiDdDDIWaitForVerticalBlankEvent PROC STDCALL mov r10 , rcx mov eax , 4503 ;syscall db 0Fh , 05h ret NtGdiDdDDIWaitForVerticalBlankEvent ENDP ; ULONG64 __stdcall NtGdiDdDeleteDirectDrawObject( ULONG64 arg_01 ); NtGdiDdDeleteDirectDrawObject PROC STDCALL mov r10 , rcx mov eax , 4504 ;syscall db 0Fh , 05h ret NtGdiDdDeleteDirectDrawObject ENDP ; ULONG64 __stdcall NtGdiDdDestroyD3DBuffer( ULONG64 arg_01 ); NtGdiDdDestroyD3DBuffer PROC STDCALL mov r10 , rcx mov eax , 4505 ;syscall db 0Fh , 05h ret NtGdiDdDestroyD3DBuffer ENDP ; ULONG64 __stdcall NtGdiDdDestroyFullscreenSprite( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdDestroyFullscreenSprite PROC STDCALL mov r10 , rcx mov eax , 4506 ;syscall db 0Fh , 05h ret NtGdiDdDestroyFullscreenSprite ENDP ; ULONG64 __stdcall NtGdiDdDestroyMoComp( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdDestroyMoComp PROC STDCALL mov r10 , rcx mov eax , 4507 ;syscall db 0Fh , 05h ret NtGdiDdDestroyMoComp ENDP ; ULONG64 __stdcall NtGdiDdEndMoCompFrame( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdEndMoCompFrame PROC STDCALL mov r10 , rcx mov eax , 4508 ;syscall db 0Fh , 05h ret NtGdiDdEndMoCompFrame ENDP ; ULONG64 __stdcall NtGdiDdFlip( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiDdFlip PROC STDCALL mov r10 , rcx mov eax , 4509 ;syscall db 0Fh , 05h ret NtGdiDdFlip ENDP ; ULONG64 __stdcall NtGdiDdFlipToGDISurface( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdFlipToGDISurface PROC STDCALL mov r10 , rcx mov eax , 4510 ;syscall db 0Fh , 05h ret NtGdiDdFlipToGDISurface ENDP ; ULONG64 __stdcall NtGdiDdGetAvailDriverMemory( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetAvailDriverMemory PROC STDCALL mov r10 , rcx mov eax , 4511 ;syscall db 0Fh , 05h ret NtGdiDdGetAvailDriverMemory ENDP ; ULONG64 __stdcall NtGdiDdGetBltStatus( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetBltStatus PROC STDCALL mov r10 , rcx mov eax , 4512 ;syscall db 0Fh , 05h ret NtGdiDdGetBltStatus ENDP ; ULONG64 __stdcall NtGdiDdGetDC( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetDC PROC STDCALL mov r10 , rcx mov eax , 4513 ;syscall db 0Fh , 05h ret NtGdiDdGetDC ENDP ; ULONG64 __stdcall NtGdiDdGetDriverInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetDriverInfo PROC STDCALL mov r10 , rcx mov eax , 4514 ;syscall db 0Fh , 05h ret NtGdiDdGetDriverInfo ENDP ; ULONG64 __stdcall NtGdiDdGetDriverState( ULONG64 arg_01 ); NtGdiDdGetDriverState PROC STDCALL mov r10 , rcx mov eax , 4515 ;syscall db 0Fh , 05h ret NtGdiDdGetDriverState ENDP ; ULONG64 __stdcall NtGdiDdGetDxHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdGetDxHandle PROC STDCALL mov r10 , rcx mov eax , 4516 ;syscall db 0Fh , 05h ret NtGdiDdGetDxHandle ENDP ; ULONG64 __stdcall NtGdiDdGetFlipStatus( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetFlipStatus PROC STDCALL mov r10 , rcx mov eax , 4517 ;syscall db 0Fh , 05h ret NtGdiDdGetFlipStatus ENDP ; ULONG64 __stdcall NtGdiDdGetInternalMoCompInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetInternalMoCompInfo PROC STDCALL mov r10 , rcx mov eax , 4518 ;syscall db 0Fh , 05h ret NtGdiDdGetInternalMoCompInfo ENDP ; ULONG64 __stdcall NtGdiDdGetMoCompBuffInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetMoCompBuffInfo PROC STDCALL mov r10 , rcx mov eax , 4519 ;syscall db 0Fh , 05h ret NtGdiDdGetMoCompBuffInfo ENDP ; ULONG64 __stdcall NtGdiDdGetMoCompFormats( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetMoCompFormats PROC STDCALL mov r10 , rcx mov eax , 4520 ;syscall db 0Fh , 05h ret NtGdiDdGetMoCompFormats ENDP ; ULONG64 __stdcall NtGdiDdGetMoCompGuids( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetMoCompGuids PROC STDCALL mov r10 , rcx mov eax , 4521 ;syscall db 0Fh , 05h ret NtGdiDdGetMoCompGuids ENDP ; ULONG64 __stdcall NtGdiDdGetScanLine( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdGetScanLine PROC STDCALL mov r10 , rcx mov eax , 4522 ;syscall db 0Fh , 05h ret NtGdiDdGetScanLine ENDP ; ULONG64 __stdcall NtGdiDdLock( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdLock PROC STDCALL mov r10 , rcx mov eax , 4523 ;syscall db 0Fh , 05h ret NtGdiDdLock ENDP ; ULONG64 __stdcall NtGdiDdNotifyFullscreenSpriteUpdate( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdNotifyFullscreenSpriteUpdate PROC STDCALL mov r10 , rcx mov eax , 4524 ;syscall db 0Fh , 05h ret NtGdiDdNotifyFullscreenSpriteUpdate ENDP ; ULONG64 __stdcall NtGdiDdQueryDirectDrawObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiDdQueryDirectDrawObject PROC STDCALL mov r10 , rcx mov eax , 4525 ;syscall db 0Fh , 05h ret NtGdiDdQueryDirectDrawObject ENDP ; ULONG64 __stdcall NtGdiDdQueryMoCompStatus( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdQueryMoCompStatus PROC STDCALL mov r10 , rcx mov eax , 4526 ;syscall db 0Fh , 05h ret NtGdiDdQueryMoCompStatus ENDP ; ULONG64 __stdcall NtGdiDdQueryVisRgnUniqueness( ); NtGdiDdQueryVisRgnUniqueness PROC STDCALL mov r10 , rcx mov eax , 4527 ;syscall db 0Fh , 05h ret NtGdiDdQueryVisRgnUniqueness ENDP ; ULONG64 __stdcall NtGdiDdReenableDirectDrawObject( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdReenableDirectDrawObject PROC STDCALL mov r10 , rcx mov eax , 4528 ;syscall db 0Fh , 05h ret NtGdiDdReenableDirectDrawObject ENDP ; ULONG64 __stdcall NtGdiDdReleaseDC( ULONG64 arg_01 ); NtGdiDdReleaseDC PROC STDCALL mov r10 , rcx mov eax , 4529 ;syscall db 0Fh , 05h ret NtGdiDdReleaseDC ENDP ; ULONG64 __stdcall NtGdiDdRenderMoComp( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdRenderMoComp PROC STDCALL mov r10 , rcx mov eax , 4530 ;syscall db 0Fh , 05h ret NtGdiDdRenderMoComp ENDP ; ULONG64 __stdcall NtGdiDdSetColorKey( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdSetColorKey PROC STDCALL mov r10 , rcx mov eax , 4531 ;syscall db 0Fh , 05h ret NtGdiDdSetColorKey ENDP ; ULONG64 __stdcall NtGdiDdSetExclusiveMode( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdSetExclusiveMode PROC STDCALL mov r10 , rcx mov eax , 4532 ;syscall db 0Fh , 05h ret NtGdiDdSetExclusiveMode ENDP ; ULONG64 __stdcall NtGdiDdSetGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdSetGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4533 ;syscall db 0Fh , 05h ret NtGdiDdSetGammaRamp ENDP ; ULONG64 __stdcall NtGdiDdSetOverlayPosition( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdSetOverlayPosition PROC STDCALL mov r10 , rcx mov eax , 4534 ;syscall db 0Fh , 05h ret NtGdiDdSetOverlayPosition ENDP ; ULONG64 __stdcall NtGdiDdUnattachSurface( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdUnattachSurface PROC STDCALL mov r10 , rcx mov eax , 4535 ;syscall db 0Fh , 05h ret NtGdiDdUnattachSurface ENDP ; ULONG64 __stdcall NtGdiDdUnlock( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdUnlock PROC STDCALL mov r10 , rcx mov eax , 4536 ;syscall db 0Fh , 05h ret NtGdiDdUnlock ENDP ; ULONG64 __stdcall NtGdiDdUpdateOverlay( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDdUpdateOverlay PROC STDCALL mov r10 , rcx mov eax , 4537 ;syscall db 0Fh , 05h ret NtGdiDdUpdateOverlay ENDP ; ULONG64 __stdcall NtGdiDdWaitForVerticalBlank( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDdWaitForVerticalBlank PROC STDCALL mov r10 , rcx mov eax , 4538 ;syscall db 0Fh , 05h ret NtGdiDdWaitForVerticalBlank ENDP ; ULONG64 __stdcall NtGdiDeleteColorTransform( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDeleteColorTransform PROC STDCALL mov r10 , rcx mov eax , 4539 ;syscall db 0Fh , 05h ret NtGdiDeleteColorTransform ENDP ; ULONG64 __stdcall NtGdiDescribePixelFormat( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiDescribePixelFormat PROC STDCALL mov r10 , rcx mov eax , 4540 ;syscall db 0Fh , 05h ret NtGdiDescribePixelFormat ENDP ; ULONG64 __stdcall NtGdiDestroyOPMProtectedOutput( ULONG64 arg_01 ); NtGdiDestroyOPMProtectedOutput PROC STDCALL mov r10 , rcx mov eax , 4541 ;syscall db 0Fh , 05h ret NtGdiDestroyOPMProtectedOutput ENDP ; ULONG64 __stdcall NtGdiDestroyPhysicalMonitor( ULONG64 arg_01 ); NtGdiDestroyPhysicalMonitor PROC STDCALL mov r10 , rcx mov eax , 4542 ;syscall db 0Fh , 05h ret NtGdiDestroyPhysicalMonitor ENDP ; ULONG64 __stdcall NtGdiDoBanding( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiDoBanding PROC STDCALL mov r10 , rcx mov eax , 4543 ;syscall db 0Fh , 05h ret NtGdiDoBanding ENDP ; ULONG64 __stdcall NtGdiDrawEscape( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiDrawEscape PROC STDCALL mov r10 , rcx mov eax , 4544 ;syscall db 0Fh , 05h ret NtGdiDrawEscape ENDP ; ULONG64 __stdcall NtGdiDvpAcquireNotification( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiDvpAcquireNotification PROC STDCALL mov r10 , rcx mov eax , 4545 ;syscall db 0Fh , 05h ret NtGdiDvpAcquireNotification ENDP ; ULONG64 __stdcall NtGdiDvpCanCreateVideoPort( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpCanCreateVideoPort PROC STDCALL mov r10 , rcx mov eax , 4546 ;syscall db 0Fh , 05h ret NtGdiDvpCanCreateVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpColorControl( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpColorControl PROC STDCALL mov r10 , rcx mov eax , 4547 ;syscall db 0Fh , 05h ret NtGdiDvpColorControl ENDP ; ULONG64 __stdcall NtGdiDvpCreateVideoPort( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpCreateVideoPort PROC STDCALL mov r10 , rcx mov eax , 4548 ;syscall db 0Fh , 05h ret NtGdiDvpCreateVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpDestroyVideoPort( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpDestroyVideoPort PROC STDCALL mov r10 , rcx mov eax , 4549 ;syscall db 0Fh , 05h ret NtGdiDvpDestroyVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpFlipVideoPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiDvpFlipVideoPort PROC STDCALL mov r10 , rcx mov eax , 4550 ;syscall db 0Fh , 05h ret NtGdiDvpFlipVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortBandwidth( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpGetVideoPortBandwidth PROC STDCALL mov r10 , rcx mov eax , 4551 ;syscall db 0Fh , 05h ret NtGdiDvpGetVideoPortBandwidth ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortConnectInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpGetVideoPortConnectInfo PROC STDCALL mov r10 , rcx mov eax , 4552 ;syscall db 0Fh , 05h ret NtGdiDvpGetVideoPortConnectInfo ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortField( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpGetVideoPortField PROC STDCALL mov r10 , rcx mov eax , 4553 ;syscall db 0Fh , 05h ret NtGdiDvpGetVideoPortField ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortFlipStatus( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpGetVideoPortFlipStatus PROC STDCALL mov r10 , rcx mov eax , 4554 ;syscall db 0Fh , 05h ret NtGdiDvpGetVideoPortFlipStatus ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortInputFormats( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpGetVideoPortInputFormats PROC STDCALL mov r10 , rcx mov eax , 4555 ;syscall db 0Fh , 05h ret NtGdiDvpGetVideoPortInputFormats ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortLine( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpGetVideoPortLine PROC STDCALL mov r10 , rcx mov eax , 4556 ;syscall db 0Fh , 05h ret NtGdiDvpGetVideoPortLine ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortOutputFormats( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpGetVideoPortOutputFormats PROC STDCALL mov r10 , rcx mov eax , 4557 ;syscall db 0Fh , 05h ret NtGdiDvpGetVideoPortOutputFormats ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoSignalStatus( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpGetVideoSignalStatus PROC STDCALL mov r10 , rcx mov eax , 4558 ;syscall db 0Fh , 05h ret NtGdiDvpGetVideoSignalStatus ENDP ; ULONG64 __stdcall NtGdiDvpReleaseNotification( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpReleaseNotification PROC STDCALL mov r10 , rcx mov eax , 4559 ;syscall db 0Fh , 05h ret NtGdiDvpReleaseNotification ENDP ; ULONG64 __stdcall NtGdiDvpUpdateVideoPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiDvpUpdateVideoPort PROC STDCALL mov r10 , rcx mov eax , 4560 ;syscall db 0Fh , 05h ret NtGdiDvpUpdateVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpWaitForVideoPortSync( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiDvpWaitForVideoPortSync PROC STDCALL mov r10 , rcx mov eax , 4561 ;syscall db 0Fh , 05h ret NtGdiDvpWaitForVideoPortSync ENDP ; ULONG64 __stdcall NtGdiDxgGenericThunk( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiDxgGenericThunk PROC STDCALL mov r10 , rcx mov eax , 4562 ;syscall db 0Fh , 05h ret NtGdiDxgGenericThunk ENDP ; ULONG64 __stdcall NtGdiEllipse( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiEllipse PROC STDCALL mov r10 , rcx mov eax , 4563 ;syscall db 0Fh , 05h ret NtGdiEllipse ENDP ; ULONG64 __stdcall NtGdiEnableEudc( ULONG64 arg_01 ); NtGdiEnableEudc PROC STDCALL mov r10 , rcx mov eax , 4564 ;syscall db 0Fh , 05h ret NtGdiEnableEudc ENDP ; ULONG64 __stdcall NtGdiEndDoc( ULONG64 arg_01 ); NtGdiEndDoc PROC STDCALL mov r10 , rcx mov eax , 4565 ;syscall db 0Fh , 05h ret NtGdiEndDoc ENDP ; ULONG64 __stdcall NtGdiEndGdiRendering( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiEndGdiRendering PROC STDCALL mov r10 , rcx mov eax , 4566 ;syscall db 0Fh , 05h ret NtGdiEndGdiRendering ENDP ; ULONG64 __stdcall NtGdiEndPage( ULONG64 arg_01 ); NtGdiEndPage PROC STDCALL mov r10 , rcx mov eax , 4567 ;syscall db 0Fh , 05h ret NtGdiEndPage ENDP ; ULONG64 __stdcall NtGdiEngAlphaBlend( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiEngAlphaBlend PROC STDCALL mov r10 , rcx mov eax , 4568 ;syscall db 0Fh , 05h ret NtGdiEngAlphaBlend ENDP ; ULONG64 __stdcall NtGdiEngAssociateSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiEngAssociateSurface PROC STDCALL mov r10 , rcx mov eax , 4569 ;syscall db 0Fh , 05h ret NtGdiEngAssociateSurface ENDP ; ULONG64 __stdcall NtGdiEngBitBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiEngBitBlt PROC STDCALL mov r10 , rcx mov eax , 4570 ;syscall db 0Fh , 05h ret NtGdiEngBitBlt ENDP ; ULONG64 __stdcall NtGdiEngCheckAbort( ULONG64 arg_01 ); NtGdiEngCheckAbort PROC STDCALL mov r10 , rcx mov eax , 4571 ;syscall db 0Fh , 05h ret NtGdiEngCheckAbort ENDP ; ULONG64 __stdcall NtGdiEngComputeGlyphSet( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiEngComputeGlyphSet PROC STDCALL mov r10 , rcx mov eax , 4572 ;syscall db 0Fh , 05h ret NtGdiEngComputeGlyphSet ENDP ; ULONG64 __stdcall NtGdiEngCopyBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiEngCopyBits PROC STDCALL mov r10 , rcx mov eax , 4573 ;syscall db 0Fh , 05h ret NtGdiEngCopyBits ENDP ; ULONG64 __stdcall NtGdiEngCreateBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiEngCreateBitmap PROC STDCALL mov r10 , rcx mov eax , 4574 ;syscall db 0Fh , 05h ret NtGdiEngCreateBitmap ENDP ; ULONG64 __stdcall NtGdiEngCreateClip( ); NtGdiEngCreateClip PROC STDCALL mov r10 , rcx mov eax , 4575 ;syscall db 0Fh , 05h ret NtGdiEngCreateClip ENDP ; ULONG64 __stdcall NtGdiEngCreateDeviceBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiEngCreateDeviceBitmap PROC STDCALL mov r10 , rcx mov eax , 4576 ;syscall db 0Fh , 05h ret NtGdiEngCreateDeviceBitmap ENDP ; ULONG64 __stdcall NtGdiEngCreateDeviceSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiEngCreateDeviceSurface PROC STDCALL mov r10 , rcx mov eax , 4577 ;syscall db 0Fh , 05h ret NtGdiEngCreateDeviceSurface ENDP ; ULONG64 __stdcall NtGdiEngCreatePalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiEngCreatePalette PROC STDCALL mov r10 , rcx mov eax , 4578 ;syscall db 0Fh , 05h ret NtGdiEngCreatePalette ENDP ; ULONG64 __stdcall NtGdiEngDeleteClip( ULONG64 arg_01 ); NtGdiEngDeleteClip PROC STDCALL mov r10 , rcx mov eax , 4579 ;syscall db 0Fh , 05h ret NtGdiEngDeleteClip ENDP ; ULONG64 __stdcall NtGdiEngDeletePalette( ULONG64 arg_01 ); NtGdiEngDeletePalette PROC STDCALL mov r10 , rcx mov eax , 4580 ;syscall db 0Fh , 05h ret NtGdiEngDeletePalette ENDP ; ULONG64 __stdcall NtGdiEngDeletePath( ULONG64 arg_01 ); NtGdiEngDeletePath PROC STDCALL mov r10 , rcx mov eax , 4581 ;syscall db 0Fh , 05h ret NtGdiEngDeletePath ENDP ; ULONG64 __stdcall NtGdiEngDeleteSurface( ULONG64 arg_01 ); NtGdiEngDeleteSurface PROC STDCALL mov r10 , rcx mov eax , 4582 ;syscall db 0Fh , 05h ret NtGdiEngDeleteSurface ENDP ; ULONG64 __stdcall NtGdiEngEraseSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiEngEraseSurface PROC STDCALL mov r10 , rcx mov eax , 4583 ;syscall db 0Fh , 05h ret NtGdiEngEraseSurface ENDP ; ULONG64 __stdcall NtGdiEngFillPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiEngFillPath PROC STDCALL mov r10 , rcx mov eax , 4584 ;syscall db 0Fh , 05h ret NtGdiEngFillPath ENDP ; ULONG64 __stdcall NtGdiEngGradientFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); NtGdiEngGradientFill PROC STDCALL mov r10 , rcx mov eax , 4585 ;syscall db 0Fh , 05h ret NtGdiEngGradientFill ENDP ; ULONG64 __stdcall NtGdiEngLineTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); NtGdiEngLineTo PROC STDCALL mov r10 , rcx mov eax , 4586 ;syscall db 0Fh , 05h ret NtGdiEngLineTo ENDP ; ULONG64 __stdcall NtGdiEngLockSurface( ULONG64 arg_01 ); NtGdiEngLockSurface PROC STDCALL mov r10 , rcx mov eax , 4587 ;syscall db 0Fh , 05h ret NtGdiEngLockSurface ENDP ; ULONG64 __stdcall NtGdiEngMarkBandingSurface( ULONG64 arg_01 ); NtGdiEngMarkBandingSurface PROC STDCALL mov r10 , rcx mov eax , 4588 ;syscall db 0Fh , 05h ret NtGdiEngMarkBandingSurface ENDP ; ULONG64 __stdcall NtGdiEngPaint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiEngPaint PROC STDCALL mov r10 , rcx mov eax , 4589 ;syscall db 0Fh , 05h ret NtGdiEngPaint ENDP ; ULONG64 __stdcall NtGdiEngPlgBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiEngPlgBlt PROC STDCALL mov r10 , rcx mov eax , 4590 ;syscall db 0Fh , 05h ret NtGdiEngPlgBlt ENDP ; ULONG64 __stdcall NtGdiEngStretchBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiEngStretchBlt PROC STDCALL mov r10 , rcx mov eax , 4591 ;syscall db 0Fh , 05h ret NtGdiEngStretchBlt ENDP ; ULONG64 __stdcall NtGdiEngStretchBltROP( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 ); NtGdiEngStretchBltROP PROC STDCALL mov r10 , rcx mov eax , 4592 ;syscall db 0Fh , 05h ret NtGdiEngStretchBltROP ENDP ; ULONG64 __stdcall NtGdiEngStrokeAndFillPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); NtGdiEngStrokeAndFillPath PROC STDCALL mov r10 , rcx mov eax , 4593 ;syscall db 0Fh , 05h ret NtGdiEngStrokeAndFillPath ENDP ; ULONG64 __stdcall NtGdiEngStrokePath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiEngStrokePath PROC STDCALL mov r10 , rcx mov eax , 4594 ;syscall db 0Fh , 05h ret NtGdiEngStrokePath ENDP ; ULONG64 __stdcall NtGdiEngTextOut( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); NtGdiEngTextOut PROC STDCALL mov r10 , rcx mov eax , 4595 ;syscall db 0Fh , 05h ret NtGdiEngTextOut ENDP ; ULONG64 __stdcall NtGdiEngTransparentBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiEngTransparentBlt PROC STDCALL mov r10 , rcx mov eax , 4596 ;syscall db 0Fh , 05h ret NtGdiEngTransparentBlt ENDP ; ULONG64 __stdcall NtGdiEngUnlockSurface( ULONG64 arg_01 ); NtGdiEngUnlockSurface PROC STDCALL mov r10 , rcx mov eax , 4597 ;syscall db 0Fh , 05h ret NtGdiEngUnlockSurface ENDP ; ULONG64 __stdcall NtGdiEnumFonts( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiEnumFonts PROC STDCALL mov r10 , rcx mov eax , 4598 ;syscall db 0Fh , 05h ret NtGdiEnumFonts ENDP ; ULONG64 __stdcall NtGdiEnumObjects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiEnumObjects PROC STDCALL mov r10 , rcx mov eax , 4599 ;syscall db 0Fh , 05h ret NtGdiEnumObjects ENDP ; ULONG64 __stdcall NtGdiEudcLoadUnloadLink( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiEudcLoadUnloadLink PROC STDCALL mov r10 , rcx mov eax , 4600 ;syscall db 0Fh , 05h ret NtGdiEudcLoadUnloadLink ENDP ; ULONG64 __stdcall NtGdiExtFloodFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiExtFloodFill PROC STDCALL mov r10 , rcx mov eax , 4601 ;syscall db 0Fh , 05h ret NtGdiExtFloodFill ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_cGetAllGlyphHandles( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiFONTOBJ_cGetAllGlyphHandles PROC STDCALL mov r10 , rcx mov eax , 4602 ;syscall db 0Fh , 05h ret NtGdiFONTOBJ_cGetAllGlyphHandles ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_cGetGlyphs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiFONTOBJ_cGetGlyphs PROC STDCALL mov r10 , rcx mov eax , 4603 ;syscall db 0Fh , 05h ret NtGdiFONTOBJ_cGetGlyphs ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pQueryGlyphAttrs( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiFONTOBJ_pQueryGlyphAttrs PROC STDCALL mov r10 , rcx mov eax , 4604 ;syscall db 0Fh , 05h ret NtGdiFONTOBJ_pQueryGlyphAttrs ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pfdg( ULONG64 arg_01 ); NtGdiFONTOBJ_pfdg PROC STDCALL mov r10 , rcx mov eax , 4605 ;syscall db 0Fh , 05h ret NtGdiFONTOBJ_pfdg ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pifi( ULONG64 arg_01 ); NtGdiFONTOBJ_pifi PROC STDCALL mov r10 , rcx mov eax , 4606 ;syscall db 0Fh , 05h ret NtGdiFONTOBJ_pifi ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pvTrueTypeFontFile( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiFONTOBJ_pvTrueTypeFontFile PROC STDCALL mov r10 , rcx mov eax , 4607 ;syscall db 0Fh , 05h ret NtGdiFONTOBJ_pvTrueTypeFontFile ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pxoGetXform( ULONG64 arg_01 ); NtGdiFONTOBJ_pxoGetXform PROC STDCALL mov r10 , rcx mov eax , 4608 ;syscall db 0Fh , 05h ret NtGdiFONTOBJ_pxoGetXform ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_vGetInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiFONTOBJ_vGetInfo PROC STDCALL mov r10 , rcx mov eax , 4609 ;syscall db 0Fh , 05h ret NtGdiFONTOBJ_vGetInfo ENDP ; ULONG64 __stdcall NtGdiFlattenPath( ULONG64 arg_01 ); NtGdiFlattenPath PROC STDCALL mov r10 , rcx mov eax , 4610 ;syscall db 0Fh , 05h ret NtGdiFlattenPath ENDP ; ULONG64 __stdcall NtGdiFontIsLinked( ULONG64 arg_01 ); NtGdiFontIsLinked PROC STDCALL mov r10 , rcx mov eax , 4611 ;syscall db 0Fh , 05h ret NtGdiFontIsLinked ENDP ; ULONG64 __stdcall NtGdiForceUFIMapping( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiForceUFIMapping PROC STDCALL mov r10 , rcx mov eax , 4612 ;syscall db 0Fh , 05h ret NtGdiForceUFIMapping ENDP ; ULONG64 __stdcall NtGdiFrameRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiFrameRgn PROC STDCALL mov r10 , rcx mov eax , 4613 ;syscall db 0Fh , 05h ret NtGdiFrameRgn ENDP ; ULONG64 __stdcall NtGdiFullscreenControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiFullscreenControl PROC STDCALL mov r10 , rcx mov eax , 4614 ;syscall db 0Fh , 05h ret NtGdiFullscreenControl ENDP ; ULONG64 __stdcall NtGdiGetBoundsRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetBoundsRect PROC STDCALL mov r10 , rcx mov eax , 4615 ;syscall db 0Fh , 05h ret NtGdiGetBoundsRect ENDP ; ULONG64 __stdcall NtGdiGetCOPPCompatibleOPMInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetCOPPCompatibleOPMInformation PROC STDCALL mov r10 , rcx mov eax , 4616 ;syscall db 0Fh , 05h ret NtGdiGetCOPPCompatibleOPMInformation ENDP ; ULONG64 __stdcall NtGdiGetCertificate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiGetCertificate PROC STDCALL mov r10 , rcx mov eax , 4617 ;syscall db 0Fh , 05h ret NtGdiGetCertificate ENDP ; ULONG64 __stdcall NtGdiGetCertificateSize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetCertificateSize PROC STDCALL mov r10 , rcx mov eax , 4618 ;syscall db 0Fh , 05h ret NtGdiGetCertificateSize ENDP ; ULONG64 __stdcall NtGdiGetCharABCWidthsW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiGetCharABCWidthsW PROC STDCALL mov r10 , rcx mov eax , 4619 ;syscall db 0Fh , 05h ret NtGdiGetCharABCWidthsW ENDP ; ULONG64 __stdcall NtGdiGetCharacterPlacementW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiGetCharacterPlacementW PROC STDCALL mov r10 , rcx mov eax , 4620 ;syscall db 0Fh , 05h ret NtGdiGetCharacterPlacementW ENDP ; ULONG64 __stdcall NtGdiGetColorAdjustment( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetColorAdjustment PROC STDCALL mov r10 , rcx mov eax , 4621 ;syscall db 0Fh , 05h ret NtGdiGetColorAdjustment ENDP ; ULONG64 __stdcall NtGdiGetColorSpaceforBitmap( ULONG64 arg_01 ); NtGdiGetColorSpaceforBitmap PROC STDCALL mov r10 , rcx mov eax , 4622 ;syscall db 0Fh , 05h ret NtGdiGetColorSpaceforBitmap ENDP ; ULONG64 __stdcall NtGdiGetDeviceCaps( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetDeviceCaps PROC STDCALL mov r10 , rcx mov eax , 4623 ;syscall db 0Fh , 05h ret NtGdiGetDeviceCaps ENDP ; ULONG64 __stdcall NtGdiGetDeviceCapsAll( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetDeviceCapsAll PROC STDCALL mov r10 , rcx mov eax , 4624 ;syscall db 0Fh , 05h ret NtGdiGetDeviceCapsAll ENDP ; ULONG64 __stdcall NtGdiGetDeviceGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetDeviceGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4625 ;syscall db 0Fh , 05h ret NtGdiGetDeviceGammaRamp ENDP ; ULONG64 __stdcall NtGdiGetDeviceWidth( ULONG64 arg_01 ); NtGdiGetDeviceWidth PROC STDCALL mov r10 , rcx mov eax , 4626 ;syscall db 0Fh , 05h ret NtGdiGetDeviceWidth ENDP ; ULONG64 __stdcall NtGdiGetDhpdev( ULONG64 arg_01 ); NtGdiGetDhpdev PROC STDCALL mov r10 , rcx mov eax , 4627 ;syscall db 0Fh , 05h ret NtGdiGetDhpdev ENDP ; ULONG64 __stdcall NtGdiGetETM( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetETM PROC STDCALL mov r10 , rcx mov eax , 4628 ;syscall db 0Fh , 05h ret NtGdiGetETM ENDP ; ULONG64 __stdcall NtGdiGetEmbUFI( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiGetEmbUFI PROC STDCALL mov r10 , rcx mov eax , 4629 ;syscall db 0Fh , 05h ret NtGdiGetEmbUFI ENDP ; ULONG64 __stdcall NtGdiGetEmbedFonts( ); NtGdiGetEmbedFonts PROC STDCALL mov r10 , rcx mov eax , 4630 ;syscall db 0Fh , 05h ret NtGdiGetEmbedFonts ENDP ; ULONG64 __stdcall NtGdiGetEudcTimeStampEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetEudcTimeStampEx PROC STDCALL mov r10 , rcx mov eax , 4631 ;syscall db 0Fh , 05h ret NtGdiGetEudcTimeStampEx ENDP ; ULONG64 __stdcall NtGdiGetFontFileData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiGetFontFileData PROC STDCALL mov r10 , rcx mov eax , 4632 ;syscall db 0Fh , 05h ret NtGdiGetFontFileData ENDP ; ULONG64 __stdcall NtGdiGetFontFileInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiGetFontFileInfo PROC STDCALL mov r10 , rcx mov eax , 4633 ;syscall db 0Fh , 05h ret NtGdiGetFontFileInfo ENDP ; ULONG64 __stdcall NtGdiGetFontResourceInfoInternalW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiGetFontResourceInfoInternalW PROC STDCALL mov r10 , rcx mov eax , 4634 ;syscall db 0Fh , 05h ret NtGdiGetFontResourceInfoInternalW ENDP ; ULONG64 __stdcall NtGdiGetFontUnicodeRanges( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetFontUnicodeRanges PROC STDCALL mov r10 , rcx mov eax , 4635 ;syscall db 0Fh , 05h ret NtGdiGetFontUnicodeRanges ENDP ; ULONG64 __stdcall NtGdiGetGlyphIndicesW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiGetGlyphIndicesW PROC STDCALL mov r10 , rcx mov eax , 4636 ;syscall db 0Fh , 05h ret NtGdiGetGlyphIndicesW ENDP ; ULONG64 __stdcall NtGdiGetGlyphIndicesWInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiGetGlyphIndicesWInternal PROC STDCALL mov r10 , rcx mov eax , 4637 ;syscall db 0Fh , 05h ret NtGdiGetGlyphIndicesWInternal ENDP ; ULONG64 __stdcall NtGdiGetGlyphOutline( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiGetGlyphOutline PROC STDCALL mov r10 , rcx mov eax , 4638 ;syscall db 0Fh , 05h ret NtGdiGetGlyphOutline ENDP ; ULONG64 __stdcall NtGdiGetKerningPairs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetKerningPairs PROC STDCALL mov r10 , rcx mov eax , 4639 ;syscall db 0Fh , 05h ret NtGdiGetKerningPairs ENDP ; ULONG64 __stdcall NtGdiGetLinkedUFIs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetLinkedUFIs PROC STDCALL mov r10 , rcx mov eax , 4640 ;syscall db 0Fh , 05h ret NtGdiGetLinkedUFIs ENDP ; ULONG64 __stdcall NtGdiGetMiterLimit( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetMiterLimit PROC STDCALL mov r10 , rcx mov eax , 4641 ;syscall db 0Fh , 05h ret NtGdiGetMiterLimit ENDP ; ULONG64 __stdcall NtGdiGetMonitorID( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetMonitorID PROC STDCALL mov r10 , rcx mov eax , 4642 ;syscall db 0Fh , 05h ret NtGdiGetMonitorID ENDP ; ULONG64 __stdcall NtGdiGetNumberOfPhysicalMonitors( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetNumberOfPhysicalMonitors PROC STDCALL mov r10 , rcx mov eax , 4643 ;syscall db 0Fh , 05h ret NtGdiGetNumberOfPhysicalMonitors ENDP ; ULONG64 __stdcall NtGdiGetOPMInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetOPMInformation PROC STDCALL mov r10 , rcx mov eax , 4644 ;syscall db 0Fh , 05h ret NtGdiGetOPMInformation ENDP ; ULONG64 __stdcall NtGdiGetOPMRandomNumber( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetOPMRandomNumber PROC STDCALL mov r10 , rcx mov eax , 4645 ;syscall db 0Fh , 05h ret NtGdiGetOPMRandomNumber ENDP ; ULONG64 __stdcall NtGdiGetObjectBitmapHandle( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetObjectBitmapHandle PROC STDCALL mov r10 , rcx mov eax , 4646 ;syscall db 0Fh , 05h ret NtGdiGetObjectBitmapHandle ENDP ; ULONG64 __stdcall NtGdiGetPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiGetPath PROC STDCALL mov r10 , rcx mov eax , 4647 ;syscall db 0Fh , 05h ret NtGdiGetPath ENDP ; ULONG64 __stdcall NtGdiGetPerBandInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetPerBandInfo PROC STDCALL mov r10 , rcx mov eax , 4648 ;syscall db 0Fh , 05h ret NtGdiGetPerBandInfo ENDP ; ULONG64 __stdcall NtGdiGetPhysicalMonitorDescription( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiGetPhysicalMonitorDescription PROC STDCALL mov r10 , rcx mov eax , 4649 ;syscall db 0Fh , 05h ret NtGdiGetPhysicalMonitorDescription ENDP ; ULONG64 __stdcall NtGdiGetPhysicalMonitors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiGetPhysicalMonitors PROC STDCALL mov r10 , rcx mov eax , 4650 ;syscall db 0Fh , 05h ret NtGdiGetPhysicalMonitors ENDP ; ULONG64 __stdcall NtGdiGetRealizationInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetRealizationInfo PROC STDCALL mov r10 , rcx mov eax , 4651 ;syscall db 0Fh , 05h ret NtGdiGetRealizationInfo ENDP ; ULONG64 __stdcall NtGdiGetServerMetaFileBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiGetServerMetaFileBits PROC STDCALL mov r10 , rcx mov eax , 4652 ;syscall db 0Fh , 05h ret NtGdiGetServerMetaFileBits ENDP ; ULONG64 __stdcall DxgStubAlphaBlt( ); DxgStubAlphaBlt PROC STDCALL mov r10 , rcx mov eax , 4653 ;syscall db 0Fh , 05h ret DxgStubAlphaBlt ENDP ; ULONG64 __stdcall NtGdiGetStats( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiGetStats PROC STDCALL mov r10 , rcx mov eax , 4654 ;syscall db 0Fh , 05h ret NtGdiGetStats ENDP ; ULONG64 __stdcall NtGdiGetStringBitmapW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiGetStringBitmapW PROC STDCALL mov r10 , rcx mov eax , 4655 ;syscall db 0Fh , 05h ret NtGdiGetStringBitmapW ENDP ; ULONG64 __stdcall NtGdiGetSuggestedOPMProtectedOutputArraySize( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiGetSuggestedOPMProtectedOutputArraySize PROC STDCALL mov r10 , rcx mov eax , 4656 ;syscall db 0Fh , 05h ret NtGdiGetSuggestedOPMProtectedOutputArraySize ENDP ; ULONG64 __stdcall NtGdiGetTextExtentExW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiGetTextExtentExW PROC STDCALL mov r10 , rcx mov eax , 4657 ;syscall db 0Fh , 05h ret NtGdiGetTextExtentExW ENDP ; ULONG64 __stdcall NtGdiGetUFI( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiGetUFI PROC STDCALL mov r10 , rcx mov eax , 4658 ;syscall db 0Fh , 05h ret NtGdiGetUFI ENDP ; ULONG64 __stdcall NtGdiGetUFIPathname( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); NtGdiGetUFIPathname PROC STDCALL mov r10 , rcx mov eax , 4659 ;syscall db 0Fh , 05h ret NtGdiGetUFIPathname ENDP ; ULONG64 __stdcall NtGdiGradientFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiGradientFill PROC STDCALL mov r10 , rcx mov eax , 4660 ;syscall db 0Fh , 05h ret NtGdiGradientFill ENDP ; ULONG64 __stdcall NtGdiHLSurfGetInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiHLSurfGetInformation PROC STDCALL mov r10 , rcx mov eax , 4661 ;syscall db 0Fh , 05h ret NtGdiHLSurfGetInformation ENDP ; ULONG64 __stdcall NtGdiHLSurfSetInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiHLSurfSetInformation PROC STDCALL mov r10 , rcx mov eax , 4662 ;syscall db 0Fh , 05h ret NtGdiHLSurfSetInformation ENDP ; ULONG64 __stdcall NtGdiHT_Get8BPPFormatPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiHT_Get8BPPFormatPalette PROC STDCALL mov r10 , rcx mov eax , 4663 ;syscall db 0Fh , 05h ret NtGdiHT_Get8BPPFormatPalette ENDP ; ULONG64 __stdcall NtGdiHT_Get8BPPMaskPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiHT_Get8BPPMaskPalette PROC STDCALL mov r10 , rcx mov eax , 4664 ;syscall db 0Fh , 05h ret NtGdiHT_Get8BPPMaskPalette ENDP ; ULONG64 __stdcall NtGdiIcmBrushInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtGdiIcmBrushInfo PROC STDCALL mov r10 , rcx mov eax , 4665 ;syscall db 0Fh , 05h ret NtGdiIcmBrushInfo ENDP ; ULONG64 __stdcall EngRestoreFloatingPointState( ); EngRestoreFloatingPointState PROC STDCALL mov r10 , rcx mov eax , 4666 ;syscall db 0Fh , 05h ret EngRestoreFloatingPointState ENDP ; ULONG64 __stdcall NtGdiInitSpool( ); NtGdiInitSpool PROC STDCALL mov r10 , rcx mov eax , 4667 ;syscall db 0Fh , 05h ret NtGdiInitSpool ENDP ; ULONG64 __stdcall NtGdiMakeFontDir( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiMakeFontDir PROC STDCALL mov r10 , rcx mov eax , 4668 ;syscall db 0Fh , 05h ret NtGdiMakeFontDir ENDP ; ULONG64 __stdcall NtGdiMakeInfoDC( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiMakeInfoDC PROC STDCALL mov r10 , rcx mov eax , 4669 ;syscall db 0Fh , 05h ret NtGdiMakeInfoDC ENDP ; ULONG64 __stdcall NtGdiMakeObjectUnXferable( ULONG64 arg_01 ); NtGdiMakeObjectUnXferable PROC STDCALL mov r10 , rcx mov eax , 4670 ;syscall db 0Fh , 05h ret NtGdiMakeObjectUnXferable ENDP ; ULONG64 __stdcall NtGdiMakeObjectXferable( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiMakeObjectXferable PROC STDCALL mov r10 , rcx mov eax , 4671 ;syscall db 0Fh , 05h ret NtGdiMakeObjectXferable ENDP ; ULONG64 __stdcall NtGdiMirrorWindowOrg( ULONG64 arg_01 ); NtGdiMirrorWindowOrg PROC STDCALL mov r10 , rcx mov eax , 4672 ;syscall db 0Fh , 05h ret NtGdiMirrorWindowOrg ENDP ; ULONG64 __stdcall NtGdiMonoBitmap( ULONG64 arg_01 ); NtGdiMonoBitmap PROC STDCALL mov r10 , rcx mov eax , 4673 ;syscall db 0Fh , 05h ret NtGdiMonoBitmap ENDP ; ULONG64 __stdcall NtGdiMoveTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiMoveTo PROC STDCALL mov r10 , rcx mov eax , 4674 ;syscall db 0Fh , 05h ret NtGdiMoveTo ENDP ; ULONG64 __stdcall NtGdiOffsetClipRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiOffsetClipRgn PROC STDCALL mov r10 , rcx mov eax , 4675 ;syscall db 0Fh , 05h ret NtGdiOffsetClipRgn ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiPATHOBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4676 ;syscall db 0Fh , 05h ret NtGdiPATHOBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_bEnumClipLines( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiPATHOBJ_bEnumClipLines PROC STDCALL mov r10 , rcx mov eax , 4677 ;syscall db 0Fh , 05h ret NtGdiPATHOBJ_bEnumClipLines ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vEnumStart( ULONG64 arg_01 ); NtGdiPATHOBJ_vEnumStart PROC STDCALL mov r10 , rcx mov eax , 4678 ;syscall db 0Fh , 05h ret NtGdiPATHOBJ_vEnumStart ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vEnumStartClipLines( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiPATHOBJ_vEnumStartClipLines PROC STDCALL mov r10 , rcx mov eax , 4679 ;syscall db 0Fh , 05h ret NtGdiPATHOBJ_vEnumStartClipLines ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vGetBounds( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiPATHOBJ_vGetBounds PROC STDCALL mov r10 , rcx mov eax , 4680 ;syscall db 0Fh , 05h ret NtGdiPATHOBJ_vGetBounds ENDP ; ULONG64 __stdcall NtGdiPathToRegion( ULONG64 arg_01 ); NtGdiPathToRegion PROC STDCALL mov r10 , rcx mov eax , 4681 ;syscall db 0Fh , 05h ret NtGdiPathToRegion ENDP ; ULONG64 __stdcall NtGdiPlgBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiPlgBlt PROC STDCALL mov r10 , rcx mov eax , 4682 ;syscall db 0Fh , 05h ret NtGdiPlgBlt ENDP ; ULONG64 __stdcall NtGdiPolyDraw( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiPolyDraw PROC STDCALL mov r10 , rcx mov eax , 4683 ;syscall db 0Fh , 05h ret NtGdiPolyDraw ENDP ; ULONG64 __stdcall NtGdiPolyTextOutW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiPolyTextOutW PROC STDCALL mov r10 , rcx mov eax , 4684 ;syscall db 0Fh , 05h ret NtGdiPolyTextOutW ENDP ; ULONG64 __stdcall NtGdiPtInRegion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiPtInRegion PROC STDCALL mov r10 , rcx mov eax , 4685 ;syscall db 0Fh , 05h ret NtGdiPtInRegion ENDP ; ULONG64 __stdcall NtGdiPtVisible( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiPtVisible PROC STDCALL mov r10 , rcx mov eax , 4686 ;syscall db 0Fh , 05h ret NtGdiPtVisible ENDP ; ULONG64 __stdcall NtGdiQueryFonts( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiQueryFonts PROC STDCALL mov r10 , rcx mov eax , 4687 ;syscall db 0Fh , 05h ret NtGdiQueryFonts ENDP ; ULONG64 __stdcall NtGdiRemoveFontResourceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiRemoveFontResourceW PROC STDCALL mov r10 , rcx mov eax , 4688 ;syscall db 0Fh , 05h ret NtGdiRemoveFontResourceW ENDP ; ULONG64 __stdcall NtGdiRemoveMergeFont( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiRemoveMergeFont PROC STDCALL mov r10 , rcx mov eax , 4689 ;syscall db 0Fh , 05h ret NtGdiRemoveMergeFont ENDP ; ULONG64 __stdcall NtGdiResetDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiResetDC PROC STDCALL mov r10 , rcx mov eax , 4690 ;syscall db 0Fh , 05h ret NtGdiResetDC ENDP ; ULONG64 __stdcall NtGdiResizePalette( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiResizePalette PROC STDCALL mov r10 , rcx mov eax , 4691 ;syscall db 0Fh , 05h ret NtGdiResizePalette ENDP ; ULONG64 __stdcall NtGdiRoundRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtGdiRoundRect PROC STDCALL mov r10 , rcx mov eax , 4692 ;syscall db 0Fh , 05h ret NtGdiRoundRect ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSTROBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4693 ;syscall db 0Fh , 05h ret NtGdiSTROBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bEnumPositionsOnly( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSTROBJ_bEnumPositionsOnly PROC STDCALL mov r10 , rcx mov eax , 4694 ;syscall db 0Fh , 05h ret NtGdiSTROBJ_bEnumPositionsOnly ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bGetAdvanceWidths( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiSTROBJ_bGetAdvanceWidths PROC STDCALL mov r10 , rcx mov eax , 4695 ;syscall db 0Fh , 05h ret NtGdiSTROBJ_bGetAdvanceWidths ENDP ; ULONG64 __stdcall NtGdiSTROBJ_dwGetCodePage( ULONG64 arg_01 ); NtGdiSTROBJ_dwGetCodePage PROC STDCALL mov r10 , rcx mov eax , 4696 ;syscall db 0Fh , 05h ret NtGdiSTROBJ_dwGetCodePage ENDP ; ULONG64 __stdcall NtGdiSTROBJ_vEnumStart( ULONG64 arg_01 ); NtGdiSTROBJ_vEnumStart PROC STDCALL mov r10 , rcx mov eax , 4697 ;syscall db 0Fh , 05h ret NtGdiSTROBJ_vEnumStart ENDP ; ULONG64 __stdcall NtGdiScaleViewportExtEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiScaleViewportExtEx PROC STDCALL mov r10 , rcx mov eax , 4698 ;syscall db 0Fh , 05h ret NtGdiScaleViewportExtEx ENDP ; ULONG64 __stdcall NtGdiScaleWindowExtEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtGdiScaleWindowExtEx PROC STDCALL mov r10 , rcx mov eax , 4699 ;syscall db 0Fh , 05h ret NtGdiScaleWindowExtEx ENDP ; ULONG64 __stdcall NtGdiSelectBrush( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSelectBrush PROC STDCALL mov r10 , rcx mov eax , 4700 ;syscall db 0Fh , 05h ret NtGdiSelectBrush ENDP ; ULONG64 __stdcall NtGdiSelectClipPath( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSelectClipPath PROC STDCALL mov r10 , rcx mov eax , 4701 ;syscall db 0Fh , 05h ret NtGdiSelectClipPath ENDP ; ULONG64 __stdcall NtGdiSelectPen( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSelectPen PROC STDCALL mov r10 , rcx mov eax , 4702 ;syscall db 0Fh , 05h ret NtGdiSelectPen ENDP ; ULONG64 __stdcall NtGdiSetBitmapAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSetBitmapAttributes PROC STDCALL mov r10 , rcx mov eax , 4703 ;syscall db 0Fh , 05h ret NtGdiSetBitmapAttributes ENDP ; ULONG64 __stdcall NtGdiSetBrushAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSetBrushAttributes PROC STDCALL mov r10 , rcx mov eax , 4704 ;syscall db 0Fh , 05h ret NtGdiSetBrushAttributes ENDP ; ULONG64 __stdcall NtGdiSetColorAdjustment( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSetColorAdjustment PROC STDCALL mov r10 , rcx mov eax , 4705 ;syscall db 0Fh , 05h ret NtGdiSetColorAdjustment ENDP ; ULONG64 __stdcall NtGdiSetColorSpace( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSetColorSpace PROC STDCALL mov r10 , rcx mov eax , 4706 ;syscall db 0Fh , 05h ret NtGdiSetColorSpace ENDP ; ULONG64 __stdcall NtGdiSetDeviceGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSetDeviceGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4707 ;syscall db 0Fh , 05h ret NtGdiSetDeviceGammaRamp ENDP ; ULONG64 __stdcall NtGdiSetFontXform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetFontXform PROC STDCALL mov r10 , rcx mov eax , 4708 ;syscall db 0Fh , 05h ret NtGdiSetFontXform ENDP ; ULONG64 __stdcall NtGdiSetIcmMode( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetIcmMode PROC STDCALL mov r10 , rcx mov eax , 4709 ;syscall db 0Fh , 05h ret NtGdiSetIcmMode ENDP ; ULONG64 __stdcall NtGdiSetLinkedUFIs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetLinkedUFIs PROC STDCALL mov r10 , rcx mov eax , 4710 ;syscall db 0Fh , 05h ret NtGdiSetLinkedUFIs ENDP ; ULONG64 __stdcall NtGdiSetMagicColors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetMagicColors PROC STDCALL mov r10 , rcx mov eax , 4711 ;syscall db 0Fh , 05h ret NtGdiSetMagicColors ENDP ; ULONG64 __stdcall NtGdiSetOPMSigningKeyAndSequenceNumbers( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSetOPMSigningKeyAndSequenceNumbers PROC STDCALL mov r10 , rcx mov eax , 4712 ;syscall db 0Fh , 05h ret NtGdiSetOPMSigningKeyAndSequenceNumbers ENDP ; ULONG64 __stdcall NtGdiSetPUMPDOBJ( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiSetPUMPDOBJ PROC STDCALL mov r10 , rcx mov eax , 4713 ;syscall db 0Fh , 05h ret NtGdiSetPUMPDOBJ ENDP ; ULONG64 __stdcall NtGdiSetPixelFormat( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSetPixelFormat PROC STDCALL mov r10 , rcx mov eax , 4714 ;syscall db 0Fh , 05h ret NtGdiSetPixelFormat ENDP ; ULONG64 __stdcall NtGdiSetRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiSetRectRgn PROC STDCALL mov r10 , rcx mov eax , 4715 ;syscall db 0Fh , 05h ret NtGdiSetRectRgn ENDP ; ULONG64 __stdcall NtGdiSetSizeDevice( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetSizeDevice PROC STDCALL mov r10 , rcx mov eax , 4716 ;syscall db 0Fh , 05h ret NtGdiSetSizeDevice ENDP ; ULONG64 __stdcall NtGdiSetSystemPaletteUse( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiSetSystemPaletteUse PROC STDCALL mov r10 , rcx mov eax , 4717 ;syscall db 0Fh , 05h ret NtGdiSetSystemPaletteUse ENDP ; ULONG64 __stdcall NtGdiSetTextJustification( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSetTextJustification PROC STDCALL mov r10 , rcx mov eax , 4718 ;syscall db 0Fh , 05h ret NtGdiSetTextJustification ENDP ; ULONG64 __stdcall NtGdiSfmGetNotificationTokens( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtGdiSfmGetNotificationTokens PROC STDCALL mov r10 , rcx mov eax , 4719 ;syscall db 0Fh , 05h ret NtGdiSfmGetNotificationTokens ENDP ; ULONG64 __stdcall NtGdiStartDoc( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiStartDoc PROC STDCALL mov r10 , rcx mov eax , 4720 ;syscall db 0Fh , 05h ret NtGdiStartDoc ENDP ; ULONG64 __stdcall NtGdiStartPage( ULONG64 arg_01 ); NtGdiStartPage PROC STDCALL mov r10 , rcx mov eax , 4721 ;syscall db 0Fh , 05h ret NtGdiStartPage ENDP ; ULONG64 __stdcall NtGdiStrokeAndFillPath( ULONG64 arg_01 ); NtGdiStrokeAndFillPath PROC STDCALL mov r10 , rcx mov eax , 4722 ;syscall db 0Fh , 05h ret NtGdiStrokeAndFillPath ENDP ; ULONG64 __stdcall NtGdiStrokePath( ULONG64 arg_01 ); NtGdiStrokePath PROC STDCALL mov r10 , rcx mov eax , 4723 ;syscall db 0Fh , 05h ret NtGdiStrokePath ENDP ; ULONG64 __stdcall NtGdiSwapBuffers( ULONG64 arg_01 ); NtGdiSwapBuffers PROC STDCALL mov r10 , rcx mov eax , 4724 ;syscall db 0Fh , 05h ret NtGdiSwapBuffers ENDP ; ULONG64 __stdcall NtGdiTransparentBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); NtGdiTransparentBlt PROC STDCALL mov r10 , rcx mov eax , 4725 ;syscall db 0Fh , 05h ret NtGdiTransparentBlt ENDP ; ULONG64 __stdcall NtGdiUMPDEngFreeUserMem( ULONG64 arg_01 ); NtGdiUMPDEngFreeUserMem PROC STDCALL mov r10 , rcx mov eax , 4726 ;syscall db 0Fh , 05h ret NtGdiUMPDEngFreeUserMem ENDP ; ULONG64 __stdcall DxgStubAlphaBlt( ); DxgStubAlphaBlt PROC STDCALL mov r10 , rcx mov eax , 4727 ;syscall db 0Fh , 05h ret DxgStubAlphaBlt ENDP ; ULONG64 __stdcall EngRestoreFloatingPointState( ); EngRestoreFloatingPointState PROC STDCALL mov r10 , rcx mov eax , 4728 ;syscall db 0Fh , 05h ret EngRestoreFloatingPointState ENDP ; ULONG64 __stdcall NtGdiUpdateColors( ULONG64 arg_01 ); NtGdiUpdateColors PROC STDCALL mov r10 , rcx mov eax , 4729 ;syscall db 0Fh , 05h ret NtGdiUpdateColors ENDP ; ULONG64 __stdcall NtGdiUpdateTransform( ULONG64 arg_01 ); NtGdiUpdateTransform PROC STDCALL mov r10 , rcx mov eax , 4730 ;syscall db 0Fh , 05h ret NtGdiUpdateTransform ENDP ; ULONG64 __stdcall NtGdiWidenPath( ULONG64 arg_01 ); NtGdiWidenPath PROC STDCALL mov r10 , rcx mov eax , 4731 ;syscall db 0Fh , 05h ret NtGdiWidenPath ENDP ; ULONG64 __stdcall NtGdiXFORMOBJ_bApplyXform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtGdiXFORMOBJ_bApplyXform PROC STDCALL mov r10 , rcx mov eax , 4732 ;syscall db 0Fh , 05h ret NtGdiXFORMOBJ_bApplyXform ENDP ; ULONG64 __stdcall NtGdiXFORMOBJ_iGetXform( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiXFORMOBJ_iGetXform PROC STDCALL mov r10 , rcx mov eax , 4733 ;syscall db 0Fh , 05h ret NtGdiXFORMOBJ_iGetXform ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_cGetPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtGdiXLATEOBJ_cGetPalette PROC STDCALL mov r10 , rcx mov eax , 4734 ;syscall db 0Fh , 05h ret NtGdiXLATEOBJ_cGetPalette ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_hGetColorTransform( ULONG64 arg_01 ); NtGdiXLATEOBJ_hGetColorTransform PROC STDCALL mov r10 , rcx mov eax , 4735 ;syscall db 0Fh , 05h ret NtGdiXLATEOBJ_hGetColorTransform ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_iXlate( ULONG64 arg_01 , ULONG64 arg_02 ); NtGdiXLATEOBJ_iXlate PROC STDCALL mov r10 , rcx mov eax , 4736 ;syscall db 0Fh , 05h ret NtGdiXLATEOBJ_iXlate ENDP ; ULONG64 __stdcall NtUserAddClipboardFormatListener( ULONG64 arg_01 ); NtUserAddClipboardFormatListener PROC STDCALL mov r10 , rcx mov eax , 4737 ;syscall db 0Fh , 05h ret NtUserAddClipboardFormatListener ENDP ; ULONG64 __stdcall NtUserAssociateInputContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserAssociateInputContext PROC STDCALL mov r10 , rcx mov eax , 4738 ;syscall db 0Fh , 05h ret NtUserAssociateInputContext ENDP ; ULONG64 __stdcall NtUserBlockInput( ULONG64 arg_01 ); NtUserBlockInput PROC STDCALL mov r10 , rcx mov eax , 4739 ;syscall db 0Fh , 05h ret NtUserBlockInput ENDP ; ULONG64 __stdcall NtUserBuildHimcList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserBuildHimcList PROC STDCALL mov r10 , rcx mov eax , 4740 ;syscall db 0Fh , 05h ret NtUserBuildHimcList ENDP ; ULONG64 __stdcall NtUserBuildPropList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserBuildPropList PROC STDCALL mov r10 , rcx mov eax , 4741 ;syscall db 0Fh , 05h ret NtUserBuildPropList ENDP ; ULONG64 __stdcall NtUserCalculatePopupWindowPosition( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserCalculatePopupWindowPosition PROC STDCALL mov r10 , rcx mov eax , 4742 ;syscall db 0Fh , 05h ret NtUserCalculatePopupWindowPosition ENDP ; ULONG64 __stdcall NtUserCallHwndOpt( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserCallHwndOpt PROC STDCALL mov r10 , rcx mov eax , 4743 ;syscall db 0Fh , 05h ret NtUserCallHwndOpt ENDP ; ULONG64 __stdcall NtUserChangeDisplaySettings( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserChangeDisplaySettings PROC STDCALL mov r10 , rcx mov eax , 4744 ;syscall db 0Fh , 05h ret NtUserChangeDisplaySettings ENDP ; ULONG64 __stdcall NtUserChangeWindowMessageFilterEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserChangeWindowMessageFilterEx PROC STDCALL mov r10 , rcx mov eax , 4745 ;syscall db 0Fh , 05h ret NtUserChangeWindowMessageFilterEx ENDP ; ULONG64 __stdcall NtUserCheckAccessForIntegrityLevel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserCheckAccessForIntegrityLevel PROC STDCALL mov r10 , rcx mov eax , 4746 ;syscall db 0Fh , 05h ret NtUserCheckAccessForIntegrityLevel ENDP ; ULONG64 __stdcall NtUserCheckDesktopByThreadId( ULONG64 arg_01 ); NtUserCheckDesktopByThreadId PROC STDCALL mov r10 , rcx mov eax , 4747 ;syscall db 0Fh , 05h ret NtUserCheckDesktopByThreadId ENDP ; ULONG64 __stdcall NtUserCheckWindowThreadDesktop( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserCheckWindowThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4748 ;syscall db 0Fh , 05h ret NtUserCheckWindowThreadDesktop ENDP ; ULONG64 __stdcall NtUserChildWindowFromPointEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserChildWindowFromPointEx PROC STDCALL mov r10 , rcx mov eax , 4749 ;syscall db 0Fh , 05h ret NtUserChildWindowFromPointEx ENDP ; ULONG64 __stdcall NtUserClipCursor( ULONG64 arg_01 ); NtUserClipCursor PROC STDCALL mov r10 , rcx mov eax , 4750 ;syscall db 0Fh , 05h ret NtUserClipCursor ENDP ; ULONG64 __stdcall NtUserCreateDesktopEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserCreateDesktopEx PROC STDCALL mov r10 , rcx mov eax , 4751 ;syscall db 0Fh , 05h ret NtUserCreateDesktopEx ENDP ; ULONG64 __stdcall NtUserCreateInputContext( ULONG64 arg_01 ); NtUserCreateInputContext PROC STDCALL mov r10 , rcx mov eax , 4752 ;syscall db 0Fh , 05h ret NtUserCreateInputContext ENDP ; ULONG64 __stdcall NtUserCreateWindowStation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtUserCreateWindowStation PROC STDCALL mov r10 , rcx mov eax , 4753 ;syscall db 0Fh , 05h ret NtUserCreateWindowStation ENDP ; ULONG64 __stdcall NtUserCtxDisplayIOCtl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserCtxDisplayIOCtl PROC STDCALL mov r10 , rcx mov eax , 4754 ;syscall db 0Fh , 05h ret NtUserCtxDisplayIOCtl ENDP ; ULONG64 __stdcall NtUserDestroyInputContext( ULONG64 arg_01 ); NtUserDestroyInputContext PROC STDCALL mov r10 , rcx mov eax , 4755 ;syscall db 0Fh , 05h ret NtUserDestroyInputContext ENDP ; ULONG64 __stdcall NtUserDisableThreadIme( ULONG64 arg_01 ); NtUserDisableThreadIme PROC STDCALL mov r10 , rcx mov eax , 4756 ;syscall db 0Fh , 05h ret NtUserDisableThreadIme ENDP ; ULONG64 __stdcall NtUserDisplayConfigGetDeviceInfo( ULONG64 arg_01 ); NtUserDisplayConfigGetDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 4757 ;syscall db 0Fh , 05h ret NtUserDisplayConfigGetDeviceInfo ENDP ; ULONG64 __stdcall NtUserDisplayConfigSetDeviceInfo( ULONG64 arg_01 ); NtUserDisplayConfigSetDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 4758 ;syscall db 0Fh , 05h ret NtUserDisplayConfigSetDeviceInfo ENDP ; ULONG64 __stdcall NtUserDoSoundConnect( ); NtUserDoSoundConnect PROC STDCALL mov r10 , rcx mov eax , 4759 ;syscall db 0Fh , 05h ret NtUserDoSoundConnect ENDP ; ULONG64 __stdcall NtUserDoSoundDisconnect( ); NtUserDoSoundDisconnect PROC STDCALL mov r10 , rcx mov eax , 4760 ;syscall db 0Fh , 05h ret NtUserDoSoundDisconnect ENDP ; ULONG64 __stdcall NtUserDragDetect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserDragDetect PROC STDCALL mov r10 , rcx mov eax , 4761 ;syscall db 0Fh , 05h ret NtUserDragDetect ENDP ; ULONG64 __stdcall NtUserDragObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserDragObject PROC STDCALL mov r10 , rcx mov eax , 4762 ;syscall db 0Fh , 05h ret NtUserDragObject ENDP ; ULONG64 __stdcall NtUserDrawAnimatedRects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserDrawAnimatedRects PROC STDCALL mov r10 , rcx mov eax , 4763 ;syscall db 0Fh , 05h ret NtUserDrawAnimatedRects ENDP ; ULONG64 __stdcall NtUserDrawCaption( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserDrawCaption PROC STDCALL mov r10 , rcx mov eax , 4764 ;syscall db 0Fh , 05h ret NtUserDrawCaption ENDP ; ULONG64 __stdcall NtUserDrawCaptionTemp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); NtUserDrawCaptionTemp PROC STDCALL mov r10 , rcx mov eax , 4765 ;syscall db 0Fh , 05h ret NtUserDrawCaptionTemp ENDP ; ULONG64 __stdcall NtUserDrawMenuBarTemp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserDrawMenuBarTemp PROC STDCALL mov r10 , rcx mov eax , 4766 ;syscall db 0Fh , 05h ret NtUserDrawMenuBarTemp ENDP ; ULONG64 __stdcall NtUserDwmStartRedirection( ULONG64 arg_01 ); NtUserDwmStartRedirection PROC STDCALL mov r10 , rcx mov eax , 4767 ;syscall db 0Fh , 05h ret NtUserDwmStartRedirection ENDP ; ULONG64 __stdcall NtUserDwmStopRedirection( ); NtUserDwmStopRedirection PROC STDCALL mov r10 , rcx mov eax , 4768 ;syscall db 0Fh , 05h ret NtUserDwmStopRedirection ENDP ; ULONG64 __stdcall NtUserEndMenu( ); NtUserEndMenu PROC STDCALL mov r10 , rcx mov eax , 4769 ;syscall db 0Fh , 05h ret NtUserEndMenu ENDP ; ULONG64 __stdcall NtUserEndTouchOperation( ULONG64 arg_01 ); NtUserEndTouchOperation PROC STDCALL mov r10 , rcx mov eax , 4770 ;syscall db 0Fh , 05h ret NtUserEndTouchOperation ENDP ; ULONG64 __stdcall NtUserEvent( ULONG64 arg_01 ); NtUserEvent PROC STDCALL mov r10 , rcx mov eax , 4771 ;syscall db 0Fh , 05h ret NtUserEvent ENDP ; ULONG64 __stdcall NtUserFlashWindowEx( ULONG64 arg_01 ); NtUserFlashWindowEx PROC STDCALL mov r10 , rcx mov eax , 4772 ;syscall db 0Fh , 05h ret NtUserFlashWindowEx ENDP ; ULONG64 __stdcall NtUserFrostCrashedWindow( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserFrostCrashedWindow PROC STDCALL mov r10 , rcx mov eax , 4773 ;syscall db 0Fh , 05h ret NtUserFrostCrashedWindow ENDP ; ULONG64 __stdcall NtUserGetAppImeLevel( ULONG64 arg_01 ); NtUserGetAppImeLevel PROC STDCALL mov r10 , rcx mov eax , 4774 ;syscall db 0Fh , 05h ret NtUserGetAppImeLevel ENDP ; ULONG64 __stdcall NtUserGetCaretPos( ULONG64 arg_01 ); NtUserGetCaretPos PROC STDCALL mov r10 , rcx mov eax , 4775 ;syscall db 0Fh , 05h ret NtUserGetCaretPos ENDP ; ULONG64 __stdcall NtUserGetClipCursor( ULONG64 arg_01 ); NtUserGetClipCursor PROC STDCALL mov r10 , rcx mov eax , 4776 ;syscall db 0Fh , 05h ret NtUserGetClipCursor ENDP ; ULONG64 __stdcall NtUserGetClipboardViewer( ); NtUserGetClipboardViewer PROC STDCALL mov r10 , rcx mov eax , 4777 ;syscall db 0Fh , 05h ret NtUserGetClipboardViewer ENDP ; ULONG64 __stdcall NtUserGetComboBoxInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetComboBoxInfo PROC STDCALL mov r10 , rcx mov eax , 4778 ;syscall db 0Fh , 05h ret NtUserGetComboBoxInfo ENDP ; ULONG64 __stdcall NtUserGetCursorInfo( ULONG64 arg_01 ); NtUserGetCursorInfo PROC STDCALL mov r10 , rcx mov eax , 4779 ;syscall db 0Fh , 05h ret NtUserGetCursorInfo ENDP ; ULONG64 __stdcall NtUserGetDisplayConfigBufferSizes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetDisplayConfigBufferSizes PROC STDCALL mov r10 , rcx mov eax , 4780 ;syscall db 0Fh , 05h ret NtUserGetDisplayConfigBufferSizes ENDP ; ULONG64 __stdcall NtUserGetGestureConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserGetGestureConfig PROC STDCALL mov r10 , rcx mov eax , 4781 ;syscall db 0Fh , 05h ret NtUserGetGestureConfig ENDP ; ULONG64 __stdcall NtUserGetGestureExtArgs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetGestureExtArgs PROC STDCALL mov r10 , rcx mov eax , 4782 ;syscall db 0Fh , 05h ret NtUserGetGestureExtArgs ENDP ; ULONG64 __stdcall NtUserGetGestureInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetGestureInfo PROC STDCALL mov r10 , rcx mov eax , 4783 ;syscall db 0Fh , 05h ret NtUserGetGestureInfo ENDP ; ULONG64 __stdcall NtUserGetGuiResources( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetGuiResources PROC STDCALL mov r10 , rcx mov eax , 4784 ;syscall db 0Fh , 05h ret NtUserGetGuiResources ENDP ; ULONG64 __stdcall NtUserGetImeHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetImeHotKey PROC STDCALL mov r10 , rcx mov eax , 4785 ;syscall db 0Fh , 05h ret NtUserGetImeHotKey ENDP ; ULONG64 __stdcall NtUserGetImeInfoEx( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetImeInfoEx PROC STDCALL mov r10 , rcx mov eax , 4786 ;syscall db 0Fh , 05h ret NtUserGetImeInfoEx ENDP ; ULONG64 __stdcall NtUserGetInputLocaleInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetInputLocaleInfo PROC STDCALL mov r10 , rcx mov eax , 4787 ;syscall db 0Fh , 05h ret NtUserGetInputLocaleInfo ENDP ; ULONG64 __stdcall NtUserGetInternalWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetInternalWindowPos PROC STDCALL mov r10 , rcx mov eax , 4788 ;syscall db 0Fh , 05h ret NtUserGetInternalWindowPos ENDP ; ULONG64 __stdcall NtUserGetKeyNameText( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetKeyNameText PROC STDCALL mov r10 , rcx mov eax , 4789 ;syscall db 0Fh , 05h ret NtUserGetKeyNameText ENDP ; ULONG64 __stdcall NtUserGetKeyboardLayoutName( ULONG64 arg_01 ); NtUserGetKeyboardLayoutName PROC STDCALL mov r10 , rcx mov eax , 4790 ;syscall db 0Fh , 05h ret NtUserGetKeyboardLayoutName ENDP ; ULONG64 __stdcall NtUserGetLayeredWindowAttributes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetLayeredWindowAttributes PROC STDCALL mov r10 , rcx mov eax , 4791 ;syscall db 0Fh , 05h ret NtUserGetLayeredWindowAttributes ENDP ; ULONG64 __stdcall NtUserGetListBoxInfo( ULONG64 arg_01 ); NtUserGetListBoxInfo PROC STDCALL mov r10 , rcx mov eax , 4792 ;syscall db 0Fh , 05h ret NtUserGetListBoxInfo ENDP ; ULONG64 __stdcall NtUserGetMenuIndex( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetMenuIndex PROC STDCALL mov r10 , rcx mov eax , 4793 ;syscall db 0Fh , 05h ret NtUserGetMenuIndex ENDP ; ULONG64 __stdcall NtUserGetMenuItemRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetMenuItemRect PROC STDCALL mov r10 , rcx mov eax , 4794 ;syscall db 0Fh , 05h ret NtUserGetMenuItemRect ENDP ; ULONG64 __stdcall NtUserGetMouseMovePointsEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserGetMouseMovePointsEx PROC STDCALL mov r10 , rcx mov eax , 4795 ;syscall db 0Fh , 05h ret NtUserGetMouseMovePointsEx ENDP ; ULONG64 __stdcall NtUserGetPriorityClipboardFormat( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetPriorityClipboardFormat PROC STDCALL mov r10 , rcx mov eax , 4796 ;syscall db 0Fh , 05h ret NtUserGetPriorityClipboardFormat ENDP ; ULONG64 __stdcall NtUserGetRawInputBuffer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetRawInputBuffer PROC STDCALL mov r10 , rcx mov eax , 4797 ;syscall db 0Fh , 05h ret NtUserGetRawInputBuffer ENDP ; ULONG64 __stdcall NtUserGetRawInputData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserGetRawInputData PROC STDCALL mov r10 , rcx mov eax , 4798 ;syscall db 0Fh , 05h ret NtUserGetRawInputData ENDP ; ULONG64 __stdcall NtUserGetRawInputDeviceInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetRawInputDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 4799 ;syscall db 0Fh , 05h ret NtUserGetRawInputDeviceInfo ENDP ; ULONG64 __stdcall NtUserGetRawInputDeviceList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetRawInputDeviceList PROC STDCALL mov r10 , rcx mov eax , 4800 ;syscall db 0Fh , 05h ret NtUserGetRawInputDeviceList ENDP ; ULONG64 __stdcall NtUserGetRegisteredRawInputDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetRegisteredRawInputDevices PROC STDCALL mov r10 , rcx mov eax , 4801 ;syscall db 0Fh , 05h ret NtUserGetRegisteredRawInputDevices ENDP ; ULONG64 __stdcall NtUserGetTopLevelWindow( ULONG64 arg_01 ); NtUserGetTopLevelWindow PROC STDCALL mov r10 , rcx mov eax , 4802 ;syscall db 0Fh , 05h ret NtUserGetTopLevelWindow ENDP ; ULONG64 __stdcall NtUserGetTouchInputInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserGetTouchInputInfo PROC STDCALL mov r10 , rcx mov eax , 4803 ;syscall db 0Fh , 05h ret NtUserGetTouchInputInfo ENDP ; ULONG64 __stdcall NtUserGetUpdatedClipboardFormats( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetUpdatedClipboardFormats PROC STDCALL mov r10 , rcx mov eax , 4804 ;syscall db 0Fh , 05h ret NtUserGetUpdatedClipboardFormats ENDP ; ULONG64 __stdcall NtUserGetWOWClass( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetWOWClass PROC STDCALL mov r10 , rcx mov eax , 4805 ;syscall db 0Fh , 05h ret NtUserGetWOWClass ENDP ; ULONG64 __stdcall NtUserGetWindowCompositionAttribute( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetWindowCompositionAttribute PROC STDCALL mov r10 , rcx mov eax , 4806 ;syscall db 0Fh , 05h ret NtUserGetWindowCompositionAttribute ENDP ; ULONG64 __stdcall NtUserGetWindowCompositionInfo( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetWindowCompositionInfo PROC STDCALL mov r10 , rcx mov eax , 4807 ;syscall db 0Fh , 05h ret NtUserGetWindowCompositionInfo ENDP ; ULONG64 __stdcall NtUserGetWindowDisplayAffinity( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetWindowDisplayAffinity PROC STDCALL mov r10 , rcx mov eax , 4808 ;syscall db 0Fh , 05h ret NtUserGetWindowDisplayAffinity ENDP ; ULONG64 __stdcall NtUserGetWindowMinimizeRect( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserGetWindowMinimizeRect PROC STDCALL mov r10 , rcx mov eax , 4809 ;syscall db 0Fh , 05h ret NtUserGetWindowMinimizeRect ENDP ; ULONG64 __stdcall NtUserGetWindowRgnEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserGetWindowRgnEx PROC STDCALL mov r10 , rcx mov eax , 4810 ;syscall db 0Fh , 05h ret NtUserGetWindowRgnEx ENDP ; ULONG64 __stdcall NtUserGhostWindowFromHungWindow( ULONG64 arg_01 ); NtUserGhostWindowFromHungWindow PROC STDCALL mov r10 , rcx mov eax , 4811 ;syscall db 0Fh , 05h ret NtUserGhostWindowFromHungWindow ENDP ; ULONG64 __stdcall NtUserHardErrorControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserHardErrorControl PROC STDCALL mov r10 , rcx mov eax , 4812 ;syscall db 0Fh , 05h ret NtUserHardErrorControl ENDP ; ULONG64 __stdcall NtUserHiliteMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserHiliteMenuItem PROC STDCALL mov r10 , rcx mov eax , 4813 ;syscall db 0Fh , 05h ret NtUserHiliteMenuItem ENDP ; ULONG64 __stdcall NtUserHungWindowFromGhostWindow( ULONG64 arg_01 ); NtUserHungWindowFromGhostWindow PROC STDCALL mov r10 , rcx mov eax , 4814 ;syscall db 0Fh , 05h ret NtUserHungWindowFromGhostWindow ENDP ; ULONG64 __stdcall NtUserHwndQueryRedirectionInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserHwndQueryRedirectionInfo PROC STDCALL mov r10 , rcx mov eax , 4815 ;syscall db 0Fh , 05h ret NtUserHwndQueryRedirectionInfo ENDP ; ULONG64 __stdcall NtUserHwndSetRedirectionInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserHwndSetRedirectionInfo PROC STDCALL mov r10 , rcx mov eax , 4816 ;syscall db 0Fh , 05h ret NtUserHwndSetRedirectionInfo ENDP ; ULONG64 __stdcall NtUserImpersonateDdeClientWindow( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserImpersonateDdeClientWindow PROC STDCALL mov r10 , rcx mov eax , 4817 ;syscall db 0Fh , 05h ret NtUserImpersonateDdeClientWindow ENDP ; ULONG64 __stdcall NtUserInitTask( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); NtUserInitTask PROC STDCALL mov r10 , rcx mov eax , 4818 ;syscall db 0Fh , 05h ret NtUserInitTask ENDP ; ULONG64 __stdcall NtUserInitialize( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserInitialize PROC STDCALL mov r10 , rcx mov eax , 4819 ;syscall db 0Fh , 05h ret NtUserInitialize ENDP ; ULONG64 __stdcall NtUserInitializeClientPfnArrays( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserInitializeClientPfnArrays PROC STDCALL mov r10 , rcx mov eax , 4820 ;syscall db 0Fh , 05h ret NtUserInitializeClientPfnArrays ENDP ; ULONG64 __stdcall NtUserInjectGesture( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserInjectGesture PROC STDCALL mov r10 , rcx mov eax , 4821 ;syscall db 0Fh , 05h ret NtUserInjectGesture ENDP ; ULONG64 __stdcall NtUserInternalGetWindowIcon( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserInternalGetWindowIcon PROC STDCALL mov r10 , rcx mov eax , 4822 ;syscall db 0Fh , 05h ret NtUserInternalGetWindowIcon ENDP ; ULONG64 __stdcall NtUserIsTopLevelWindow( ULONG64 arg_01 ); NtUserIsTopLevelWindow PROC STDCALL mov r10 , rcx mov eax , 4823 ;syscall db 0Fh , 05h ret NtUserIsTopLevelWindow ENDP ; ULONG64 __stdcall NtUserIsTouchWindow( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserIsTouchWindow PROC STDCALL mov r10 , rcx mov eax , 4824 ;syscall db 0Fh , 05h ret NtUserIsTouchWindow ENDP ; ULONG64 __stdcall NtUserLoadKeyboardLayoutEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); NtUserLoadKeyboardLayoutEx PROC STDCALL mov r10 , rcx mov eax , 4825 ;syscall db 0Fh , 05h ret NtUserLoadKeyboardLayoutEx ENDP ; ULONG64 __stdcall NtUserLockWindowStation( ULONG64 arg_01 ); NtUserLockWindowStation PROC STDCALL mov r10 , rcx mov eax , 4826 ;syscall db 0Fh , 05h ret NtUserLockWindowStation ENDP ; ULONG64 __stdcall NtUserLockWorkStation( ); NtUserLockWorkStation PROC STDCALL mov r10 , rcx mov eax , 4827 ;syscall db 0Fh , 05h ret NtUserLockWorkStation ENDP ; ULONG64 __stdcall NtUserLogicalToPhysicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserLogicalToPhysicalPoint PROC STDCALL mov r10 , rcx mov eax , 4828 ;syscall db 0Fh , 05h ret NtUserLogicalToPhysicalPoint ENDP ; ULONG64 __stdcall NtUserMNDragLeave( ); NtUserMNDragLeave PROC STDCALL mov r10 , rcx mov eax , 4829 ;syscall db 0Fh , 05h ret NtUserMNDragLeave ENDP ; ULONG64 __stdcall NtUserMNDragOver( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserMNDragOver PROC STDCALL mov r10 , rcx mov eax , 4830 ;syscall db 0Fh , 05h ret NtUserMNDragOver ENDP ; ULONG64 __stdcall NtUserMagControl( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserMagControl PROC STDCALL mov r10 , rcx mov eax , 4831 ;syscall db 0Fh , 05h ret NtUserMagControl ENDP ; ULONG64 __stdcall NtUserMagGetContextInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserMagGetContextInformation PROC STDCALL mov r10 , rcx mov eax , 4832 ;syscall db 0Fh , 05h ret NtUserMagGetContextInformation ENDP ; ULONG64 __stdcall NtUserMagSetContextInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserMagSetContextInformation PROC STDCALL mov r10 , rcx mov eax , 4833 ;syscall db 0Fh , 05h ret NtUserMagSetContextInformation ENDP ; ULONG64 __stdcall NtUserManageGestureHandlerWindow( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserManageGestureHandlerWindow PROC STDCALL mov r10 , rcx mov eax , 4834 ;syscall db 0Fh , 05h ret NtUserManageGestureHandlerWindow ENDP ; ULONG64 __stdcall NtUserMenuItemFromPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserMenuItemFromPoint PROC STDCALL mov r10 , rcx mov eax , 4835 ;syscall db 0Fh , 05h ret NtUserMenuItemFromPoint ENDP ; ULONG64 __stdcall NtUserMinMaximize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserMinMaximize PROC STDCALL mov r10 , rcx mov eax , 4836 ;syscall db 0Fh , 05h ret NtUserMinMaximize ENDP ; ULONG64 __stdcall NtUserModifyWindowTouchCapability( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserModifyWindowTouchCapability PROC STDCALL mov r10 , rcx mov eax , 4837 ;syscall db 0Fh , 05h ret NtUserModifyWindowTouchCapability ENDP ; ULONG64 __stdcall NtUserNotifyIMEStatus( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserNotifyIMEStatus PROC STDCALL mov r10 , rcx mov eax , 4838 ;syscall db 0Fh , 05h ret NtUserNotifyIMEStatus ENDP ; ULONG64 __stdcall NtUserOpenInputDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserOpenInputDesktop PROC STDCALL mov r10 , rcx mov eax , 4839 ;syscall db 0Fh , 05h ret NtUserOpenInputDesktop ENDP ; ULONG64 __stdcall NtUserOpenThreadDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserOpenThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4840 ;syscall db 0Fh , 05h ret NtUserOpenThreadDesktop ENDP ; ULONG64 __stdcall NtUserPaintMonitor( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserPaintMonitor PROC STDCALL mov r10 , rcx mov eax , 4841 ;syscall db 0Fh , 05h ret NtUserPaintMonitor ENDP ; ULONG64 __stdcall NtUserPhysicalToLogicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserPhysicalToLogicalPoint PROC STDCALL mov r10 , rcx mov eax , 4842 ;syscall db 0Fh , 05h ret NtUserPhysicalToLogicalPoint ENDP ; ULONG64 __stdcall NtUserPrintWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserPrintWindow PROC STDCALL mov r10 , rcx mov eax , 4843 ;syscall db 0Fh , 05h ret NtUserPrintWindow ENDP ; ULONG64 __stdcall NtUserQueryDisplayConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserQueryDisplayConfig PROC STDCALL mov r10 , rcx mov eax , 4844 ;syscall db 0Fh , 05h ret NtUserQueryDisplayConfig ENDP ; ULONG64 __stdcall NtUserQueryInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserQueryInformationThread PROC STDCALL mov r10 , rcx mov eax , 4845 ;syscall db 0Fh , 05h ret NtUserQueryInformationThread ENDP ; ULONG64 __stdcall NtUserQueryInputContext( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserQueryInputContext PROC STDCALL mov r10 , rcx mov eax , 4846 ;syscall db 0Fh , 05h ret NtUserQueryInputContext ENDP ; ULONG64 __stdcall NtUserQuerySendMessage( ULONG64 arg_01 ); NtUserQuerySendMessage PROC STDCALL mov r10 , rcx mov eax , 4847 ;syscall db 0Fh , 05h ret NtUserQuerySendMessage ENDP ; ULONG64 __stdcall NtUserRealChildWindowFromPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserRealChildWindowFromPoint PROC STDCALL mov r10 , rcx mov eax , 4848 ;syscall db 0Fh , 05h ret NtUserRealChildWindowFromPoint ENDP ; ULONG64 __stdcall NtUserRealWaitMessageEx( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserRealWaitMessageEx PROC STDCALL mov r10 , rcx mov eax , 4849 ;syscall db 0Fh , 05h ret NtUserRealWaitMessageEx ENDP ; ULONG64 __stdcall NtUserRegisterErrorReportingDialog( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserRegisterErrorReportingDialog PROC STDCALL mov r10 , rcx mov eax , 4850 ;syscall db 0Fh , 05h ret NtUserRegisterErrorReportingDialog ENDP ; ULONG64 __stdcall NtUserRegisterHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserRegisterHotKey PROC STDCALL mov r10 , rcx mov eax , 4851 ;syscall db 0Fh , 05h ret NtUserRegisterHotKey ENDP ; ULONG64 __stdcall NtUserRegisterRawInputDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserRegisterRawInputDevices PROC STDCALL mov r10 , rcx mov eax , 4852 ;syscall db 0Fh , 05h ret NtUserRegisterRawInputDevices ENDP ; ULONG64 __stdcall NtUserRegisterServicesProcess( ULONG64 arg_01 ); NtUserRegisterServicesProcess PROC STDCALL mov r10 , rcx mov eax , 4853 ;syscall db 0Fh , 05h ret NtUserRegisterServicesProcess ENDP ; ULONG64 __stdcall NtUserRegisterSessionPort( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserRegisterSessionPort PROC STDCALL mov r10 , rcx mov eax , 4854 ;syscall db 0Fh , 05h ret NtUserRegisterSessionPort ENDP ; ULONG64 __stdcall NtUserRegisterTasklist( ULONG64 arg_01 ); NtUserRegisterTasklist PROC STDCALL mov r10 , rcx mov eax , 4855 ;syscall db 0Fh , 05h ret NtUserRegisterTasklist ENDP ; ULONG64 __stdcall NtUserRegisterUserApiHook( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserRegisterUserApiHook PROC STDCALL mov r10 , rcx mov eax , 4856 ;syscall db 0Fh , 05h ret NtUserRegisterUserApiHook ENDP ; ULONG64 __stdcall NtUserRemoteConnect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserRemoteConnect PROC STDCALL mov r10 , rcx mov eax , 4857 ;syscall db 0Fh , 05h ret NtUserRemoteConnect ENDP ; ULONG64 __stdcall NtUserRemoteRedrawRectangle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserRemoteRedrawRectangle PROC STDCALL mov r10 , rcx mov eax , 4858 ;syscall db 0Fh , 05h ret NtUserRemoteRedrawRectangle ENDP ; ULONG64 __stdcall NtUserRemoteRedrawScreen( ); NtUserRemoteRedrawScreen PROC STDCALL mov r10 , rcx mov eax , 4859 ;syscall db 0Fh , 05h ret NtUserRemoteRedrawScreen ENDP ; ULONG64 __stdcall NtUserRemoteStopScreenUpdates( ); NtUserRemoteStopScreenUpdates PROC STDCALL mov r10 , rcx mov eax , 4860 ;syscall db 0Fh , 05h ret NtUserRemoteStopScreenUpdates ENDP ; ULONG64 __stdcall NtUserRemoveClipboardFormatListener( ULONG64 arg_01 ); NtUserRemoveClipboardFormatListener PROC STDCALL mov r10 , rcx mov eax , 4861 ;syscall db 0Fh , 05h ret NtUserRemoveClipboardFormatListener ENDP ; ULONG64 __stdcall NtUserResolveDesktopForWOW( ULONG64 arg_01 ); NtUserResolveDesktopForWOW PROC STDCALL mov r10 , rcx mov eax , 4862 ;syscall db 0Fh , 05h ret NtUserResolveDesktopForWOW ENDP ; ULONG64 __stdcall NtUserSendTouchInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSendTouchInput PROC STDCALL mov r10 , rcx mov eax , 4863 ;syscall db 0Fh , 05h ret NtUserSendTouchInput ENDP ; ULONG64 __stdcall NtUserSetAppImeLevel( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetAppImeLevel PROC STDCALL mov r10 , rcx mov eax , 4864 ;syscall db 0Fh , 05h ret NtUserSetAppImeLevel ENDP ; ULONG64 __stdcall NtUserSetChildWindowNoActivate( ULONG64 arg_01 ); NtUserSetChildWindowNoActivate PROC STDCALL mov r10 , rcx mov eax , 4865 ;syscall db 0Fh , 05h ret NtUserSetChildWindowNoActivate ENDP ; ULONG64 __stdcall NtUserSetClassWord( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetClassWord PROC STDCALL mov r10 , rcx mov eax , 4866 ;syscall db 0Fh , 05h ret NtUserSetClassWord ENDP ; ULONG64 __stdcall NtUserSetCursorContents( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetCursorContents PROC STDCALL mov r10 , rcx mov eax , 4867 ;syscall db 0Fh , 05h ret NtUserSetCursorContents ENDP ; ULONG64 __stdcall NtUserSetDisplayConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserSetDisplayConfig PROC STDCALL mov r10 , rcx mov eax , 4868 ;syscall db 0Fh , 05h ret NtUserSetDisplayConfig ENDP ; ULONG64 __stdcall NtUserSetGestureConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserSetGestureConfig PROC STDCALL mov r10 , rcx mov eax , 4869 ;syscall db 0Fh , 05h ret NtUserSetGestureConfig ENDP ; ULONG64 __stdcall NtUserSetImeHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); NtUserSetImeHotKey PROC STDCALL mov r10 , rcx mov eax , 4870 ;syscall db 0Fh , 05h ret NtUserSetImeHotKey ENDP ; ULONG64 __stdcall NtUserSetImeInfoEx( ULONG64 arg_01 ); NtUserSetImeInfoEx PROC STDCALL mov r10 , rcx mov eax , 4871 ;syscall db 0Fh , 05h ret NtUserSetImeInfoEx ENDP ; ULONG64 __stdcall NtUserSetImeOwnerWindow( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetImeOwnerWindow PROC STDCALL mov r10 , rcx mov eax , 4872 ;syscall db 0Fh , 05h ret NtUserSetImeOwnerWindow ENDP ; ULONG64 __stdcall NtUserSetInternalWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetInternalWindowPos PROC STDCALL mov r10 , rcx mov eax , 4873 ;syscall db 0Fh , 05h ret NtUserSetInternalWindowPos ENDP ; ULONG64 __stdcall NtUserSetLayeredWindowAttributes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetLayeredWindowAttributes PROC STDCALL mov r10 , rcx mov eax , 4874 ;syscall db 0Fh , 05h ret NtUserSetLayeredWindowAttributes ENDP ; ULONG64 __stdcall NtUserSetMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetMenu PROC STDCALL mov r10 , rcx mov eax , 4875 ;syscall db 0Fh , 05h ret NtUserSetMenu ENDP ; ULONG64 __stdcall NtUserSetMenuContextHelpId( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetMenuContextHelpId PROC STDCALL mov r10 , rcx mov eax , 4876 ;syscall db 0Fh , 05h ret NtUserSetMenuContextHelpId ENDP ; ULONG64 __stdcall NtUserSetMenuFlagRtoL( ULONG64 arg_01 ); NtUserSetMenuFlagRtoL PROC STDCALL mov r10 , rcx mov eax , 4877 ;syscall db 0Fh , 05h ret NtUserSetMenuFlagRtoL ENDP ; ULONG64 __stdcall NtUserSetMirrorRendering( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetMirrorRendering PROC STDCALL mov r10 , rcx mov eax , 4878 ;syscall db 0Fh , 05h ret NtUserSetMirrorRendering ENDP ; ULONG64 __stdcall NtUserSetObjectInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetObjectInformation PROC STDCALL mov r10 , rcx mov eax , 4879 ;syscall db 0Fh , 05h ret NtUserSetObjectInformation ENDP ; ULONG64 __stdcall NtUserSetProcessDPIAware( ); NtUserSetProcessDPIAware PROC STDCALL mov r10 , rcx mov eax , 4880 ;syscall db 0Fh , 05h ret NtUserSetProcessDPIAware ENDP ; ULONG64 __stdcall NtUserSetShellWindowEx( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetShellWindowEx PROC STDCALL mov r10 , rcx mov eax , 4881 ;syscall db 0Fh , 05h ret NtUserSetShellWindowEx ENDP ; ULONG64 __stdcall NtUserSetSysColors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetSysColors PROC STDCALL mov r10 , rcx mov eax , 4882 ;syscall db 0Fh , 05h ret NtUserSetSysColors ENDP ; ULONG64 __stdcall NtUserSetSystemCursor( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetSystemCursor PROC STDCALL mov r10 , rcx mov eax , 4883 ;syscall db 0Fh , 05h ret NtUserSetSystemCursor ENDP ; ULONG64 __stdcall NtUserSetSystemTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetSystemTimer PROC STDCALL mov r10 , rcx mov eax , 4884 ;syscall db 0Fh , 05h ret NtUserSetSystemTimer ENDP ; ULONG64 __stdcall NtUserSetThreadLayoutHandles( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetThreadLayoutHandles PROC STDCALL mov r10 , rcx mov eax , 4885 ;syscall db 0Fh , 05h ret NtUserSetThreadLayoutHandles ENDP ; ULONG64 __stdcall NtUserSetWindowCompositionAttribute( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetWindowCompositionAttribute PROC STDCALL mov r10 , rcx mov eax , 4886 ;syscall db 0Fh , 05h ret NtUserSetWindowCompositionAttribute ENDP ; ULONG64 __stdcall NtUserSetWindowDisplayAffinity( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSetWindowDisplayAffinity PROC STDCALL mov r10 , rcx mov eax , 4887 ;syscall db 0Fh , 05h ret NtUserSetWindowDisplayAffinity ENDP ; ULONG64 __stdcall NtUserSetWindowRgnEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSetWindowRgnEx PROC STDCALL mov r10 , rcx mov eax , 4888 ;syscall db 0Fh , 05h ret NtUserSetWindowRgnEx ENDP ; ULONG64 __stdcall NtUserSetWindowStationUser( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetWindowStationUser PROC STDCALL mov r10 , rcx mov eax , 4889 ;syscall db 0Fh , 05h ret NtUserSetWindowStationUser ENDP ; ULONG64 __stdcall NtUserSfmDestroyLogicalSurfaceBinding( ULONG64 arg_01 ); NtUserSfmDestroyLogicalSurfaceBinding PROC STDCALL mov r10 , rcx mov eax , 4890 ;syscall db 0Fh , 05h ret NtUserSfmDestroyLogicalSurfaceBinding ENDP ; ULONG64 __stdcall NtUserSfmDxBindSwapChain( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSfmDxBindSwapChain PROC STDCALL mov r10 , rcx mov eax , 4891 ;syscall db 0Fh , 05h ret NtUserSfmDxBindSwapChain ENDP ; ULONG64 __stdcall NtUserSfmDxGetSwapChainStats( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSfmDxGetSwapChainStats PROC STDCALL mov r10 , rcx mov eax , 4892 ;syscall db 0Fh , 05h ret NtUserSfmDxGetSwapChainStats ENDP ; ULONG64 __stdcall NtUserSfmDxOpenSwapChain( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSfmDxOpenSwapChain PROC STDCALL mov r10 , rcx mov eax , 4893 ;syscall db 0Fh , 05h ret NtUserSfmDxOpenSwapChain ENDP ; ULONG64 __stdcall NtUserSfmDxQuerySwapChainBindingStatus( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserSfmDxQuerySwapChainBindingStatus PROC STDCALL mov r10 , rcx mov eax , 4894 ;syscall db 0Fh , 05h ret NtUserSfmDxQuerySwapChainBindingStatus ENDP ; ULONG64 __stdcall NtUserSfmDxReleaseSwapChain( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSfmDxReleaseSwapChain PROC STDCALL mov r10 , rcx mov eax , 4895 ;syscall db 0Fh , 05h ret NtUserSfmDxReleaseSwapChain ENDP ; ULONG64 __stdcall NtUserSfmDxReportPendingBindingsToDwm( ); NtUserSfmDxReportPendingBindingsToDwm PROC STDCALL mov r10 , rcx mov eax , 4896 ;syscall db 0Fh , 05h ret NtUserSfmDxReportPendingBindingsToDwm ENDP ; ULONG64 __stdcall NtUserSfmDxSetSwapChainBindingStatus( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSfmDxSetSwapChainBindingStatus PROC STDCALL mov r10 , rcx mov eax , 4897 ;syscall db 0Fh , 05h ret NtUserSfmDxSetSwapChainBindingStatus ENDP ; ULONG64 __stdcall NtUserSfmDxSetSwapChainStats( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSfmDxSetSwapChainStats PROC STDCALL mov r10 , rcx mov eax , 4898 ;syscall db 0Fh , 05h ret NtUserSfmDxSetSwapChainStats ENDP ; ULONG64 __stdcall NtUserSfmGetLogicalSurfaceBinding( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSfmGetLogicalSurfaceBinding PROC STDCALL mov r10 , rcx mov eax , 4899 ;syscall db 0Fh , 05h ret NtUserSfmGetLogicalSurfaceBinding ENDP ; ULONG64 __stdcall NtUserShowSystemCursor( ULONG64 arg_01 ); NtUserShowSystemCursor PROC STDCALL mov r10 , rcx mov eax , 4900 ;syscall db 0Fh , 05h ret NtUserShowSystemCursor ENDP ; ULONG64 __stdcall NtUserSoundSentry( ); NtUserSoundSentry PROC STDCALL mov r10 , rcx mov eax , 4901 ;syscall db 0Fh , 05h ret NtUserSoundSentry ENDP ; ULONG64 __stdcall NtUserSwitchDesktop( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserSwitchDesktop PROC STDCALL mov r10 , rcx mov eax , 4902 ;syscall db 0Fh , 05h ret NtUserSwitchDesktop ENDP ; ULONG64 __stdcall NtUserTestForInteractiveUser( ULONG64 arg_01 ); NtUserTestForInteractiveUser PROC STDCALL mov r10 , rcx mov eax , 4903 ;syscall db 0Fh , 05h ret NtUserTestForInteractiveUser ENDP ; ULONG64 __stdcall NtUserTrackPopupMenuEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); NtUserTrackPopupMenuEx PROC STDCALL mov r10 , rcx mov eax , 4904 ;syscall db 0Fh , 05h ret NtUserTrackPopupMenuEx ENDP ; ULONG64 __stdcall NtUserUnloadKeyboardLayout( ULONG64 arg_01 ); NtUserUnloadKeyboardLayout PROC STDCALL mov r10 , rcx mov eax , 4905 ;syscall db 0Fh , 05h ret NtUserUnloadKeyboardLayout ENDP ; ULONG64 __stdcall NtUserUnlockWindowStation( ULONG64 arg_01 ); NtUserUnlockWindowStation PROC STDCALL mov r10 , rcx mov eax , 4906 ;syscall db 0Fh , 05h ret NtUserUnlockWindowStation ENDP ; ULONG64 __stdcall NtUserUnregisterHotKey( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserUnregisterHotKey PROC STDCALL mov r10 , rcx mov eax , 4907 ;syscall db 0Fh , 05h ret NtUserUnregisterHotKey ENDP ; ULONG64 __stdcall NtUserUnregisterSessionPort( ); NtUserUnregisterSessionPort PROC STDCALL mov r10 , rcx mov eax , 4908 ;syscall db 0Fh , 05h ret NtUserUnregisterSessionPort ENDP ; ULONG64 __stdcall NtUserUnregisterUserApiHook( ); NtUserUnregisterUserApiHook PROC STDCALL mov r10 , rcx mov eax , 4909 ;syscall db 0Fh , 05h ret NtUserUnregisterUserApiHook ENDP ; ULONG64 __stdcall NtUserUpdateInputContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserUpdateInputContext PROC STDCALL mov r10 , rcx mov eax , 4910 ;syscall db 0Fh , 05h ret NtUserUpdateInputContext ENDP ; ULONG64 __stdcall NtUserUpdateInstance( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserUpdateInstance PROC STDCALL mov r10 , rcx mov eax , 4911 ;syscall db 0Fh , 05h ret NtUserUpdateInstance ENDP ; ULONG64 __stdcall NtUserUpdateLayeredWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); NtUserUpdateLayeredWindow PROC STDCALL mov r10 , rcx mov eax , 4912 ;syscall db 0Fh , 05h ret NtUserUpdateLayeredWindow ENDP ; ULONG64 __stdcall NtUserUpdatePerUserSystemParameters( ULONG64 arg_01 ); NtUserUpdatePerUserSystemParameters PROC STDCALL mov r10 , rcx mov eax , 4913 ;syscall db 0Fh , 05h ret NtUserUpdatePerUserSystemParameters ENDP ; ULONG64 __stdcall NtUserUpdateWindowTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserUpdateWindowTransform PROC STDCALL mov r10 , rcx mov eax , 4914 ;syscall db 0Fh , 05h ret NtUserUpdateWindowTransform ENDP ; ULONG64 __stdcall NtUserUserHandleGrantAccess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserUserHandleGrantAccess PROC STDCALL mov r10 , rcx mov eax , 4915 ;syscall db 0Fh , 05h ret NtUserUserHandleGrantAccess ENDP ; ULONG64 __stdcall NtUserValidateHandleSecure( ULONG64 arg_01 ); NtUserValidateHandleSecure PROC STDCALL mov r10 , rcx mov eax , 4916 ;syscall db 0Fh , 05h ret NtUserValidateHandleSecure ENDP ; ULONG64 __stdcall NtUserWaitForInputIdle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); NtUserWaitForInputIdle PROC STDCALL mov r10 , rcx mov eax , 4917 ;syscall db 0Fh , 05h ret NtUserWaitForInputIdle ENDP ; ULONG64 __stdcall NtUserWaitForMsgAndEvent( ULONG64 arg_01 ); NtUserWaitForMsgAndEvent PROC STDCALL mov r10 , rcx mov eax , 4918 ;syscall db 0Fh , 05h ret NtUserWaitForMsgAndEvent ENDP ; ULONG64 __stdcall NtUserWindowFromPhysicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); NtUserWindowFromPhysicalPoint PROC STDCALL mov r10 , rcx mov eax , 4919 ;syscall db 0Fh , 05h ret NtUserWindowFromPhysicalPoint ENDP ; ULONG64 __stdcall NtUserYieldTask( ); NtUserYieldTask PROC STDCALL mov r10 , rcx mov eax , 4920 ;syscall db 0Fh , 05h ret NtUserYieldTask ENDP ; ULONG64 __stdcall NtUserSetClassLongPtr( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetClassLongPtr PROC STDCALL mov r10 , rcx mov eax , 4921 ;syscall db 0Fh , 05h ret NtUserSetClassLongPtr ENDP ; ULONG64 __stdcall NtUserSetWindowLongPtr( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); NtUserSetWindowLongPtr PROC STDCALL mov r10 , rcx mov eax , 4922 ;syscall db 0Fh , 05h ret NtUserSetWindowLongPtr ENDP
#ifndef STAN_MATH_FWD_SCAL_FUN_LOG_INV_LOGIT_HPP #define STAN_MATH_FWD_SCAL_FUN_LOG_INV_LOGIT_HPP #include <stan/math/fwd/core.hpp> #include <stan/math/prim/scal/fun/log_inv_logit.hpp> namespace stan { namespace math { template <typename T> inline fvar<T> log_inv_logit(const fvar<T>& x) { using std::exp; return fvar<T>(log_inv_logit(x.val_), x.d_ / (1 + exp(x.val_))); } } // namespace math } // namespace stan #endif
; A166866: Mixed fractal sequence mf(n). Mix fractals A158405, A002260. ; 1,1,1,3,1,2,1,3,5,1,2,3,1,3,5,7,1,2,3,4,1,3,5,7,9,1,2,3,4,5,1,3,5,7,9,11,1,2,3,4,5,6,1,3,5,7,9,11,13,1,2,3,4,5,6,7,1,3,5,7,9,11,13,15,1,2,3,4,5,6,7,8,1,3,5,7,9,11,13,15,17,1,2,3,4,5,6,7,8,9 mul $0,4 add $0,2 mov $1,1 lpb $0 sub $0,$1 add $1,2 lpe lpb $0 dif $0,2 lpe div $0,2 add $0,1
/*++ Copyright (c) 2020 Microsoft Corporation Module Name: q_mbi.cpp Abstract: Model-based quantifier instantiation plugin Author: Nikolaj Bjorner (nbjorner) 2020-09-29 --*/ #include "ast/ast_trail.h" #include "ast/ast_util.h" #include "ast/for_each_expr.h" #include "ast/rewriter/var_subst.h" #include "ast/rewriter/expr_safe_replace.h" #include "qe/mbp/mbp_arith.h" #include "qe/mbp/mbp_arrays.h" #include "qe/mbp/mbp_datatypes.h" #include "sat/smt/sat_th.h" #include "sat/smt/q_mbi.h" #include "sat/smt/q_solver.h" #include "sat/smt/euf_solver.h" namespace q { mbqi::mbqi(euf::solver& ctx, solver& s) : ctx(ctx), m_qs(s), m(s.get_manager()), m_model_fixer(ctx, m_qs) { auto* ap = alloc(mbp::arith_project_plugin, m); ap->set_check_purified(false); ap->set_apply_projection(true); add_plugin(ap); add_plugin(alloc(mbp::datatype_project_plugin, m)); add_plugin(alloc(mbp::array_project_plugin, m)); } void mbqi::restrict_to_universe(expr* sk, ptr_vector<expr> const& universe) { SASSERT(!universe.empty()); expr_ref_vector eqs(m); for (expr* e : universe) eqs.push_back(m.mk_eq(sk, e)); expr_ref fml = mk_or(eqs); // std::cout << "restrict to universe " << fml << "\n"; m_solver->assert_expr(fml); } expr_ref mbqi::replace_model_value(expr* e) { auto const& v2r = ctx.values2root(); euf::enode* r = nullptr; if (v2r.find(e, r)) return choose_term(r); if (is_app(e) && to_app(e)->get_num_args() > 0) { expr_ref_vector args(m); for (expr* arg : *to_app(e)) args.push_back(replace_model_value(arg)); return expr_ref(m.mk_app(to_app(e)->get_decl(), args), m); } return expr_ref(e, m); } expr_ref mbqi::choose_term(euf::enode* r) { unsigned sz = r->class_size(); unsigned start = ctx.s().rand()() % sz; unsigned i = 0; for (euf::enode* n : euf::enode_class(r)) if (i++ >= start) return expr_ref(n->get_expr(), m); return expr_ref(nullptr, m); } lbool mbqi::check_forall(quantifier* q) { quantifier* q_flat = m_qs.flatten(q); init_solver(); ::solver::scoped_push _sp(*m_solver); std::cout << mk_pp(q, m, 4) << "\n"; // std::cout << *m_model << "\n"; auto* qb = specialize(q_flat); if (!qb) return l_undef; // return l_undef; if (m.is_false(qb->mbody)) return l_true; // std::cout << "body\n" << qb->mbody << "\n"; m_solver->assert_expr(qb->mbody); lbool r = m_solver->check_sat(0, nullptr); if (r == l_undef) return r; if (r == l_false) return l_true; model_ref mdl0, mdl1; expr_ref proj(m); m_solver->get_model(mdl0); sat::literal qlit = ctx.expr2literal(q); if (is_exists(q)) qlit.neg(); unsigned i = 0; expr_ref_vector eqs(m); if (!qb->var_args.empty()) { ::solver::scoped_push _sp(*m_solver); add_domain_eqs(*mdl0, *qb); for (; i < m_max_cex && l_true == m_solver->check_sat(0, nullptr); ++i) { m_solver->get_model(mdl1); proj = solver_project(*mdl1, *qb, eqs, true); if (!proj) break; std::cout << "project\n" << proj << "\n"; std::cout << "eqs: " << eqs << "\n"; add_instantiation(qlit, proj); m_solver->assert_expr(m.mk_not(mk_and(eqs))); } } if (i == 0) { add_domain_bounds(*mdl0, *qb); proj = solver_project(*mdl0, *qb, eqs, false); if (!proj) return l_undef; std::cout << "project-base\n" << proj << "\n"; add_instantiation(qlit, proj); } // TODO: add as top-level clause for relevancy return l_false; } mbqi::q_body* mbqi::specialize(quantifier* q) { mbqi::q_body* result = nullptr; var_subst subst(m); unsigned sz = q->get_num_decls(); if (!m_q2body.find(q, result)) { result = alloc(q_body, m); m_q2body.insert(q, result); ctx.push(new_obj_trail<euf::solver, q_body>(result)); ctx.push(insert_obj_map<euf::solver, quantifier, q_body*>(m_q2body, q)); obj_hashtable<expr> _vars; app_ref_vector& vars = result->vars; vars.resize(sz, nullptr); for (unsigned i = 0; i < sz; ++i) { sort* s = q->get_decl_sort(i); vars[i] = m.mk_fresh_const(q->get_decl_name(i), s, false); _vars.insert(vars.get(i)); } expr_ref fml = subst(q->get_expr(), vars); extract_var_args(q->get_expr(), *result); if (is_forall(q)) fml = m.mk_not(fml); flatten_and(fml, result->vbody); for (expr* e : result->vbody) { expr* e1 = nullptr, *e2 = nullptr; if (m.is_not(e, e) && m.is_eq(e, e1, e2)) { if (_vars.contains(e1) && !_vars.contains(e2) && is_app(e2)) result->var_diff.push_back(std::make_pair(to_app(e1), to_app(e2)->get_decl())); else if (_vars.contains(e2) && !_vars.contains(e1) && is_app(e1)) result->var_diff.push_back(std::make_pair(to_app(e2), to_app(e1)->get_decl())); } } } expr_ref& mbody = result->mbody; if (!m_model->eval_expr(q->get_expr(), mbody, true)) return nullptr; for (unsigned i = 0; i < sz; ++i) { sort* s = q->get_decl_sort(i); if (m_model->has_uninterpreted_sort(s)) restrict_to_universe(result->vars.get(i), m_model->get_universe(s)); } mbody = subst(mbody, result->vars); if (is_forall(q)) mbody = mk_not(m, mbody); TRACE("q", tout << "specialize " << mbody << "\n";); return result; } expr_ref mbqi::solver_project(model& mdl, q_body& qb, expr_ref_vector& eqs, bool use_inst) { eqs.reset(); model::scoped_model_completion _sc(mdl, true); for (app* v : qb.vars) m_model->register_decl(v->get_decl(), mdl(v)); expr_ref_vector fmls(qb.vbody); app_ref_vector vars(qb.vars); bool fmls_extracted = false; TRACE("q", tout << "Project\n"; tout << *m_model << "\n"; tout << fmls << "\n"; tout << "model of projection\n" << mdl << "\n"; tout << "var args: " << qb.var_args.size() << "\n"; tout << "domain eqs: " << qb.domain_eqs << "\n"; for (expr* f : fmls) if (m_model->is_false(f)) tout << mk_pp(f, m) << " := false\n"; tout << "vars: " << vars << "\n";); expr_safe_replace rep(m); for (unsigned i = 0; !use_inst && i < vars.size(); ++i) { app* v = vars.get(i); auto* p = get_plugin(v); if (p && !fmls_extracted) { fmls.append(qb.domain_eqs); eliminate_nested_vars(fmls, qb); mbp::project_plugin proj(m); proj.extract_literals(*m_model, vars, fmls); fmls_extracted = true; } if (p) (*p)(*m_model, vars, fmls); } for (app* v : vars) { expr_ref term(m); expr_ref val = (*m_model)(v); val = m_model->unfold_as_array(val); term = replace_model_value(val); rep.insert(v, term); if (val != term) rep.insert(val, term); eqs.push_back(m.mk_eq(v, val)); } rep(fmls); return mk_and(fmls); } /** * Add disjunctions to m_solver that restrict the possible values of * arguments to uninterpreted functions. The disjunctions added to the solver * are specialized with respect to m_model. * Add also disjunctions to the quantifier "domain_eqs", to track the constraints * added to the solver. */ void mbqi::add_domain_eqs(model& mdl, q_body& qb) { qb.domain_eqs.reset(); var_subst subst(m); expr_mark diff_vars; for (auto vd : qb.var_diff) { app* v = vd.first; func_decl* f = vd.second; expr_ref_vector diff_set(m), vdiff_set(m); typedef std::tuple<euf::enode*, unsigned, unsigned> tup; svector<tup> todo; expr_mark visited; expr_ref val(m); for (euf::enode* n : ctx.get_egraph().enodes_of(f)) { euf::enode* r1 = n->get_root(); expr* e1 = n->get_expr(); todo.push_back(tup(r1, 2, 2)); for (unsigned i = 0; i < todo.size(); ++i) { auto t = todo[i]; euf::enode* r2 = std::get<0>(t)->get_root(); expr* e2 = r2->get_expr(); if (visited.is_marked(e2)) continue; visited.mark(e2); std::cout << "try: " << mk_bounded_pp(e2, m) << " " << std::get<1>(t) << " " << std::get<2>(t) << "\n"; if (r1 != r2 && m.get_sort(e1) == m.get_sort(e2) && m_model->eval_expr(e2, val, true) && !visited.is_marked(val)) { visited.mark(val); diff_set.push_back(m.mk_eq(v, val)); vdiff_set.push_back(m.mk_eq(v, e2)); } if (std::get<1>(t) > 0) for (euf::enode* p : euf::enode_parents(r2)) todo.push_back(tup(p, std::get<1>(t)-1, std::get<2>(t)+1)); if (std::get<2>(t) > 0) for (euf::enode* n : euf::enode_class(r2)) for (euf::enode* arg : euf::enode_args(n)) todo.push_back(tup(arg, 0, std::get<2>(t)-1)); } todo.reset(); } if (!diff_set.empty()) { diff_vars.mark(v); expr_ref diff = mk_or(diff_set); expr_ref vdiff = mk_or(vdiff_set); std::cout << "diff: " << vdiff_set << "\n"; m_solver->assert_expr(diff); qb.domain_eqs.push_back(vdiff); } std::cout << "var-diff: " << mk_pp(vd.first, m) << " " << mk_pp(vd.second, m) << "\n"; } for (auto p : qb.var_args) { expr_ref arg(p.first->get_arg(p.second), m); arg = subst(arg, qb.vars); if (diff_vars.is_marked(arg)) continue; expr_ref bounds = m_model_fixer.restrict_arg(p.first, p.second); if (m.is_true(bounds)) continue; expr_ref vbounds = subst(bounds, qb.vars); expr_ref mbounds(m); if (!m_model->eval_expr(bounds, mbounds, true)) return; mbounds = subst(mbounds, qb.vars); std::cout << "bounds: " << mk_pp(p.first, m) << " @ " << p.second << " - " << bounds << "\n"; std::cout << "domain eqs " << mbounds << "\n"; std::cout << "vbounds " << vbounds << "\n"; std::cout << *m_model << "\n"; m_solver->assert_expr(mbounds); qb.domain_eqs.push_back(vbounds); } } /* * Add bounds to sub-terms under uninterpreted functions for projection. */ void mbqi::add_domain_bounds(model& mdl, q_body& qb) { qb.domain_eqs.reset(); for (app* v : qb.vars) m_model->register_decl(v->get_decl(), mdl(v)); if (qb.var_args.empty()) return; var_subst subst(m); for (auto p : qb.var_args) { expr_ref _term = subst(p.first, qb.vars); app_ref term(to_app(_term), m); expr_ref value = (*m_model)(term->get_arg(p.second)); m_model_fixer.invert_arg(term, p.second, value, qb.domain_eqs); } } /* * Remove occurrences of free functions that contain variables. * Add top-level equalities for those occurrences. * * F[g(t)] -> F[s] & g(t) = s * * where * - eval(g(t)) = eval(s), * - t contains bound variables, * - s is ground. */ void mbqi::eliminate_nested_vars(expr_ref_vector& fmls, q_body& qb) { if (qb.var_args.empty()) return; expr_safe_replace rep(m); var_subst subst(m); expr_ref_vector eqs(m); expr_mark visited; for (auto p : qb.var_args) { expr* e = p.first; if (visited.is_marked(e)) continue; visited.mark(e); expr_ref _term = subst(e, qb.vars); app_ref term(to_app(_term), m); expr_ref value = (*m_model)(term); expr* s = m_model_fixer.invert_app(term, value); rep.insert(term, s); eqs.push_back(m.mk_eq(term, s)); } rep(fmls); fmls.append(eqs); } /* * Add domain restrictions for every non-ground arguments to uninterpreted functions. */ void mbqi::extract_var_args(expr* _t, q_body& qb) { expr_ref t(_t, m); for (expr* s : subterms(t)) { if (is_ground(s)) continue; if (is_uninterp(s) && to_app(s)->get_num_args() > 0) { unsigned i = 0; for (expr* arg : *to_app(s)) { if (!is_ground(arg) && !is_uninterp(arg)) qb.var_args.push_back(std::make_pair(to_app(s), i)); ++i; } } } } lbool mbqi::operator()() { lbool result = l_true; m_model = nullptr; m_instantiations.reset(); for (sat::literal lit : m_qs.m_universal) { quantifier* q = to_quantifier(ctx.bool_var2expr(lit.var())); if (!ctx.is_relevant(q)) continue; init_model(); switch (check_forall(q)) { case l_false: result = l_false; break; case l_undef: if (result == l_true) result = l_undef; break; default: break; } } m_max_cex += ctx.get_config().m_mbqi_max_cexs; for (auto p : m_instantiations) m_qs.add_clause(~p.first, ~ctx.mk_literal(p.second)); m_instantiations.reset(); return result; } void mbqi::init_model() { if (m_model) return; m_model = alloc(model, m); ctx.update_model(m_model); } void mbqi::init_solver() { if (!m_solver) m_solver = mk_smt2_solver(m, ctx.s().params()); } void mbqi::init_search() { m_max_cex = ctx.get_config().m_mbqi_max_cexs; } void mbqi::finalize_model(model& mdl) { m_model_fixer(mdl); } mbp::project_plugin* mbqi::get_plugin(app* var) { family_id fid = m.get_sort(var)->get_family_id(); return m_plugins.get(fid, nullptr); } void mbqi::add_plugin(mbp::project_plugin* p) { family_id fid = p->get_family_id(); m_plugins.reserve(fid + 1); SASSERT(!m_plugins.get(fid, nullptr)); m_plugins.set(fid, p); } void mbqi::collect_statistics(statistics& st) const { if (m_solver) m_solver->collect_statistics(st); st.update("q-num-instantiations", m_stats.m_num_instantiations); } }
/*************************************************************************/ /* particles_2d.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* http://www.godotengine.org */ /*************************************************************************/ /* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur. */ /* */ /* 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. */ /*************************************************************************/ #include "particles_2d.h" void ParticleAttractor2D::_notification(int p_what) { switch(p_what) { case NOTIFICATION_ENTER_TREE: { _update_owner(); } break; case NOTIFICATION_DRAW: { if (!get_tree()->is_editor_hint()) return; Vector2 pv; float dr = MIN(disable_radius,radius); for(int i=0;i<=32;i++) { Vector2 v(Math::sin(i/32.0*Math_PI*2),Math::cos(i/32.0*Math_PI*2)); if (i>0) { draw_line(pv*radius,v*radius,Color(0,0,0.5,0.9)); if (dr>0) { draw_line(pv*dr,v*dr,Color(0.5,0,0.0,0.9)); } } pv=v; } } break; case NOTIFICATION_EXIT_TREE: { if (owner) { _set_owner(NULL); } } break; } } void ParticleAttractor2D::_owner_exited() { ERR_FAIL_COND(!owner); owner->attractors.erase(this); owner=NULL; } void ParticleAttractor2D::_update_owner() { if (!is_inside_tree() || !has_node(path)) { _set_owner(NULL); return; } Node *n = get_node(path); ERR_FAIL_COND(!n); Particles2D *pn = n->cast_to<Particles2D>(); if (!pn) { _set_owner(NULL); return; } _set_owner(pn); } void ParticleAttractor2D::_set_owner(Particles2D* p_owner) { if (owner==p_owner) return; if (owner) { owner->disconnect("exit_tree",this,"_owner_exited"); owner->attractors.erase(this); owner=NULL; } owner=p_owner; if (owner) { owner->connect("exit_tree",this,"_owner_exited",varray(),CONNECT_ONESHOT); owner->attractors.insert(this); } } void ParticleAttractor2D::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_enabled","enabled"),&ParticleAttractor2D::set_enabled); ObjectTypeDB::bind_method(_MD("is_enabled"),&ParticleAttractor2D::is_enabled); ObjectTypeDB::bind_method(_MD("set_radius","radius"),&ParticleAttractor2D::set_radius); ObjectTypeDB::bind_method(_MD("get_radius"),&ParticleAttractor2D::get_radius); ObjectTypeDB::bind_method(_MD("set_disable_radius","radius"),&ParticleAttractor2D::set_disable_radius); ObjectTypeDB::bind_method(_MD("get_disable_radius"),&ParticleAttractor2D::get_disable_radius); ObjectTypeDB::bind_method(_MD("set_gravity","gravity"),&ParticleAttractor2D::set_gravity); ObjectTypeDB::bind_method(_MD("get_gravity"),&ParticleAttractor2D::get_gravity); ObjectTypeDB::bind_method(_MD("set_absorption","absorption"),&ParticleAttractor2D::set_absorption); ObjectTypeDB::bind_method(_MD("get_absorption"),&ParticleAttractor2D::get_absorption); ObjectTypeDB::bind_method(_MD("set_particles_path","path"),&ParticleAttractor2D::set_particles_path); ObjectTypeDB::bind_method(_MD("get_particles_path"),&ParticleAttractor2D::get_particles_path); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"enabled"),_SCS("set_enabled"),_SCS("is_enabled")); ADD_PROPERTY(PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0.1,16000,0.1"),_SCS("set_radius"),_SCS("get_radius")); ADD_PROPERTY(PropertyInfo(Variant::REAL,"disable_radius",PROPERTY_HINT_RANGE,"0.1,16000,0.1"),_SCS("set_disable_radius"),_SCS("get_disable_radius")); ADD_PROPERTY(PropertyInfo(Variant::REAL,"gravity",PROPERTY_HINT_RANGE,"-512,512,0.01"),_SCS("set_gravity"),_SCS("get_gravity")); ADD_PROPERTY(PropertyInfo(Variant::REAL,"absorption",PROPERTY_HINT_RANGE,"0,512,0.01"),_SCS("set_absorption"),_SCS("get_absorption")); ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH,"particles_path",PROPERTY_HINT_RESOURCE_TYPE,"Particles2D"),_SCS("set_particles_path"),_SCS("get_particles_path")); } void ParticleAttractor2D::set_enabled(bool p_enabled) { enabled=p_enabled; } bool ParticleAttractor2D::is_enabled() const{ return enabled; } void ParticleAttractor2D::set_radius(float p_radius) { radius = p_radius; update(); } float ParticleAttractor2D::get_radius() const { return radius; } void ParticleAttractor2D::set_disable_radius(float p_disable_radius) { disable_radius = p_disable_radius; update(); } float ParticleAttractor2D::get_disable_radius() const { return disable_radius; } void ParticleAttractor2D::set_gravity(float p_gravity) { gravity=p_gravity; } float ParticleAttractor2D::get_gravity() const { return gravity; } void ParticleAttractor2D::set_absorption(float p_absorption) { absorption=p_absorption; } float ParticleAttractor2D::get_absorption() const { return absorption; } void ParticleAttractor2D::set_particles_path(NodePath p_path) { path=p_path; _update_owner(); } NodePath ParticleAttractor2D::get_particles_path() const { return path; } ParticleAttractor2D::ParticleAttractor2D() { owner=NULL; radius=50; disable_radius=0; gravity=100; absorption=0; path=String(".."); enabled=true; } /****************************************/ _FORCE_INLINE_ static float _rand_from_seed(uint32_t *seed) { uint32_t k; uint32_t s = (*seed); if (s == 0) s = 0x12345987; k = s / 127773; s = 16807 * (s - k * 127773) - 2836 * k; if (s < 0) s += 2147483647; (*seed) = s; float v=((float)((*seed) & 0xFFFFF))/(float)0xFFFFF; v=v*2.0-1.0; return v; } void Particles2D::_process_particles(float p_delta) { if (particles.size()==0 || lifetime==0) return; p_delta*=time_scale; float frame_time=p_delta; if (emit_timeout > 0) { time_to_live -= frame_time; if (time_to_live < 0) { emitting = false; _change_notify("config/emitting"); }; }; float next_time = time+frame_time; if (next_time > lifetime) next_time=Math::fmod(next_time,lifetime); Particle *pdata=&particles[0]; int particle_count=particles.size(); Matrix32 xform; if (!local_space) xform=get_global_transform(); active_count=0; DVector<Point2>::Read r; int emission_point_count=0; if (emission_points.size()) { emission_point_count=emission_points.size(); r=emission_points.read(); } int attractor_count=0; AttractorCache *attractor_ptr=NULL; if (attractors.size()) { if (attractors.size()!=attractor_cache.size()) { attractor_cache.resize(attractors.size()); } int idx=0; Matrix32 m; if (local_space) { m= get_global_transform().affine_inverse(); } for (Set<ParticleAttractor2D*>::Element *E=attractors.front();E;E=E->next()) { attractor_cache[idx].pos=m.xform( E->get()->get_global_pos() ); attractor_cache[idx].attractor=E->get(); idx++; } attractor_ptr=attractor_cache.ptr(); attractor_count=attractor_cache.size(); } for(int i=0;i<particle_count;i++) { Particle &p=pdata[i]; float restart_time = (i * lifetime / particle_count) * explosiveness; bool restart=false; if ( next_time < time ) { if (restart_time > time || restart_time < next_time ) restart=true; } else if (restart_time > time && restart_time < next_time ) { restart=true; } if (restart) { if (emitting) { p.pos=emissor_offset; if (emission_point_count) { Vector2 ep = r[Math::rand()%emission_point_count]; if (!local_space) { p.pos=xform.xform(p.pos+ep*extents); } else { p.pos+=ep*extents; } } else { if (!local_space) { p.pos=xform.xform(p.pos+Vector2(Math::random(-extents.x,extents.x),Math::random(-extents.y,extents.y))); } else { p.pos+=Vector2(Math::random(-extents.x,extents.x),Math::random(-extents.y,extents.y)); } } p.seed=Math::rand() % 12345678; uint32_t rand_seed=p.seed*(i+1); float angle = Math::deg2rad(param[PARAM_DIRECTION]+_rand_from_seed(&rand_seed)*param[PARAM_SPREAD]); p.velocity=Vector2( Math::sin(angle), Math::cos(angle) ); if (!local_space) { p.velocity = xform.basis_xform(p.velocity).normalized(); } p.velocity*=param[PARAM_LINEAR_VELOCITY]+param[PARAM_LINEAR_VELOCITY]*_rand_from_seed(&rand_seed)*randomness[PARAM_LINEAR_VELOCITY]; p.velocity+=initial_velocity; p.active=true; p.rot=Math::deg2rad(param[PARAM_INITIAL_ANGLE]+param[PARAM_INITIAL_ANGLE]*randomness[PARAM_INITIAL_ANGLE]*_rand_from_seed(&rand_seed)); active_count++; p.frame=Math::fmod(param[PARAM_ANIM_INITIAL_POS]+randomness[PARAM_ANIM_INITIAL_POS]*_rand_from_seed(&rand_seed),1.0); } else { p.active=false; } } else { if (!p.active) continue; uint32_t rand_seed=p.seed*(i+1); Vector2 force; //apply gravity float gravity_dir = Math::deg2rad( param[PARAM_GRAVITY_DIRECTION]+180*randomness[PARAM_GRAVITY_DIRECTION]*_rand_from_seed(&rand_seed)); force+=Vector2( Math::sin(gravity_dir), Math::cos(gravity_dir) ) * (param[PARAM_GRAVITY_STRENGTH]+param[PARAM_GRAVITY_STRENGTH]*randomness[PARAM_GRAVITY_STRENGTH]*_rand_from_seed(&rand_seed)); //apply radial Vector2 rvec = (p.pos - emissor_offset).normalized(); force+=rvec*(param[PARAM_RADIAL_ACCEL]+param[PARAM_RADIAL_ACCEL]*randomness[PARAM_RADIAL_ACCEL]*_rand_from_seed(&rand_seed)); //apply orbit float orbitvel = (param[PARAM_ORBIT_VELOCITY]+param[PARAM_ORBIT_VELOCITY]*randomness[PARAM_ORBIT_VELOCITY]*_rand_from_seed(&rand_seed)); if (orbitvel!=0) { Vector2 rel = p.pos - xform.elements[2]; Matrix32 rot(orbitvel*frame_time,Vector2()); p.pos = rot.xform(rel) + xform.elements[2]; } Vector2 tvec=rvec.tangent(); force+=tvec*(param[PARAM_TANGENTIAL_ACCEL]+param[PARAM_TANGENTIAL_ACCEL]*randomness[PARAM_TANGENTIAL_ACCEL]*_rand_from_seed(&rand_seed)); for(int j=0;j<attractor_count;j++) { Vector2 vec = (attractor_ptr[j].pos - p.pos); float vl = vec.length(); if (!attractor_ptr[j].attractor->enabled || vl==0 || vl > attractor_ptr[j].attractor->radius) continue; force+=vec*attractor_ptr[j].attractor->gravity; float fvl = p.velocity.length(); if (fvl && attractor_ptr[j].attractor->absorption) { Vector2 target = vec.normalized(); p.velocity = p.velocity.normalized().linear_interpolate(target,MIN(frame_time*attractor_ptr[j].attractor->absorption,1))*fvl; } if (attractor_ptr[j].attractor->disable_radius && vl < attractor_ptr[j].attractor->disable_radius) { p.active=false; } } p.velocity+=force*frame_time; if (param[PARAM_DAMPING]) { float dmp = param[PARAM_DAMPING]+param[PARAM_DAMPING]*randomness[PARAM_DAMPING]*_rand_from_seed(&rand_seed); float v = p.velocity.length(); v -= dmp * frame_time; if (v<=0) { p.velocity=Vector2(); } else { p.velocity=p.velocity.normalized() * v; } } p.pos+=p.velocity*frame_time; p.rot+=Math::lerp(param[PARAM_SPIN_VELOCITY],param[PARAM_SPIN_VELOCITY]*randomness[PARAM_SPIN_VELOCITY]*_rand_from_seed(&rand_seed),randomness[PARAM_SPIN_VELOCITY])*frame_time; float anim_spd=param[PARAM_ANIM_SPEED_SCALE]+param[PARAM_ANIM_SPEED_SCALE]*randomness[PARAM_ANIM_SPEED_SCALE]*_rand_from_seed(&rand_seed); p.frame=Math::fposmod(p.frame+(frame_time/lifetime)*anim_spd,1.0); active_count++; } } time=Math::fmod( time+frame_time, lifetime ); if (!emitting && active_count==0) { set_process(false); } update(); } void Particles2D::_notification(int p_what) { switch(p_what) { case NOTIFICATION_PROCESS: { _process_particles( get_process_delta_time() ); } break; case NOTIFICATION_ENTER_TREE: { float ppt=preprocess; while(ppt>0) { _process_particles(0.1); ppt-=0.1; } } break; case NOTIFICATION_DRAW: { if (particles.size()==0 || lifetime==0) return; RID ci=get_canvas_item(); Size2 size(1,1); Point2 center; int total_frames=1; if (!texture.is_null()) { size=texture->get_size(); size.x/=h_frames; size.y/=v_frames; total_frames=h_frames*v_frames; } float time_pos=(time/lifetime); Particle *pdata=&particles[0]; int particle_count=particles.size(); RID texrid; if (texture.is_valid()) texrid = texture->get_rid(); Matrix32 invxform; if (!local_space) invxform=get_global_transform().affine_inverse(); int start_particle = (int)(time * (float)particle_count / lifetime); for (int id=0;id<particle_count;++id) { int i = start_particle + id; if (i >= particle_count) { i -= particle_count; } Particle &p=pdata[i]; if (!p.active) continue; float ptime = ((float)i / particle_count)*explosiveness; if (ptime<time_pos) ptime=time_pos-ptime; else ptime=(1.0-ptime)+time_pos; uint32_t rand_seed=p.seed*(i+1); Color color; if(color_ramp.is_valid()) { color = color_ramp->get_color_at_offset(ptime); } else { color = default_color; } { float huerand=_rand_from_seed(&rand_seed); float huerot = param[PARAM_HUE_VARIATION] + randomness[PARAM_HUE_VARIATION] * huerand; if (Math::abs(huerot) > CMP_EPSILON) { float h=color.get_h(); float s=color.get_s(); float v=color.get_v(); float a=color.a; //float preh=h; h+=huerot; h=Math::abs(Math::fposmod(h,1.0)); //print_line("rand: "+rtos(randomness[PARAM_HUE_VARIATION])+" rand: "+rtos(huerand)); //print_line(itos(i)+":hue: "+rtos(preh)+" + "+rtos(huerot)+" = "+rtos(h)); color.set_hsv(h,s,v); color.a=a; } } float initial_size = param[PARAM_INITIAL_SIZE]+param[PARAM_INITIAL_SIZE]*_rand_from_seed(&rand_seed)*randomness[PARAM_FINAL_SIZE]; float final_size = param[PARAM_FINAL_SIZE]+param[PARAM_FINAL_SIZE]*_rand_from_seed(&rand_seed)*randomness[PARAM_FINAL_SIZE]; float size_mult=initial_size*(1.0-ptime) + final_size*ptime; //Size2 rectsize=size * size_mult; //rectsize=rectsize.floor(); //Rect2 r = Rect2(Vecto,rectsize); Matrix32 xform; if (p.rot) { xform.set_rotation(p.rot); xform.translate(-size*size_mult/2.0); xform.elements[2]+=p.pos; } else { xform.elements[2]=-size*size_mult/2.0; xform.elements[2]+=p.pos; } if (!local_space) { xform = invxform * xform; } xform.scale_basis(Size2(size_mult,size_mult)); VisualServer::get_singleton()->canvas_item_add_set_transform(ci,xform); if (texrid.is_valid()) { Rect2 src_rect; src_rect.size=size; if (total_frames>1) { int frame = Math::fast_ftoi(Math::floor(p.frame*total_frames)) % total_frames; src_rect.pos.x = size.x * (frame%h_frames); src_rect.pos.y = size.y * (frame/h_frames); } texture->draw_rect_region(ci,Rect2(Point2(),size),src_rect,color); //VisualServer::get_singleton()->canvas_item_add_texture_rect(ci,r,texrid,false,color); } else { VisualServer::get_singleton()->canvas_item_add_rect(ci,Rect2(Point2(),size),color); } } } break; } } static const char* _particlesframe_property_names[Particles2D::PARAM_MAX]={ "params/direction", "params/spread", "params/linear_velocity", "params/spin_velocity", "params/orbit_velocity", "params/gravity_direction", "params/gravity_strength", "params/radial_accel", "params/tangential_accel", "params/damping", "params/initial_angle", "params/initial_size", "params/final_size", "params/hue_variation", "params/anim_speed_scale", "params/anim_initial_pos", }; static const char* _particlesframe_property_rnames[Particles2D::PARAM_MAX]={ "randomness/direction", "randomness/spread", "randomness/linear_velocity", "randomness/spin_velocity", "randomness/orbit_velocity", "randomness/gravity_direction", "randomness/gravity_strength", "randomness/radial_accel", "randomness/tangential_accel", "randomness/damping", "randomness/initial_angle", "randomness/initial_size", "randomness/final_size", "randomness/hue_variation", "randomness/anim_speed_scale", "randomness/anim_initial_pos", }; static const char* _particlesframe_property_ranges[Particles2D::PARAM_MAX]={ "0,360,0.01", "0,180,0.01", "-1024,1024,0.01", "-1024,1024,0.01", "-1024,1024,0.01", "0,360,0.01", "0,1024,0.01", "-128,128,0.01", "-128,128,0.01", "0,1024,0.001", "0,360,0.01", "0,1024,0.01", "0,1024,0.01", "0,1,0.01", "0,128,0.01", "0,1,0.01", }; void Particles2D::set_emitting(bool p_emitting) { if (emitting==p_emitting) return; if (p_emitting) { if (active_count==0) time=0; set_process(true); time_to_live = emit_timeout; }; emitting=p_emitting; _change_notify("config/emitting"); } bool Particles2D::is_emitting() const { return emitting; } void Particles2D::set_amount(int p_amount) { ERR_FAIL_INDEX(p_amount,1024+1); particles.resize(p_amount); } int Particles2D::get_amount() const { return particles.size(); } void Particles2D::set_emit_timeout(float p_timeout) { emit_timeout = p_timeout; time_to_live = p_timeout; }; float Particles2D::get_emit_timeout() const { return emit_timeout; }; void Particles2D::set_lifetime(float p_lifetime) { ERR_FAIL_INDEX(p_lifetime,3600+1); lifetime=p_lifetime; } float Particles2D::get_lifetime() const { return lifetime; } void Particles2D::set_time_scale(float p_time_scale) { time_scale=p_time_scale; } float Particles2D::get_time_scale() const { return time_scale; } void Particles2D::set_pre_process_time(float p_pre_process_time) { preprocess=p_pre_process_time; } float Particles2D::get_pre_process_time() const{ return preprocess; } void Particles2D::set_param(Parameter p_param, float p_value) { ERR_FAIL_INDEX(p_param,PARAM_MAX); param[p_param]=p_value; } float Particles2D::get_param(Parameter p_param) const { ERR_FAIL_INDEX_V(p_param,PARAM_MAX,0); return param[p_param]; } void Particles2D::set_randomness(Parameter p_param, float p_value) { ERR_FAIL_INDEX(p_param,PARAM_MAX); randomness[p_param]=p_value; } float Particles2D::get_randomness(Parameter p_param) const { ERR_FAIL_INDEX_V(p_param,PARAM_MAX,0); return randomness[p_param]; } void Particles2D::set_texture(const Ref<Texture>& p_texture) { texture=p_texture; } Ref<Texture> Particles2D::get_texture() const { return texture; } void Particles2D::set_color(const Color& p_color) { default_color = p_color; } Color Particles2D::get_color() const { return default_color; } void Particles2D::set_color_ramp(const Ref<ColorRamp>& p_color_ramp) { color_ramp=p_color_ramp; } Ref<ColorRamp> Particles2D::get_color_ramp() const { return color_ramp; } void Particles2D::set_emissor_offset(const Point2& p_offset) { emissor_offset=p_offset; } Point2 Particles2D::get_emissor_offset() const { return emissor_offset; } void Particles2D::set_use_local_space(bool p_use) { local_space=p_use; } bool Particles2D::is_using_local_space() const { return local_space; } //Deprecated. Converts color phases to color ramp void Particles2D::set_color_phases(int p_phases) { //Create color ramp if we have 2 or more phases. //Otherwise first phase phase will be assigned to default color. if(p_phases > 1 && color_ramp.is_null()) { color_ramp = Ref<ColorRamp>(memnew (ColorRamp())); } if(color_ramp.is_valid()) { color_ramp->get_points().resize(p_phases); } } //Deprecated. int Particles2D::get_color_phases() const { if(color_ramp.is_valid()) { return color_ramp->get_points_count(); } return 0; } //Deprecated. Converts color phases to color ramp void Particles2D::set_color_phase_color(int p_phase,const Color& p_color) { ERR_FAIL_INDEX(p_phase,MAX_COLOR_PHASES); if(color_ramp.is_valid()) { if(color_ramp->get_points_count() > p_phase) color_ramp->set_color(p_phase, p_color); } else { if(p_phase == 0) default_color = p_color; } } //Deprecated. Color Particles2D::get_color_phase_color(int p_phase) const { ERR_FAIL_INDEX_V(p_phase,MAX_COLOR_PHASES,Color()); if(color_ramp.is_valid()) { return color_ramp->get_color(p_phase); } return Color(0,0,0,1); } //Deprecated. Converts color phases to color ramp void Particles2D::set_color_phase_pos(int p_phase,float p_pos) { ERR_FAIL_INDEX(p_phase,MAX_COLOR_PHASES); ERR_FAIL_COND(p_pos<0.0 || p_pos>1.0); if(color_ramp.is_valid() && color_ramp->get_points_count() > p_phase) { return color_ramp->set_offset(p_phase, p_pos); } } //Deprecated. float Particles2D::get_color_phase_pos(int p_phase) const { ERR_FAIL_INDEX_V(p_phase,MAX_COLOR_PHASES,0); if(color_ramp.is_valid()) { return color_ramp->get_offset(p_phase); } return 0; } void Particles2D::set_emission_half_extents(const Vector2& p_extents) { extents=p_extents; } Vector2 Particles2D::get_emission_half_extents() const { return extents; } void Particles2D::testee(int a, int b, int c, int d, int e) { print_line(itos(a)); print_line(itos(b)); print_line(itos(c)); print_line(itos(d)); print_line(itos(e)); } void Particles2D::set_initial_velocity(const Vector2& p_velocity) { initial_velocity=p_velocity; } Vector2 Particles2D::get_initial_velocity() const{ return initial_velocity; } void Particles2D::pre_process(float p_delta) { _process_particles(p_delta); } void Particles2D::set_explosiveness(float p_value) { explosiveness=p_value; } float Particles2D::get_explosiveness() const{ return explosiveness; } void Particles2D::set_flip_h(bool p_flip) { flip_h=p_flip; } bool Particles2D::is_flipped_h() const{ return flip_h; } void Particles2D::set_flip_v(bool p_flip){ flip_v=p_flip; } bool Particles2D::is_flipped_v() const{ return flip_v; } void Particles2D::set_h_frames(int p_frames) { ERR_FAIL_COND(p_frames<1); h_frames=p_frames; } int Particles2D::get_h_frames() const{ return h_frames; } void Particles2D::set_v_frames(int p_frames){ ERR_FAIL_COND(p_frames<1); v_frames=p_frames; } int Particles2D::get_v_frames() const{ return v_frames; } void Particles2D::set_emission_points(const DVector<Vector2>& p_points) { emission_points=p_points; } DVector<Vector2> Particles2D::get_emission_points() const{ return emission_points; } void Particles2D::reset() { for(int i=0;i<particles.size();i++) { particles[i].active=false; } time=0; active_count=0; } void Particles2D::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_emitting","active"),&Particles2D::set_emitting); ObjectTypeDB::bind_method(_MD("is_emitting"),&Particles2D::is_emitting); ObjectTypeDB::bind_method(_MD("set_amount","amount"),&Particles2D::set_amount); ObjectTypeDB::bind_method(_MD("get_amount"),&Particles2D::get_amount); ObjectTypeDB::bind_method(_MD("set_lifetime","lifetime"),&Particles2D::set_lifetime); ObjectTypeDB::bind_method(_MD("get_lifetime"),&Particles2D::get_lifetime); ObjectTypeDB::bind_method(_MD("set_time_scale","time_scale"),&Particles2D::set_time_scale); ObjectTypeDB::bind_method(_MD("get_time_scale"),&Particles2D::get_time_scale); ObjectTypeDB::bind_method(_MD("set_pre_process_time","time"),&Particles2D::set_pre_process_time); ObjectTypeDB::bind_method(_MD("get_pre_process_time"),&Particles2D::get_pre_process_time); ObjectTypeDB::bind_method(_MD("set_emit_timeout","value"),&Particles2D::set_emit_timeout); ObjectTypeDB::bind_method(_MD("get_emit_timeout"),&Particles2D::get_emit_timeout); ObjectTypeDB::bind_method(_MD("set_param","param","value"),&Particles2D::set_param); ObjectTypeDB::bind_method(_MD("get_param","param"),&Particles2D::get_param); ObjectTypeDB::bind_method(_MD("set_randomness","param","value"),&Particles2D::set_randomness); ObjectTypeDB::bind_method(_MD("get_randomness","param"),&Particles2D::get_randomness); ObjectTypeDB::bind_method(_MD("set_texture:Texture","texture"),&Particles2D::set_texture); ObjectTypeDB::bind_method(_MD("get_texture:Texture"),&Particles2D::get_texture); ObjectTypeDB::bind_method(_MD("set_color","color"),&Particles2D::set_color); ObjectTypeDB::bind_method(_MD("get_color"),&Particles2D::get_color); ObjectTypeDB::bind_method(_MD("set_color_ramp:ColorRamp","color_ramp"),&Particles2D::set_color_ramp); ObjectTypeDB::bind_method(_MD("get_color_ramp:ColorRamp"),&Particles2D::get_color_ramp); ObjectTypeDB::bind_method(_MD("set_emissor_offset","offset"),&Particles2D::set_emissor_offset); ObjectTypeDB::bind_method(_MD("get_emissor_offset"),&Particles2D::get_emissor_offset); ObjectTypeDB::bind_method(_MD("set_flip_h","enable"),&Particles2D::set_flip_h); ObjectTypeDB::bind_method(_MD("is_flipped_h"),&Particles2D::is_flipped_h); ObjectTypeDB::bind_method(_MD("set_flip_v","enable"),&Particles2D::set_flip_v); ObjectTypeDB::bind_method(_MD("is_flipped_v"),&Particles2D::is_flipped_v); ObjectTypeDB::bind_method(_MD("set_h_frames","enable"),&Particles2D::set_h_frames); ObjectTypeDB::bind_method(_MD("get_h_frames"),&Particles2D::get_h_frames); ObjectTypeDB::bind_method(_MD("set_v_frames","enable"),&Particles2D::set_v_frames); ObjectTypeDB::bind_method(_MD("get_v_frames"),&Particles2D::get_v_frames); ObjectTypeDB::bind_method(_MD("set_emission_half_extents","extents"),&Particles2D::set_emission_half_extents); ObjectTypeDB::bind_method(_MD("get_emission_half_extents"),&Particles2D::get_emission_half_extents); ObjectTypeDB::bind_method(_MD("set_color_phases","phases"),&Particles2D::set_color_phases); ObjectTypeDB::bind_method(_MD("get_color_phases"),&Particles2D::get_color_phases); ObjectTypeDB::bind_method(_MD("set_color_phase_color","phase","color"),&Particles2D::set_color_phase_color); ObjectTypeDB::bind_method(_MD("get_color_phase_color","phase"),&Particles2D::get_color_phase_color); ObjectTypeDB::bind_method(_MD("set_color_phase_pos","phase","pos"),&Particles2D::set_color_phase_pos); ObjectTypeDB::bind_method(_MD("get_color_phase_pos","phase"),&Particles2D::get_color_phase_pos); ObjectTypeDB::bind_method(_MD("pre_process","time"),&Particles2D::pre_process); ObjectTypeDB::bind_method(_MD("reset"),&Particles2D::reset); ObjectTypeDB::bind_method(_MD("set_use_local_space","enable"),&Particles2D::set_use_local_space); ObjectTypeDB::bind_method(_MD("is_using_local_space"),&Particles2D::is_using_local_space); ObjectTypeDB::bind_method(_MD("set_initial_velocity","velocity"),&Particles2D::set_initial_velocity); ObjectTypeDB::bind_method(_MD("get_initial_velocity"),&Particles2D::get_initial_velocity); ObjectTypeDB::bind_method(_MD("set_explosiveness","amount"),&Particles2D::set_explosiveness); ObjectTypeDB::bind_method(_MD("get_explosiveness"),&Particles2D::get_explosiveness); ObjectTypeDB::bind_method(_MD("set_emission_points","points"),&Particles2D::set_emission_points); ObjectTypeDB::bind_method(_MD("get_emission_points"),&Particles2D::get_emission_points); ADD_PROPERTY(PropertyInfo(Variant::INT,"config/amount",PROPERTY_HINT_EXP_RANGE,"1,1024"),_SCS("set_amount"),_SCS("get_amount") ); ADD_PROPERTY(PropertyInfo(Variant::REAL,"config/lifetime",PROPERTY_HINT_EXP_RANGE,"0.1,3600,0.1"),_SCS("set_lifetime"),_SCS("get_lifetime") ); ADD_PROPERTYNO(PropertyInfo(Variant::REAL,"config/time_scale",PROPERTY_HINT_EXP_RANGE,"0.01,128,0.01"),_SCS("set_time_scale"),_SCS("get_time_scale") ); ADD_PROPERTYNZ(PropertyInfo(Variant::REAL,"config/preprocess",PROPERTY_HINT_EXP_RANGE,"0.1,3600,0.1"),_SCS("set_pre_process_time"),_SCS("get_pre_process_time") ); ADD_PROPERTYNZ(PropertyInfo(Variant::REAL,"config/emit_timeout",PROPERTY_HINT_RANGE,"0,3600,0.1"),_SCS("set_emit_timeout"),_SCS("get_emit_timeout") ); ADD_PROPERTYNO(PropertyInfo(Variant::BOOL,"config/emitting"),_SCS("set_emitting"),_SCS("is_emitting") ); ADD_PROPERTYNZ(PropertyInfo(Variant::VECTOR2,"config/offset"),_SCS("set_emissor_offset"),_SCS("get_emissor_offset")); ADD_PROPERTYNZ(PropertyInfo(Variant::VECTOR2,"config/half_extents"),_SCS("set_emission_half_extents"),_SCS("get_emission_half_extents")); ADD_PROPERTYNO(PropertyInfo(Variant::BOOL,"config/local_space"),_SCS("set_use_local_space"),_SCS("is_using_local_space")); ADD_PROPERTYNO(PropertyInfo(Variant::REAL,"config/explosiveness",PROPERTY_HINT_RANGE,"0,1,0.01"),_SCS("set_explosiveness"),_SCS("get_explosiveness")); ADD_PROPERTYNZ(PropertyInfo(Variant::BOOL,"config/flip_h"),_SCS("set_flip_h"),_SCS("is_flipped_h")); ADD_PROPERTYNZ(PropertyInfo(Variant::BOOL,"config/flip_v"),_SCS("set_flip_v"),_SCS("is_flipped_v")); ADD_PROPERTYNZ(PropertyInfo(Variant::OBJECT,"config/texture",PROPERTY_HINT_RESOURCE_TYPE,"Texture"),_SCS("set_texture"),_SCS("get_texture")); ADD_PROPERTYNO(PropertyInfo(Variant::INT,"config/h_frames",PROPERTY_HINT_RANGE,"1,512,1"),_SCS("set_h_frames"),_SCS("get_h_frames")); ADD_PROPERTYNO(PropertyInfo(Variant::INT,"config/v_frames",PROPERTY_HINT_RANGE,"1,512,1"),_SCS("set_v_frames"),_SCS("get_v_frames")); for(int i=0;i<PARAM_MAX;i++) { ADD_PROPERTYI(PropertyInfo(Variant::REAL,_particlesframe_property_names[i],PROPERTY_HINT_RANGE,_particlesframe_property_ranges[i]),_SCS("set_param"),_SCS("get_param"),i); } for(int i=0;i<PARAM_MAX;i++) { ADD_PROPERTYINZ(PropertyInfo(Variant::REAL,_particlesframe_property_rnames[i],PROPERTY_HINT_RANGE,"-1,1,0.01"),_SCS("set_randomness"),_SCS("get_randomness"),i); } ADD_PROPERTYNZ( PropertyInfo( Variant::INT, "color_phases/count",PROPERTY_HINT_RANGE,"0,4,1", 0), _SCS("set_color_phases"), _SCS("get_color_phases")); //Backward compatibility. They will be converted to color ramp for(int i=0;i<MAX_COLOR_PHASES;i++) { String phase="phase_"+itos(i)+"/"; ADD_PROPERTYI( PropertyInfo( Variant::REAL, phase+"pos", PROPERTY_HINT_RANGE,"0,1,0.01", 0),_SCS("set_color_phase_pos"),_SCS("get_color_phase_pos"),i ); ADD_PROPERTYI( PropertyInfo( Variant::COLOR, phase+"color", PROPERTY_HINT_NONE, "", 0),_SCS("set_color_phase_color"),_SCS("get_color_phase_color"),i ); } ADD_PROPERTYNO(PropertyInfo(Variant::COLOR, "color/color"),_SCS("set_color"),_SCS("get_color")); ADD_PROPERTYNZ(PropertyInfo(Variant::OBJECT,"color/color_ramp",PROPERTY_HINT_RESOURCE_TYPE,"ColorRamp"),_SCS("set_color_ramp"),_SCS("get_color_ramp")); ADD_PROPERTYNZ(PropertyInfo(Variant::VECTOR2_ARRAY,"emission_points",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),_SCS("set_emission_points"),_SCS("get_emission_points")); BIND_CONSTANT( PARAM_DIRECTION ); BIND_CONSTANT( PARAM_SPREAD ); BIND_CONSTANT( PARAM_LINEAR_VELOCITY ); BIND_CONSTANT( PARAM_SPIN_VELOCITY ); BIND_CONSTANT( PARAM_ORBIT_VELOCITY ); BIND_CONSTANT( PARAM_GRAVITY_DIRECTION ); BIND_CONSTANT( PARAM_GRAVITY_STRENGTH ); BIND_CONSTANT( PARAM_RADIAL_ACCEL ); BIND_CONSTANT( PARAM_TANGENTIAL_ACCEL ); BIND_CONSTANT( PARAM_DAMPING ); BIND_CONSTANT( PARAM_INITIAL_ANGLE ); BIND_CONSTANT( PARAM_INITIAL_SIZE ); BIND_CONSTANT( PARAM_FINAL_SIZE ); BIND_CONSTANT( PARAM_HUE_VARIATION ); BIND_CONSTANT( PARAM_ANIM_SPEED_SCALE ); BIND_CONSTANT( PARAM_ANIM_INITIAL_POS ); BIND_CONSTANT( PARAM_MAX ); BIND_CONSTANT( MAX_COLOR_PHASES ); } Particles2D::Particles2D() { for(int i=0;i<PARAM_MAX;i++) { param[i]=0; randomness[i]=0; } set_param(PARAM_SPREAD,10); set_param(PARAM_LINEAR_VELOCITY,20); set_param(PARAM_GRAVITY_STRENGTH,9.8); set_param(PARAM_RADIAL_ACCEL,0); set_param(PARAM_TANGENTIAL_ACCEL,0); set_param(PARAM_INITIAL_ANGLE,0.0); set_param(PARAM_INITIAL_SIZE,1.0); set_param(PARAM_FINAL_SIZE,1.0); set_param(PARAM_ANIM_SPEED_SCALE,1.0); set_color(Color(1,1,1,1)); time=0; lifetime=2; emitting=false; particles.resize(32); active_count=-1; set_emitting(true); local_space=true; preprocess=0; time_scale=1.0; flip_h=false; flip_v=false; v_frames=1; h_frames=1; emit_timeout = 0; time_to_live = 0; explosiveness=1.0; }
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: Calendar/Repeat FILE: repeatGenerate.asm AUTHOR: Don Reeves, November 20, 1989 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial revision DESCRIPTION: Contains routines to generate all types of supported repeating events, storing the Repeat ID's in the RepeatTable. $Id: repeatGenerate.asm,v 1.1 97/04/04 14:48:54 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RepeatCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateInsert %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Inserts a new RepeatEvent into all the current year tables CALLED BY: RepeatStore PASS: DS = DGroup ES:0 = Valid block handle AX = RepeatEvent group # DX = RepeatEvent item # RETURN: Nothing DESTROYED: ES, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 12/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GenerateInsert proc near uses bx, cx, di, bp .enter ; Some set-up ; mov cx, NUM_REPEAT_TABLES ; loop this many times mov bx, offset repeatTableStructs ; offset to the structures ; Now loop loopAll: mov bp, ds:[bx].RTS_tableOD.handle tst bp ; a valid handle ?? je nextStruct ; if not, jump! mov ds:[tableHandle], bp mov bp, ds:[bx].RTS_tableOD.chunk mov ds:[tableChunk], bp mov bp, ds:[bx].RTS_yearYear call GenerateParse ; perform the insertion nextStruct: add bx, size RepeatTableStruct ; go to the next structure loop loopAll ; go through all the tables .leave ret GenerateInsert endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateUninsert %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Un-Inserts a RepeatEvent from all the current year tables CALLED BY: RepeatDelete PASS: DS = DGroup ES:0 = Valid block handle AX = RepeatEvent group # DX = RepeatEvent item # RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 2/15/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GenerateUninsert proc near uses ax, bx, cx, dx, di, si, bp .enter ; Now remove all traces of the RepeatEvent from the RepeatTable ; mov ds:[repeatGenProc], offset RemoveEvent ; call delete routine call GenerateInsert ; remove the event mov ds:[repeatGenProc], offset AddNewEvent ; back to normal routine ; Now remove any instances of the RepeatEvent from the DayPlan ; This is commented out for Responder as one needs to be able to ; delete repeating events w/o worrying about UI updates (which ; seems like a much cleaner way of doing stuff anyway). ; GetResourceHandleNS DPResource, bx mov si, offset DPResource:DayPlanObject mov cx, ax ; group => CX, item in DX mov ax, MSG_DP_DELETE_REPEAT_EVENT ; method to send mov di, mask MF_CALL or mask MF_FIXUP_DS or mask MF_FIXUP_ES call ObjMessage .leave ret GenerateUninsert endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateFixupException %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fixup an exception for a specific date (either remove the reference to the event, or add a reference) CALLED BY: GLOBAL PASS: DS = DGroup AX = RepeatStruct Group # DL = Day of exception DH = Month of exception BP = Year of exception DI = RepeatStruct Item # SI = offset to RemoveEvent or AddNewEvent RETURN: Nothing DESTROYED: ES PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 10/26/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _REPEAT_DATE_EXCEPTIONS GenerateFixupException proc near uses bx, cx, si .enter ; ; Loop through the year tables, and then fix up the reference ; to the RepeatStruct for the year/month/day in question ; EC < VerifyDGroupDS > mov ds:[repeatGenProc], si mov cx, NUM_REPEAT_TABLES mov bx, offset repeatTableStructs tableLoop: cmp ds:[bx].RTS_yearYear, bp jne nextStruct mov si, ds:[bx].RTS_tableOD.handle tst si ; a valid handle ?? jz nextStruct ; ...nope, so do nothing ; ; OK - we found the right year table. Now lock down the ; RepeatStruct and call the correct low-level routine ; push di mov ds:[tableHandle], si mov si, ds:[bx].RTS_tableOD.chunk mov ds:[tableChunk], si call GP_DBLock call GenerateAddEventFar call DBUnlock pop di ; ; Continue to loop through the remaining year tables, but ; once we're done, restore the low-level generation routine ; nextStruct: add bx, size RepeatTableStruct loop tableLoop mov ds:[repeatGenProc], offset AddNewEvent .leave ret GenerateFixupException endp endif RepeatCode ends CommonCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateParse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Determine which generate routine should get called CALLED BY: GLOBAL PASS: DS = DGroup ES = A relocatable block, ES:0 must contain block handle AX = Group # of RepeatStruct DX = Item # of RepeatStruct BP = Year to generate for RETURN: Nothing DESTROYED: SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RepeatGenerateTable nptr.near \ GenerateWeekly, ; RET_WEEKLY GenerateMonthlyDate, ; RET_MONTHLY_DATE GenerateMonthlyDOW, ; RET_MONTHLY_DOW GenerateYearlyDate, ; RET_YEARLY_DATE GenerateYearlyDOW ; RET_YEARLY_DOW GenerateParse proc far uses bx, cx, dx, di .enter ; Lock the item, roughly check the range ; push es:[LMBH_handle] ; save the handle mov di, dx ; item # to DI call GP_DBLockDerefSI ; lock the item cmp es:[si].RES_startYear, bp ; check start year jg done ; done if greater cmp es:[si].RES_endYear, bp ; check the end year jl done ; done if less ; Determine the type of repeat event - call the proper routine ; mov bl, es:[si].RES_type ; get the enumerated type clr bh EC < cmp bx, RepeatEventType ; bad enumerated type ??> EC < ERROR_GE GENERATE_BAD_REPEAT_TYPE > sub bx, RET_WEEKLY ; make type zero-based EC < ERROR_L GENERATE_BAD_REPEAT_TYPE > shl bx, 1 ; double to word counter call {word} cs:[RepeatGenerateTable][bx] ; If we are supporting repeating date exceptions, then we ; must see if there are any exception dates for this event ; RDE < call GenerateExceptionDates > ; We're done - clean up and exit done: call DBUnlock ; unlock the item pop bx call MemDerefES ; dereference the handle .leave ret GenerateParse endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateExceptionDates %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate the exception dates for a given event for the passed year, and update the year table CALLED BY: GenerateParse PASS: DS = DGroup *ES:DI = RepeatStruct BP = Year to generate for RETURN: Nothing DESTROYED: BX, CX, DX, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/ 4/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _REPEAT_DATE_EXCEPTIONS GenerateExceptionDates proc near uses ax .enter ; ; If we are deleting the event, then we need not do anything. ; EC < VerifyDGroupDS > cmp ds:[repeatGenProc], offset RemoveEvent je exit ; ; If there aren't any date exception structures at the end of ; this event, there is likewise no work to be done ; mov si, es:[di] ChunkSizePtr es, si, cx mov bx, es:[si].RES_dataLength add bx, (size RepeatStruct) cmp bx, cx je exit EC < ERROR_A REPEAT_EVENT_ILLEGAL_STRUCTURE > ; ; See how many RepeatDateException structures exist ; CheckHack <(size RepeatDateException) eq 4> sub cx, bx shr cx, 1 EC < ERROR_C REPEAT_EVENT_ILLEGAL_STRUCTURE > shr cx, 1 ; # of structures => CX EC < ERROR_C REPEAT_EVENT_ILLEGAL_STRUCTURE > ; ; Loop through the exceptions and update the year table ; add si, bx mov ds:[repeatGenProc], offset RemoveEvent exceptionLoop: cmp es:[si].RDE_year, bp ; if different year, jne next ; ...don't generate exception mov dx, {word} es:[si].RDE_day call GenerateAddEvent next: add si, (size RepeatDateException) loop exceptionLoop mov ds:[repeatGenProc], offset AddNewEvent exit: .leave ret GenerateExceptionDates endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateWeekly %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate all weekly repeat events CALLED BY: GenerateRepeat PASS: DS = DGroup ES:*DI = RepeatStruct BP = Year AX = Group # for Repeat RETURN: Nothing DESTROYED: BX, CX, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GenerateWeekly proc near uses bp .enter ; ; get the first month & day ; mov si, es:[di] mov dx, (1 shl 8) or 1 ; January 1 cmp bp, es:[si].RES_startYear jl done jg setupLoop mov dx, {word} es:[si].RES_startDay setupLoop: ; ; initialize the week array, and find first Day of Week match ; mov ds:[weeklyYear], bp call WeeklyInitArray call CalcDayOfWeek ; cl = day of the week(0 - 6) clr bh mov bl, cl ; bx = day of the week(0 - 6) cmp cl, 0 jg setupCont mov cl, 7 setupCont: dec cl mov ch, 1 sal ch, cl test es:[si].RES_DOWFlags, ch jne weekLoopMid weekLoop: ; ; loop until the end of the year ; ; es:*di = RepeatStruct ; ; bp = year ; dh = month ; dl = day ; bx = current day of the week (0 - 6) ; mov cl, ds:[GenDayArray][bx]; get increment to clr ch ; next day of week add bl, ds:[GenDayArray][bx] cmp bl, 7 jl next sub bl, 7 next: ; ; go to next day of week ; call CalcDateAltered ; bp/dh/dl - new date cmp bp, ds:[weeklyYear] ; to next year ?? jne done weekLoopMid: ; ; are we within the boundary of the week ; call CompareStartEnd jc done ; carry set if out of bound ; ; add event ; call GenerateAddEvent jmp weekLoop done: .leave ret GenerateWeekly endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SkipOneWeek %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Skip a week from a given day CALLED BY: GenerateWeekly PASS: ds = dgroup bp = year dh = month dl = day bx = current day of the week (0 - 6) RETURN: bp = year after skipping 1 week dh = month after skipping 1 week dl = day after skipping 1 week carry set if not the same year anymore DESTROYED: nothing REVISION HISTORY: Name Date Description ---- ---- ----------- jang 2/ 3/97 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckValidBiweeklyDate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: check whether current date is a valid biweekly date starting from the start date. CALLED BY: GenerateWeekly PASS: es:si = RepeatStruct bp = current year dh = current month dl = current day RETURN: carry set if not valid carry clear if valid DESTROYED: nothing REVISION HISTORY: Name Date Description ---- ---- ----------- jang 1/31/97 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WeeklyInitArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initialize the DayArray CALLED BY: GenerateWeekly PASS: ES:*DI = RepeatStruct RETURN: Nothing DESTROYED: BX, CX, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/28/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ WeeklyInitArray proc near uses ax .enter ; First generate the day array ; mov si, es:[di] ; dereference the handle mov al, es:[si].RES_DOWFlags ; get the DOWFlags EC < tst al > EC < ERROR_Z WEEKLY_REPEAT_EVENT_MUST_HAVE_DOW_SET > mov bx, offset GenDayArray ; go to start of array mov ch, 1 ; set a flag clr cl ; start the day counter mov ah, 1 ; clear the counter arrayLoop: inc cl ; another day gone by sar al ; shift right DOWFlags jc firstCheck ; if carry, leave loop inc ah ; increment the counter cmp cl, 7 jl arrayLoop jmp arrayLast firstCheck: cmp ch, 1 ; is the flag set ?? jne secondLoop ; no - jump push ax ; save 1st occurrence clr ch ; clear the flag secondLoop: cmp bx, (offset GenDayArray) + 7 ; compare with end of array je done mov ds:[bx], ah ; store the jump value inc bx ; go to next entry dec ah ; decrement the value jg secondLoop mov ah, 1 ; reset jump value jmp arrayLoop ; continue with the big loop ; Fixup the final entries ; arrayLast: mov cl, ah ; current count to CL pop ax ; restore first count dec ah ; offset to first DOW in AH add ah, cl ; add together jmp secondLoop done: .leave ret WeeklyInitArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateMonthlyDate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate monthly repeat events by specific day CALLED BY: GenerateRepeat PASS: ES:*DI = RepeatStruct BP = Year AX = Group # for Repeat RETURN: Nothing DESTROYED: CX, DX, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GenerateMonthlyDate proc near ; Some set-up work ; mov si, es:[di] ; dereference the handle mov dh, 1 ; the first month ; Now loop ; genLoop: call MonthDateGuts ; calc the day of month jc next ; jump if invalid day call CompareStartEnd jc next ; go to the next event call GenerateAddEvent next: inc dh ; go to the next month cmp dh, 12 ; are we done ?? jle genLoop ; loop again ret GenerateMonthlyDate endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateMonthlyDOW %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate monthly repeat events by specific DOW & occurrence CALLED BY: GenerateRepeat PASS: ES:*DI = RepeatStruct BP = Year AX = Group # for Repeat RETURN: Nothing DESTROYED: CX, DX, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GenerateMonthlyDOW proc near ; Some set up work ; mov si, es:[di] ; dereference the handle mov dh, 1 ; the first month ; Now loop ; genLoop: call MonthDOWGuts jc next ; if carry set, bad occurrence call CompareStartEnd jc next ; if carry set, bad event call GenerateAddEvent next: inc dh ; go to the next month cmp dh, 12 ; are we done ?? jle genLoop ; loop again ret GenerateMonthlyDOW endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateYearlyDate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate yearly repeat events by specific month & day CALLED BY: GenerateRepeat PASS: ES:*DI = RepeatStruct BP = Year AX = Group # for Repeat RETURN: Nothing DESTROYED: CX, DX, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GenerateYearlyDate proc near ; Simple - get month & calc ; mov si, es:[di] ; dereference the handle mov dh, es:[si].RES_month ; get the month call MonthDateGuts ; calc the day => DL jc done ; if carry set, bad occurrence call CompareStartEnd jc done ; if carry set, bad event call GenerateAddEvent done: ret GenerateYearlyDate endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenerateYearlyDOW %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate yearly repeat events using a month, DOW, & occurrence CALLED BY: GenerateRepeat PASS: ES:*DI = RepeatStruct BP = Year AX = Group # for Repeat RETURN: Nothing DESTROYED: CX, DX, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GenerateYearlyDOW proc near ; Simple - get month & calc ; mov si, es:[di] ; dereference the handle mov dh, es:[si].RES_month ; get the month call MonthDOWGuts ; calc the day => DL jc done ; if carry set, bad occurrence call CompareStartEnd jc done ; if carry set, bad event call GenerateAddEvent done: ret GenerateYearlyDOW endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CompareStartEnd %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check if given year/month/day falls in start-end period CALLED BY: Generate GLOBAL PASS: ES:*DI = RepeatStruct BP = Year DH = Month DL = Day RETURN: CarrySet if not in range DESTROYED: SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version Don 6/12/90 Optimized %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CompareStartEnd proc near mov si, es:[di] ; dereference the handle cmp bp, es:[si].RES_startYear ; compare with start year jl done ; if less, fail (carry set) jg checkEnd ; if greater, check end cmp dx, {word} es:[si].RES_startDay ; compare with start M/D jl done ; if less, fail (carry set) checkEnd: cmp es:[si].RES_endYear, bp ; compare with end year jnz done ; fail or OK (carry determines) cmp {word} es:[si].RES_endDay, dx ; compare with end M/D done: ret CompareStartEnd endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MonthDateGuts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Perform true work for a specific day in a month CALLED BY: GenerateMonthlyDate, GenerateYearlyDate PASS: ES:*DI = RepeatStruct BP = Year DH = Month RETURN: DL = Day CarrySet if not a valid day for this month DESTROYED: CH, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version Don 6/12/90 Optimized sean 4/5/96 Responder change to make monthly repeat events after the 29th of month appear at the end of February %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MonthDateGuts proc near mov si, es:[di] ; dereference the handle mov dl, es:[si].RES_day ; get the day call CalcDaysInMonth ; get days in this month xchg dl, ch ; exchange day & requested cmp ch, LAST_DAY_OF_MONTH ; is requested the last day ? je done ; If it's February & if the day we're repeating is after the ; last day in February, then put this event at the end of ; February. ; cmp dl, ch ; sets the carry flag... mov dl, ch ; my day => DL done: ret MonthDateGuts endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MonthDOWGuts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Perform true work for specfic day of week in a month CALLED BY: GenertateMonthlyDOW, GenerateYearlyDOW PASS: ES:*DI = RepeatStruct BP = Year DH = Month RETURN: DL = Day Carry = Set if not a valid occurrence DESTROYED: CX, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/20/89 Initial version Don 6/12/90 Partially optimized %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MonthDOWGuts proc near uses bx .enter ; Get the days in the month; determine type of occurrence ; mov si, es:[di] ; dereference the handle call CalcDaysInMonth ; get the days in this month cmp es:[si].RES_occur, LAST_DOW_OF_MONTH je lastDOW ; if last DOW, jump! ; Find the 1st Day of Week in this month ; mov dl, 1 ; get DOW of 1st day mov bh, ch ; days in the month to BH call CalcDayOfWeek cmp cl, es:[si].RES_DOW ; compare the DOW's je loopSetUp ; jump to occurrence loop sub cl, es:[si].RES_DOW neg cl jg adjust1 add cl, 7 adjust1: add dl, cl ; go to 1st DOW ; Now find the nth Day of Week in this month ; loopSetUp: mov cl, es:[si].RES_occur ; get the occurrence tst cl ; set the flags appropriately jmp midLoop dowLoop: add dl, 7 ; go to next week dec cl ; decrement the occurrence midLoop: jg dowLoop ; loop until done cmp bh, dl ; check last day & request jmp done ; carry determines success ; Handle the last DOW ; lastDOW: mov dl, ch ; last day is day we want call CalcDayOfWeek ; calculate the day of week cmp cl, es:[si].RES_DOW ; compare the DOW's je done ; we're done (carry clear) sub cl, es:[si].RES_DOW jg adjust2 add cl, 7 adjust2: sub dl, cl ; correct DOW (carry clear) done: .leave ret MonthDOWGuts endp CommonCode ends
; A135593: Number of n X n symmetric (0,1)-matrices with exactly n+1 entries equal to 1 and no zero rows or columns. ; Submitted by Jon Maiga ; 2,9,36,140,540,2142,8624,35856,152280,666380,2982672,13716144,64487696,310693320,1528801920,7691652992,39474925344,206758346256,1103332900160,5999356762560,33197323465152,186925844947424,1069977071943936,6225010338067200,36781106159907200,220661643838364352,1343284218678576384,8295373370026862336,51939654075612483840,329641985716146138240,2119676498419809800192,13805976878644366209024,91046983755689907872256,607793106631531238324480,4105721954640864158254080,28058407925954159197596672 mov $1,$0 add $0,2 seq $1,189940 ; Number of connected components in all simple labeled graphs with n nodes having degrees at most one. mul $1,79 mul $1,$0 mov $0,$1 div $0,79
/* Runtime ABI for the ARM Cortex-M0 * idiv.S: signed 32 bit division (only quotient) * idivmod.S: signed 32 bit division (quotient and remainder) * uidivmod.S: unsigned 32 bit division * * Copyright (c) 2012 Jörg Mische <bobbl@gmx.de> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include "config/mcu_defines.h" #ifdef STM32PLUS_F0 .syntax unified .text .thumb .cpu cortex-m0 @ int __aeabi_idiv(int num:r0, int denom:r1) @ @ Divide r0 by r1 and return quotient in r0 (all signed). @ Use __aeabi_uidivmod() but check signs before and change signs afterwards. @ .thumb_func .section .text.__aeabi_idiv .global __aeabi_idiv __aeabi_idiv: cmp r0, #0 bge L_num_pos rsbs r0, r0, #0 @ num = -num cmp r1, #0 bge L_neg_result rsbs r1, r1, #0 @ den = -den b __aeabi_uidivmod L_num_pos: cmp r1, #0 bge __aeabi_uidivmod rsbs r1, r1, #0 @ den = -den L_neg_result: push {lr} bl __aeabi_uidivmod rsbs r0, r0, #0 @ quot = -quot pop {pc} @ {int quotient:r0, int remainder:r1} @ __aeabi_idivmod(int numerator:r0, int denominator:r1) @ @ Divide r0 by r1 and return the quotient in r0 and the remainder in r1 @ .thumb_func .section .text.__aeabi_idivmod .global __aeabi_idivmod __aeabi_idivmod: cmp r0, #0 bge L_num_pos_bis rsbs r0, r0, #0 @ num = -num cmp r1, #0 bge L_neg_both rsbs r1, r1, #0 @ den = -den push {lr} bl __aeabi_uidivmod rsbs r1, r1, #0 @ rem = -rem pop {pc} L_neg_both: push {lr} bl __aeabi_uidivmod rsbs r0, r0, #0 @ quot = -quot rsbs r1, r1, #0 @ rem = -rem pop {pc} L_num_pos_bis: cmp r1, #0 bge __aeabi_uidivmod rsbs r1, r1, #0 @ den = -den push {lr} bl __aeabi_uidivmod rsbs r0, r0, #0 @ quot = -quot pop {pc} @ unsigned __aeabi_uidiv(unsigned num, unsigned denom) @ @ Just an alias for __aeabi_uidivmod(), the remainder is ignored @ .thumb_func .section .text.__aeabi_uidivmod .global __aeabi_uidiv __aeabi_uidiv: @ {unsigned quotient:r0, unsigned remainder:r1} @ __aeabi_uidivmod(unsigned numerator:r0, unsigned denominator:r1) @ @ Divide r0 by r1 and return the quotient in r0 and the remainder in r1 @ .thumb_func .global __aeabi_uidivmod __aeabi_uidivmod: cmp r1, #0 bne L_no_div0 b __aeabi_idiv0 L_no_div0: @ Shift left the denominator until it is greater than the numerator movs r2, #1 @ counter movs r3, #0 @ result cmp r0, r1 bls L_sub_loop0 adds r1, #0 @ dont shift if denominator would overflow bmi L_sub_loop0 L_denom_shift_loop: lsls r2, #1 lsls r1, #1 bmi L_sub_loop0 cmp r0, r1 bhi L_denom_shift_loop L_sub_loop0: cmp r0, r1 bcc L_dont_sub0 @ if (num>denom) subs r0, r1 @ numerator -= denom orrs r3, r2 @ result(r3) |= bitmask(r2) L_dont_sub0: lsrs r1, #1 @ denom(r1) >>= 1 lsrs r2, #1 @ bitmask(r2) >>= 1 bne L_sub_loop0 mov r1, r0 @ remainder(r1) = numerator(r0) mov r0, r3 @ quotient(r0) = result(r3) bx lr __aeabi_idiv0: bl __aeabi_idiv0 #endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: ResEdit FILE: documentKeyboard.asm AUTHOR: Cassie Hartzong, Mar 2, 1993 ROUTINES: Name Description ---- ----------- EXT DocumentKbdChar MSG_META_KBD_CHAR REVISION HISTORY: Name Date Description ---- ---- ----------- cassie 3/ 2/93 Initial revision DESCRIPTION: $Id: documentKeyboard.asm,v 1.1 97/04/04 17:14:23 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ idata segment ResEditDisplayClass idata ends DocumentListCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DisplayVisDraw %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: CALLED BY: MSG_VIS_DRAW PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of ResEditDisplayClass ax - the message cx - ^hbp - gstate RETURN: ^hbp - gstate DESTROYED: bx, si, di, ds, es (method handler) ax, dx, cx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cassie 5/18/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DisplayVisDraw method dynamic ResEditDisplayClass, MSG_VIS_DRAW push bp ; hold up input ; push ax,cx,bp,si ; save message, parameters, chunk GetResourceHandleNS ResEditApp, bx mov si, offset ResEditApp mov ax, MSG_GEN_APPLICATION_HOLD_UP_INPUT mov di, mask MF_CALL or mask MF_FIXUP_DS or mask MF_FIXUP_DS call ObjMessage pop ax,cx,bp,si ; call super to do the drawing ; mov di, offset ResEditDisplayClass call ObjCallSuperNoLock ; resume input ; GetResourceHandleNS ResEditApp, bx mov si, offset ResEditApp mov di, mask MF_CALL or mask MF_FIXUP_DS mov ax, MSG_GEN_APPLICATION_RESUME_INPUT call ObjMessage pop bp ret DisplayVisDraw endm ;------------------------------------------------------------------------- ; ResEditDocument shortcut handlers. ;------------------------------------------------------------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DocKbdPrevChunk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Go to the previous chunk, wrapping if at the first chunk. CALLED BY: PASS: *ds:si - document RETURN: nothing DESTROYED: cx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cassie 3/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DocKbdPrevChunk method dynamic ResEditDocumentClass, MSG_RESEDIT_DOCUMENT_KBD_PREV_CHUNK tst ds:[di].REDI_numChunks jz done mov cx, ds:[di].REDI_curChunk tst cx jnz change mov cx, ds:[di].REDI_numChunks change: dec cx call DocKbdChangeChunkCommon done: ret DocKbdPrevChunk endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DocKbdNextChunk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Go to the next chunk, wrapping if at the last chunk. CALLED BY: PASS: *ds:si - document RETURN: nothing DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cassie 3/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DocKbdNextChunk method dynamic ResEditDocumentClass, MSG_RESEDIT_DOCUMENT_KBD_NEXT_CHUNK tst ds:[di].REDI_numChunks jz done mov cx, ds:[di].REDI_curChunk inc cx cmp cx, ds:[di].REDI_numChunks jne change clr cx change: call DocKbdChangeChunkCommon done: ret DocKbdNextChunk endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DocKbdChangeChunkCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Common change chunk code. CALLED BY: DocKbdNextChunk, DocKbdPrevChunk PASS: *ds:si - document ds:di - document cx - chunk to change to RETURN: nothing DESTROYED: ax,bx,cx,dx,bp,si,di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cassie 3/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DocKbdChangeChunkCommon proc near push cx call DocumentChangeChunk pop cx ; update the chunk list to reflect the change ; call GetDisplayHandle mov si, offset ChunkList clr dx ; not indeterminate mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION clr di call ObjMessage ret DocKbdChangeChunkCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DocKbdPrevResource %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Go to the previous resource, wrapping if at first resource. CALLED BY: PASS: *ds:si - document RETURN: nothing DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cassie 3/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DocKbdPrevResource method dynamic ResEditDocumentClass, MSG_RESEDIT_DOCUMENT_KBD_PREV_RESOURCE mov cx, ds:[di].REDI_curResource tst cx jnz change mov cx, ds:[di].REDI_mapResources change: dec cx call DocKbdChangeResourceCommon ret DocKbdPrevResource endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DocKbdNextResource %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Go to the next resource, wrapping if at last resource. CALLED BY: PASS: *ds:si - document RETURN: nothing DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cassie 3/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DocKbdNextResource method dynamic ResEditDocumentClass, MSG_RESEDIT_DOCUMENT_KBD_NEXT_RESOURCE mov cx, ds:[di].REDI_curResource inc cx cmp cx, ds:[di].REDI_mapResources jne change clr cx change: call DocKbdChangeResourceCommon ret DocKbdNextResource endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DocKbdChangeResourceCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Common change resource code. CALLED BY: DocKbdNextResource, DocKbdPrevResource PASS: *ds:si - document ds:di - document cx - resource to change to RETURN: nothing DESTROYED: ax,bx,cx,dx,bp,si,di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cassie 3/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DocKbdChangeResourceCommon proc near clr dx call DocumentChangeResourceAndChunk ret DocKbdChangeResourceCommon endp DocumentListCode ends
%ifdef CONFIG { "RegData": { "MM0": "0x4142434445467778", "MM1": "0x4142434477784748", "MM2": "0x4142777845464748", "MM3": "0x7778434445464748", "MM4": "0x4142434445467778", "MM5": "0x4142434477784748", "MM6": "0x4142777845464748", "MM7": "0x7778434445464748" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x5152535455565758 mov [rdx + 8 * 1], rax mov rax, 0x7172737475767778 mov [rdx + 8 * 2], rax movq mm0, [rdx + 8 * 0] movq mm1, [rdx + 8 * 0] movq mm2, [rdx + 8 * 0] movq mm3, [rdx + 8 * 0] movq mm4, [rdx + 8 * 0] movq mm5, [rdx + 8 * 0] movq mm6, [rdx + 8 * 0] movq mm7, [rdx + 8 * 0] pinsrw mm0, eax, 0 pinsrw mm1, eax, 1 pinsrw mm2, eax, 2 pinsrw mm3, eax, 3 pinsrw mm4, [rdx + 8 * 2], 0 pinsrw mm5, [rdx + 8 * 2], 1 pinsrw mm6, [rdx + 8 * 2], 2 pinsrw mm7, [rdx + 8 * 2], 3 hlt
; A332409: a(n) = n!! mod Fibonacci(n). ; Submitted by Jamie Morken(w1) ; 0,0,1,2,0,0,1,6,27,45,71,0,228,73,605,861,956,2376,1199,5235,7137,5017,21617,40320,49250,72900,94129,253071,125204,188760,786046,1041600,3306329,2717231,8692580,4869072,10661888,33618132,14333453,66880275,110783982 add $0,1 mov $1,1 mov $2,$0 seq $2,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. lpb $0 mul $1,$0 sub $0,1 trn $0,1 mod $1,$2 lpe mov $0,$1
; void qsort_callee(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) SECTION code_clib SECTION code_stdlib PUBLIC __quicksort__callee, l0__quicksort__callee EXTERN asm_quicksort __quicksort__callee: pop af pop bc pop hl pop de exx pop bc push af l0__quicksort__callee: push bc exx ex (sp),ix call asm_quicksort pop ix ret
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * * | |___ / ___ \| _| Framework * * \____/_/ \_|_| * * * * Copyright 2011-2018 Dominik Charousset * * * * Distributed under the terms and conditions of the BSD 3-Clause License or * * (at your option) under the terms and conditions of the Boost Software * * License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. * * * * If you did not receive a copy of the license files, see * * http://opensource.org/licenses/BSD-3-Clause and * * http://www.boost.org/LICENSE_1_0.txt. * ******************************************************************************/ #include "caf/match_case.hpp" namespace caf { match_case::~match_case() { // nop } } // namespace caf
; Randomizer seed data rando_seed_data: ; $00 dw $0000 ; Player Id ; $02 dw $0000 ; Seed bitfield ; $04-$0f dw $0000, $0000, $0000, $0000, $0000, $0000 ; Future use ; $10-2f db "0233d47a92d14217ac52e932ffc684dd" ; Seed GUID ; $30-4f db "adaa377c2adb4ea0b2d7a9741d966c03" ; Player GUID
/* CirKit: A circuit toolkit * Copyright (C) 2009-2015 University of Bremen * Copyright (C) 2015-2017 EPFL * * 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. */ #include "range_utils.hpp" #include <numeric> #include <fmt/printf.h> namespace cirkit { void mixed_radix( std::vector<unsigned>& a, const std::vector<unsigned>& m, const std::function<bool(const std::vector<unsigned>&)>&& func ) { while ( true ) { /* step M2. [Visit.] */ if ( func( a ) ) { return; } /* next iteration */ auto j = a.size() - 1u; while ( a[j] == m[j] - 1u ) { a[j--] = 0u; } if ( !j ) { break; } a[j]++; } } void lexicographic_combinations( unsigned n, unsigned t, const std::function<bool(const std::vector<unsigned>&)>&& func ) { /* special cases */ if ( t > n ) { assert( false ); } else if ( t == n ) { std::vector<unsigned> v( n ); std::iota( v.begin(), v.end(), 0u ); func( v ); return; } else if ( t == 0u ) { func( {} ); return; } /* regular case */ /* step T1. [Initialize.] */ std::vector<unsigned> c( t ); std::iota( c.begin(), c.end(), 0u ); c.push_back( n ); c.push_back( 0u ); const auto sentinel = c.begin() + t; auto j = t; unsigned x{}; while ( true ) { /* step T2. [Visit.] */ if ( func( std::vector<unsigned>( c.begin(), sentinel ) ) ) return; if ( j > 0 ) { x = j; } else { /* step T3. [Easy case?] */ if ( c[0] + 1 < c[1] ) { ++c[0]; continue; } j = 2u; /* step T4. [Find j.] */ while ( true ) { c[j - 2] = j - 2; x = c[j - 1] + 1; if ( x != c[j] ) break; ++j; } /* step T5. [Done?] */ if ( j > t ) break; } /* step T6. [Increase c_j.] */ c[--j] = x; } } std::vector<std::string> create_name_list( const std::string& pattern, unsigned length, unsigned start ) { std::vector<std::string> names( length ); for ( auto i = 0u; i < length; ++i ) { names[i] = fmt::sprintf( pattern, i + start ); } return names; } } // Local Variables: // c-basic-offset: 2 // eval: (c-set-offset 'substatement-open 0) // eval: (c-set-offset 'innamespace 0) // End:
/** * @file * * Unless noted otherwise, the portions of Isis written by the USGS are public * domain. See individual third-party library and package descriptions for * intellectual property information,user agreements, and related information. * * Although Isis has been used by the USGS, no warranty, expressed or implied, * is made by the USGS as to the accuracy and functioning of such software * and related material nor shall the fact of distribution constitute any such * warranty, and no responsibility is assumed by the USGS in connection * therewith. * * For additional information, launch * $ISISROOT/doc//documents/Disclaimers/Disclaimers.html in a browser or see * the Privacy &amp; Disclaimers page on the Isis website, * http://isis.astrogeology.usgs.gov, and the USGS privacy and disclaimers on * http://www.usgs.gov/privacy.html. */ #include "OsirisRexOcamsCamera.h" #include <QDebug> #include <QString> #include "CameraDetectorMap.h" #include "OsirisRexDistortionMap.h" #include "CameraFocalPlaneMap.h" #include "CameraGroundMap.h" #include "CameraSkyMap.h" #include "IString.h" #include "iTime.h" #include "NaifStatus.h" using namespace std; namespace Isis { /** * Constructs an OSIRIS-REx Camera Model using the image labels. This model supports MapCam, * PolyCam, and SamCam images. * * @param lab Pvl label from an Osiris Rex MapCam image. */ OsirisRexOcamsCamera::OsirisRexOcamsCamera(Cube &cube) : FramingCamera(cube) { NaifStatus::CheckErrors(); m_spacecraftNameLong = "OSIRIS-REx"; m_spacecraftNameShort = "OSIRIS-REx"; // The general IK code will be used to retrieve the transx, // transy, transs and transl from the iak. The focus position specific // IK code will be used to find pixel pitch and ccd center in the ik. int frameCode = naifIkCode(); if (frameCode == -64361) { m_instrumentNameLong = "Mapping Camera"; m_instrumentNameShort = "MapCam"; } else if (frameCode == -64362) { m_instrumentNameLong = "Sampling Camera"; m_instrumentNameShort = "SamCam"; } // IK values for polycam: -64360 (general) and -64616 to -64500 (focus specific) else if (frameCode == -64360) { m_instrumentNameLong = "PolyMath Camera"; m_instrumentNameShort = "PolyCam"; } else { QString msg = "Unable to construct OSIRIS-REx camera model. " "Unrecognized NaifFrameCode [" + toString(frameCode) + "]."; throw IException(IException::User, msg, _FILEINFO_); } Pvl &lab = *cube.label(); PvlGroup inst = lab.findGroup("Instrument", Pvl::Traverse); QString ikCode = toString(frameCode); if (inst.hasKeyword("PolyCamFocusPositionNaifId")) { if (QString::compare("NONE", inst["PolyCamFocusPositionNaifId"], Qt::CaseInsensitive) != 0) { ikCode = inst["PolyCamFocusPositionNaifId"][0]; } } QString focalLength = "INS" + ikCode + "_FOCAL_LENGTH"; SetFocalLength(getDouble(focalLength)); // The instrument kernel contains pixel pitch in microns, so convert it to mm. QString pitch = "INS" + ikCode + "_PIXEL_SIZE"; SetPixelPitch(getDouble(pitch) / 1000.0); // Get the start time in et // Set the observation time and exposure duration QString clockCount = inst["SpacecraftClockStartCount"]; double startTime = getClockTime(clockCount).Et(); double exposureDuration = ((double) inst["ExposureDuration"]) / 1000.0; pair<iTime, iTime> shuttertimes = ShutterOpenCloseTimes(startTime, exposureDuration); // Add half exposure duration to get time at center of image iTime centerTime = shuttertimes.first.Et() + exposureDuration / 2.0; // Setup detector map new CameraDetectorMap(this); // Setup focal plane map using the general IK code for the given camera // Note that this is not the specific naifIkCode() value for PolyCam CameraFocalPlaneMap *focalMap = new CameraFocalPlaneMap(this, frameCode); // The instrument kernel contains a CCD_CENTER keyword instead of BORESIGHT_LINE // and BORESIGHT_SAMPLE keywords. focalMap->SetDetectorOrigin( Spice::getDouble("INS" + ikCode + "_CCD_CENTER", 0) + 1.0, Spice::getDouble("INS" + ikCode + "_CCD_CENTER", 1) + 1.0); // Setup distortion map OsirisRexDistortionMap *distortionMap = new OsirisRexDistortionMap(this); // Different distortion model for each instrument and filter PvlGroup bandBin = lab.findGroup("BandBin", Pvl::Traverse); QString filterName = bandBin["FilterName"]; distortionMap->SetDistortion(ikCode.toInt(), filterName); // Setup the ground and sky map new CameraGroundMap(this); new CameraSkyMap(this); setTime(centerTime); LoadCache(); NaifStatus::CheckErrors(); } //! Destroys the MapCamera object. OsirisRexOcamsCamera::~OsirisRexOcamsCamera() { } /** * The frame ID for the spacecraft (or instrument) used by the Camera-matrix * Kernel. For this camera model, the spacecraft frame is used, represented * by the frame ID -64000. * * @return @b int The appropriate code for the Camera-matrix Kernel. */ int OsirisRexOcamsCamera::CkFrameId() const { return -64000; } /** * The frame ID for the reference coordinate system used by the Camera-matrix * Kernel. For this mission, the reference frame J2000, represented by the * frame ID 1. * * @return @b int The appropriate reference frame ID code for the * Camera-matrix Kernel. */ int OsirisRexOcamsCamera::CkReferenceId() const { return 1; } /** * The reference frame ID for the Spacecraft Kernel is 1, representing J2000. * * @return @b int The appropriate frame ID code for the Spacecraft Kernel. */ int OsirisRexOcamsCamera::SpkReferenceId() const { return 1; } /** * Returns the shutter open and close times. The user should pass in the * ExposureDuration keyword value, converted to seconds, and the StartTime * keyword value, converted to ephemeris time. The StartTime keyword value * from the labels represents the time at the start of the observation, as * noted in the Osiris Rex EDR image SIS. This method uses the FramingCamera * class implementation, returning the given time value as the shutter open * and the sum of the time value and exposure duration as the shutter close. * * @param exposureDuration ExposureDuration keyword value from the labels, * converted to seconds. * @param time The StartTime keyword value from the labels, converted to * ephemeris time. * * @return @b pair < @b iTime, @b iTime > The first value is the shutter * open time and the second is the shutter close time. * * @see http://pds-imaging.jpl.nasa.gov/documentation/clementine_edrsis.pdf * @author 2011-05-03 Jeannie Walldren * @internal * @history 2011-05-03 Jeannie Walldren - Original version. */ pair<iTime, iTime> OsirisRexOcamsCamera::ShutterOpenCloseTimes(double time, double exposureDuration) { return FramingCamera::ShutterOpenCloseTimes(time, exposureDuration); } } /** * This is the function that is called in order to instantiate a MapCamera * object. * * @param lab Cube labels * * @return Isis::Camera* OsirisRexOcamsCamera */ extern "C" Isis::Camera *OsirisRexOcamsCameraPlugin(Isis::Cube &cube) { return new Isis::OsirisRexOcamsCamera(cube); }
.text .file "gobmk.owl_vital_apat.autohelperowl_vital_apat34.ll" .hidden autohelperowl_vital_apat34 .globl autohelperowl_vital_apat34 .align 16 .type autohelperowl_vital_apat34,@function autohelperowl_vital_apat34: // @autohelperowl_vital_apat34 // BB#0: { r4 = r1 r1:0 = combine(#0, r2) r3 = r0 allocframe(#16) } { r3 = add(##transformation, asl(r3, #2)) r2 = #1 memw(r29 + #8) = r4 } { r3 = memw(r3 + ##24256) memw(r29+#0) = r4 } { call play_attack_defend2_n r3 = add(r3, r4) memw(r29+#4) = r3.new } { dealloc_return } .Lfunc_end0: .size autohelperowl_vital_apat34, .Lfunc_end0-autohelperowl_vital_apat34 .ident "clang version 3.8.0 (http://llvm.org/git/clang.git 2d49f0a0ae8366964a93e3b7b26e29679bee7160) (http://llvm.org/git/llvm.git 60bc66b44837125843b58ed3e0fd2e6bb948d839)" .section ".note.GNU-stack","",@progbits
/* * ElevationMapping.cpp * * Created on: Nov 12, 2013 * Author: Péter Fankhauser * Institute: ETH Zurich, ANYbotics */ #include "elevation_mapping/ElevationMapping.hpp" // Elevation Mapping #include "elevation_mapping/ElevationMap.hpp" #include "elevation_mapping/sensor_processors/StructuredLightSensorProcessor.hpp" #include "elevation_mapping/sensor_processors/StereoSensorProcessor.hpp" #include "elevation_mapping/sensor_processors/LaserSensorProcessor.hpp" #include "elevation_mapping/sensor_processors/PerfectSensorProcessor.hpp" // Grid Map #include <grid_map_ros/grid_map_ros.hpp> #include <grid_map_msgs/GridMap.h> // PCL #include <pcl/conversions.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/PCLPointCloud2.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl/filters/voxel_grid.h> // Kindr #include <kindr/Core> #include <kindr_ros/kindr_ros.hpp> // Boost #include <boost/bind.hpp> #include <boost/thread/recursive_mutex.hpp> // STL #include <string> #include <math.h> #include <limits> using namespace std; using namespace grid_map; using namespace ros; using namespace tf; using namespace pcl; using namespace kindr; using namespace kindr_ros; namespace elevation_mapping { ElevationMapping::ElevationMapping(ros::NodeHandle& nodeHandle) : nodeHandle_(nodeHandle), map_(nodeHandle), robotMotionMapUpdater_(nodeHandle), isContinouslyFusing_(false), ignoreRobotMotionUpdates_(false), receivedFirstMatchingPointcloudAndPose_(false) { ROS_INFO("Elevation mapping node started."); readParameters(); pointCloudSubscriber_ = nodeHandle_.subscribe(pointCloudTopic_, 1, &ElevationMapping::pointCloudCallback, this); if (!robotPoseTopic_.empty()) { robotPoseSubscriber_.subscribe(nodeHandle_, robotPoseTopic_, 1); robotPoseCache_.connectInput(robotPoseSubscriber_); robotPoseCache_.setCacheSize(robotPoseCacheSize_); } else { ignoreRobotMotionUpdates_ = true; } mapUpdateTimer_ = nodeHandle_.createTimer(maxNoUpdateDuration_, &ElevationMapping::mapUpdateTimerCallback, this, true, false); // Multi-threading for fusion. AdvertiseServiceOptions advertiseServiceOptionsForTriggerFusion = AdvertiseServiceOptions::create<std_srvs::Empty>( "trigger_fusion", boost::bind(&ElevationMapping::fuseEntireMap, this, _1, _2), ros::VoidConstPtr(), &fusionServiceQueue_); fusionTriggerService_ = nodeHandle_.advertiseService(advertiseServiceOptionsForTriggerFusion); AdvertiseServiceOptions advertiseServiceOptionsForGetFusedSubmap = AdvertiseServiceOptions::create<grid_map_msgs::GetGridMap>( "get_submap", boost::bind(&ElevationMapping::getFusedSubmap, this, _1, _2), ros::VoidConstPtr(), &fusionServiceQueue_); fusedSubmapService_ = nodeHandle_.advertiseService(advertiseServiceOptionsForGetFusedSubmap); AdvertiseServiceOptions advertiseServiceOptionsForGetRawSubmap = AdvertiseServiceOptions::create<grid_map_msgs::GetGridMap>( "get_raw_submap", boost::bind(&ElevationMapping::getRawSubmap, this, _1, _2), ros::VoidConstPtr(), &fusionServiceQueue_); rawSubmapService_ = nodeHandle_.advertiseService(advertiseServiceOptionsForGetRawSubmap); if (!fusedMapPublishTimerDuration_.isZero()) { TimerOptions timerOptions = TimerOptions( fusedMapPublishTimerDuration_, boost::bind(&ElevationMapping::publishFusedMapCallback, this, _1), &fusionServiceQueue_, false, false); fusedMapPublishTimer_ = nodeHandle_.createTimer(timerOptions); } // Multi-threading for visibility cleanup. if (map_.enableVisibilityCleanup_ && !visibilityCleanupTimerDuration_.isZero()){ TimerOptions timerOptions = TimerOptions( visibilityCleanupTimerDuration_, boost::bind(&ElevationMapping::visibilityCleanupCallback, this, _1), &visibilityCleanupQueue_, false, false); visibilityCleanupTimer_ = nodeHandle_.createTimer(timerOptions); } clearMapService_ = nodeHandle_.advertiseService("clear_map", &ElevationMapping::clearMap, this); maskedReplaceService_ = nodeHandle_.advertiseService("masked_replace", &ElevationMapping::maskedReplace, this); saveMapService_ = nodeHandle_.advertiseService("save_map", &ElevationMapping::saveMap, this); initialize(); } ElevationMapping::~ElevationMapping() { fusionServiceQueue_.clear(); fusionServiceQueue_.disable(); nodeHandle_.shutdown(); fusionServiceThread_.join(); } bool ElevationMapping::readParameters() { // ElevationMapping parameters. nodeHandle_.param("point_cloud_topic", pointCloudTopic_, string("/points")); nodeHandle_.param("robot_pose_with_covariance_topic", robotPoseTopic_, string("/pose")); nodeHandle_.param("track_point_frame_id", trackPointFrameId_, string("/robot")); nodeHandle_.param("track_point_x", trackPoint_.x(), 0.0); nodeHandle_.param("track_point_y", trackPoint_.y(), 0.0); nodeHandle_.param("track_point_z", trackPoint_.z(), 0.0); nodeHandle_.param("robot_pose_cache_size", robotPoseCacheSize_, 200); ROS_ASSERT(robotPoseCacheSize_ >= 0); double minUpdateRate; nodeHandle_.param("min_update_rate", minUpdateRate, 2.0); if (minUpdateRate == 0.0) { maxNoUpdateDuration_.fromSec(0.0); ROS_WARN("Rate for publishing the map is zero."); } else { maxNoUpdateDuration_.fromSec(1.0 / minUpdateRate); } ROS_ASSERT(!maxNoUpdateDuration_.isZero()); double timeTolerance; nodeHandle_.param("time_tolerance", timeTolerance, 0.0); timeTolerance_.fromSec(timeTolerance); double fusedMapPublishingRate; nodeHandle_.param("fused_map_publishing_rate", fusedMapPublishingRate, 1.0); if (fusedMapPublishingRate == 0.0) { fusedMapPublishTimerDuration_.fromSec(0.0); ROS_WARN("Rate for publishing the fused map is zero. The fused elevation map will not be published unless the service `triggerFusion` is called."); } else if (std::isinf(fusedMapPublishingRate)){ isContinouslyFusing_ = true; fusedMapPublishTimerDuration_.fromSec(0.0); } else { fusedMapPublishTimerDuration_.fromSec(1.0 / fusedMapPublishingRate); } double visibilityCleanupRate; nodeHandle_.param("visibility_cleanup_rate", visibilityCleanupRate, 1.0); if (visibilityCleanupRate == 0.0) { visibilityCleanupTimerDuration_.fromSec(0.0); ROS_WARN("Rate for visibility cleanup is zero and therefore disabled."); } else { visibilityCleanupTimerDuration_.fromSec(1.0 / visibilityCleanupRate); map_.visibilityCleanupDuration_ = 1.0 / visibilityCleanupRate; } // ElevationMap parameters. TODO Move this to the elevation map class. string frameId; nodeHandle_.param("map_frame_id", frameId, string("/map")); map_.setFrameId(frameId); grid_map::Length length; grid_map::Position position; double resolution; nodeHandle_.param("length_in_x", length(0), 1.5); nodeHandle_.param("length_in_y", length(1), 1.5); nodeHandle_.param("position_x", position.x(), 0.0); nodeHandle_.param("position_y", position.y(), 0.0); nodeHandle_.param("resolution", resolution, 0.01); map_.setGeometry(length, resolution, position); nodeHandle_.param("min_variance", map_.minVariance_, pow(0.003, 2)); nodeHandle_.param("max_variance", map_.maxVariance_, pow(0.03, 2)); nodeHandle_.param("mahalanobis_distance_threshold", map_.mahalanobisDistanceThreshold_, 2.5); nodeHandle_.param("multi_height_noise", map_.multiHeightNoise_, pow(0.003, 2)); nodeHandle_.param("min_horizontal_variance", map_.minHorizontalVariance_, pow(resolution / 2.0, 2)); // two-sigma nodeHandle_.param("max_horizontal_variance", map_.maxHorizontalVariance_, 0.5); nodeHandle_.param("underlying_map_topic", map_.underlyingMapTopic_, string()); nodeHandle_.param("enable_visibility_cleanup", map_.enableVisibilityCleanup_, true); nodeHandle_.param("scanning_duration", map_.scanningDuration_, 1.0); nodeHandle_.param("masked_replace_service_mask_layer_name", maskedReplaceServiceMaskLayerName_, string("mask")); // SensorProcessor parameters. string sensorType; nodeHandle_.param("sensor_processor/type", sensorType, string("structured_light")); if (sensorType == "structured_light") { sensorProcessor_.reset(new StructuredLightSensorProcessor(nodeHandle_, transformListener_)); } else if (sensorType == "stereo") { sensorProcessor_.reset(new StereoSensorProcessor(nodeHandle_, transformListener_)); } else if (sensorType == "laser") { sensorProcessor_.reset(new LaserSensorProcessor(nodeHandle_, transformListener_)); } else if (sensorType == "perfect") { sensorProcessor_.reset(new PerfectSensorProcessor(nodeHandle_, transformListener_)); } else { ROS_ERROR("The sensor type %s is not available.", sensorType.c_str()); } if (!sensorProcessor_->readParameters()) return false; if (!robotMotionMapUpdater_.readParameters()) return false; return true; } bool ElevationMapping::initialize() { ROS_INFO("Elevation mapping node initializing ... "); fusionServiceThread_ = boost::thread(boost::bind(&ElevationMapping::runFusionServiceThread, this)); Duration(1.0).sleep(); // Need this to get the TF caches fill up. resetMapUpdateTimer(); fusedMapPublishTimer_.start(); visibilityCleanupThread_ = boost::thread(boost::bind(&ElevationMapping::visibilityCleanupThread, this)); visibilityCleanupTimer_.start(); ROS_INFO("Done."); return true; } void ElevationMapping::runFusionServiceThread() { static const double timeout = 0.05; while (nodeHandle_.ok()) { fusionServiceQueue_.callAvailable(ros::WallDuration(timeout)); } } void ElevationMapping::visibilityCleanupThread() { static const double timeout = 0.05; while (nodeHandle_.ok()) { visibilityCleanupQueue_.callAvailable(ros::WallDuration(timeout)); } } void ElevationMapping::pointCloudCallback( const sensor_msgs::PointCloud2& rawPointCloud) { // Check if point cloud has corresponding robot pose at the beginning if(!receivedFirstMatchingPointcloudAndPose_) { const double oldestPoseTime = robotPoseCache_.getOldestTime().toSec(); const double currentPointCloudTime = rawPointCloud.header.stamp.toSec(); if(currentPointCloudTime < oldestPoseTime) { ROS_WARN_THROTTLE(5, "No corresponding point cloud and pose are found. Waiting for first match."); return; } else { ROS_INFO("First corresponding point cloud and pose found, initialized. "); receivedFirstMatchingPointcloudAndPose_ = true; } } stopMapUpdateTimer(); boost::recursive_mutex::scoped_lock scopedLock(map_.getRawDataMutex()); // Convert the sensor_msgs/PointCloud2 data to pcl/PointCloud. // TODO Double check with http://wiki.ros.org/hydro/Migration pcl::PCLPointCloud2 pcl_pc; pcl_conversions::toPCL(rawPointCloud, pcl_pc); PointCloud<PointXYZRGB>::Ptr pointCloud(new PointCloud<PointXYZRGB>); pcl::fromPCLPointCloud2(pcl_pc, *pointCloud); lastPointCloudUpdateTime_.fromNSec(1000 * pointCloud->header.stamp); ROS_INFO("ElevationMap received a point cloud (%i points) for elevation mapping.", static_cast<int>(pointCloud->size())); // Update map location. updateMapLocation(); // Update map from motion prediction. if (!updatePrediction(lastPointCloudUpdateTime_)) { ROS_ERROR("Updating process noise failed."); resetMapUpdateTimer(); return; } // Get robot pose covariance matrix at timestamp of point cloud. Eigen::Matrix<double, 6, 6> robotPoseCovariance; robotPoseCovariance.setZero(); if (!ignoreRobotMotionUpdates_) { boost::shared_ptr<geometry_msgs::PoseWithCovarianceStamped const> poseMessage = robotPoseCache_.getElemBeforeTime(lastPointCloudUpdateTime_); if (!poseMessage) { // Tell the user that either for the timestamp no pose is available or that the buffer is possibly empty if(robotPoseCache_.getOldestTime().toSec() > lastPointCloudUpdateTime_.toSec()) { ROS_ERROR("The oldest pose available is at %f, requested pose at %f", robotPoseCache_.getOldestTime().toSec(), lastPointCloudUpdateTime_.toSec()); } else { ROS_ERROR("Could not get pose information from robot for time %f. Buffer empty?", lastPointCloudUpdateTime_.toSec()); } return; } robotPoseCovariance = Eigen::Map<const Eigen::MatrixXd>(poseMessage->pose.covariance.data(), 6, 6); } // Process point cloud. PointCloud<PointXYZRGB>::Ptr pointCloudProcessed(new PointCloud<PointXYZRGB>); Eigen::VectorXf measurementVariances; if (!sensorProcessor_->process(pointCloud, robotPoseCovariance, pointCloudProcessed, measurementVariances)) { ROS_ERROR("Point cloud could not be processed."); resetMapUpdateTimer(); return; } // Add point cloud to elevation map. if (!map_.add(pointCloudProcessed, measurementVariances, lastPointCloudUpdateTime_, Eigen::Affine3d(sensorProcessor_->transformationSensorToMap_))) { ROS_ERROR("Adding point cloud to elevation map failed."); resetMapUpdateTimer(); return; } // Publish elevation map. map_.publishRawElevationMap(); if (isContinouslyFusing_ && map_.hasFusedMapSubscribers()) { map_.fuseAll(); map_.publishFusedElevationMap(); } resetMapUpdateTimer(); } void ElevationMapping::mapUpdateTimerCallback(const ros::TimerEvent&) { ROS_WARN_THROTTLE(5, "Elevation map is updated without data from the sensor."); boost::recursive_mutex::scoped_lock scopedLock(map_.getRawDataMutex()); stopMapUpdateTimer(); ros::Time time = ros::Time::now(); // Update map from motion prediction. if (!updatePrediction(time)) { ROS_ERROR("Updating process noise failed."); resetMapUpdateTimer(); return; } // Publish elevation map. map_.publishRawElevationMap(); if (isContinouslyFusing_ && map_.hasFusedMapSubscribers()) { map_.fuseAll(); map_.publishFusedElevationMap(); } resetMapUpdateTimer(); } void ElevationMapping::publishFusedMapCallback(const ros::TimerEvent&) { if (!map_.hasFusedMapSubscribers()) return; ROS_DEBUG("Elevation map is fused and published from timer."); boost::recursive_mutex::scoped_lock scopedLock(map_.getFusedDataMutex()); map_.fuseAll(); map_.publishFusedElevationMap(); } void ElevationMapping::visibilityCleanupCallback(const ros::TimerEvent&) { ROS_DEBUG("Elevation map is running visibility cleanup."); // Copy constructors for thread-safety. map_.visibilityCleanup(ros::Time(lastPointCloudUpdateTime_)); } bool ElevationMapping::fuseEntireMap(std_srvs::Empty::Request&, std_srvs::Empty::Response&) { boost::recursive_mutex::scoped_lock scopedLock(map_.getFusedDataMutex()); map_.fuseAll(); map_.publishFusedElevationMap(); return true; } bool ElevationMapping::updatePrediction(const ros::Time& time) { if (ignoreRobotMotionUpdates_) return true; ROS_DEBUG("Updating map with latest prediction from time %f.", robotPoseCache_.getLatestTime().toSec()); if (time + timeTolerance_ < map_.getTimeOfLastUpdate()) { ROS_ERROR("Requested update with time stamp %f, but time of last update was %f.", time.toSec(), map_.getTimeOfLastUpdate().toSec()); return false; } else if (time < map_.getTimeOfLastUpdate()) { ROS_DEBUG("Requested update with time stamp %f, but time of last update was %f. Ignoring update.", time.toSec(), map_.getTimeOfLastUpdate().toSec()); return true; } // Get robot pose at requested time. boost::shared_ptr<geometry_msgs::PoseWithCovarianceStamped const> poseMessage = robotPoseCache_.getElemBeforeTime(time); if (!poseMessage) { // Tell the user that either for the timestamp no pose is available or that the buffer is possibly empty if(robotPoseCache_.getOldestTime().toSec() > lastPointCloudUpdateTime_.toSec()) { ROS_ERROR("The oldest pose available is at %f, requested pose at %f", robotPoseCache_.getOldestTime().toSec(), lastPointCloudUpdateTime_.toSec()); } else { ROS_ERROR("Could not get pose information from robot for time %f. Buffer empty?", lastPointCloudUpdateTime_.toSec()); } return false; } HomTransformQuatD robotPose; convertFromRosGeometryMsg(poseMessage->pose.pose, robotPose); // Covariance is stored in row-major in ROS: http://docs.ros.org/api/geometry_msgs/html/msg/PoseWithCovariance.html Eigen::Matrix<double, 6, 6> robotPoseCovariance = Eigen::Map< const Eigen::Matrix<double, 6, 6, Eigen::RowMajor>>(poseMessage->pose.covariance.data(), 6, 6); // Compute map variance update from motion prediction. robotMotionMapUpdater_.update(map_, robotPose, robotPoseCovariance, time); return true; } bool ElevationMapping::updateMapLocation() { ROS_DEBUG("Elevation map is checked for relocalization."); geometry_msgs::PointStamped trackPoint; trackPoint.header.frame_id = trackPointFrameId_; trackPoint.header.stamp = ros::Time(0); convertToRosGeometryMsg(trackPoint_, trackPoint.point); geometry_msgs::PointStamped trackPointTransformed; try { transformListener_.transformPoint(map_.getFrameId(), trackPoint, trackPointTransformed); } catch (TransformException &ex) { ROS_ERROR("%s", ex.what()); return false; } Position3D position3d; convertFromRosGeometryMsg(trackPointTransformed.point, position3d); grid_map::Position position = position3d.vector().head(2); map_.move(position); return true; } bool ElevationMapping::getFusedSubmap(grid_map_msgs::GetGridMap::Request& request, grid_map_msgs::GetGridMap::Response& response) { grid_map::Position requestedSubmapPosition(request.position_x, request.position_y); Length requestedSubmapLength(request.length_x, request.length_y); ROS_DEBUG("Elevation submap request: Position x=%f, y=%f, Length x=%f, y=%f.", requestedSubmapPosition.x(), requestedSubmapPosition.y(), requestedSubmapLength(0), requestedSubmapLength(1)); boost::recursive_mutex::scoped_lock scopedLock(map_.getFusedDataMutex()); map_.fuseArea(requestedSubmapPosition, requestedSubmapLength); bool isSuccess; Index index; GridMap subMap = map_.getFusedGridMap().getSubmap(requestedSubmapPosition, requestedSubmapLength, index, isSuccess); scopedLock.unlock(); if (request.layers.empty()) { GridMapRosConverter::toMessage(subMap, response.map); } else { vector<string> layers; for (const auto& layer : request.layers) { layers.push_back(layer); } GridMapRosConverter::toMessage(subMap, layers, response.map); } ROS_DEBUG("Elevation submap responded with timestamp %f.", map_.getTimeOfLastFusion().toSec()); return isSuccess; } bool ElevationMapping::getRawSubmap(grid_map_msgs::GetGridMap::Request& request, grid_map_msgs::GetGridMap::Response& response) { grid_map::Position requestedSubmapPosition(request.position_x, request.position_y); Length requestedSubmapLength(request.length_x, request.length_y); ROS_DEBUG("Elevation raw submap request: Position x=%f, y=%f, Length x=%f, y=%f.", requestedSubmapPosition.x(), requestedSubmapPosition.y(), requestedSubmapLength(0), requestedSubmapLength(1)); boost::recursive_mutex::scoped_lock scopedLock(map_.getRawDataMutex()); bool isSuccess; Index index; GridMap subMap = map_.getRawGridMap().getSubmap(requestedSubmapPosition, requestedSubmapLength, index, isSuccess); scopedLock.unlock(); if (request.layers.empty()) { GridMapRosConverter::toMessage(subMap, response.map); } else { vector<string> layers; for (const auto& layer : request.layers) { layers.push_back(layer); } GridMapRosConverter::toMessage(subMap, layers, response.map); } return isSuccess; } bool ElevationMapping::clearMap(std_srvs::Empty::Request& request, std_srvs::Empty::Response& response) { ROS_INFO("Clearing map."); return map_.clear(); } bool ElevationMapping::maskedReplace(grid_map_msgs::SetGridMap::Request& request, grid_map_msgs::SetGridMap::Response& response) { ROS_INFO("Masked replacing of map."); GridMap sourceMap; GridMapRosConverter::fromMessage(request.map, sourceMap); // Use the supplied mask or do not use a mask grid_map::Matrix mask; if (sourceMap.exists(maskedReplaceServiceMaskLayerName_)) { mask = sourceMap[maskedReplaceServiceMaskLayerName_]; } else { mask = Eigen::MatrixXf::Ones(sourceMap.getSize()(0),sourceMap.getSize()(1)); } boost::recursive_mutex::scoped_lock scopedLockRawData(map_.getRawDataMutex()); // Loop over all layers that should be set for (auto sourceLayerIterator = sourceMap.getLayers().begin(); sourceLayerIterator != sourceMap.getLayers().end(); sourceLayerIterator++) { //skip "mask" layer if (*sourceLayerIterator == maskedReplaceServiceMaskLayerName_) continue; grid_map::Matrix &sourceLayer = sourceMap[*sourceLayerIterator]; // Check if the layer exists in the elevation map if (map_.getRawGridMap().exists(*sourceLayerIterator)) { grid_map::Matrix &destinationLayer = map_.getRawGridMap()[*sourceLayerIterator]; for (GridMapIterator destinationIterator(map_.getRawGridMap()); !destinationIterator.isPastEnd(); ++destinationIterator) { // Use the position to find corresponding indices in source and destination const grid_map::Index destinationIndex(*destinationIterator); grid_map::Position position; map_.getRawGridMap().getPosition(*destinationIterator, position); if (!sourceMap.isInside(position)) continue; grid_map::Index sourceIndex; sourceMap.getIndex(position, sourceIndex); // If the mask allows it, set the value from source to destination if (!std::isnan(mask(sourceIndex(0), sourceIndex(1)))) { destinationLayer(destinationIndex(0), destinationIndex(1)) = sourceLayer(sourceIndex(0), sourceIndex(1)); } } } else { ROS_ERROR("Masked replace service: Layer %s does not exist!", sourceLayerIterator->c_str()); } } return true; } bool ElevationMapping::saveMap(grid_map_msgs::ProcessFile::Request& request, grid_map_msgs::ProcessFile::Response& response) { ROS_INFO("Saving map to file."); boost::recursive_mutex::scoped_lock scopedLock(map_.getFusedDataMutex()); map_.fuseAll(); std::string topic = nodeHandle_.getNamespace() + "/elevation_map"; if (!request.topic_name.empty()) { topic = nodeHandle_.getNamespace() + "/" + request.topic_name; } response.success = GridMapRosConverter::saveToBag(map_.getFusedGridMap(), request.file_path, topic); response.success = GridMapRosConverter::saveToBag(map_.getRawGridMap(), request.file_path + "_raw", topic + "_raw"); return response.success; } void ElevationMapping::resetMapUpdateTimer() { mapUpdateTimer_.stop(); Duration periodSinceLastUpdate = ros::Time::now() - map_.getTimeOfLastUpdate(); if (periodSinceLastUpdate > maxNoUpdateDuration_) periodSinceLastUpdate.fromSec(0.0); mapUpdateTimer_.setPeriod(maxNoUpdateDuration_ - periodSinceLastUpdate); mapUpdateTimer_.start(); } void ElevationMapping::stopMapUpdateTimer() { mapUpdateTimer_.stop(); } } /* namespace */
; ; Copyright (c) 2019, k4m1 <k4m1@protonmail.com> ; All rights reserved. Read /LICENSE for full license agreement. ; ; This file contains code responsible of enabling A20, and ; then proceeding to call loader_main ; loader_entry: pop dx mov sp, 0x9c00 mov bp, sp mov byte [boot_device], dl call enable_a20_with_bios test eax, eax jz .a20_is_on call enable_a20_with_kbdctl test eax, eax jz .a20_is_on call enable_a20_with_fast_92 call check_a20 test eax, eax jz .a20_is_on call enable_a20_ioee test eax, eax jz .a20_is_on mov esi, msg_a20_fail call panic .a20_is_on: mov si, msg_a20_is_on call write_serial call loader_main cli hlt ; =================================================================== ; ; Messages to output ; ; =================================================================== ; msg_a20_fail: db "FAILED TO ENABLE A20!", 0 msg_a20_is_on: db "A20 enabled.", 0x0A, 0x0D, 0 ; =================================================================== ; ; Code related to a20 gate. ; ; =================================================================== ; enable_a20_with_fast_92: in al, 0x92 test al, 2 jnz .no_92 or al, 2 out 0x92, al .no_92: ret kbd_wait_for_clear: in al, 0x64 test al, 2 jnz kbd_wait_for_clear ret enable_a20_ioee: push bp mov bp, sp in al, 0xee call check_a20 mov sp, bp pop bp ret enable_a20_with_kbdctl: push bp mov bp, sp cli call kbd_wait_for_clear ; Send write command mov al, 0xd1 out 0x64, al ; Wait for kbdctl call kbd_wait_for_clear ; set A20 on mov al, 0xdf out 0x60, al ; wait for kbdctl call kbd_wait_for_clear ; Check if we succeeded or not call check_a20 sti mov sp, bp pop bp ret check_a20: ; Check if we enabled a20 or not mov eax, 0x012345 mov ebx, 0x112345 mov [eax], eax mov [ebx], ebx mov eax, dword [eax] mov ebx, dword [ebx] cmp eax, ebx jne .a20_on mov eax, 1 ret .a20_on: xor eax, eax ret enable_a20_with_bios: ; check if BIOS support is present mov ax, 0x2403 int 0x15 jb .fail test ah, ah jz .fail ; It is? get a20 status mov ax, 0x2402 int 0x15 jb .fail test ah, ah jz .fail ; See if a20 is already activated cmp al, 1 jz .a20_is_on mov ax, 0x2401 int 0x15 jb .fail test ah, ah jz .fail .a20_is_on: mov eax, 0 ret .fail: mov eax, 1 ret ; Reserved single byte to store boot-device ID boot_device: db 0 %include "src/consoles.asm" %include "src/loader_main.asm"
; ================================ KLC3 ENTRY CODE ================================ ; This piece of code serves as the entry point to your PRINT_SLOT subroutine. ; The test index is stored at x2700, which is loaded into R1 before calling your subroutine. .ORIG x3000 LDI R1, KLC3_TEST_INDEX_ADDR JSR PRINT_SLOT HALT ; KLC3: INSTANT_HALT KLC3_TEST_INDEX_ADDR .FILL x2700 ; ============================= END OF KLC3 ENTRY CODE ============================
// // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/qrimagewidget.h> #include <qt/guiutil.h> #include <QApplication> #include <QClipboard> #include <QDrag> #include <QMenu> #include <QMimeData> #include <QMouseEvent> #include <QPainter> #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> /* for USE_QRCODE */ #endif #ifdef USE_QRCODE #include <qrencode.h> #endif QRImageWidget::QRImageWidget(QWidget *parent): QLabel(parent), contextMenu(nullptr) { contextMenu = new QMenu(this); QAction *saveImageAction = new QAction(tr("&Save Image..."), this); connect(saveImageAction, &QAction::triggered, this, &QRImageWidget::saveImage); contextMenu->addAction(saveImageAction); QAction *copyImageAction = new QAction(tr("&Copy Image"), this); connect(copyImageAction, &QAction::triggered, this, &QRImageWidget::copyImage); contextMenu->addAction(copyImageAction); } bool QRImageWidget::setQR(const QString& data, const QString& text) { #ifdef USE_QRCODE setText(""); if (data.isEmpty()) return false; // limit length if (data.length() > MAX_URI_LENGTH) { setText(tr("Resulting URI too long, try to reduce the text for label / message.")); return false; } QRcode *code = QRcode_encodeString(data.toUtf8().constData(), 0, QR_ECLEVEL_L, QR_MODE_8, 1); if (!code) { setText(tr("Error encoding URI into QR Code.")); return false; } QImage qrImage = QImage(code->width + 8, code->width + 8, QImage::Format_RGB32); qrImage.fill(0xffffff); unsigned char *p = code->data; for (int y = 0; y < code->width; ++y) { for (int x = 0; x < code->width; ++x) { qrImage.setPixel(x + 4, y + 4, ((*p & 1) ? 0x0 : 0xffffff)); ++p; } } QRcode_free(code); QImage qrAddrImage = QImage(QR_IMAGE_SIZE, QR_IMAGE_SIZE + (text.isEmpty() ? 0 : 20), QImage::Format_RGB32); qrAddrImage.fill(0xffffff); QPainter painter(&qrAddrImage); painter.drawImage(0, 0, qrImage.scaled(QR_IMAGE_SIZE, QR_IMAGE_SIZE)); if (!text.isEmpty()) { QFont font = GUIUtil::fixedPitchFont(); font.setStyleStrategy(QFont::NoAntialias); QRect paddedRect = qrAddrImage.rect(); // calculate ideal font size qreal font_size = GUIUtil::calculateIdealFontSize(paddedRect.width() - 20, text, font); font.setPointSizeF(font_size); painter.setFont(font); paddedRect.setHeight(QR_IMAGE_SIZE+12); painter.drawText(paddedRect, Qt::AlignBottom|Qt::AlignCenter, text); } painter.end(); setPixmap(QPixmap::fromImage(qrAddrImage)); return true; #else setText(tr("QR code support not available.")); return false; #endif } QImage QRImageWidget::exportImage() { if(!pixmap()) return QImage(); return pixmap()->toImage(); } void QRImageWidget::mousePressEvent(QMouseEvent *event) { if(event->button() == Qt::LeftButton && pixmap()) { event->accept(); QMimeData *mimeData = new QMimeData; mimeData->setImageData(exportImage()); QDrag *drag = new QDrag(this); drag->setMimeData(mimeData); drag->exec(); } else { QLabel::mousePressEvent(event); } } void QRImageWidget::saveImage() { if(!pixmap()) return; QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Image (*.png)"), nullptr); if (!fn.isEmpty()) { exportImage().save(fn); } } void QRImageWidget::copyImage() { if(!pixmap()) return; QApplication::clipboard()->setImage(exportImage()); } void QRImageWidget::contextMenuEvent(QContextMenuEvent *event) { if(!pixmap()) return; contextMenu->exec(event->globalPos()); }
/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** All rights reserved. ** ** This file is a part of the chemkit project. For more information ** see <http://www.chemkit.org>. ** ** 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 the chemkit project 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. ** ******************************************************************************/ #include "pdbmlfileformat.h" #include "../../3rdparty/rapidxml/rapidxml.hpp" #include <chemkit/atom.h> #include <chemkit/polymer.h> #include <chemkit/aminoacid.h> #include <chemkit/polymerfile.h> #include <chemkit/polymerchain.h> PdbmlFileFormat::PdbmlFileFormat() : chemkit::PolymerFileFormat("pdbml") { } PdbmlFileFormat::~PdbmlFileFormat() { } bool PdbmlFileFormat::read(std::istream &input, chemkit::PolymerFile *file) { // read file data into a string std::string data((std::istreambuf_iterator<char>(input)), std::istreambuf_iterator<char>()); // parse document rapidxml::xml_document<> doc; doc.parse<0>(const_cast<char *>(data.c_str())); // parse polymers boost::shared_ptr<chemkit::Polymer> polymer(new chemkit::Polymer); chemkit::PolymerChain *chain = 0; std::map<std::string, chemkit::PolymerChain *> nameToChain; rapidxml::xml_node<> *datablockNode = doc.first_node("PDBx:datablock"); rapidxml::xml_attribute<> *nameAttribute = datablockNode->first_attribute("datablockName"); if(nameAttribute && nameAttribute->value()){ polymer->setName(nameAttribute->value()); } rapidxml::xml_node<> *node = datablockNode->first_node(); while(node){ // atoms if(strcmp(node->name(), "PDBx:atom_siteCategory") == 0){ rapidxml::xml_node<> *atomNode = node->first_node("PDBx:atom_site"); // residue and chain data chemkit::AminoAcid *residue = 0; int currentSequenceNumber = -1; std::string currentChainName; while(atomNode){ rapidxml::xml_attribute<> *atomIdAttribute = atomNode->first_attribute("id"); // read id std::string id; if(atomIdAttribute && atomIdAttribute->value()){ id = atomIdAttribute->value(); } CHEMKIT_UNUSED(id); // read atom data std::string symbol; std::string group; std::string x, y, z; std::string chainName; int sequenceNumber = 0; std::string atomType; std::string residueSymbol; rapidxml::xml_node<> *atomDataNode = atomNode->first_node(); while(atomDataNode){ if(strcmp(atomDataNode->name(), "PDBx:type_symbol") == 0){ symbol = atomDataNode->value(); } else if(strcmp(atomDataNode->name(), "PDBx:Cartn_x") == 0){ x = atomDataNode->value(); } else if(strcmp(atomDataNode->name(), "PDBx:Cartn_y") == 0){ y = atomDataNode->value(); } else if(strcmp(atomDataNode->name(), "PDBx:Cartn_z") == 0){ z = atomDataNode->value(); } else if(strcmp(atomDataNode->name(), "PDBx:label_asym_id") == 0){ chainName = atomDataNode->value(); } else if(strcmp(atomDataNode->name(), "PDBx:label_seq_id") == 0){ if(atomDataNode->value() && atomDataNode->value_size()){ sequenceNumber = boost::lexical_cast<int>(atomDataNode->value()); } } else if(strcmp(atomDataNode->name(), "PDBx:label_atom_id") == 0){ atomType = atomDataNode->value(); } else if(strcmp(atomDataNode->name(), "PDBx:label_comp_id") == 0){ residueSymbol = atomDataNode->value(); } else if(strcmp(atomDataNode->name(), "PDBx:group_PDB") == 0){ group = atomDataNode->value(); } atomDataNode = atomDataNode->next_sibling(); } // add atom and set its data chemkit::Atom *atom = polymer->addAtom(symbol); if(atom){ // atomic coordinates if(!x.empty() && !y.empty() && !z.empty()){ atom->setPosition(boost::lexical_cast<chemkit::Real>(x), boost::lexical_cast<chemkit::Real>(y), boost::lexical_cast<chemkit::Real>(z)); } // type atom->setType(atomType); if(group == "ATOM"){ // set residue if(chainName != currentChainName){ chain = polymer->addChain(); currentChainName = chainName; nameToChain[chainName] = chain; } if(sequenceNumber != currentSequenceNumber){ residue = new chemkit::AminoAcid(polymer.get()); residue->setType(residueSymbol); chain->addResidue(residue); currentSequenceNumber = sequenceNumber; } if(atomType == "CA"){ residue->setAlphaCarbon(atom); } else if(atomType == "C"){ residue->setCarbonylCarbon(atom); } else if(atomType == "O"){ residue->setCarbonylOxygen(atom); } else if(atomType == "N"){ residue->setAminoNitrogen(atom); } } } // go to next atom node atomNode = atomNode->next_sibling("PDBx:atom_site"); } } // secondary structure else if(strcmp(node->name(), "PDBx:struct_confCategory") == 0){ rapidxml::xml_node<> *structNode = node->first_node(); while(structNode){ std::string chainName; int firstResidue = 0; int lastResidue = 0; chemkit::AminoAcid::Conformation conformation = chemkit::AminoAcid::Coil; rapidxml::xml_node<> *structDataNode = structNode->first_node(); while(structDataNode){ if(strcmp(structDataNode->name(), "PDBx:beg_label_seq_id") == 0){ if(structDataNode->value()){ firstResidue = boost::lexical_cast<int>(structDataNode->value()); } } else if(strcmp(structDataNode->name(), "PDBx:end_label_seq_id") == 0){ if(structDataNode->value()){ lastResidue = boost::lexical_cast<int>(structDataNode->value()); } } else if(strcmp(structDataNode->name(), "PDBx:beg_label_asym_id") == 0){ chainName = structDataNode->value(); } else if(strcmp(structDataNode->name(), "PDBx:conf_type_id") == 0){ std::string type; if(structDataNode->value()){ type = structDataNode->value(); } if(type == "HELX_P"){ conformation = chemkit::AminoAcid::AlphaHelix; } else if(type == "TURN_P"){ conformation = chemkit::AminoAcid::BetaSheet; } } structDataNode = structDataNode->next_sibling(); } std::map<std::string, chemkit::PolymerChain *>::const_iterator iter = nameToChain.find(chainName); if(iter != nameToChain.end()){ chemkit::PolymerChain *chain = iter->second; for(int i = firstResidue; i < lastResidue; i++){ chemkit::AminoAcid *aminoAcid = static_cast<chemkit::AminoAcid *>(chain->residue(i - 1)); aminoAcid->setConformation(conformation); } } structNode = structNode->next_sibling(); } } node = node->next_sibling(); } file->addPolymer(polymer); return true; }
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xf830, %r15 nop nop nop nop nop add %rbp, %rbp movw $0x6162, (%r15) nop add %r8, %r8 lea addresses_UC_ht+0xd830, %r11 nop nop nop inc %rdx mov $0x6162636465666768, %rcx movq %rcx, (%r11) nop nop nop nop cmp %r15, %r15 lea addresses_UC_ht+0x18aa0, %rbp nop nop nop and %r12, %r12 movb $0x61, (%rbp) nop dec %rbp lea addresses_WC_ht+0xf4f0, %rsi lea addresses_WT_ht+0xc120, %rdi nop nop nop xor $13239, %r12 mov $48, %rcx rep movsb nop nop nop add %r8, %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_D+0x16030, %r13 nop inc %rdi mov $0x5152535455565758, %r11 movq %r11, (%r13) nop nop nop nop nop and %rdi, %rdi // REPMOV lea addresses_A+0x6430, %rsi lea addresses_WC+0x1a230, %rdi nop nop nop nop sub %r11, %r11 mov $127, %rcx rep movsw nop add $10828, %rbp // Store lea addresses_A+0x10b9a, %rsi nop nop nop nop xor %r13, %r13 movw $0x5152, (%rsi) nop nop and %rsi, %rsi // Store lea addresses_D+0x148be, %r11 and %rdi, %rdi movl $0x51525354, (%r11) nop nop nop nop nop dec %r13 // REPMOV lea addresses_PSE+0xb610, %rsi lea addresses_WT+0x13030, %rdi nop nop xor %r13, %r13 mov $116, %rcx rep movsl nop nop nop nop nop add $3310, %r10 // Load lea addresses_A+0xc4ec, %rsi cmp %r13, %r13 movups (%rsi), %xmm7 vpextrq $1, %xmm7, %rcx nop nop nop nop inc %rdi // Faulty Load lea addresses_WT+0x13030, %rcx nop nop nop nop add %r11, %r11 movups (%rcx), %xmm7 vpextrq $1, %xmm7, %rdi lea oracles, %rbp and $0xff, %rdi shlq $12, %rdi mov (%rbp,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_PSE', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT', 'congruent': 0, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_WT', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
; ;================================================================================================== ; N8 STANDARD CONFIGURATION ;================================================================================================== ; ; THE COMPLETE SET OF DEFAULT CONFIGURATION SETTINGS FOR THIS PLATFORM ARE FOUND IN THE ; CFG_<PLT>.ASM INCLUDED FILE WHICH IS FOUND IN THE PARENT DIRECTORY. THIS FILE CONTAINS ; COMMON CONFIGURATION SETTINGS THAT OVERRIDE THE DEFAULTS. IT IS INTENDED THAT YOU MAKE ; YOUR CUSTOMIZATIONS IN THIS FILE AND JUST INHERIT ALL OTHER SETTINGS FROM THE DEFAULTS. ; EVEN BETTER, YOU CAN MAKE A COPY OF THIS FILE WITH A NAME LIKE <PLT>_XXX.ASM AND SPECIFY ; YOUR FILE IN THE BUILD PROCESS. ; ; THE SETTINGS BELOW ARE THE SETTINGS THAT ARE MOST COMMONLY MODIFIED FOR THIS PLATFORM. ; MANY OF THEM ARE EQUAL TO THE SETTINGS IN THE INCLUDED FILE, SO THEY DON'T REALLY DO ; ANYTHING AS IS. THEY ARE LISTED HERE TO MAKE IT EASY FOR YOU TO ADJUST THE MOST COMMON ; SETTINGS. ; ; N.B., SINCE THE SETTINGS BELOW ARE REDEFINING VALUES ALREADY SET IN THE INCLUDED FILE, ; TASM INSISTS THAT YOU USE THE .SET OPERATOR AND NOT THE .EQU OPERATOR BELOW. ATTEMPTING ; TO REDEFINE A VALUE WITH .EQU BELOW WILL CAUSE TASM ERRORS! ; ; PLEASE REFER TO THE CUSTOM BUILD INSTRUCTIONS (README.TXT) IN THE SOURCE DIRECTORY (TWO ; DIRECTORIES ABOVE THIS ONE). ; #DEFINE BOOT_DEFAULT "H" ; DEFAULT BOOT LOADER CMD ON <CR> OR AUTO BOOT ; #include "cfg_n8.asm" ; Z180_CLKDIV .SET 1 ; Z180: CHK DIV: 0=OSC/2, 1=OSC, 2=OSC*2 Z180_MEMWAIT .SET 0 ; Z180: MEMORY WAIT STATES (0-3) Z180_IOWAIT .SET 1 ; Z180: I/O WAIT STATES TO ADD ABOVE 1 W/S BUILT-IN (0-3) ; CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP ; SDMODE .SET SDMODE_CSIO ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
// 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 __STOUT_OS_POSIX_STAT_HPP__ #define __STOUT_OS_POSIX_STAT_HPP__ #include <sys/stat.h> #include <sys/statvfs.h> #include <string> #include <stout/bytes.hpp> #include <stout/try.hpp> #include <stout/unreachable.hpp> namespace os { namespace stat { inline bool isdir(const std::string& path) { struct stat s; if (::stat(path.c_str(), &s) < 0) { return false; } return S_ISDIR(s.st_mode); } inline bool isfile(const std::string& path) { struct stat s; if (::stat(path.c_str(), &s) < 0) { return false; } return S_ISREG(s.st_mode); } inline bool islink(const std::string& path) { struct stat s; if (::lstat(path.c_str(), &s) < 0) { return false; } return S_ISLNK(s.st_mode); } // Describes the different semantics supported for the implementation // of `size` defined below. enum FollowSymlink { DO_NOT_FOLLOW_SYMLINK, FOLLOW_SYMLINK }; // Returns the size in Bytes of a given file system entry. When // applied to a symbolic link with `follow` set to // `DO_NOT_FOLLOW_SYMLINK`, this will return the length of the entry // name (strlen). inline Try<Bytes> size( const std::string& path, const FollowSymlink follow = FOLLOW_SYMLINK) { struct stat s; switch (follow) { case DO_NOT_FOLLOW_SYMLINK: { if (::lstat(path.c_str(), &s) < 0) { return ErrnoError("Error invoking lstat for '" + path + "'"); } break; } case FOLLOW_SYMLINK: { if (::stat(path.c_str(), &s) < 0) { return ErrnoError("Error invoking stat for '" + path + "'"); } break; } default: { UNREACHABLE(); } } return Bytes(s.st_size); } inline Try<long> mtime(const std::string& path) { struct stat s; if (::lstat(path.c_str(), &s) < 0) { return ErrnoError("Error invoking stat for '" + path + "'"); } return s.st_mtime; } inline Try<mode_t> mode(const std::string& path) { struct stat s; if (::stat(path.c_str(), &s) < 0) { return ErrnoError("Error invoking stat for '" + path + "'"); } return s.st_mode; } inline Try<dev_t> dev(const std::string& path) { struct stat s; if (::stat(path.c_str(), &s) < 0) { return ErrnoError("Error invoking stat for '" + path + "'"); } return s.st_dev; } inline Try<dev_t> rdev(const std::string& path) { struct stat s; if (::stat(path.c_str(), &s) < 0) { return ErrnoError("Error invoking stat for '" + path + "'"); } if (!S_ISCHR(s.st_mode) && !S_ISBLK(s.st_mode)) { return Error("Not a special file: " + path); } return s.st_rdev; } inline Try<ino_t> inode(const std::string& path) { struct stat s; if (::stat(path.c_str(), &s) < 0) { return ErrnoError("Error invoking stat for '" + path + "'"); } return s.st_ino; } } // namespace stat { } // namespace os { #endif // __STOUT_OS_STAT_HPP__
// 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. #include "components/password_manager/core/browser/multi_store_password_save_manager.h" #include "components/autofill/core/common/gaia_id_hash.h" #include "components/password_manager/core/browser/form_fetcher.h" #include "components/password_manager/core/browser/form_saver.h" #include "components/password_manager/core/browser/form_saver_impl.h" #include "components/password_manager/core/browser/password_feature_manager_impl.h" #include "components/password_manager/core/browser/password_form_metrics_recorder.h" #include "components/password_manager/core/browser/password_manager_util.h" using autofill::PasswordForm; namespace password_manager { namespace { std::vector<const PasswordForm*> MatchesInStore( const std::vector<const PasswordForm*>& matches, PasswordForm::Store store) { std::vector<const PasswordForm*> store_matches; for (const PasswordForm* match : matches) { DCHECK(match->in_store != PasswordForm::Store::kNotSet); if (match->in_store == store) store_matches.push_back(match); } return store_matches; } std::vector<const PasswordForm*> AccountStoreMatches( const std::vector<const PasswordForm*>& matches) { return MatchesInStore(matches, PasswordForm::Store::kAccountStore); } std::vector<const PasswordForm*> ProfileStoreMatches( const std::vector<const PasswordForm*>& matches) { return MatchesInStore(matches, PasswordForm::Store::kProfileStore); } bool AccountStoreMatchesContainForm( const std::vector<const PasswordForm*>& matches, const PasswordForm& form) { PasswordForm form_in_account_store(form); form_in_account_store.in_store = PasswordForm::Store::kAccountStore; for (const PasswordForm* match : matches) { if (form_in_account_store == *match) return true; } return false; } PendingCredentialsState ResolvePendingCredentialsStates( PendingCredentialsState profile_state, PendingCredentialsState account_state) { // The result of this resolution will be used to decide whether to show a // save or update prompt to the user. Resolve the two states to a single // "canonical" one according to the following hierarchy: // AUTOMATIC_SAVE > EQUAL_TO_SAVED_MATCH > UPDATE > NEW_LOGIN // Note that UPDATE or NEW_LOGIN will result in an Update or Save bubble to // be shown, while AUTOMATIC_SAVE and EQUAL_TO_SAVED_MATCH will result in a // silent save/update. // Some interesting cases: // NEW_LOGIN means that store doesn't know about the credential yet. If the // other store knows anything at all, then that always wins. // EQUAL_TO_SAVED_MATCH vs UPDATE: This means one store had a match, the other // had a mismatch (same username but different password). The mismatch should // be updated silently, so resolve to EQUAL so that there's no visible prompt. // AUTOMATIC_SAVE vs EQUAL_TO_SAVED_MATCH: These are both silent, so it // doesn't really matter to which one we resolve. // AUTOMATIC_SAVE vs UPDATE: Similar to EQUAL_TO_SAVED_MATCH vs UPDATE, the // mismatch should be silently updated. if (profile_state == PendingCredentialsState::AUTOMATIC_SAVE || account_state == PendingCredentialsState::AUTOMATIC_SAVE) { return PendingCredentialsState::AUTOMATIC_SAVE; } if (profile_state == PendingCredentialsState::EQUAL_TO_SAVED_MATCH || account_state == PendingCredentialsState::EQUAL_TO_SAVED_MATCH) { return PendingCredentialsState::EQUAL_TO_SAVED_MATCH; } if (profile_state == PendingCredentialsState::UPDATE || account_state == PendingCredentialsState::UPDATE) { return PendingCredentialsState::UPDATE; } if (profile_state == PendingCredentialsState::NEW_LOGIN || account_state == PendingCredentialsState::NEW_LOGIN) { return PendingCredentialsState::NEW_LOGIN; } NOTREACHED(); return PendingCredentialsState::NONE; } } // namespace MultiStorePasswordSaveManager::MultiStorePasswordSaveManager( std::unique_ptr<FormSaver> profile_form_saver, std::unique_ptr<FormSaver> account_form_saver) : PasswordSaveManagerImpl(std::move(profile_form_saver)), account_store_form_saver_(std::move(account_form_saver)) { DCHECK(account_store_form_saver_); } MultiStorePasswordSaveManager::~MultiStorePasswordSaveManager() = default; void MultiStorePasswordSaveManager::SavePendingToStoreImpl( const PasswordForm& parsed_submitted_form) { auto matches = form_fetcher_->GetAllRelevantMatches(); PendingCredentialsStates states = ComputePendingCredentialsStates(parsed_submitted_form, matches); auto account_matches = AccountStoreMatches(matches); auto profile_matches = ProfileStoreMatches(matches); base::string16 old_account_password = states.similar_saved_form_from_account_store ? states.similar_saved_form_from_account_store->password_value : base::string16(); base::string16 old_profile_password = states.similar_saved_form_from_profile_store ? states.similar_saved_form_from_profile_store->password_value : base::string16(); if (states.profile_store_state == PendingCredentialsState::NEW_LOGIN && states.account_store_state == PendingCredentialsState::NEW_LOGIN) { // If the credential is new to both stores, store it only in the default // store. if (AccountStoreIsDefault()) { // TODO(crbug.com/1012203): Record UMA for how many passwords get dropped // here. In rare cases it could happen that the user *was* opted in when // the save dialog was shown, but now isn't anymore. if (IsOptedInForAccountStorage()) { account_store_form_saver_->Save(pending_credentials_, account_matches, old_account_password); } } else { form_saver_->Save(pending_credentials_, profile_matches, old_profile_password); } return; } switch (states.profile_store_state) { case PendingCredentialsState::AUTOMATIC_SAVE: form_saver_->Save(pending_credentials_, profile_matches, old_profile_password); break; case PendingCredentialsState::UPDATE: case PendingCredentialsState::EQUAL_TO_SAVED_MATCH: // TODO(crbug.com/1012203): Make to preserve the moving_blocked_for_list // in the profile store in case |pending_credentials_| is coming from the // account store. form_saver_->Update(pending_credentials_, profile_matches, old_profile_password); break; // The NEW_LOGIN case was already handled separately above. case PendingCredentialsState::NEW_LOGIN: case PendingCredentialsState::NONE: break; } // TODO(crbug.com/1012203): Record UMA for how many passwords get dropped // here. In rare cases it could happen that the user *was* opted in when // the save dialog was shown, but now isn't anymore. if (IsOptedInForAccountStorage()) { switch (states.account_store_state) { case PendingCredentialsState::AUTOMATIC_SAVE: account_store_form_saver_->Save(pending_credentials_, account_matches, old_account_password); break; case PendingCredentialsState::UPDATE: case PendingCredentialsState::EQUAL_TO_SAVED_MATCH: account_store_form_saver_->Update(pending_credentials_, account_matches, old_account_password); break; // The NEW_LOGIN case was already handled separately above. case PendingCredentialsState::NEW_LOGIN: case PendingCredentialsState::NONE: break; } } } void MultiStorePasswordSaveManager::PermanentlyBlacklist( const PasswordStore::FormDigest& form_digest) { DCHECK(!client_->IsIncognito()); if (IsOptedInForAccountStorage() && AccountStoreIsDefault()) { account_store_form_saver_->PermanentlyBlacklist(form_digest); } else { // For users who aren't yet opted-in to the account storage, we store their // blacklisted entries in the profile store. form_saver_->PermanentlyBlacklist(form_digest); } } void MultiStorePasswordSaveManager::Unblacklist( const PasswordStore::FormDigest& form_digest) { // Try to unblacklist in both stores anyway because if credentials don't // exist, the unblacklist operation is no-op. form_saver_->Unblacklist(form_digest); if (IsOptedInForAccountStorage()) account_store_form_saver_->Unblacklist(form_digest); } std::unique_ptr<PasswordSaveManager> MultiStorePasswordSaveManager::Clone() { auto result = std::make_unique<MultiStorePasswordSaveManager>( form_saver_->Clone(), account_store_form_saver_->Clone()); CloneInto(result.get()); return result; } void MultiStorePasswordSaveManager::MoveCredentialsToAccountStore() { // TODO(crbug.com/1032992): Moving credentials upon an update. FormFetch will // have an outdated credentials. Fix it if this turns out to be a product // requirement. std::vector<const PasswordForm*> account_store_matches = AccountStoreMatches(form_fetcher_->GetNonFederatedMatches()); const std::vector<const PasswordForm*> account_store_federated_matches = AccountStoreMatches(form_fetcher_->GetFederatedMatches()); account_store_matches.insert(account_store_matches.end(), account_store_federated_matches.begin(), account_store_federated_matches.end()); std::vector<const PasswordForm*> profile_store_matches = ProfileStoreMatches(form_fetcher_->GetNonFederatedMatches()); const std::vector<const PasswordForm*> profile_store_federated_matches = ProfileStoreMatches(form_fetcher_->GetFederatedMatches()); profile_store_matches.insert(profile_store_matches.end(), profile_store_federated_matches.begin(), profile_store_federated_matches.end()); for (const PasswordForm* match : profile_store_matches) { DCHECK(!match->IsUsingAccountStore()); // Ignore credentials matches for other usernames. if (match->username_value != pending_credentials_.username_value) continue; // Don't call Save() if the credential already exists in the account // store, 1) to avoid unnecessary sync cycles, 2) to avoid potential // last_used_date update. if (!AccountStoreMatchesContainForm(account_store_matches, *match)) { PasswordForm match_copy = *match; match_copy.moving_blocked_for_list.clear(); account_store_form_saver_->Save(match_copy, account_store_matches, /*old_password=*/base::string16()); } form_saver_->Remove(*match); } } void MultiStorePasswordSaveManager::BlockMovingToAccountStoreFor( const autofill::GaiaIdHash& gaia_id_hash) { // TODO(crbug.com/1032992): This doesn't work if moving is offered upon update // prompts. // We offer moving credentials to the account store only upon successful // login. This entails that the credentials must exist in the profile store. PendingCredentialsStates states = ComputePendingCredentialsStates( pending_credentials_, form_fetcher_->GetAllRelevantMatches()); DCHECK(states.similar_saved_form_from_profile_store); DCHECK_EQ(PendingCredentialsState::EQUAL_TO_SAVED_MATCH, states.profile_store_state); // If the submitted credentials exists in both stores, .|pending_credentials_| // might be from the account store (and thus not have a // moving_blocked_for_list). We need to preserve any existing list, so // explicitly copy it over from the profile store match. PasswordForm form_to_block(pending_credentials_); form_to_block.moving_blocked_for_list = states.similar_saved_form_from_profile_store->moving_blocked_for_list; form_to_block.moving_blocked_for_list.push_back(gaia_id_hash); // No need to pass matches to Update(). It's only used for post processing // (e.g. updating the password for other credentials with the same // old password). form_saver_->Update(form_to_block, /*matches=*/{}, form_to_block.password_value); } std::pair<const PasswordForm*, PendingCredentialsState> MultiStorePasswordSaveManager::FindSimilarSavedFormAndComputeState( const PasswordForm& parsed_submitted_form) const { PendingCredentialsStates states = ComputePendingCredentialsStates( parsed_submitted_form, form_fetcher_->GetBestMatches()); // Resolve the two states to a single canonical one. This will be used to // decide what UI bubble (if any) to show to the user. PendingCredentialsState resolved_state = ResolvePendingCredentialsStates( states.profile_store_state, states.account_store_state); // Choose which of the saved forms (if any) to use as the base for updating, // based on which of the two states won the resolution. // Note that if we got the same state for both stores, then it doesn't really // matter which one we pick for updating, since the result will be the same // anyway. const PasswordForm* resolved_similar_saved_form = nullptr; if (resolved_state == states.profile_store_state) resolved_similar_saved_form = states.similar_saved_form_from_profile_store; else if (resolved_state == states.account_store_state) resolved_similar_saved_form = states.similar_saved_form_from_account_store; return std::make_pair(resolved_similar_saved_form, resolved_state); } FormSaver* MultiStorePasswordSaveManager::GetFormSaverForGeneration() { return IsOptedInForAccountStorage() ? account_store_form_saver_.get() : form_saver_.get(); } std::vector<const PasswordForm*> MultiStorePasswordSaveManager::GetRelevantMatchesForGeneration( const std::vector<const PasswordForm*>& matches) { // For account store users, only matches in the account store should be // considered for conflict resolution during generation. return IsOptedInForAccountStorage() ? MatchesInStore(matches, PasswordForm::Store::kAccountStore) : matches; } // static MultiStorePasswordSaveManager::PendingCredentialsStates MultiStorePasswordSaveManager::ComputePendingCredentialsStates( const PasswordForm& parsed_submitted_form, const std::vector<const PasswordForm*>& matches) { PendingCredentialsStates result; // Try to find a similar existing saved form from each of the stores. result.similar_saved_form_from_profile_store = password_manager_util::GetMatchForUpdating(parsed_submitted_form, ProfileStoreMatches(matches)); result.similar_saved_form_from_account_store = password_manager_util::GetMatchForUpdating(parsed_submitted_form, AccountStoreMatches(matches)); // Compute the PendingCredentialsState (i.e. what to do - save, update, silent // update) separately for the two stores. result.profile_store_state = ComputePendingCredentialsState( parsed_submitted_form, result.similar_saved_form_from_profile_store); result.account_store_state = ComputePendingCredentialsState( parsed_submitted_form, result.similar_saved_form_from_account_store); return result; } bool MultiStorePasswordSaveManager::IsOptedInForAccountStorage() const { return client_->GetPasswordFeatureManager()->IsOptedInForAccountStorage(); } bool MultiStorePasswordSaveManager::AccountStoreIsDefault() const { return client_->GetPasswordFeatureManager()->GetDefaultPasswordStore() == PasswordForm::Store::kAccountStore; } } // namespace password_manager
MonMenuOptions: ; category, item, value; actions are in PokemonActionSubmenu (see engine/pokemon/mon_menu.asm) ; moves dbbw MONMENU_FIELD_MOVE, MONMENUITEM_CUT, CUT dbbw MONMENU_FIELD_MOVE, MONMENUITEM_FLY, FLY dbbw MONMENU_FIELD_MOVE, MONMENUITEM_SURF, SURF dbbw MONMENU_FIELD_MOVE, MONMENUITEM_STRENGTH, STRENGTH dbbw MONMENU_FIELD_MOVE, MONMENUITEM_FLASH, FLASH dbbw MONMENU_FIELD_MOVE, MONMENUITEM_WATERFALL, WATERFALL dbbw MONMENU_FIELD_MOVE, MONMENUITEM_WHIRLPOOL, WHIRLPOOL dbbw MONMENU_FIELD_MOVE, MONMENUITEM_DIG, DIG dbbw MONMENU_FIELD_MOVE, MONMENUITEM_TELEPORT, TELEPORT dbbw MONMENU_FIELD_MOVE, MONMENUITEM_SOFTBOILED, SOFTBOILED dbbw MONMENU_FIELD_MOVE, MONMENUITEM_HEADBUTT, HEADBUTT dbbw MONMENU_FIELD_MOVE, MONMENUITEM_ROCKSMASH, ROCK_SMASH dbbw MONMENU_FIELD_MOVE, MONMENUITEM_MILKDRINK, MILK_DRINK dbbw MONMENU_FIELD_MOVE, MONMENUITEM_SWEETSCENT, SWEET_SCENT ; options dbbw MONMENU_MENUOPTION, MONMENUITEM_STATS, .stats dbbw MONMENU_MENUOPTION, MONMENUITEM_SWITCH, .switch dbbw MONMENU_MENUOPTION, MONMENUITEM_ITEM, .item dbbw MONMENU_MENUOPTION, MONMENUITEM_CANCEL, .cancel dbbw MONMENU_MENUOPTION, MONMENUITEM_MOVE, .move dbbw MONMENU_MENUOPTION, MONMENUITEM_MAIL, .mail dbbw MONMENU_MENUOPTION, MONMENUITEM_ERROR, .error db -1 .stats: db "STATS@" .switch: db "SWITCH@" .item: db "ITEM@" .cancel: db "CANCEL@" .move: db "MOVE@" .mail: db "MAIL@" .error: db "ERROR!@"
; A065310: Number of occurrences of n-th prime in A065308, where A065308(j) = prime(j - pi(j)). ; 3,2,2,1,1,2,2,1,1,2,2,1,1,2,1,1,1,1,2,2,1,1,1,1,2,1,1,2,2,1,1,2,1,1,1,1,2,1,1,1,1,2,2,1,1,1,1,2,1,1,2,2,1,1,1,1,2,1,1,2,1,1,1,1,2,1,1,1,1,1,1,2,1,1,2,2,1,1,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,1,1,1,1,2,2,1,1,1,1,1,1,1,1,2,2,1,1,1,1,2,1,1,1,1,2,1,1,2,1,1,1,1,2,1,1,1,1,2,2,1,1,1,1,1,1,1,1,2,2,1,1,2,2,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,1,1,2,1,1,1,1,2,2,1,1,1,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,2,1,1,1,1,2,1,1,2,2,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,1,1 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 add $0,1 cal $0,65090 ; Natural numbers which are not odd primes: composites plus 1 and 2. cal $0,230980 ; Number of primes <= n, starting at n=0. mov $2,$3 mov $4,$0 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $5 sub $1,$4 mov $5,0 lpe add $1,1
// -*- C++ -*- #include "ace/OS_NS_sys_time.h" #include "ace/High_Res_Timer.h" ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Time_Value_T<ACE_System_Time_Policy> ACE_System_Time_Policy::operator()() const { return ACE_Time_Value_T<ACE_System_Time_Policy> (ACE_OS::gettimeofday()); } ACE_INLINE void ACE_System_Time_Policy::set_gettimeofday (ACE_Time_Value (*)(void)) { } ACE_INLINE ACE_Time_Value_T<ACE_HR_Time_Policy> ACE_HR_Time_Policy::operator()() const { return ACE_Time_Value_T<ACE_HR_Time_Policy> (ACE_High_Res_Timer::gettimeofday_hr ()); } ACE_INLINE void ACE_HR_Time_Policy::set_gettimeofday (ACE_Time_Value (*)(void)) { } ACE_INLINE ACE_FPointer_Time_Policy::ACE_FPointer_Time_Policy() : function_(ACE_OS::gettimeofday) { } ACE_INLINE ACE_FPointer_Time_Policy:: ACE_FPointer_Time_Policy(ACE_FPointer_Time_Policy::FPtr f) : function_(f) { } ACE_INLINE ACE_Time_Value_T<ACE_FPointer_Time_Policy> ACE_FPointer_Time_Policy::operator()() const { return ACE_Time_Value_T<ACE_FPointer_Time_Policy> ((*this->function_)(), *this); } ACE_INLINE void ACE_FPointer_Time_Policy::set_gettimeofday (ACE_Time_Value (*f)(void)) { this->function_ = f; } ACE_INLINE ACE_Time_Value_T<ACE_Delegating_Time_Policy> ACE_Dynamic_Time_Policy_Base::operator()() const { return this->gettimeofday (); } ACE_INLINE void ACE_Dynamic_Time_Policy_Base::set_gettimeofday (ACE_Time_Value (*)(void)) { } ACE_INLINE ACE_Time_Value_T<ACE_Delegating_Time_Policy> ACE_Delegating_Time_Policy::operator()() const { return (*this->delegate_) (); } ACE_INLINE void ACE_Delegating_Time_Policy::set_gettimeofday (ACE_Time_Value (*)(void)) { } ACE_INLINE void ACE_Delegating_Time_Policy::set_delegate (ACE_Dynamic_Time_Policy_Base const * delegate) { if (delegate != 0) { this->delegate_ = delegate; } } ACE_INLINE ACE_Delegating_Time_Policy& ACE_Delegating_Time_Policy::operator =(ACE_Delegating_Time_Policy const & pol) { this->delegate_ = pol.delegate_; return *this; } ACE_END_VERSIONED_NAMESPACE_DECL
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>reserved221(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall reserved221. See 'man 2 reserved221' for more information. Arguments: vararg(int): vararg Returns: long </%docstring> <%page args="vararg_0=None, vararg_1=None, vararg_2=None, vararg_3=None, vararg_4=None"/> <% abi = pwnlib.abi.ABI.syscall() stack = abi.stack regs = abi.register_arguments[1:] allregs = pwnlib.shellcraft.registers.current() can_pushstr = [] can_pushstr_array = [] argument_names = ['vararg_0', 'vararg_1', 'vararg_2', 'vararg_3', 'vararg_4'] argument_values = [vararg_0, vararg_1, vararg_2, vararg_3, vararg_4] # Load all of the arguments into their destination registers / stack slots. register_arguments = dict() stack_arguments = collections.OrderedDict() string_arguments = dict() dict_arguments = dict() array_arguments = dict() syscall_repr = [] for name, arg in zip(argument_names, argument_values): if arg is not None: syscall_repr.append('%s=%r' % (name, arg)) # If the argument itself (input) is a register... if arg in allregs: index = argument_names.index(name) if index < len(regs): target = regs[index] register_arguments[target] = arg elif arg is not None: stack_arguments[index] = arg # The argument is not a register. It is a string value, and we # are expecting a string value elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)): if isinstance(arg, six.text_type): arg = arg.encode('utf-8') string_arguments[name] = arg # The argument is not a register. It is a dictionary, and we are # expecting K:V paris. elif name in can_pushstr_array and isinstance(arg, dict): array_arguments[name] = ['%s=%s' % (k,v) for (k,v) in arg.items()] # The arguent is not a register. It is a list, and we are expecting # a list of arguments. elif name in can_pushstr_array and isinstance(arg, (list, tuple)): array_arguments[name] = arg # The argument is not a register, string, dict, or list. # It could be a constant string ('O_RDONLY') for an integer argument, # an actual integer value, or a constant. else: index = argument_names.index(name) if index < len(regs): target = regs[index] register_arguments[target] = arg elif arg is not None: stack_arguments[target] = arg # Some syscalls have different names on various architectures. # Determine which syscall number to use for the current architecture. for syscall in ['SYS_reserved221']: if hasattr(pwnlib.constants, syscall): break else: raise Exception("Could not locate any syscalls: %r" % syscalls) %> /* reserved221(${', '.join(syscall_repr)}) */ %for name, arg in string_arguments.items(): ${pwnlib.shellcraft.pushstr(arg, append_null=(b'\x00' not in arg))} ${pwnlib.shellcraft.mov(regs[argument_names.index(name)], abi.stack)} %endfor %for name, arg in array_arguments.items(): ${pwnlib.shellcraft.pushstr_array(regs[argument_names.index(name)], arg)} %endfor %for name, arg in stack_arguments.items(): ${pwnlib.shellcraft.push(arg)} %endfor ${pwnlib.shellcraft.setregs(register_arguments)} ${pwnlib.shellcraft.syscall(syscall)}
global outb global inb ; outb - send a byte to an I/O port ; inputs: ; [esp + 8] data byte (1 byte) ; [esp + 4] I/O port (2 bytes) ; [esp + 0] return address ; modifies: ; al (byte to write) ; dx (port to write to) outb: mov al, [esp + 8] mov dx, [esp + 4] out dx, al ; send data to IO port ret ; inb - reads a byte to an I/O port ; inputs: ; [esp + 4] I/O port (2 bytes) ; [esp + 0] return address ; modifies: ; dx (port to read from) ; al (return value) inb: mov dx, [esp + 4] in al, dx ; read one byte from IO port in low byte of eax ret
; A021078: Decimal expansion of 1/74. ; 0,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5 mul $0,2 trn $0,1 mod $0,6
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. The # Material contains proprietary information of Intel or its suppliers and # licensors. The Material is protected by worldwide copyright laws and treaty # provisions. No part of the Material may be used, copied, reproduced, # modified, published, uploaded, posted, transmitted, distributed or disclosed # in any way without Intel's prior express written permission. No license under # any patent, copyright or other intellectual property rights in the Material # is granted to or conferred upon you, either expressly, by implication, # inducement, estoppel or otherwise. Any license under such intellectual # property rights must be express and approved by Intel in writing. # # Unless otherwise agreed by Intel in writing, you may not remove or alter this # notice or any other notice embedded in Materials by Intel or Intel's # suppliers or licensors in any way. # # # If this software was obtained under the Apache License, Version 2.0 (the # "License"), the following terms apply: # # 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. ############################################################################### .text .p2align 6, 0x90 .globl _cpMontSqr1024_avx2 _cpMontSqr1024_avx2: push %rbx push %rbp push %r12 push %r13 push %r14 sub $(64), %rsp movslq %ecx, %rcx vpxor %ymm11, %ymm11, %ymm11 vmovdqu %ymm11, (%rsi,%rcx,8) vmovdqu %ymm11, (%rdx,%rcx,8) movq %rdi, (%rsp) movq %rsi, (8)(%rsp) movq %rdx, (16)(%rsp) movq %rcx, (24)(%rsp) movq %r8, (32)(%rsp) mov $(40), %rcx mov %r9, %rdi movq %rdi, (48)(%rsp) lea (%rdi,%rcx,8), %rbx lea (%rbx,%rcx,8), %r9 movq %r9, (40)(%rsp) mov %rsi, %rax mov $(4), %rcx vmovdqu (%rsi), %ymm0 vmovdqu (32)(%rsi), %ymm1 vmovdqu (64)(%rsi), %ymm2 vmovdqu (96)(%rsi), %ymm3 vmovdqu (128)(%rsi), %ymm4 vmovdqu (160)(%rsi), %ymm5 vmovdqu (192)(%rsi), %ymm6 vmovdqu (224)(%rsi), %ymm7 vmovdqu (256)(%rsi), %ymm8 vmovdqu (288)(%rsi), %ymm9 vmovdqu %ymm0, (%r9) vpbroadcastq (%rax), %ymm10 vpaddq %ymm1, %ymm1, %ymm1 vmovdqu %ymm1, (32)(%r9) vpaddq %ymm2, %ymm2, %ymm2 vmovdqu %ymm2, (64)(%r9) vpaddq %ymm3, %ymm3, %ymm3 vmovdqu %ymm3, (96)(%r9) vpaddq %ymm4, %ymm4, %ymm4 vmovdqu %ymm4, (128)(%r9) vpaddq %ymm5, %ymm5, %ymm5 vmovdqu %ymm5, (160)(%r9) vpaddq %ymm6, %ymm6, %ymm6 vmovdqu %ymm6, (192)(%r9) vpaddq %ymm7, %ymm7, %ymm7 vmovdqu %ymm7, (224)(%r9) vpaddq %ymm8, %ymm8, %ymm8 vmovdqu %ymm8, (256)(%r9) vpaddq %ymm9, %ymm9, %ymm9 vmovdqu %ymm9, (288)(%r9) vpmuludq (%rsi), %ymm10, %ymm0 vpbroadcastq (32)(%rax), %ymm14 vmovdqu %ymm11, (%rbx) vpmuludq (32)(%r9), %ymm10, %ymm1 vmovdqu %ymm11, (32)(%rbx) vpmuludq (64)(%r9), %ymm10, %ymm2 vmovdqu %ymm11, (64)(%rbx) vpmuludq (96)(%r9), %ymm10, %ymm3 vmovdqu %ymm11, (96)(%rbx) vpmuludq (128)(%r9), %ymm10, %ymm4 vmovdqu %ymm11, (128)(%rbx) vpmuludq (160)(%r9), %ymm10, %ymm5 vmovdqu %ymm11, (160)(%rbx) vpmuludq (192)(%r9), %ymm10, %ymm6 vmovdqu %ymm11, (192)(%rbx) vpmuludq (224)(%r9), %ymm10, %ymm7 vmovdqu %ymm11, (224)(%rbx) vpmuludq (256)(%r9), %ymm10, %ymm8 vmovdqu %ymm11, (256)(%rbx) vpmuludq (288)(%r9), %ymm10, %ymm9 vmovdqu %ymm11, (288)(%rbx) jmp .Lsqr1024_epgas_1 .p2align 6, 0x90 .Lsqr1024_loop4gas_1: vpmuludq (%rsi), %ymm10, %ymm0 vpbroadcastq (32)(%rax), %ymm14 vpaddq (%rdi), %ymm0, %ymm0 vpmuludq (32)(%r9), %ymm10, %ymm1 vpaddq (32)(%rdi), %ymm1, %ymm1 vpmuludq (64)(%r9), %ymm10, %ymm2 vpaddq (64)(%rdi), %ymm2, %ymm2 vpmuludq (96)(%r9), %ymm10, %ymm3 vpaddq (96)(%rdi), %ymm3, %ymm3 vpmuludq (128)(%r9), %ymm10, %ymm4 vpaddq (128)(%rdi), %ymm4, %ymm4 vpmuludq (160)(%r9), %ymm10, %ymm5 vpaddq (160)(%rdi), %ymm5, %ymm5 vpmuludq (192)(%r9), %ymm10, %ymm6 vpaddq (192)(%rdi), %ymm6, %ymm6 vpmuludq (224)(%r9), %ymm10, %ymm7 vpaddq (224)(%rdi), %ymm7, %ymm7 vpmuludq (256)(%r9), %ymm10, %ymm8 vpaddq (256)(%rdi), %ymm8, %ymm8 vpmuludq (288)(%r9), %ymm10, %ymm9 vpaddq (288)(%rdi), %ymm9, %ymm9 .Lsqr1024_epgas_1: vmovdqu %ymm0, (%rdi) vmovdqu %ymm1, (32)(%rdi) vpmuludq (32)(%rsi), %ymm14, %ymm11 vpbroadcastq (64)(%rax), %ymm10 vpaddq %ymm11, %ymm2, %ymm2 vpmuludq (64)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm3, %ymm3 vpmuludq (96)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm4, %ymm4 vpmuludq (128)(%r9), %ymm14, %ymm11 vpaddq %ymm11, %ymm5, %ymm5 vpmuludq (160)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm6, %ymm6 vpmuludq (192)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm7, %ymm7 vpmuludq (224)(%r9), %ymm14, %ymm11 vpaddq %ymm11, %ymm8, %ymm8 vpmuludq (256)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm9, %ymm9 vpmuludq (288)(%r9), %ymm14, %ymm0 vpaddq (%rbx), %ymm0, %ymm0 vmovdqu %ymm2, (64)(%rdi) vmovdqu %ymm3, (96)(%rdi) vpmuludq (64)(%rsi), %ymm10, %ymm11 vpbroadcastq (96)(%rax), %ymm14 vpaddq %ymm11, %ymm4, %ymm4 vpmuludq (96)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm5, %ymm5 vpmuludq (128)(%r9), %ymm10, %ymm13 vpaddq %ymm13, %ymm6, %ymm6 vpmuludq (160)(%r9), %ymm10, %ymm11 vpaddq %ymm11, %ymm7, %ymm7 vpmuludq (192)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm8, %ymm8 vpmuludq (224)(%r9), %ymm10, %ymm13 vpaddq %ymm13, %ymm9, %ymm9 vpmuludq (256)(%r9), %ymm10, %ymm11 vpaddq %ymm11, %ymm0, %ymm0 vpmuludq (288)(%r9), %ymm10, %ymm1 vpaddq (32)(%rbx), %ymm1, %ymm1 vmovdqu %ymm4, (128)(%rdi) vmovdqu %ymm5, (160)(%rdi) vpmuludq (96)(%rsi), %ymm14, %ymm11 vpbroadcastq (128)(%rax), %ymm10 vpaddq %ymm11, %ymm6, %ymm6 vpmuludq (128)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm7, %ymm7 vpmuludq (160)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm8, %ymm8 vpmuludq (192)(%r9), %ymm14, %ymm11 vpaddq %ymm11, %ymm9, %ymm9 vpmuludq (224)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm0, %ymm0 vpmuludq (256)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm1, %ymm1 vpmuludq (288)(%r9), %ymm14, %ymm2 vpaddq (64)(%rbx), %ymm2, %ymm2 vmovdqu %ymm6, (192)(%rdi) vmovdqu %ymm7, (224)(%rdi) vpmuludq (128)(%rsi), %ymm10, %ymm11 vpbroadcastq (160)(%rax), %ymm14 vpaddq %ymm11, %ymm8, %ymm8 vpmuludq (160)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm9, %ymm9 vpmuludq (192)(%r9), %ymm10, %ymm13 vpaddq %ymm13, %ymm0, %ymm0 vpmuludq (224)(%r9), %ymm10, %ymm11 vpaddq %ymm11, %ymm1, %ymm1 vpmuludq (256)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm2, %ymm2 vpmuludq (288)(%r9), %ymm10, %ymm3 vpaddq (96)(%rbx), %ymm3, %ymm3 vmovdqu %ymm8, (256)(%rdi) vmovdqu %ymm9, (288)(%rdi) vpmuludq (160)(%rsi), %ymm14, %ymm11 vpbroadcastq (192)(%rax), %ymm10 vpaddq %ymm11, %ymm0, %ymm0 vpmuludq (192)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm1, %ymm1 vpmuludq (224)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm2, %ymm2 vpmuludq (256)(%r9), %ymm14, %ymm11 vpaddq %ymm11, %ymm3, %ymm3 vpmuludq (288)(%r9), %ymm14, %ymm4 vpaddq (128)(%rbx), %ymm4, %ymm4 vmovdqu %ymm0, (320)(%rdi) vmovdqu %ymm1, (352)(%rdi) vpmuludq (192)(%rsi), %ymm10, %ymm11 vpbroadcastq (224)(%rax), %ymm14 vpaddq %ymm11, %ymm2, %ymm2 vpmuludq (224)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm3, %ymm3 vpmuludq (256)(%r9), %ymm10, %ymm13 vpaddq %ymm13, %ymm4, %ymm4 vpmuludq (288)(%r9), %ymm10, %ymm5 vpaddq (160)(%rbx), %ymm5, %ymm5 vmovdqu %ymm2, (384)(%rdi) vmovdqu %ymm3, (416)(%rdi) vpmuludq (224)(%rsi), %ymm14, %ymm11 vpbroadcastq (256)(%rax), %ymm10 vpaddq %ymm11, %ymm4, %ymm4 vpmuludq (256)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm5, %ymm5 vpmuludq (288)(%r9), %ymm14, %ymm6 vpaddq (192)(%rbx), %ymm6, %ymm6 vmovdqu %ymm4, (448)(%rdi) vmovdqu %ymm5, (480)(%rdi) vpmuludq (256)(%rsi), %ymm10, %ymm11 vpbroadcastq (288)(%rax), %ymm14 vpaddq %ymm11, %ymm6, %ymm6 vpmuludq (288)(%r9), %ymm10, %ymm7 vpaddq (224)(%rbx), %ymm7, %ymm7 vpmuludq (288)(%rsi), %ymm14, %ymm8 vpbroadcastq (8)(%rax), %ymm10 vpaddq (256)(%rbx), %ymm8, %ymm8 vmovdqu %ymm6, (512)(%rdi) vmovdqu %ymm7, (544)(%rdi) vmovdqu %ymm8, (576)(%rdi) add $(8), %rdi add $(8), %rbx add $(8), %rax sub $(1), %rcx jnz .Lsqr1024_loop4gas_1 movq (48)(%rsp), %rdi movq (16)(%rsp), %rcx movq (32)(%rsp), %r8 mov $(38), %r9 movq (%rdi), %r10 movq (8)(%rdi), %r11 movq (16)(%rdi), %r12 movq (24)(%rdi), %r13 mov %r10, %rdx imul %r8d, %edx and $(134217727), %edx vmovd %edx, %xmm10 vmovdqu (32)(%rdi), %ymm1 vmovdqu (64)(%rdi), %ymm2 vmovdqu (96)(%rdi), %ymm3 vmovdqu (128)(%rdi), %ymm4 vmovdqu (160)(%rdi), %ymm5 vmovdqu (192)(%rdi), %ymm6 mov %rdx, %rax imulq (%rcx), %rax add %rax, %r10 vpbroadcastq %xmm10, %ymm10 vmovdqu (224)(%rdi), %ymm7 vmovdqu (256)(%rdi), %ymm8 vmovdqu (288)(%rdi), %ymm9 mov %rdx, %rax imulq (8)(%rcx), %rax add %rax, %r11 mov %rdx, %rax imulq (16)(%rcx), %rax add %rax, %r12 shr $(27), %r10 imulq (24)(%rcx), %rdx add %rdx, %r13 add %r10, %r11 mov %r11, %rdx imul %r8d, %edx and $(134217727), %rdx .p2align 6, 0x90 .Lreduction_loopgas_1: vmovd %edx, %xmm11 vpbroadcastq %xmm11, %ymm11 vpmuludq (32)(%rcx), %ymm10, %ymm14 mov %rdx, %rax imulq (%rcx), %rax vpaddq %ymm14, %ymm1, %ymm1 vpmuludq (64)(%rcx), %ymm10, %ymm14 vpaddq %ymm14, %ymm2, %ymm2 vpmuludq (96)(%rcx), %ymm10, %ymm14 vpaddq %ymm14, %ymm3, %ymm3 vpmuludq (128)(%rcx), %ymm10, %ymm14 add %rax, %r11 shr $(27), %r11 vpaddq %ymm14, %ymm4, %ymm4 vpmuludq (160)(%rcx), %ymm10, %ymm14 mov %rdx, %rax imulq (8)(%rcx), %rax vpaddq %ymm14, %ymm5, %ymm5 add %rax, %r12 vpmuludq (192)(%rcx), %ymm10, %ymm14 imulq (16)(%rcx), %rdx add %r11, %r12 vpaddq %ymm14, %ymm6, %ymm6 add %rdx, %r13 vpmuludq (224)(%rcx), %ymm10, %ymm14 mov %r12, %rdx imul %r8d, %edx vpaddq %ymm14, %ymm7, %ymm7 vpmuludq (256)(%rcx), %ymm10, %ymm14 vpaddq %ymm14, %ymm8, %ymm8 and $(134217727), %rdx vpmuludq (288)(%rcx), %ymm10, %ymm14 vpaddq %ymm14, %ymm9, %ymm9 vmovd %edx, %xmm12 vpbroadcastq %xmm12, %ymm12 vpmuludq (24)(%rcx), %ymm11, %ymm14 mov %rdx, %rax imulq (%rcx), %rax vpaddq %ymm14, %ymm1, %ymm1 vpmuludq (56)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm2, %ymm2 vpmuludq (88)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm3, %ymm3 vpmuludq (120)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm4, %ymm4 add %r12, %rax shr $(27), %rax vpmuludq (152)(%rcx), %ymm11, %ymm14 imulq (8)(%rcx), %rdx vpaddq %ymm14, %ymm5, %ymm5 vpmuludq (184)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm6, %ymm6 vpmuludq (216)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm7, %ymm7 add %r13, %rdx add %rax, %rdx vpmuludq (248)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm8, %ymm8 vpmuludq (280)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm9, %ymm9 sub $(2), %r9 jz .Lexit_reduction_loopgas_1 vpmuludq (16)(%rcx), %ymm12, %ymm14 mov %rdx, %r13 imul %r8d, %edx vpaddq %ymm14, %ymm1, %ymm1 vpmuludq (48)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm2, %ymm2 and $(134217727), %rdx vpmuludq (80)(%rcx), %ymm12, %ymm14 vmovd %edx, %xmm13 vpaddq %ymm14, %ymm3, %ymm3 vpmuludq (112)(%rcx), %ymm12, %ymm14 vpbroadcastq %xmm13, %ymm13 vpaddq %ymm14, %ymm4, %ymm4 vpmuludq (144)(%rcx), %ymm12, %ymm14 imulq (%rcx), %rdx vpaddq %ymm14, %ymm5, %ymm5 vpmuludq (176)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm6, %ymm6 add %rdx, %r13 vpmuludq (208)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm7, %ymm7 shr $(27), %r13 vmovq %r13, %xmm0 vpmuludq (8)(%rcx), %ymm13, %ymm14 vpaddq %ymm0, %ymm1, %ymm1 vpaddq %ymm14, %ymm1, %ymm1 vmovdqu %ymm1, (%rdi) vpmuludq (240)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm8, %ymm8 vpmuludq (272)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm9, %ymm9 vmovq %xmm1, %rdx imul %r8d, %edx and $(134217727), %edx vmovq %xmm1, %r10 movq (8)(%rdi), %r11 movq (16)(%rdi), %r12 movq (24)(%rdi), %r13 vmovd %edx, %xmm10 vpbroadcastq %xmm10, %ymm10 vpmuludq (40)(%rcx), %ymm13, %ymm14 mov %rdx, %rax imulq (%rcx), %rax vpaddq %ymm14, %ymm2, %ymm1 vpmuludq (72)(%rcx), %ymm13, %ymm14 add %rax, %r10 vpaddq %ymm14, %ymm3, %ymm2 shr $(27), %r10 vpmuludq (104)(%rcx), %ymm13, %ymm14 mov %rdx, %rax imulq (8)(%rcx), %rax vpaddq %ymm14, %ymm4, %ymm3 add %rax, %r11 vpmuludq (136)(%rcx), %ymm13, %ymm14 mov %rdx, %rax imulq (16)(%rcx), %rax vpaddq %ymm14, %ymm5, %ymm4 add %rax, %r12 vpmuludq (168)(%rcx), %ymm13, %ymm14 imulq (24)(%rcx), %rdx vpaddq %ymm14, %ymm6, %ymm5 add %rdx, %r13 add %r10, %r11 vpmuludq (200)(%rcx), %ymm13, %ymm14 mov %r11, %rdx imul %r8d, %edx vpaddq %ymm14, %ymm7, %ymm6 and $(134217727), %rdx vpmuludq (232)(%rcx), %ymm13, %ymm14 vpaddq %ymm14, %ymm8, %ymm7 vpmuludq (264)(%rcx), %ymm13, %ymm14 vpaddq %ymm14, %ymm9, %ymm8 vpmuludq (296)(%rcx), %ymm13, %ymm14 vpaddq (320)(%rdi), %ymm14, %ymm9 add $(32), %rdi sub $(2), %r9 jnz .Lreduction_loopgas_1 .Lexit_reduction_loopgas_1: movq (%rsp), %rdi movq %r12, (%rdi) movq %r13, (8)(%rdi) vmovdqu %ymm1, (16)(%rdi) vmovdqu %ymm2, (48)(%rdi) vmovdqu %ymm3, (80)(%rdi) vmovdqu %ymm4, (112)(%rdi) vmovdqu %ymm5, (144)(%rdi) vmovdqu %ymm6, (176)(%rdi) vmovdqu %ymm7, (208)(%rdi) vmovdqu %ymm8, (240)(%rdi) vmovdqu %ymm9, (272)(%rdi) mov $(38), %r9 xor %rax, %rax .Lnorm_loopgas_1: addq (%rdi), %rax add $(8), %rdi mov $(134217727), %rdx and %rax, %rdx shr $(27), %rax movq %rdx, (-8)(%rdi) sub $(1), %r9 jg .Lnorm_loopgas_1 movq %rax, (%rdi) add $(64), %rsp vzeroupper pop %r14 pop %r13 pop %r12 pop %rbp pop %rbx ret .p2align 6, 0x90 .globl _cpSqr1024_avx2 _cpSqr1024_avx2: push %rbx sub $(48), %rsp movslq %edx, %rdx vpxor %ymm11, %ymm11, %ymm11 vmovdqu %ymm11, (%rsi,%rdx,8) movq %rdi, (%rsp) movq %rsi, (8)(%rsp) movq %rdx, (16)(%rsp) mov $(40), %rdx mov %rcx, %rdi movq %rdi, (32)(%rsp) lea (%rdi,%rdx,8), %rbx lea (%rbx,%rdx,8), %r9 movq %r9, (24)(%rsp) mov %rsi, %rax mov $(4), %rcx vmovdqu (%rsi), %ymm0 vmovdqu (32)(%rsi), %ymm1 vmovdqu (64)(%rsi), %ymm2 vmovdqu (96)(%rsi), %ymm3 vmovdqu (128)(%rsi), %ymm4 vmovdqu (160)(%rsi), %ymm5 vmovdqu (192)(%rsi), %ymm6 vmovdqu (224)(%rsi), %ymm7 vmovdqu (256)(%rsi), %ymm8 vmovdqu (288)(%rsi), %ymm9 vmovdqu %ymm0, (%r9) vpbroadcastq (%rax), %ymm10 vpaddq %ymm1, %ymm1, %ymm1 vmovdqu %ymm1, (32)(%r9) vpaddq %ymm2, %ymm2, %ymm2 vmovdqu %ymm2, (64)(%r9) vpaddq %ymm3, %ymm3, %ymm3 vmovdqu %ymm3, (96)(%r9) vpaddq %ymm4, %ymm4, %ymm4 vmovdqu %ymm4, (128)(%r9) vpaddq %ymm5, %ymm5, %ymm5 vmovdqu %ymm5, (160)(%r9) vpaddq %ymm6, %ymm6, %ymm6 vmovdqu %ymm6, (192)(%r9) vpaddq %ymm7, %ymm7, %ymm7 vmovdqu %ymm7, (224)(%r9) vpaddq %ymm8, %ymm8, %ymm8 vmovdqu %ymm8, (256)(%r9) vpaddq %ymm9, %ymm9, %ymm9 vmovdqu %ymm9, (288)(%r9) vpmuludq (%rsi), %ymm10, %ymm0 vpbroadcastq (32)(%rax), %ymm14 vmovdqu %ymm11, (%rbx) vpmuludq (32)(%r9), %ymm10, %ymm1 vmovdqu %ymm11, (32)(%rbx) vpmuludq (64)(%r9), %ymm10, %ymm2 vmovdqu %ymm11, (64)(%rbx) vpmuludq (96)(%r9), %ymm10, %ymm3 vmovdqu %ymm11, (96)(%rbx) vpmuludq (128)(%r9), %ymm10, %ymm4 vmovdqu %ymm11, (128)(%rbx) vpmuludq (160)(%r9), %ymm10, %ymm5 vmovdqu %ymm11, (160)(%rbx) vpmuludq (192)(%r9), %ymm10, %ymm6 vmovdqu %ymm11, (192)(%rbx) vpmuludq (224)(%r9), %ymm10, %ymm7 vmovdqu %ymm11, (224)(%rbx) vpmuludq (256)(%r9), %ymm10, %ymm8 vmovdqu %ymm11, (256)(%rbx) vpmuludq (288)(%r9), %ymm10, %ymm9 vmovdqu %ymm11, (288)(%rbx) jmp .Lsqr1024_epgas_2 .p2align 6, 0x90 .Lsqr1024_loop4gas_2: vpmuludq (%rsi), %ymm10, %ymm0 vpbroadcastq (32)(%rax), %ymm14 vpaddq (%rdi), %ymm0, %ymm0 vpmuludq (32)(%r9), %ymm10, %ymm1 vpaddq (32)(%rdi), %ymm1, %ymm1 vpmuludq (64)(%r9), %ymm10, %ymm2 vpaddq (64)(%rdi), %ymm2, %ymm2 vpmuludq (96)(%r9), %ymm10, %ymm3 vpaddq (96)(%rdi), %ymm3, %ymm3 vpmuludq (128)(%r9), %ymm10, %ymm4 vpaddq (128)(%rdi), %ymm4, %ymm4 vpmuludq (160)(%r9), %ymm10, %ymm5 vpaddq (160)(%rdi), %ymm5, %ymm5 vpmuludq (192)(%r9), %ymm10, %ymm6 vpaddq (192)(%rdi), %ymm6, %ymm6 vpmuludq (224)(%r9), %ymm10, %ymm7 vpaddq (224)(%rdi), %ymm7, %ymm7 vpmuludq (256)(%r9), %ymm10, %ymm8 vpaddq (256)(%rdi), %ymm8, %ymm8 vpmuludq (288)(%r9), %ymm10, %ymm9 vpaddq (288)(%rdi), %ymm9, %ymm9 .Lsqr1024_epgas_2: vmovdqu %ymm0, (%rdi) vmovdqu %ymm1, (32)(%rdi) vpmuludq (32)(%rsi), %ymm14, %ymm11 vpbroadcastq (64)(%rax), %ymm10 vpaddq %ymm11, %ymm2, %ymm2 vpmuludq (64)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm3, %ymm3 vpmuludq (96)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm4, %ymm4 vpmuludq (128)(%r9), %ymm14, %ymm11 vpaddq %ymm11, %ymm5, %ymm5 vpmuludq (160)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm6, %ymm6 vpmuludq (192)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm7, %ymm7 vpmuludq (224)(%r9), %ymm14, %ymm11 vpaddq %ymm11, %ymm8, %ymm8 vpmuludq (256)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm9, %ymm9 vpmuludq (288)(%r9), %ymm14, %ymm0 vpaddq (%rbx), %ymm0, %ymm0 vmovdqu %ymm2, (64)(%rdi) vmovdqu %ymm3, (96)(%rdi) vpmuludq (64)(%rsi), %ymm10, %ymm11 vpbroadcastq (96)(%rax), %ymm14 vpaddq %ymm11, %ymm4, %ymm4 vpmuludq (96)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm5, %ymm5 vpmuludq (128)(%r9), %ymm10, %ymm13 vpaddq %ymm13, %ymm6, %ymm6 vpmuludq (160)(%r9), %ymm10, %ymm11 vpaddq %ymm11, %ymm7, %ymm7 vpmuludq (192)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm8, %ymm8 vpmuludq (224)(%r9), %ymm10, %ymm13 vpaddq %ymm13, %ymm9, %ymm9 vpmuludq (256)(%r9), %ymm10, %ymm11 vpaddq %ymm11, %ymm0, %ymm0 vpmuludq (288)(%r9), %ymm10, %ymm1 vpaddq (32)(%rbx), %ymm1, %ymm1 vmovdqu %ymm4, (128)(%rdi) vmovdqu %ymm5, (160)(%rdi) vpmuludq (96)(%rsi), %ymm14, %ymm11 vpbroadcastq (128)(%rax), %ymm10 vpaddq %ymm11, %ymm6, %ymm6 vpmuludq (128)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm7, %ymm7 vpmuludq (160)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm8, %ymm8 vpmuludq (192)(%r9), %ymm14, %ymm11 vpaddq %ymm11, %ymm9, %ymm9 vpmuludq (224)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm0, %ymm0 vpmuludq (256)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm1, %ymm1 vpmuludq (288)(%r9), %ymm14, %ymm2 vpaddq (64)(%rbx), %ymm2, %ymm2 vmovdqu %ymm6, (192)(%rdi) vmovdqu %ymm7, (224)(%rdi) vpmuludq (128)(%rsi), %ymm10, %ymm11 vpbroadcastq (160)(%rax), %ymm14 vpaddq %ymm11, %ymm8, %ymm8 vpmuludq (160)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm9, %ymm9 vpmuludq (192)(%r9), %ymm10, %ymm13 vpaddq %ymm13, %ymm0, %ymm0 vpmuludq (224)(%r9), %ymm10, %ymm11 vpaddq %ymm11, %ymm1, %ymm1 vpmuludq (256)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm2, %ymm2 vpmuludq (288)(%r9), %ymm10, %ymm3 vpaddq (96)(%rbx), %ymm3, %ymm3 vmovdqu %ymm8, (256)(%rdi) vmovdqu %ymm9, (288)(%rdi) vpmuludq (160)(%rsi), %ymm14, %ymm11 vpbroadcastq (192)(%rax), %ymm10 vpaddq %ymm11, %ymm0, %ymm0 vpmuludq (192)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm1, %ymm1 vpmuludq (224)(%r9), %ymm14, %ymm13 vpaddq %ymm13, %ymm2, %ymm2 vpmuludq (256)(%r9), %ymm14, %ymm11 vpaddq %ymm11, %ymm3, %ymm3 vpmuludq (288)(%r9), %ymm14, %ymm4 vpaddq (128)(%rbx), %ymm4, %ymm4 vmovdqu %ymm0, (320)(%rdi) vmovdqu %ymm1, (352)(%rdi) vpmuludq (192)(%rsi), %ymm10, %ymm11 vpbroadcastq (224)(%rax), %ymm14 vpaddq %ymm11, %ymm2, %ymm2 vpmuludq (224)(%r9), %ymm10, %ymm12 vpaddq %ymm12, %ymm3, %ymm3 vpmuludq (256)(%r9), %ymm10, %ymm13 vpaddq %ymm13, %ymm4, %ymm4 vpmuludq (288)(%r9), %ymm10, %ymm5 vpaddq (160)(%rbx), %ymm5, %ymm5 vmovdqu %ymm2, (384)(%rdi) vmovdqu %ymm3, (416)(%rdi) vpmuludq (224)(%rsi), %ymm14, %ymm11 vpbroadcastq (256)(%rax), %ymm10 vpaddq %ymm11, %ymm4, %ymm4 vpmuludq (256)(%r9), %ymm14, %ymm12 vpaddq %ymm12, %ymm5, %ymm5 vpmuludq (288)(%r9), %ymm14, %ymm6 vpaddq (192)(%rbx), %ymm6, %ymm6 vmovdqu %ymm4, (448)(%rdi) vmovdqu %ymm5, (480)(%rdi) vpmuludq (256)(%rsi), %ymm10, %ymm11 vpbroadcastq (288)(%rax), %ymm14 vpaddq %ymm11, %ymm6, %ymm6 vpmuludq (288)(%r9), %ymm10, %ymm7 vpaddq (224)(%rbx), %ymm7, %ymm7 vpmuludq (288)(%rsi), %ymm14, %ymm8 vpbroadcastq (8)(%rax), %ymm10 vpaddq (256)(%rbx), %ymm8, %ymm8 vmovdqu %ymm6, (512)(%rdi) vmovdqu %ymm7, (544)(%rdi) vmovdqu %ymm8, (576)(%rdi) add $(8), %rdi add $(8), %rbx add $(8), %rax sub $(1), %rcx jnz .Lsqr1024_loop4gas_2 movq (32)(%rsp), %rsi movq (%rsp), %rdi mov $(76), %r9 xor %rax, %rax .Lnorm_loopgas_2: addq (%rsi), %rax add $(8), %rsi mov $(134217727), %rdx and %rax, %rdx shr $(27), %rax movq %rdx, (%rdi) add $(8), %rdi sub $(1), %r9 jg .Lnorm_loopgas_2 movq %rax, (%rdi) add $(48), %rsp vzeroupper pop %rbx ret .p2align 6, 0x90 .globl _cpMontRed1024_avx2 _cpMontRed1024_avx2: push %r12 push %r13 movslq %ecx, %r9 mov %rdx, %rcx vpxor %ymm11, %ymm11, %ymm11 vmovdqu %ymm11, (%rdx,%r9,8) movq (%rsi), %r10 movq (8)(%rsi), %r11 movq (16)(%rsi), %r12 movq (24)(%rsi), %r13 mov %r10, %rdx imul %r8d, %edx and $(134217727), %edx vmovd %edx, %xmm10 vmovdqu (32)(%rsi), %ymm1 vmovdqu (64)(%rsi), %ymm2 vmovdqu (96)(%rsi), %ymm3 vmovdqu (128)(%rsi), %ymm4 vmovdqu (160)(%rsi), %ymm5 vmovdqu (192)(%rsi), %ymm6 mov %rdx, %rax imulq (%rcx), %rax add %rax, %r10 vpbroadcastq %xmm10, %ymm10 vmovdqu (224)(%rsi), %ymm7 vmovdqu (256)(%rsi), %ymm8 vmovdqu (288)(%rsi), %ymm9 mov %rdx, %rax imulq (8)(%rcx), %rax add %rax, %r11 mov %rdx, %rax imulq (16)(%rcx), %rax add %rax, %r12 shr $(27), %r10 imulq (24)(%rcx), %rdx add %rdx, %r13 add %r10, %r11 mov %r11, %rdx imul %r8d, %edx and $(134217727), %rdx .p2align 6, 0x90 .Lreduction_loopgas_3: vmovd %edx, %xmm11 vpbroadcastq %xmm11, %ymm11 vpmuludq (32)(%rcx), %ymm10, %ymm14 mov %rdx, %rax imulq (%rcx), %rax vpaddq %ymm14, %ymm1, %ymm1 vpmuludq (64)(%rcx), %ymm10, %ymm14 vpaddq %ymm14, %ymm2, %ymm2 vpmuludq (96)(%rcx), %ymm10, %ymm14 vpaddq %ymm14, %ymm3, %ymm3 vpmuludq (128)(%rcx), %ymm10, %ymm14 add %rax, %r11 shr $(27), %r11 vpaddq %ymm14, %ymm4, %ymm4 vpmuludq (160)(%rcx), %ymm10, %ymm14 mov %rdx, %rax imulq (8)(%rcx), %rax vpaddq %ymm14, %ymm5, %ymm5 add %rax, %r12 vpmuludq (192)(%rcx), %ymm10, %ymm14 imulq (16)(%rcx), %rdx add %r11, %r12 vpaddq %ymm14, %ymm6, %ymm6 add %rdx, %r13 vpmuludq (224)(%rcx), %ymm10, %ymm14 mov %r12, %rdx imul %r8d, %edx vpaddq %ymm14, %ymm7, %ymm7 vpmuludq (256)(%rcx), %ymm10, %ymm14 vpaddq %ymm14, %ymm8, %ymm8 and $(134217727), %rdx vpmuludq (288)(%rcx), %ymm10, %ymm14 vpaddq %ymm14, %ymm9, %ymm9 vmovd %edx, %xmm12 vpbroadcastq %xmm12, %ymm12 vpmuludq (24)(%rcx), %ymm11, %ymm14 mov %rdx, %rax imulq (%rcx), %rax vpaddq %ymm14, %ymm1, %ymm1 vpmuludq (56)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm2, %ymm2 vpmuludq (88)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm3, %ymm3 vpmuludq (120)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm4, %ymm4 add %r12, %rax shr $(27), %rax vpmuludq (152)(%rcx), %ymm11, %ymm14 imulq (8)(%rcx), %rdx vpaddq %ymm14, %ymm5, %ymm5 vpmuludq (184)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm6, %ymm6 vpmuludq (216)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm7, %ymm7 add %r13, %rdx add %rax, %rdx vpmuludq (248)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm8, %ymm8 vpmuludq (280)(%rcx), %ymm11, %ymm14 vpaddq %ymm14, %ymm9, %ymm9 sub $(2), %r9 jz .Lexit_reduction_loopgas_3 vpmuludq (16)(%rcx), %ymm12, %ymm14 mov %rdx, %r13 imul %r8d, %edx vpaddq %ymm14, %ymm1, %ymm1 vpmuludq (48)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm2, %ymm2 and $(134217727), %rdx vpmuludq (80)(%rcx), %ymm12, %ymm14 vmovd %edx, %xmm13 vpaddq %ymm14, %ymm3, %ymm3 vpmuludq (112)(%rcx), %ymm12, %ymm14 vpbroadcastq %xmm13, %ymm13 vpaddq %ymm14, %ymm4, %ymm4 vpmuludq (144)(%rcx), %ymm12, %ymm14 imulq (%rcx), %rdx vpaddq %ymm14, %ymm5, %ymm5 vpmuludq (176)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm6, %ymm6 add %rdx, %r13 vpmuludq (208)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm7, %ymm7 shr $(27), %r13 vmovq %r13, %xmm0 vpmuludq (8)(%rcx), %ymm13, %ymm14 vpaddq %ymm0, %ymm1, %ymm1 vpaddq %ymm14, %ymm1, %ymm1 vmovdqu %ymm1, (%rsi) vpmuludq (240)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm8, %ymm8 vpmuludq (272)(%rcx), %ymm12, %ymm14 vpaddq %ymm14, %ymm9, %ymm9 vmovq %xmm1, %rdx imul %r8d, %edx and $(134217727), %edx vmovq %xmm1, %r10 movq (8)(%rsi), %r11 movq (16)(%rsi), %r12 movq (24)(%rsi), %r13 vmovd %edx, %xmm10 vpbroadcastq %xmm10, %ymm10 vpmuludq (40)(%rcx), %ymm13, %ymm14 mov %rdx, %rax imulq (%rcx), %rax vpaddq %ymm14, %ymm2, %ymm1 vpmuludq (72)(%rcx), %ymm13, %ymm14 add %rax, %r10 vpaddq %ymm14, %ymm3, %ymm2 shr $(27), %r10 vpmuludq (104)(%rcx), %ymm13, %ymm14 mov %rdx, %rax imulq (8)(%rcx), %rax vpaddq %ymm14, %ymm4, %ymm3 add %rax, %r11 vpmuludq (136)(%rcx), %ymm13, %ymm14 mov %rdx, %rax imulq (16)(%rcx), %rax vpaddq %ymm14, %ymm5, %ymm4 add %rax, %r12 vpmuludq (168)(%rcx), %ymm13, %ymm14 imulq (24)(%rcx), %rdx vpaddq %ymm14, %ymm6, %ymm5 add %rdx, %r13 add %r10, %r11 vpmuludq (200)(%rcx), %ymm13, %ymm14 mov %r11, %rdx imul %r8d, %edx vpaddq %ymm14, %ymm7, %ymm6 and $(134217727), %rdx vpmuludq (232)(%rcx), %ymm13, %ymm14 vpaddq %ymm14, %ymm8, %ymm7 vpmuludq (264)(%rcx), %ymm13, %ymm14 vpaddq %ymm14, %ymm9, %ymm8 vpmuludq (296)(%rcx), %ymm13, %ymm14 vpaddq (320)(%rsi), %ymm14, %ymm9 add $(32), %rsi sub $(2), %r9 jnz .Lreduction_loopgas_3 .Lexit_reduction_loopgas_3: movq (%rsp), %rsi movq %r12, (%rsi) movq %r13, (8)(%rsi) vmovdqu %ymm1, (16)(%rsi) vmovdqu %ymm2, (48)(%rsi) vmovdqu %ymm3, (80)(%rsi) vmovdqu %ymm4, (112)(%rsi) vmovdqu %ymm5, (144)(%rsi) vmovdqu %ymm6, (176)(%rsi) vmovdqu %ymm7, (208)(%rsi) vmovdqu %ymm8, (240)(%rsi) vmovdqu %ymm9, (272)(%rsi) mov $(38), %r9 xor %rax, %rax .Lnorm_loopgas_3: addq (%rsi), %rax add $(8), %rsi mov $(134217727), %rdx and %rax, %rdx shr $(27), %rax movq %rdx, (%rdi) add $(8), %rdi sub $(1), %r9 jg .Lnorm_loopgas_3 movq %rax, (%rdi) vzeroupper pop %r13 pop %r12 ret
; A001621: a(n) = n*(n + 1)*(n^2 + n + 2)/4. ; 0,2,12,42,110,240,462,812,1332,2070,3080,4422,6162,8372,11130,14520,18632,23562,29412,36290,44310,53592,64262,76452,90300,105950,123552,143262,165242,189660,216690,246512,279312,315282,354620,397530,444222,494912,549822,609180,673220,742182,816312,895862,981090,1072260,1169642,1273512,1384152,1501850,1626900,1759602,1900262,2049192,2206710,2373140,2548812,2734062,2929232,3134670,3350730,3577772,3816162,4066272,4328480,4603170,4890732,5191562,5506062,5834640,6177710,6535692,6909012,7298102 add $0,1 bin $0,2 mov $1,$0 pow $1,2 add $0,$1
WWIDTH =40 WTOP =10 WLEFT =15 WBOTTOM =20 WRIGHT =WLEFT+WWIDTH-1 CODE SEGMENT ASSUME CS:CODE START: MOV AL,0 MOV AH,5 INT 10H MOV CH,WTOP MOV CL,WLEFT MOV DH,WBOTTOM MOV DL,WRIGHT MOV BH,74H MOV AL,0 MOV AH,6 INT 10H MOV BH,0 MOV DH,WBOTTOM MOV DL,WLEFT MOV AH,2 INT 10H NEXT: MOV AH,0 INT 16H CMP AL,03H JZ DONE MOV BH,0 MOV CX,1 MOV AH,0AH INT 10H INC DL CMP DL,WRIGHT+1 JNZ DOCR MOV CH,WTOP MOV CL,WLEFT MOV DH,WBOTTOM MOV DL,WRIGHT MOV BH,74H MOV AL,1 MOV AH,6 INT 10H MOV DL,WLEFT DOCR: MOV BH,0 MOV AH,2 INT 10H JMP NEXT DONE: MOV AH,4CH INT 21H CODE ENDS END START
Name: zel_main.asm Type: file Size: 45780 Last-Modified: '2016-05-13T04:23:03Z' SHA-1: 1A770E2B40E26DA1350F709A32CA1953C80B034C Description: null
;;============================================================================ ;; MCKL/lib/asm/logf.asm ;;---------------------------------------------------------------------------- ;; MCKL: Monte Carlo Kernel Library ;;---------------------------------------------------------------------------- ;; Copyright (c) 2013-2018, Yan Zhou ;; 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. ;; ;; 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 HOLDER 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. ;;============================================================================ %include "/math.asm" global mckl_vs_log global mckl_vs_log2 global mckl_vs_log10 global mckl_vs_log1p default rel ; register used as constants: ymm6-ymm8, ymm10, ymm12 ; register used as variables: ymm1-5, ymm9, ymm11, ymm13-15 %macro log1pf_constants 0 vmovaps ymm6, [rel sqrt2by2] vmovaps ymm7, [rel one] vmovaps ymm8, [rel two] %endmacro ; log(1 + f) * (f + 2) / f - 2 = c9 * x^8 + ... + c5 * x^4 + c3 * x^2 %macro log1pf 3 ; implicity input ymm1, output ymm9 vcmpltps ymm11, ymm0, %1 vcmpgtps ymm15, ymm0, %2 vxorps ymm13, ymm13, ymm13 ; k = 0 %if %3 == 0 vaddps ymm1, ymm0, ymm7 ; b = a + 1 vmovaps ymm14, ymm0 ; f = a; %elif %3 == 1 vmovaps ymm1, ymm0 ; b = a vsubps ymm14, ymm0, ymm7 ; f = a - 1; %else %error %endif vorps ymm11, ymm11, ymm15 vtestps ymm11, ymm11 jz %%skip ; k = exponent(b) vpsrld ymm2, ymm1, 23 vorps ymm2, ymm2, [emask0] vsubps ymm3, ymm2, [emask1] ; exponent(b) ; fraction(b) / 2 vandps ymm1, ymm1, [fmask0] vorps ymm4, ymm1, [fmask1] ; fraction(b) / 2 ; fraction(b) > sqrt(2) vcmpgtps ymm1, ymm4, ymm6 vandps ymm5, ymm1, ymm7 vandnps ymm9, ymm1, ymm4 vaddps ymm3, ymm3, ymm5 vaddps ymm4, ymm4, ymm9 ; f = fraction(b) - 1 vsubps ymm4, ymm4, ymm7 ; skip reduction if ymm0 in range vblendvps ymm13, ymm13, ymm3, ymm11 vblendvps ymm14, ymm14, ymm4, ymm11 %%skip: ; x = f / (f + 2) vaddps ymm1, ymm14, ymm8 vdivps ymm1, ymm14, ymm1 vmovaps ymm9, [c9] vmovaps ymm5, [c5] vmulps ymm2, ymm1, ymm1 ; x^2 vmulps ymm4, ymm2, ymm2 ; x^4 vfmadd213ps ymm9, ymm2, [c7] ; u9 = c9 * x^2 + c7 vfmadd213ps ymm5, ymm2, [c3] ; u5 = c5 * x^2 + c3 vfmadd213ps ymm9, ymm4, ymm5 ; v9 = u9 * x^4 + u5 vmulps ymm9, ymm9, ymm2 ; z9 = v9 * x^2 %endmacro %macro select 1 ; implicit input ymm0, ymm9, output ymm9 vcmpltps ymm1, ymm0, [%{1}_min_a] ; a < min_a vcmpgtps ymm2, ymm0, [%{1}_max_a] ; a > max_a vcmpltps ymm3, ymm0, [%{1}_nan_a] ; a < nan_a vcmpneqps ymm4, ymm0, ymm0 ; a != a vorps ymm5, ymm1, ymm2 vorps ymm5, ymm5, ymm3 vorps ymm5, ymm5, ymm4 vtestps ymm5, ymm5 jz %%skip vblendvps ymm9, ymm9, [%{1}_min_y], ymm1 ; min_y vblendvps ymm9, ymm9, [%{1}_max_y], ymm2 ; max_y vblendvps ymm9, ymm9, [%{1}_nan_y], ymm3 ; nan_y vblendvps ymm9, ymm9, ymm0, ymm4 ; a %%skip: %endmacro %macro log_constants 0 log1pf_constants vmovaps ymm10, [ln2] %endmacro %macro log 2 vmovups ymm0, %2 log1pf ymm6, [sqrt2], 1 ; log(1 + f) = f - x * (f - R) ; log(a) = k * log(2) + log(1 + f) vsubps ymm9, ymm14, ymm9 vfnmadd213ps ymm9, ymm1, ymm14 vfmadd231ps ymm9, ymm13, ymm10 select log vmovups %1, ymm9 %endmacro %macro log2_constants 0 log1pf_constants vmovaps ymm10, [ln2inv] %endmacro %macro log2 2 vmovups ymm0, %2 log1pf ymm6, [sqrt2], 1 ; log(1 + f) = f - x * (f - R) ; log2(a) = k + log(1 + f) / log(2) vsubps ymm9, ymm14, ymm9 vfnmadd213ps ymm9, ymm1, ymm14 vfmadd213ps ymm9, ymm10, ymm13 select log2 vmovups %1, ymm9 %endmacro %macro log10_constants 0 log1pf_constants vmovaps ymm10, [ln10_2] vmovaps ymm12, [ln10inv] %endmacro %macro log10 2 vmovups ymm0, %2 log1pf ymm6, [sqrt2], 1 ; log(1 + f) = f - x * (f - R) ; log10(a) = k * log(10) / log(2) + log(1 + f) / log(10) vsubps ymm9, ymm14, ymm9 vfnmadd213ps ymm9, ymm1, ymm14 vmulps ymm13, ymm13, ymm10 vfmadd213ps ymm9, ymm12, ymm13 select log vmovups %1, ymm9 %endmacro %macro log1p_constants 0 log1pf_constants vmovaps ymm10, [ln2] %endmacro %macro log1p 2 vmovups ymm0, %2 log1pf [sqrt2m2], [sqrt2m1], 0 ; log(1 + f) = f - x * (f - R) ; log(1 + a) = k * log2 + log(1 + f) vsubps ymm9, ymm14, ymm9 vfnmadd213ps ymm9, ymm1, ymm14 vfmadd231ps ymm9, ymm13, ymm10 select log1p vmovups %1, ymm9 %endmacro section .rodata align 32 log_min_a: times 8 dd 0x00800000 ; FLT_MIN log_max_a: times 8 dd 0x7F7FFFFF ; FLT_MAX log_nan_a: times 8 dd 0x00000000 ; 0.0 log_min_y: times 8 dd 0xFF800000 ; -HUGE_VALF log_max_y: times 8 dd 0x7F800000 ; HUGE_VALF log_nan_y: times 8 dd 0x7FC00000 ; NaN log2_min_a: times 8 dd 0x00800000 ; FLT_MIN log2_max_a: times 8 dd 0x7F7FFFFF ; FLT_MAX log2_nan_a: times 8 dd 0x00000000 ; 0.0 log2_min_y: times 8 dd 0xFF800000 ; -HUGE_VALF log2_max_y: times 8 dd 0x7F800000 ; HUGE_VALF log2_nan_y: times 8 dd 0x7FC00000 ; NaN log10_min_a: times 8 dd 0x00800000 ; FLT_MIN log10_max_a: times 8 dd 0x7F7FFFFF ; FLT_MAX log10_nan_a: times 8 dd 0x00000000 ; 0.0 log10_min_y: times 8 dd 0xFF800000 ; -HUGE_VALF log10_max_y: times 8 dd 0x7F800000 ; HUGE_VALF log10_nan_y: times 8 dd 0x7FC00000 ; NaN log1p_min_a: times 8 dd 0xBF7FFFFF ; nextafter(-1.0, 0.0) log1p_max_a: times 8 dd 0x7F7FFFFF ; FLT_MAX log1p_nan_a: times 8 dd 0xBF800000 ; -1.0 log1p_min_y: times 8 dd 0xFF800000 ; -HUGE_VALF log1p_max_y: times 8 dd 0x7F800000 ; HUGE_VALF log1p_nan_y: times 8 dd 0x7FC00000 ; NaN c3: times 8 dd 0x3F2AAAAA c5: times 8 dd 0x3ECCCE13 c7: times 8 dd 0x3E91E9EE c9: times 8 dd 0x3E789E26 emask0: times 8 dd 0x4B000000 ; 2^23 emask1: times 8 dd 0x4B00007F ; 2^23 + 127 fmask0: times 8 dd 0x007FFFFF ; fraction mask fmask1: times 8 dd 0x3F000000 ; fraction(a) / 2 one: times 8 dd 0x3F800000 ; 1.0 two: times 8 dd 0x40000000 ; 2.0 ln2: times 8 dd 0x3F317218 ; log(2.0l) ln2inv: times 8 dd 0x3FB8AA3B ; 1.0l / log(2.0l) ln10_2: times 8 dd 0x3E9A209B ; log10(2.0l) ln10inv: times 8 dd 0x3EDE5BD9 ; 1.0l / log(10.0l) sqrt2: times 8 dd 0x3FB504F3 ; sqrt(2.0l) sqrt2by2: times 8 dd 0x3F3504F3 ; sqrt(2.0l) / 2.0l sqrt2m1: times 8 dd 0x3ED413CD ; sqrt(2.0l) - 1.0l sqrt2m2: times 8 dd 0xBE95F61A ; sqrt(2.0l) / 2.0l - 1.0l section .text mckl_vs_log: math_kernel_a1r1 4, log mckl_vs_log2: math_kernel_a1r1 4, log2 mckl_vs_log10: math_kernel_a1r1 4, log10 mckl_vs_log1p: math_kernel_a1r1 4, log1p ; vim:ft=nasm
; Z88 Small C+ Run time Library ; Moved functions over to proper libdefs ; To make startup code smaller and neater! ; ; 23/1/2001 djm SECTION code_clib SECTION code_l_sccz80 PUBLIC l_pint_pop, l_pint_pop_pint l_pint_pop: pop bc ; return address pop de ; where to put it push bc l_pint_pop_pint: ; store int from HL into (DE) ld a,l ld (de),a inc de ld a,h ld (de),a ret
SECTION code_clib SECTION code_fp_math48 PUBLIC asm_tan EXTERN am48_tan defc asm_tan = am48_tan
SECTION code_clib SECTION code_fp_math48 PUBLIC _ceil EXTERN cm48_sdcciy_ceil defc _ceil = cm48_sdcciy_ceil
/* Copyright 2017 The TensorFlow Authors. 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. ==============================================================================*/ #include "tensorflow/compiler/xla/tests/hlo_test_base.h" #include <set> #include <string> #include <utility> #define EIGEN_USE_THREADS #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" #include "tensorflow/compiler/xla/layout_util.h" #include "tensorflow/compiler/xla/legacy_flags/hlo_test_base_flags.h" #include "tensorflow/compiler/xla/ptr_util.h" #include "tensorflow/compiler/xla/service/backend.h" #include "tensorflow/compiler/xla/service/computation_layout.h" #include "tensorflow/compiler/xla/service/executable.h" #include "tensorflow/compiler/xla/service/hlo_computation.h" #include "tensorflow/compiler/xla/service/hlo_execution_profile.h" #include "tensorflow/compiler/xla/service/hlo_graph_dumper.h" #include "tensorflow/compiler/xla/service/hlo_instruction.h" #include "tensorflow/compiler/xla/service/transfer_manager.h" #include "tensorflow/compiler/xla/shape_layout.h" #include "tensorflow/compiler/xla/shape_util.h" #include "tensorflow/compiler/xla/status_macros.h" #include "tensorflow/compiler/xla/types.h" #include "tensorflow/core/common_runtime/eigen_thread_pool.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/types.h" namespace se = ::perftools::gputools; namespace xla { // Define this in .cc file to avoid having to include eigen or forward declare // these types in the header. struct HloTestBase::EigenThreadPoolWrapper { std::unique_ptr<EigenThreadPoolWrapper> pool; std::unique_ptr<Eigen::ThreadPoolDevice> device; }; HloTestBase::HloTestBase() : backend_(Backend::CreateDefaultBackend().ConsumeValueOrDie()) { test_hlo_dumper_ = [](const HloModule& module, const string& label) { legacy_flags::HloTestBaseFlags* flags = legacy_flags::GetHloTestBaseFlags(); if (flags->xla_hlo_test_generate_hlo_graph) { const bool show_addresses = true; const bool show_layouts = true; hlo_graph_dumper::DumpGraph(*module.entry_computation(), label, show_addresses, show_layouts); } }; VLOG(1) << "executing on platform " << backend_->platform()->Name(); } HloTestBase::~HloTestBase() { // Deallocate all the memory allocated during the tests. for (auto& allocation : allocations_) { backend_->default_stream_executor()->Deallocate(&allocation); } } StatusOr<perftools::gputools::DeviceMemoryBase> HloTestBase::Execute( std::unique_ptr<HloModule> module, tensorflow::gtl::ArraySlice<perftools::gputools::DeviceMemoryBase> arguments, Shape* result_shape) { TF_ASSIGN_OR_RETURN( std::unique_ptr<Executable> executable, backend_->compiler()->Compile(std::move(module), test_hlo_dumper_, backend_->default_stream_executor())); se::Stream stream(backend_->default_stream_executor()); stream.Init(); ExecutableRunOptions run_options; run_options.set_stream(&stream); run_options.set_allocator(backend_->memory_allocator()); run_options.set_inter_op_thread_pool(backend_->inter_op_thread_pool()); run_options.set_intra_op_thread_pool( backend_->eigen_intra_op_thread_pool_device()); HloExecutionProfile hlo_execution_profile; ServiceExecutableRunOptions service_run_options( run_options, backend_->StreamBorrower(), backend_->inter_op_thread_pool()); TF_ASSIGN_OR_RETURN( se::DeviceMemoryBase result, executable->ExecuteOnStream(&service_run_options, arguments, &hlo_execution_profile)); TF_RET_CHECK(stream.BlockHostUntilDone()); allocations_.push_back(result); *result_shape = executable->result_shape(); if (ShapeUtil::IsTuple(*result_shape)) { // We must record element buffers of tuples as well to avoid leaks. DCHECK(!ShapeUtil::IsNestedTuple(*result_shape)); TF_ASSIGN_OR_RETURN( std::vector<se::DeviceMemoryBase> element_buffers, backend_->transfer_manager()->ShallowCopyTupleFromDevice( backend_->default_stream_executor(), result, *result_shape)); // A tuple may contain the same buffer in more than one element. Keep track // of the buffers already added to avoid duplicates in allocations_. std::set<void*> added_opaques; for (auto element_buffer : element_buffers) { if (added_opaques.count(element_buffer.opaque()) == 0) { CHECK(element_buffer.opaque() != nullptr); added_opaques.insert(element_buffer.opaque()); allocations_.push_back(element_buffer); } } } return result; } se::DeviceMemoryBase HloTestBase::TransferToDevice(const Literal& literal) { // Allocate memory on the device using the stream executor. int64 allocation_size = backend_->transfer_manager()->GetByteSizeRequirement(literal.shape()); se::DeviceMemoryBase allocation = backend_->default_stream_executor()->AllocateArray<uint8>( allocation_size); allocations_.push_back(allocation); TF_CHECK_OK(backend_->transfer_manager()->TransferLiteralToDevice( backend_->default_stream_executor(), literal, &allocation)); return allocation; } std::unique_ptr<Literal> HloTestBase::TransferFromDevice( const Shape& shape, se::DeviceMemoryBase device_base) { auto literal = MakeUnique<Literal>(); TF_CHECK_OK(backend_->transfer_manager()->TransferLiteralFromDevice( backend_->default_stream_executor(), device_base, shape, shape, literal.get())); return literal; } std::unique_ptr<Literal> HloTestBase::ExecuteAndTransfer( std::unique_ptr<HloModule> module, tensorflow::gtl::ArraySlice<se::DeviceMemoryBase> arguments) { Shape result_shape; se::DeviceMemoryBase device_base = Execute(std::move(module), arguments, &result_shape).ValueOrDie(); return TransferFromDevice(result_shape, device_base); } string HloTestBase::TestName() const { return ::testing::UnitTest::GetInstance()->current_test_info()->name(); } } // namespace xla
/* * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this software and related documentation without an express * license agreement from NVIDIA CORPORATION is strictly prohibited. */ // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved. // Copyright (c) 2001-2004 NovodeX AG. All rights reserved. #include "PxVehicleDrive.h" #include "PxVehicleSDK.h" #include "PxVehicleSuspWheelTire4.h" #include "PxVehicleSuspLimitConstraintShader.h" #include "PxVehicleDefaults.h" #include "PxRigidDynamic.h" #include "PxShape.h" #include "PsFoundation.h" #include "PsUtilities.h" #include "CmPhysXCommon.h" namespace physx { bool PxVehicleDriveSimData::isValid() const { PX_CHECK_AND_RETURN_VAL(mEngine.isValid(), "Invalid PxVehicleCoreSimulationData.mEngine", false); PX_CHECK_AND_RETURN_VAL(mGears.isValid(), "Invalid PxVehicleCoreSimulationData.mGears", false); PX_CHECK_AND_RETURN_VAL(mClutch.isValid(), "Invalid PxVehicleCoreSimulationData.mClutch", false); PX_CHECK_AND_RETURN_VAL(mAutoBox.isValid(), "Invalid PxVehicleCoreSimulationData.mAutoBox", false); return true; } void PxVehicleDriveSimData::setEngineData(const PxVehicleEngineData& engine) { PX_CHECK_AND_RETURN(engine.mTorqueCurve.getNbDataPairs()>0, "Engine torque curve must specify at least one entry"); PX_CHECK_AND_RETURN(engine.mPeakTorque>0, "Engine peak torque must be greater than zero"); PX_CHECK_AND_RETURN(engine.mMaxOmega>0, "Engine max omega must be greater than zero"); PX_CHECK_AND_RETURN(engine.mDampingRateFullThrottle>=0, "Full throttle damping rate must be greater than or equal to zero"); PX_CHECK_AND_RETURN(engine.mDampingRateZeroThrottleClutchEngaged>=0, "Zero throttle clutch engaged damping rate must be greater than or equal to zero"); PX_CHECK_AND_RETURN(engine.mDampingRateZeroThrottleClutchDisengaged>=0, "Zero throttle clutch disengaged damping rate must be greater than or equal to zero"); mEngine=engine; mEngine.mRecipMOI=1.0f/engine.mMOI; mEngine.mRecipMaxOmega=1.0f/engine.mMaxOmega; } void PxVehicleDriveSimData::setGearsData(const PxVehicleGearsData& gears) { PX_CHECK_AND_RETURN(gears.mRatios[PxVehicleGearsData::eREVERSE]<0, "Reverse gear ratio must be negative"); PX_CHECK_AND_RETURN(gears.mRatios[PxVehicleGearsData::eNEUTRAL]==0, "Neutral gear ratio must be zero"); PX_CHECK_AND_RETURN(gears.mRatios[PxVehicleGearsData::eFIRST]>0, "First gear ratio must be positive"); PX_CHECK_AND_RETURN(PxVehicleGearsData::eSECOND>=gears.mNbRatios || (gears.mRatios[PxVehicleGearsData::eSECOND]>0 && gears.mRatios[PxVehicleGearsData::eSECOND] < gears.mRatios[PxVehicleGearsData::eFIRST]), "Second gear ratio must be positive and less than first gear ratio"); PX_CHECK_AND_RETURN(PxVehicleGearsData::eTHIRD>=gears.mNbRatios || (gears.mRatios[PxVehicleGearsData::eTHIRD]>0 && gears.mRatios[PxVehicleGearsData::eTHIRD] < gears.mRatios[PxVehicleGearsData::eSECOND]), "Third gear ratio must be positive and less than second gear ratio"); PX_CHECK_AND_RETURN(PxVehicleGearsData::eFOURTH>=gears.mNbRatios || (gears.mRatios[PxVehicleGearsData::eFOURTH]>0 && gears.mRatios[PxVehicleGearsData::eFOURTH] < gears.mRatios[PxVehicleGearsData::eTHIRD]), "Fourth gear ratio must be positive and less than third gear ratio"); PX_CHECK_AND_RETURN(PxVehicleGearsData::eFIFTH>=gears.mNbRatios || (gears.mRatios[PxVehicleGearsData::eFIFTH]>0 && gears.mRatios[PxVehicleGearsData::eFIFTH] < gears.mRatios[PxVehicleGearsData::eFOURTH]), "Fifth gear ratio must be positive and less than fourth gear ratio"); PX_CHECK_AND_RETURN(PxVehicleGearsData::eSIXTH>=gears.mNbRatios || (gears.mRatios[PxVehicleGearsData::eSIXTH]>0 && gears.mRatios[PxVehicleGearsData::eSIXTH] < gears.mRatios[PxVehicleGearsData::eFIFTH]), "Sixth gear ratio must be positive and less than fifth gear ratio"); PX_CHECK_AND_RETURN(gears.mFinalRatio>0, "Final gear ratio must be greater than zero"); PX_CHECK_AND_RETURN(gears.mNbRatios>=3, "Number of gear ratios must be at least 3 - we need at least reverse, neutral, and a forward gear"); mGears=gears; } void PxVehicleDriveSimData::setClutchData(const PxVehicleClutchData& clutch) { PX_CHECK_AND_RETURN(clutch.mStrength>0, "Clutch strength must be greater than zero"); PX_CHECK_AND_RETURN(PxVehicleClutchAccuracyMode::eBEST_POSSIBLE==clutch.mAccuracyMode || clutch.mEstimateIterations > 0, "Clutch mEstimateIterations must be greater than zero in eESTIMATE mode."); mClutch=clutch; } void PxVehicleDriveSimData::setAutoBoxData(const PxVehicleAutoBoxData& autobox) { PX_CHECK_AND_RETURN(autobox.mUpRatios[PxVehicleGearsData::eREVERSE]>=0, "Autobox gearup ratio in reverse must be greater than or equal to zero"); PX_CHECK_AND_RETURN(autobox.mUpRatios[PxVehicleGearsData::eNEUTRAL]>=0, "Autobox gearup ratio in neutral must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mUpRatios[PxVehicleGearsData::eFIRST]>=0, "Autobox gearup ratio in first must be greater than or equal to zero"); PX_CHECK_AND_RETURN(autobox.mUpRatios[PxVehicleGearsData::eSECOND]>=0, "Autobox gearup ratio in second must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mUpRatios[PxVehicleGearsData::eTHIRD]>=0, "Autobox gearup ratio in third must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mUpRatios[PxVehicleGearsData::eFOURTH]>=0, "Autobox gearup ratio in fourth must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mUpRatios[PxVehicleGearsData::eFIFTH]>=0, "Autobox gearup ratio in fifth must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mDownRatios[PxVehicleGearsData::eREVERSE]>=0, "Autobox geardown ratio in reverse must be greater than or equal to zero"); PX_CHECK_AND_RETURN(autobox.mDownRatios[PxVehicleGearsData::eNEUTRAL]>=0, "Autobox geardown ratio in neutral must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mDownRatios[PxVehicleGearsData::eFIRST]>=0, "Autobox geardown ratio in first must be greater than or equal to zero"); PX_CHECK_AND_RETURN(autobox.mDownRatios[PxVehicleGearsData::eSECOND]>=0, "Autobox geardown ratio in second must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mDownRatios[PxVehicleGearsData::eTHIRD]>=0, "Autobox geardown ratio in third must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mDownRatios[PxVehicleGearsData::eFOURTH]>=0, "Autobox geardown ratio in fourth must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mDownRatios[PxVehicleGearsData::eFIFTH]>=0, "Autobox geardown ratio in fifth must be greater than zero"); PX_CHECK_AND_RETURN(autobox.mDownRatios[PxVehicleGearsData::eSIXTH]>=0, "Autobox geardown ratio in fifth must be greater than zero"); mAutoBox=autobox; } /////////////////////////////////// PxVehicleDriveDynData::PxVehicleDriveDynData() : mUseAutoGears(false), mGearUpPressed(false), mGearDownPressed(false), mCurrentGear(PxVehicleGearsData::eNEUTRAL), mTargetGear(PxVehicleGearsData::eNEUTRAL), mEnginespeed(360.0f), mGearSwitchTime(0.0f), mAutoBoxSwitchTime(0.0f) { for(PxU32 i=0;i<eMAX_NB_ANALOG_INPUTS;i++) { mControlAnalogVals[i]=0.0f; } } void PxVehicleDriveDynData::setToRestState() { //Set analog inputs to zero so the vehicle starts completely at rest. for(PxU32 i=0;i<eMAX_NB_ANALOG_INPUTS;i++) { mControlAnalogVals[i]=0.0f; } mGearUpPressed=false; mGearDownPressed=false; //Set the vehicle to neutral gear. mCurrentGear=PxVehicleGearsData::eNEUTRAL; mTargetGear=PxVehicleGearsData::eNEUTRAL; mGearSwitchTime=0.0f; mAutoBoxSwitchTime=0.0f; //Set internal dynamics to zero so the vehicle starts completely at rest. mEnginespeed=0.0f; } bool PxVehicleDriveDynData::isValid() const { return true; } void PxVehicleDriveDynData::setAnalogInput(const PxU32 type, const PxReal analogVal) { PX_CHECK_AND_RETURN(analogVal>=-1.01f && analogVal<=1.01f, "PxVehicleDriveDynData::setAnalogInput - analogVal must be in range (-1,1)"); PX_CHECK_AND_RETURN(type<eMAX_NB_ANALOG_INPUTS, "PxVehicleDriveDynData::setAnalogInput - illegal type"); mControlAnalogVals[type]=analogVal; } PxReal PxVehicleDriveDynData::getAnalogInput(const PxU32 type) const { PX_CHECK_AND_RETURN_VAL(type<eMAX_NB_ANALOG_INPUTS, "PxVehicleDriveDynData::getAnalogInput - illegal type", 0.0f); return mControlAnalogVals[type]; } /////////////////////////////////// bool PxVehicleDrive::isValid() const { PX_CHECK_AND_RETURN_VAL(PxVehicleWheels::isValid(), "invalid PxVehicleWheels", false); PX_CHECK_AND_RETURN_VAL(mDriveDynData.isValid(), "Invalid PxVehicleDrive.mCoreSimData", false); return true; } PxU32 PxVehicleDrive::computeByteSize(const PxU32 numWheels4) { return PxVehicleWheels::computeByteSize(numWheels4); } PxU8* PxVehicleDrive::patchupPointers(PxVehicleDrive* veh, PxU8* ptr, const PxU32 numWheels4, const PxU32 numWheels) { return PxVehicleWheels::patchupPointers(veh,ptr,numWheels4,numWheels); } void PxVehicleDrive::free() { PxVehicleWheels::free(); } void PxVehicleDrive::setup (PxPhysics* physics, PxRigidDynamic* vehActor, const PxVehicleWheelsSimData& wheelsData, const PxU32 numDrivenWheels, const PxU32 numNonDrivenWheels) { //Set up the wheels. PxVehicleWheels::setup(physics,vehActor,wheelsData,numDrivenWheels,numNonDrivenWheels); } void PxVehicleDrive::setToRestState() { //Set core to rest state. PxVehicleWheels::setToRestState(); //Set dynamics data to rest state. mDriveDynData.setToRestState(); } } //namespace physx
section .realmode global rm_int rm_int: ; Self-modifying code: int $int_no mov al, byte [esp+4] mov byte [.int_no], al ; Save out_regs mov eax, dword [esp+8] mov dword [.out_regs], eax ; Save in_regs mov eax, dword [esp+12] mov dword [.in_regs], eax ; Save GDT in case BIOS overwrites it sgdt [.gdt] ; Save non-scratch GPRs push ebx push esi push edi push ebp ; Jump to real mode jmp 0x08:.bits16 .bits16: bits 16 mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov eax, cr0 and al, 0xfe mov cr0, eax jmp 0x00:.cszero .cszero: xor ax, ax mov ss, ax ; Load in_regs mov dword [ss:.esp], esp mov esp, dword [ss:.in_regs] pop gs pop fs pop es pop ds popfd pop ebp pop edi pop esi pop edx pop ecx pop ebx pop eax mov esp, dword [ss:.esp] sti ; Indirect interrupt call db 0xcd .int_no: db 0 cli ; Load out_regs mov dword [ss:.esp], esp mov esp, dword [ss:.out_regs] lea esp, [esp + 10*4] push eax push ebx push ecx push edx push esi push edi push ebp pushfd push ds push es push fs push gs mov esp, dword [ss:.esp] ; Restore GDT lgdt [ss:.gdt] ; Jump back to pmode mov eax, cr0 or al, 1 mov cr0, eax jmp 0x18:.bits32 .bits32: bits 32 mov ax, 0x20 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Restore non-scratch GPRs pop ebp pop edi pop esi pop ebx ; Exit ret align 16 .esp: dd 0 .out_regs: dd 0 .in_regs: dd 0 .gdt: dq 0
; unsigned long cpm_get_offset(void *p) ; fastcall SECTION code_clib SECTION code_arch PUBLIC cpm_get_offset EXTERN asm_cpm_get_offset defc cpm_get_offset = asm_cpm_get_offset
; A291050: Decimal expansion of Pi^2 / 27. ; Submitted by Christian Krause ; 3,6,5,5,4,0,9,0,3,7,4,4,0,5,0,3,1,9,2,1,6,0,9,2,2,5,9,2,5,4,6,7,2,2,6,4,2,7,0,8,7,7,7,5,5,8,2,3,7,3,2,9,8,6,1,6,3,4,5,7,3,8,4,3,0,4,4,4,6,1,0,4,5,3,4,0,4,4,6,3,8,6,2,9,6,9,5,3,1,1,2,4,8,8,3,5,2,6,7,8 mov $1,1 mov $2,1 mov $3,$0 mul $3,5 sub $3,1 lpb $3 mul $1,$3 mul $2,2 mov $5,$3 mul $5,2 add $5,1 mul $2,$5 add $1,$2 cmp $4,0 mov $5,$0 add $5,$4 div $1,$5 div $2,$5 sub $3,1 lpe pow $1,2 mul $1,5 pow $2,2 mul $2,2 mov $6,10 pow $6,$0 div $2,$6 div $1,$2 add $1,$6 mov $0,$1 mod $0,10
/* * This test verifies that basic instructions * (data transfers, addition/subtraction, jumps) work. */ lc r100, 0x10000000 // test result output pointer lc r101, halt lc r102, bad_jump lc r103, reg_is_nonzero // Check that all registers are zero-initialized after reset // Ignore r100-r103 which are already used cjmpne r103, r0, 0 cjmpne r103, r1, 0 cjmpne r103, r2, 0 cjmpne r103, r3, 0 cjmpne r103, r4, 0 cjmpne r103, r5, 0 cjmpne r103, r6, 0 cjmpne r103, r7, 0 cjmpne r103, r8, 0 cjmpne r103, r9, 0 cjmpne r103, r10, 0 cjmpne r103, r11, 0 cjmpne r103, r12, 0 cjmpne r103, r13, 0 cjmpne r103, r14, 0 cjmpne r103, r15, 0 cjmpne r103, r16, 0 cjmpne r103, r17, 0 cjmpne r103, r18, 0 cjmpne r103, r19, 0 cjmpne r103, r20, 0 cjmpne r103, r21, 0 cjmpne r103, r22, 0 cjmpne r103, r23, 0 cjmpne r103, r24, 0 cjmpne r103, r25, 0 cjmpne r103, r26, 0 cjmpne r103, r27, 0 cjmpne r103, r28, 0 cjmpne r103, r29, 0 cjmpne r103, r30, 0 cjmpne r103, r31, 0 cjmpne r103, r32, 0 cjmpne r103, r33, 0 cjmpne r103, r34, 0 cjmpne r103, r35, 0 cjmpne r103, r36, 0 cjmpne r103, r37, 0 cjmpne r103, r38, 0 cjmpne r103, r39, 0 cjmpne r103, r40, 0 cjmpne r103, r41, 0 cjmpne r103, r42, 0 cjmpne r103, r43, 0 cjmpne r103, r44, 0 cjmpne r103, r45, 0 cjmpne r103, r46, 0 cjmpne r103, r47, 0 cjmpne r103, r48, 0 cjmpne r103, r49, 0 cjmpne r103, r50, 0 cjmpne r103, r51, 0 cjmpne r103, r52, 0 cjmpne r103, r53, 0 cjmpne r103, r54, 0 cjmpne r103, r55, 0 cjmpne r103, r56, 0 cjmpne r103, r57, 0 cjmpne r103, r58, 0 cjmpne r103, r59, 0 cjmpne r103, r60, 0 cjmpne r103, r61, 0 cjmpne r103, r62, 0 cjmpne r103, r63, 0 cjmpne r103, r64, 0 cjmpne r103, r65, 0 cjmpne r103, r66, 0 cjmpne r103, r67, 0 cjmpne r103, r68, 0 cjmpne r103, r69, 0 cjmpne r103, r70, 0 cjmpne r103, r71, 0 cjmpne r103, r72, 0 cjmpne r103, r73, 0 cjmpne r103, r74, 0 cjmpne r103, r75, 0 cjmpne r103, r76, 0 cjmpne r103, r77, 0 cjmpne r103, r78, 0 cjmpne r103, r79, 0 cjmpne r103, r80, 0 cjmpne r103, r81, 0 cjmpne r103, r82, 0 cjmpne r103, r83, 0 cjmpne r103, r84, 0 cjmpne r103, r85, 0 cjmpne r103, r86, 0 cjmpne r103, r87, 0 cjmpne r103, r88, 0 cjmpne r103, r89, 0 cjmpne r103, r90, 0 cjmpne r103, r91, 0 cjmpne r103, r92, 0 cjmpne r103, r93, 0 cjmpne r103, r94, 0 cjmpne r103, r95, 0 cjmpne r103, r96, 0 cjmpne r103, r97, 0 cjmpne r103, r98, 0 cjmpne r103, r99, 0 cjmpne r103, r104, 0 cjmpne r103, r105, 0 cjmpne r103, r106, 0 cjmpne r103, r107, 0 cjmpne r103, r108, 0 cjmpne r103, r109, 0 cjmpne r103, r110, 0 cjmpne r103, r111, 0 cjmpne r103, r112, 0 cjmpne r103, r113, 0 cjmpne r103, r114, 0 cjmpne r103, r115, 0 cjmpne r103, r116, 0 cjmpne r103, r117, 0 cjmpne r103, r118, 0 cjmpne r103, r119, 0 cjmpne r103, r120, 0 cjmpne r103, r121, 0 cjmpne r103, r122, 0 cjmpne r103, r123, 0 cjmpne r103, r124, 0 cjmpne r103, r125, 0 cjmpne r103, r126, 0 cjmpne r103, r127, 0 cjmpne r103, r128, 0 cjmpne r103, r129, 0 cjmpne r103, r130, 0 cjmpne r103, r131, 0 cjmpne r103, r132, 0 cjmpne r103, r133, 0 cjmpne r103, r134, 0 cjmpne r103, r135, 0 cjmpne r103, r136, 0 cjmpne r103, r137, 0 cjmpne r103, r138, 0 cjmpne r103, r139, 0 cjmpne r103, r140, 0 cjmpne r103, r141, 0 cjmpne r103, r142, 0 cjmpne r103, r143, 0 cjmpne r103, r144, 0 cjmpne r103, r145, 0 cjmpne r103, r146, 0 cjmpne r103, r147, 0 cjmpne r103, r148, 0 cjmpne r103, r149, 0 cjmpne r103, r150, 0 cjmpne r103, r151, 0 cjmpne r103, r152, 0 cjmpne r103, r153, 0 cjmpne r103, r154, 0 cjmpne r103, r155, 0 cjmpne r103, r156, 0 cjmpne r103, r157, 0 cjmpne r103, r158, 0 cjmpne r103, r159, 0 cjmpne r103, r160, 0 cjmpne r103, r161, 0 cjmpne r103, r162, 0 cjmpne r103, r163, 0 cjmpne r103, r164, 0 cjmpne r103, r165, 0 cjmpne r103, r166, 0 cjmpne r103, r167, 0 cjmpne r103, r168, 0 cjmpne r103, r169, 0 cjmpne r103, r170, 0 cjmpne r103, r171, 0 cjmpne r103, r172, 0 cjmpne r103, r173, 0 cjmpne r103, r174, 0 cjmpne r103, r175, 0 cjmpne r103, r176, 0 cjmpne r103, r177, 0 cjmpne r103, r178, 0 cjmpne r103, r179, 0 cjmpne r103, r180, 0 cjmpne r103, r181, 0 cjmpne r103, r182, 0 cjmpne r103, r183, 0 cjmpne r103, r184, 0 cjmpne r103, r185, 0 cjmpne r103, r186, 0 cjmpne r103, r187, 0 cjmpne r103, r188, 0 cjmpne r103, r189, 0 cjmpne r103, r190, 0 cjmpne r103, r191, 0 cjmpne r103, r192, 0 cjmpne r103, r193, 0 cjmpne r103, r194, 0 cjmpne r103, r195, 0 cjmpne r103, r196, 0 cjmpne r103, r197, 0 cjmpne r103, r198, 0 cjmpne r103, r199, 0 cjmpne r103, r200, 0 cjmpne r103, r201, 0 cjmpne r103, r202, 0 cjmpne r103, r203, 0 cjmpne r103, r204, 0 cjmpne r103, r205, 0 cjmpne r103, r206, 0 cjmpne r103, r207, 0 cjmpne r103, r208, 0 cjmpne r103, r209, 0 cjmpne r103, r210, 0 cjmpne r103, r211, 0 cjmpne r103, r212, 0 cjmpne r103, r213, 0 cjmpne r103, r214, 0 cjmpne r103, r215, 0 cjmpne r103, r216, 0 cjmpne r103, r217, 0 cjmpne r103, r218, 0 cjmpne r103, r219, 0 cjmpne r103, r220, 0 cjmpne r103, r221, 0 cjmpne r103, r222, 0 cjmpne r103, r223, 0 cjmpne r103, r224, 0 cjmpne r103, r225, 0 cjmpne r103, r226, 0 cjmpne r103, r227, 0 cjmpne r103, r228, 0 cjmpne r103, r229, 0 cjmpne r103, r230, 0 cjmpne r103, r231, 0 cjmpne r103, r232, 0 cjmpne r103, r233, 0 cjmpne r103, r234, 0 cjmpne r103, r235, 0 cjmpne r103, r236, 0 cjmpne r103, r237, 0 cjmpne r103, r238, 0 cjmpne r103, r239, 0 cjmpne r103, r240, 0 cjmpne r103, r241, 0 cjmpne r103, r242, 0 cjmpne r103, r243, 0 cjmpne r103, r244, 0 cjmpne r103, r245, 0 cjmpne r103, r246, 0 cjmpne r103, r247, 0 cjmpne r103, r248, 0 cjmpne r103, r249, 0 cjmpne r103, r250, 0 cjmpne r103, r251, 0 cjmpne r103, r252, 0 cjmpne r103, r253, 0 cjmpne r103, r254, 0 cjmpne r103, r255, 0 lc r0, jump0 jmp r0 reg_is_nonzero: sw r100, 2 // failure: register is not initialized jmp r101 // Test different jump conditions jump0: lc r0, jump1 jmp r0 sw r100, 3 // failure: this instruction should not be reachable jmp r101 jump1: lc r0, jump2 mov r1, 100 cjmpne r0, r1, 101 sw r100, 4 // failure: required jump is not taken jmp r101 jump2: lc r0, jump3 cjmpe r0, r1, 100 sw r100, 5 // failure: required jump is not taken jmp r101 jump3: lc r0, jump4 cjmpuge r0, r1, 99 sw r100, 6 // failure: required jump is not taken jmp r101 jump4: lc r0, jump5 cjmpuge r0, r1, 100 sw r100, 7 // failure: required jump is not taken jmp r101 jump5: lc r0, jump6 cjmpug r0, r1, 99 sw r100, 8 // failure: required jump is not taken jmp r101 jump6: lc r0, jump7 cjmpsge r0, r1, -128 sw r100, 9 // failure: required jump is not taken jmp r101 jump7: lc r0, jump8 cjmpsge r0, r1, 100 sw r100, 10 // failure: required jump is not taken jmp r101 jump8: lc r0, jump9 cjmpsg r0, r1, 99 sw r100, 11 // failure: required jump is not taken jmp r101 jump9: lc r0, 2227053353 lc r1, 2933288161 cjmpug r102, r0, r1 lc r0, 3957963761 lc r1, 4048130130 cjmpug r102, r0, r1 lc r0, 1021028019 lc r1, 2570980487 cjmpug r102, r0, r1 lc r0, 470638116 lc r1, 3729241862 cjmpug r102, r0, r1 lc r0, 2794175299 lc r1, 3360494259 cjmpug r102, r0, r1 lc r0, 522532873 lc r1, 2103051039 cjmpug r102, r0, r1 lc r0, 994440598 lc r1, 4241216605 cjmpug r102, r0, r1 lc r0, 176753939 lc r1, 850320156 cjmpug r102, r0, r1 lc r0, 3998259744 lc r1, 4248205376 cjmpug r102, r0, r1 lc r0, 3695803806 lc r1, 4130490642 cjmpug r102, r0, r1 lc r0, -798605244 lc r1, -233549907 cjmpsg r102, r0, r1 lc r0, -1221540757 lc r1, 580991794 cjmpsg r102, r0, r1 lc r0, -1651432714 lc r1, -635466783 cjmpsg r102, r0, r1 lc r0, 43633328 lc r1, 1235055289 cjmpsg r102, r0, r1 lc r0, -2132159079 lc r1, -981565396 cjmpsg r102, r0, r1 lc r0, -859182414 lc r1, -697843885 cjmpsg r102, r0, r1 lc r0, 1720638509 lc r1, 2127959231 cjmpsg r102, r0, r1 lc r0, -1888878751 lc r1, 1230499715 cjmpsg r102, r0, r1 lc r0, 517066081 lc r1, 1914084509 cjmpsg r102, r0, r1 lc r0, -266475918 lc r1, 2001358724 cjmpsg r102, r0, r1 mov r1, 100 cjmpe r102, r1, 101 cjmpne r102, r1, 100 cjmpuge r102, r1, 101 cjmpug r102, r1, 100 cjmpug r102, r1, 101 cjmpsge r102, r1, 101 cjmpsg r102, r1, 101 cjmpsg r102, r1, 100 cjmpsg r102, -128, r1 lc r0, jump10 jmp r0 bad_jump: sw r100, 12 // failure: jump should not be taken jmp r101 jump10: // Copy itself to another portion of memory mov r0, 0 // source pointer lc r1, 0x00008000 // destination pointer lc r2, halt@2 // size of block to copy, in bytes lc r32, copy_loop copy_loop: lw r3, r0 sw r1, r3 add r0, r0, 4 add r1, r1, 4 cjmpul r32, r0, r2 // Calculate sum of program body in a post-condition loop mov r0, 0 // pointer mov r16, 0 // sum lc r32, sum_loop sum_loop: lw r1, r0 add r16, r16, r1 add r0, r0, 4 cjmpul r32, r0, r2 // Calculate sum of copied program body with negative sign, in a pre-condition loop lc r0, 0x00008000 // pointer add r2, r0, r2 // end pointer mov r17, 0 // sum lc r32, sum2_loop lc r33, sum2_end sum2_loop: cjmpuge r33, r0, r2 lw r1, r0 sub r17, r17, r1 add r0, r0, 4 jmp r32 sw r100, 13 // failure: this instruction should not be reachable jmp r101 sum2_end: // Check that sums are equal (but with opposite signs) add r0, r16, r17 // r0 should be zero now lc r32, success cjmpe r32, r0, 0 sw r100, 14 // failure: results do not match jmp r101 success: sw r100, 1 halt: hlt jmp r101
SECTION rodata_font_fzx PUBLIC _ff_dkud1_Sinclair _ff_dkud1_Sinclair: BINARY "font/fzx/fonts/dkud1/Sinclair/sinclair.fzx"
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: MOUSE DRIVER -- Microsoft Bus Mouse (non-8255 version) device-dependent code FILE: msbus.asm AUTHOR: Adam de Boor ROUTINES: Name Description ---- ----------- MouseDevInit Initialize device MouseDevExit Exit device REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 3/89 Initial version Adam 3/24/89 Converted to new driver format DESCRIPTION: Input for the Microsoft Bus Mouse. Accesses the device directly every clock tick, reading the state of the counters and generating an event if they're non-zero. There appear to be two versions of the microsoft bus mouse. One is based on the 8255 chip and can be run with the logibus driver. A second-generation version, however, uses a custom chip (and precious little else) whose registers etc. I've attempted to reverse-engineer. $Id: msbus.asm,v 1.1 97/04/18 11:48:01 newdeal Exp $ ------------------------------------------------------------------------------@ MOUSE_NUM_BUTTONS = 2 MOUSE_SEPARATE_INIT = 1 ; We use a separate Init resource include ../mouseCommon.asm include timer.def ; ; Additional error code(s) ; MOUSE_REPORT_RATE_ZERO enum FatalErrors ;------------------------------------------------------------------------------ ; ; BUS MOUSE CONSTANTS ; ;------------------------------------------------------------------------------ MOUSE_ADDR_PORT = 23ch ; "Address" port, similar to that used on a ; 6845. Contains the register number to be ; accessed via MOUSE_DATA_PORT. Known ; registers are: ; 0 buttons, et al: ; bit 0 right ; bit 1 ? ; bit 2 left ; bit 3 <used> ; bit 4 ? ; bit 5 <used w/bit 2> ; bit 6 ; bit 7 ; 1 deltaX (two's complement) ; 2 deltaY ; 7 control ; bit 0 ; bit 1 ; bit 2 ; bit 3 interrupt enable ; bit 4 ; bit 5 latch counters ; bit 6 ; bit 7 disable mouse MOUSE_STATUS = 0 MOUSE_DELTAX = 1 MOUSE_DELTAY = 2 MOUSE_CONTROL = 7 MOUSE_DATA_PORT = 23dh ; ; Register definitions ; MouseStatus record :5, MMS_LEFT:1, :1, MMS_RIGHT:1 MouseControl record MMC_DISABLE:1, :1, MMC_LATCH:1, :1, MMC_IEN:1, :3 ;------------------------------------------------------------------------------ ; DEVICE STRINGS ;------------------------------------------------------------------------------ MouseExtendedInfoSeg segment lmem LMEM_TYPE_GENERAL mouseExtendedInfo DriverExtendedInfoTable < {}, ; lmem header added by Esp length mouseNameTable, ; Number of supported devices offset mouseNameTable, offset mouseInfoTable > mouseNameTable lptr.char newMSBus lptr.char 0 LocalDefString newMSBus <'Microsoft Bus Mouse (circular plug)', 0> ; no special flags for these, as they're not serial, and we don't need an ; interrupt for them... mouseInfoTable MouseExtendedInfo \ 0 ; newMSBus MouseExtendedInfoSeg ends ;------------------------------------------------------------------------------ ; Variables ;------------------------------------------------------------------------------ idata segment ; ; Store the handle of the timer used to get calls every tick ; timerHandle word reentrantFlag byte 1 ; Kind of like a semaphore. If ; 1, we can go ahead & poll the ; mouse. If not, we skip the poll. ; Is decremented on entry to ; MouseDevHandler, inc'd on exit. ; Used to keep us from performing ; reentrant reads of the mouse. initIEN MouseControl ; Initial control register so we can ; restore IEN to its initial state ; ; Table of available rates. Must be in ascending order. ; mouseRates byte 10, 12, 15, 20, 30, 60, 255 MOUSE_NUM_RATES equ size mouseRates ; ; Clock ticks for timer corresponding to each rate. note that "continuous" ; is still 60 times/second only. ; mouseTicks byte 6, 5, 4, 3, 2, 1, 1 idata ends MOUSE_DELAY = 1 ; # ticks between polls Init segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MouseDevInit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initialize the device CALLED BY: MouseInit PASS: es=ds=dgroup RETURN: carry - set on error DESTROYED: di PSEUDO CODE/STRATEGY: Start our polling timer KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- adam 3/10/89 Initial Revision %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MouseDevInit proc far uses dx, ax, cx, si, bx .enter ; ; Disable interrupts for the mouse while we're operating. ; INT_OFF mov dx, MOUSE_ADDR_PORT mov al, MOUSE_CONTROL out dx, al inc dx in al, dx mov ds:[initIEN], al andnf al, not (mask MMC_IEN or mask MMC_DISABLE) out dx, al INT_ON ; ; Turn on the timer so we read the mouse... ; mov ax,TIMER_ROUTINE_CONTINUAL mov bx, segment Resident mov si,offset Resident:MouseDevHandler mov cx,MOUSE_DELAY mov di,cx call TimerStart mov ds:[timerHandle],bx ; ; Change ownership to us so the timer stays while we do ; mov ax, handle 0 call HandleModifyOwner clc ; no error .leave ret MouseDevInit endp Init ends Resident segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MouseDevExit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Clean up after ourselves CALLED BY: MouseExit PASS: Nothing RETURN: carry - set on error DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- adam 6/8/88 Initial Revision %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MouseDevExit proc far clr bx xchg bx,ds:[timerHandle] tst bx ; were we initialized? jz done ; no clr ax ; 0 => continual call TimerStop ; ; Restore interrupts to their initial condition. ; INT_OFF mov dx, MOUSE_ADDR_PORT ; point to control register mov al, MOUSE_CONTROL out dx, al inc dx in al, dx ; fetch current status mov ah, ds:[initIEN] andnf ah, mask MMC_IEN or mask MMC_DISABLE or al, ah ; merge in initial IEN and ; DISABLE bits out dx, al INT_ON done: clc ; No errors ret MouseDevExit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MouseSetDevice %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Turn on the device. CALLED BY: DRE_SET_DEVICE PASS: dx:si = pointer to null-terminated device name string RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: Just call the device-initialization routine in Init KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 9/27/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MouseSetDevice proc near .enter call MouseDevInit .leave ret MouseSetDevice endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MouseTestDevice %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See if the device specified is present. CALLED BY: DRE_TEST_DEVICE PASS: dx:si = null-terminated name of device (ignored, here) RETURN: ax = DevicePresent enum carry set if string invalid, clear otherwise DESTROYED: di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 9/27/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MouseTestDevice proc near uses dx .enter ; ; Disable interrupts for the mouse while we're operating. ; INT_OFF ; ; First see if the mouse be out there by setting the ; address port to 1. If it stays 1, assume the mouse be ; out there. This should rule out logibus... ; mov dx, MOUSE_ADDR_PORT mov al, 1 out dx, al jmp $+2 in al, dx cmp al, 1 jnz absent mov ax, DP_PRESENT done: INT_ON clc .leave ret absent: mov ax, DP_NOT_PRESENT jmp done MouseTestDevice endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MouseDevSetRate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the report rate for the mouse. For the bus mouse, running off the timer interrupt, this can't be more than 60 reports a second. There's not a whole lot of point in doing this, of course, since we can only do things like 60, 30, 20, 15, 12... All but 60 produce a strange double-mouse effect (sort of like a binary star). CALLED BY: MouseSetRate PASS: DS = dgroup CX = index of desired rate RETURN: Nothing DESTROYED: AX PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 10/12/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MouseDevSetRate proc far push bx, si, cx, dx ; ; Shut off the timer first so we can restart it with the ; (potentially) different rate. ; mov bx, ds:[timerHandle] clr ax ; 0 => continual call TimerStop ; ; Set the interval into CX (initial delay) and DX (interval), ; point BX:SI at the handler and start the timer going again. ; mov si, cx mov cl, ds:mouseTicks[si] mov dx, cx mov bx, segment Resident mov si, offset Resident:MouseDevHandler mov ax, TIMER_ROUTINE_CONTINUAL call TimerStart ; ; Save the handle for exit etc. ; mov ds:[timerHandle], bx pop bx, si, cx, dx clc ret MouseDevSetRate endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MouseDevHandler %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: mouse handler routine CALLED BY: Timer interrupt PASS: RETURN: Nothing DESTROYED: May nuke AX, BX, CX, DX PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 3/10/89 Initial Revision %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MouseDevHandler proc far push si, di, ds ; Needed for event sending mov si, dgroup mov ds, si dec ds:[reentrantFlag] ; enter "semaphore" js MDH_exit ; as long as we aren't ; re-entering this code, ; continue. ; ; Faster to mov dx, si than mov dx, MOUSE_CTRL_PORT. Since ; we need to preserve SI and DI anyway, might as well use them ; for something... ; mov si, MOUSE_ADDR_PORT mov di, MOUSE_DATA_PORT addr_port equ <si> data_port equ <di> ; ; Latch counters and buttons ; mov al, MOUSE_CONTROL mov dx, addr_port out dx, al mov dx, data_port in al, dx andnf al, not mask MMC_LATCH ; Clear the LATCH bit in ; case it's already set, ; for whatever reason. mov bl, al ornf al, mask MMC_LATCH out dx, al ; ; Fetch deltaX ; mov al, MOUSE_DELTAX mov dx, addr_port out dx, al mov dx, data_port in al, dx cbw mov cx, ax ; ; Fetch deltaX ; mov al, MOUSE_DELTAY mov dx, addr_port out dx, al mov dx, data_port in al, dx cbw push ax ; Save for transfer to DX ; ; Fetch buttons ; mov al, MOUSE_STATUS mov dx, addr_port out dx, al mov dx, data_port in al, dx ; ; Clear all but the two buttons the mouse has (they're in the ; proper positions already), shift the buttons to BH for ; M.S.E., then invert all the bits, since M.S.E. wants 0 => ; down. This ensures that all unsupported buttons are ; considered up at all times. ; and al, mask MOUSE_B0 or mask MOUSE_B2 mov bh, al not bh ; ; Release counters ; mov al, MOUSE_CONTROL mov dx, addr_port out dx, al mov al, bl ; recover control bits mov dx, data_port out dx, al pop dx ; recover deltaY call MouseSendEvents MDH_exit: inc ds:[reentrantFlag] ; we're out of here pop si, di, ds ret MouseDevHandler endp Resident ends end
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. The # Material contains proprietary information of Intel or its suppliers and # licensors. The Material is protected by worldwide copyright laws and treaty # provisions. No part of the Material may be used, copied, reproduced, # modified, published, uploaded, posted, transmitted, distributed or disclosed # in any way without Intel's prior express written permission. No license under # any patent, copyright or other intellectual property rights in the Material # is granted to or conferred upon you, either expressly, by implication, # inducement, estoppel or otherwise. Any license under such intellectual # property rights must be express and approved by Intel in writing. # # Unless otherwise agreed by Intel in writing, you may not remove or alter this # notice or any other notice embedded in Materials by Intel or Intel's # suppliers or licensors in any way. # # # If this software was obtained under the Apache License, Version 2.0 (the # "License"), the following terms apply: # # 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. ############################################################################### .section .note.GNU-stack,"",%progbits .text p384r1_data: _prime384r1: .long 0xFFFFFFFF, 0x0, 0x0, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFF .long 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF .p2align 5, 0x90 .globl h9_add_384 .type h9_add_384, @function h9_add_384: movl (%esi), %eax addl (%ebx), %eax movl %eax, (%edi) movl (4)(%esi), %eax adcl (4)(%ebx), %eax movl %eax, (4)(%edi) movl (8)(%esi), %eax adcl (8)(%ebx), %eax movl %eax, (8)(%edi) movl (12)(%esi), %eax adcl (12)(%ebx), %eax movl %eax, (12)(%edi) movl (16)(%esi), %eax adcl (16)(%ebx), %eax movl %eax, (16)(%edi) movl (20)(%esi), %eax adcl (20)(%ebx), %eax movl %eax, (20)(%edi) movl (24)(%esi), %eax adcl (24)(%ebx), %eax movl %eax, (24)(%edi) movl (28)(%esi), %eax adcl (28)(%ebx), %eax movl %eax, (28)(%edi) movl (32)(%esi), %eax adcl (32)(%ebx), %eax movl %eax, (32)(%edi) movl (36)(%esi), %eax adcl (36)(%ebx), %eax movl %eax, (36)(%edi) movl (40)(%esi), %eax adcl (40)(%ebx), %eax movl %eax, (40)(%edi) movl (44)(%esi), %eax adcl (44)(%ebx), %eax movl %eax, (44)(%edi) mov $(0), %eax adc $(0), %eax ret .Lfe1: .size h9_add_384, .Lfe1-(h9_add_384) .p2align 5, 0x90 .globl h9_sub_384 .type h9_sub_384, @function h9_sub_384: movl (%esi), %eax subl (%ebx), %eax movl %eax, (%edi) movl (4)(%esi), %eax sbbl (4)(%ebx), %eax movl %eax, (4)(%edi) movl (8)(%esi), %eax sbbl (8)(%ebx), %eax movl %eax, (8)(%edi) movl (12)(%esi), %eax sbbl (12)(%ebx), %eax movl %eax, (12)(%edi) movl (16)(%esi), %eax sbbl (16)(%ebx), %eax movl %eax, (16)(%edi) movl (20)(%esi), %eax sbbl (20)(%ebx), %eax movl %eax, (20)(%edi) movl (24)(%esi), %eax sbbl (24)(%ebx), %eax movl %eax, (24)(%edi) movl (28)(%esi), %eax sbbl (28)(%ebx), %eax movl %eax, (28)(%edi) movl (32)(%esi), %eax sbbl (32)(%ebx), %eax movl %eax, (32)(%edi) movl (36)(%esi), %eax sbbl (36)(%ebx), %eax movl %eax, (36)(%edi) movl (40)(%esi), %eax sbbl (40)(%ebx), %eax movl %eax, (40)(%edi) movl (44)(%esi), %eax sbbl (44)(%ebx), %eax movl %eax, (44)(%edi) mov $(0), %eax adc $(0), %eax ret .Lfe2: .size h9_sub_384, .Lfe2-(h9_sub_384) .p2align 5, 0x90 .globl h9_shl_384 .type h9_shl_384, @function h9_shl_384: movl (44)(%esi), %eax movdqu (32)(%esi), %xmm3 movdqu (16)(%esi), %xmm2 movdqu (%esi), %xmm1 movdqa %xmm3, %xmm4 palignr $(8), %xmm2, %xmm4 psllq $(1), %xmm3 psrlq $(63), %xmm4 por %xmm4, %xmm3 movdqu %xmm3, (32)(%edi) movdqa %xmm2, %xmm4 palignr $(8), %xmm1, %xmm4 psllq $(1), %xmm2 psrlq $(63), %xmm4 por %xmm4, %xmm2 movdqu %xmm2, (16)(%edi) movdqa %xmm1, %xmm4 pslldq $(8), %xmm4 psllq $(1), %xmm1 psrlq $(63), %xmm4 por %xmm4, %xmm1 movdqu %xmm1, (%edi) shr $(31), %eax ret .Lfe3: .size h9_shl_384, .Lfe3-(h9_shl_384) .p2align 5, 0x90 .globl h9_shr_384 .type h9_shr_384, @function h9_shr_384: movdqu (%esi), %xmm3 movdqu (16)(%esi), %xmm2 movdqu (32)(%esi), %xmm1 movdqa %xmm2, %xmm4 palignr $(8), %xmm3, %xmm4 psrlq $(1), %xmm3 psllq $(63), %xmm4 por %xmm4, %xmm3 movdqu %xmm3, (%edi) movdqa %xmm1, %xmm4 palignr $(8), %xmm2, %xmm4 psrlq $(1), %xmm2 psllq $(63), %xmm4 por %xmm4, %xmm2 movdqu %xmm2, (16)(%edi) movdqa %xmm0, %xmm4 palignr $(8), %xmm1, %xmm4 psrlq $(1), %xmm1 psllq $(63), %xmm4 por %xmm4, %xmm1 movdqu %xmm1, (32)(%edi) ret .Lfe4: .size h9_shr_384, .Lfe4-(h9_shr_384) .p2align 5, 0x90 .globl h9_p384r1_add .type h9_p384r1_add, @function h9_p384r1_add: push %ebp mov %esp, %ebp push %ebx push %esi push %edi mov %esp, %eax sub $(52), %esp and $(-16), %esp movl %eax, (48)(%esp) movl (8)(%ebp), %edi movl (12)(%ebp), %esi movl (16)(%ebp), %ebx call h9_add_384 mov %eax, %edx lea (%esp), %edi movl (8)(%ebp), %esi call .L__0000gas_5 .L__0000gas_5: pop %ebx sub $(.L__0000gas_5-p384r1_data), %ebx lea ((_prime384r1-p384r1_data))(%ebx), %ebx call h9_sub_384 lea (%esp), %esi movl (8)(%ebp), %edi sub %eax, %edx cmovne %edi, %esi movdqu (%esi), %xmm0 movdqu (16)(%esi), %xmm1 movdqu (32)(%esi), %xmm2 movdqu %xmm0, (%edi) movdqu %xmm1, (16)(%edi) movdqu %xmm2, (32)(%edi) mov (48)(%esp), %esp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe5: .size h9_p384r1_add, .Lfe5-(h9_p384r1_add) .p2align 5, 0x90 .globl h9_p384r1_sub .type h9_p384r1_sub, @function h9_p384r1_sub: push %ebp mov %esp, %ebp push %ebx push %esi push %edi mov %esp, %eax sub $(52), %esp and $(-16), %esp movl %eax, (48)(%esp) movl (8)(%ebp), %edi movl (12)(%ebp), %esi movl (16)(%ebp), %ebx call h9_sub_384 mov %eax, %edx lea (%esp), %edi movl (8)(%ebp), %esi call .L__0001gas_6 .L__0001gas_6: pop %ebx sub $(.L__0001gas_6-p384r1_data), %ebx lea ((_prime384r1-p384r1_data))(%ebx), %ebx call h9_add_384 lea (%esp), %esi movl (8)(%ebp), %edi test %edx, %edx cmove %edi, %esi movdqu (%esi), %xmm0 movdqu (16)(%esi), %xmm1 movdqu (32)(%esi), %xmm2 movdqu %xmm0, (%edi) movdqu %xmm1, (16)(%edi) movdqu %xmm2, (32)(%edi) mov (48)(%esp), %esp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe6: .size h9_p384r1_sub, .Lfe6-(h9_p384r1_sub) .p2align 5, 0x90 .globl h9_p384r1_neg .type h9_p384r1_neg, @function h9_p384r1_neg: push %ebp mov %esp, %ebp push %ebx push %esi push %edi mov %esp, %eax sub $(52), %esp and $(-16), %esp movl %eax, (48)(%esp) movl (8)(%ebp), %edi movl (12)(%ebp), %esi mov $(0), %eax subl (%esi), %eax movl %eax, (%edi) mov $(0), %eax sbbl (4)(%esi), %eax movl %eax, (4)(%edi) mov $(0), %eax sbbl (8)(%esi), %eax movl %eax, (8)(%edi) mov $(0), %eax sbbl (12)(%esi), %eax movl %eax, (12)(%edi) mov $(0), %eax sbbl (16)(%esi), %eax movl %eax, (16)(%edi) mov $(0), %eax sbbl (20)(%esi), %eax movl %eax, (20)(%edi) mov $(0), %eax sbbl (24)(%esi), %eax movl %eax, (24)(%edi) mov $(0), %eax sbbl (28)(%esi), %eax movl %eax, (28)(%edi) mov $(0), %eax sbbl (32)(%esi), %eax movl %eax, (32)(%edi) mov $(0), %eax sbbl (36)(%esi), %eax movl %eax, (36)(%edi) mov $(0), %eax sbbl (40)(%esi), %eax movl %eax, (40)(%edi) mov $(0), %eax sbbl (44)(%esi), %eax movl %eax, (44)(%edi) sbb %edx, %edx lea (%esp), %edi movl (8)(%ebp), %esi call .L__0002gas_7 .L__0002gas_7: pop %ebx sub $(.L__0002gas_7-p384r1_data), %ebx lea ((_prime384r1-p384r1_data))(%ebx), %ebx call h9_add_384 lea (%esp), %esi movl (8)(%ebp), %edi test %edx, %edx cmove %edi, %esi movdqu (%esi), %xmm0 movdqu (16)(%esi), %xmm1 movdqu (32)(%esi), %xmm2 movdqu %xmm0, (%edi) movdqu %xmm1, (16)(%edi) movdqu %xmm2, (32)(%edi) mov (48)(%esp), %esp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe7: .size h9_p384r1_neg, .Lfe7-(h9_p384r1_neg) .p2align 5, 0x90 .globl h9_p384r1_mul_by_2 .type h9_p384r1_mul_by_2, @function h9_p384r1_mul_by_2: push %ebp mov %esp, %ebp push %ebx push %esi push %edi mov %esp, %eax sub $(52), %esp and $(-16), %esp movl %eax, (48)(%esp) lea (%esp), %edi movl (12)(%ebp), %esi call h9_shl_384 mov %eax, %edx mov %edi, %esi movl (8)(%ebp), %edi call .L__0003gas_8 .L__0003gas_8: pop %ebx sub $(.L__0003gas_8-p384r1_data), %ebx lea ((_prime384r1-p384r1_data))(%ebx), %ebx call h9_sub_384 sub %eax, %edx cmove %edi, %esi movdqu (%esi), %xmm0 movdqu (16)(%esi), %xmm1 movdqu (32)(%esi), %xmm2 movdqu %xmm0, (%edi) movdqu %xmm1, (16)(%edi) movdqu %xmm2, (32)(%edi) mov (48)(%esp), %esp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe8: .size h9_p384r1_mul_by_2, .Lfe8-(h9_p384r1_mul_by_2) .p2align 5, 0x90 .globl h9_p384r1_mul_by_3 .type h9_p384r1_mul_by_3, @function h9_p384r1_mul_by_3: push %ebp mov %esp, %ebp push %ebx push %esi push %edi mov %esp, %eax sub $(104), %esp and $(-16), %esp movl %eax, (100)(%esp) call .L__0004gas_9 .L__0004gas_9: pop %eax sub $(.L__0004gas_9-p384r1_data), %eax lea ((_prime384r1-p384r1_data))(%eax), %eax movl %eax, (96)(%esp) lea (%esp), %edi movl (12)(%ebp), %esi call h9_shl_384 mov %eax, %edx mov %edi, %esi lea (48)(%esp), %edi mov (96)(%esp), %ebx call h9_sub_384 sub %eax, %edx cmove %edi, %esi movdqu (%esi), %xmm0 movdqu (16)(%esi), %xmm1 movdqu (32)(%esi), %xmm2 movdqu %xmm0, (%edi) movdqu %xmm1, (16)(%edi) movdqu %xmm2, (32)(%edi) mov %edi, %esi movl (12)(%ebp), %ebx call h9_add_384 mov %eax, %edx movl (8)(%ebp), %edi mov (96)(%esp), %ebx call h9_sub_384 sub %eax, %edx cmove %edi, %esi movdqu (%esi), %xmm0 movdqu (16)(%esi), %xmm1 movdqu (32)(%esi), %xmm2 movdqu %xmm0, (%edi) movdqu %xmm1, (16)(%edi) movdqu %xmm2, (32)(%edi) mov (100)(%esp), %esp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe9: .size h9_p384r1_mul_by_3, .Lfe9-(h9_p384r1_mul_by_3) .p2align 5, 0x90 .globl h9_p384r1_div_by_2 .type h9_p384r1_div_by_2, @function h9_p384r1_div_by_2: push %ebp mov %esp, %ebp push %ebx push %esi push %edi mov %esp, %eax sub $(52), %esp and $(-16), %esp movl %eax, (48)(%esp) lea (%esp), %edi movl (12)(%ebp), %esi call .L__0005gas_10 .L__0005gas_10: pop %ebx sub $(.L__0005gas_10-p384r1_data), %ebx lea ((_prime384r1-p384r1_data))(%ebx), %ebx call h9_add_384 mov $(0), %edx movl (%esi), %ecx and $(1), %ecx cmovne %edi, %esi cmove %edx, %eax movd %eax, %xmm0 movl (8)(%ebp), %edi call h9_shr_384 mov (48)(%esp), %esp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe10: .size h9_p384r1_div_by_2, .Lfe10-(h9_p384r1_div_by_2) .p2align 5, 0x90 .globl h9_p384r1_mul_mont_slm .type h9_p384r1_mul_mont_slm, @function h9_p384r1_mul_mont_slm: push %ebp mov %esp, %ebp push %ebx push %esi push %edi push %ebp mov %esp, %eax sub $(68), %esp and $(-16), %esp movl %eax, (64)(%esp) pxor %mm0, %mm0 movq %mm0, (%esp) movq %mm0, (8)(%esp) movq %mm0, (16)(%esp) movq %mm0, (24)(%esp) movq %mm0, (32)(%esp) movq %mm0, (40)(%esp) movq %mm0, (48)(%esp) movl (8)(%ebp), %edi movl (12)(%ebp), %esi movl (16)(%ebp), %ebp movl %edi, (52)(%esp) movl %esi, (56)(%esp) movl %ebp, (60)(%esp) mov $(12), %eax movd (4)(%esi), %mm1 movd (8)(%esi), %mm2 movd (12)(%esi), %mm3 movd (16)(%esi), %mm4 .p2align 5, 0x90 .Lmmul_loopgas_11: movd %eax, %mm7 movl (%ebp), %edx movl (%esi), %eax movd %edx, %mm0 add $(4), %ebp movl %ebp, (60)(%esp) pmuludq %mm0, %mm1 pmuludq %mm0, %mm2 mul %edx addl (%esp), %eax adc $(0), %edx pmuludq %mm0, %mm3 pmuludq %mm0, %mm4 movd %mm1, %ecx psrlq $(32), %mm1 add %edx, %ecx movd %mm1, %edx adc $(0), %edx addl (4)(%esp), %ecx movd (20)(%esi), %mm1 adc $(0), %edx movd %mm2, %ebx psrlq $(32), %mm2 add %edx, %ebx movd %mm2, %edx adc $(0), %edx addl (8)(%esp), %ebx movd (24)(%esi), %mm2 adc $(0), %edx pmuludq %mm0, %mm1 pmuludq %mm0, %mm2 movd %mm3, %ebp psrlq $(32), %mm3 add %edx, %ebp movd %mm3, %edx adc $(0), %edx addl (12)(%esp), %ebp movd (28)(%esi), %mm3 adc $(0), %edx movd %mm4, %edi psrlq $(32), %mm4 add %edx, %edi movd %mm4, %edx adc $(0), %edx addl (16)(%esp), %edi movd (32)(%esi), %mm4 adc $(0), %edx pmuludq %mm0, %mm3 pmuludq %mm0, %mm4 add %eax, %ecx movl %ecx, (%esp) mov %eax, %ecx adc $(0), %ebx movl %ebx, (4)(%esp) sbb $(0), %eax sub %eax, %ebp movl %ebp, (8)(%esp) sbb %ecx, %edi mov $(0), %eax movl %edi, (12)(%esp) movd %ecx, %mm6 adc $(0), %eax movd %mm1, %ecx psrlq $(32), %mm1 add %edx, %ecx movd %mm1, %edx adc $(0), %edx addl (20)(%esp), %ecx movd (36)(%esi), %mm1 adc $(0), %edx movd %mm2, %ebx psrlq $(32), %mm2 add %edx, %ebx movd %mm2, %edx adc $(0), %edx addl (24)(%esp), %ebx movd (40)(%esi), %mm2 adc $(0), %edx pmuludq %mm0, %mm1 pmuludq %mm0, %mm2 movd %mm3, %ebp psrlq $(32), %mm3 add %edx, %ebp movd %mm3, %edx adc $(0), %edx addl (28)(%esp), %ebp movd (44)(%esi), %mm3 adc $(0), %edx pmuludq %mm0, %mm3 movd %mm4, %edi psrlq $(32), %mm4 add %edx, %edi movd %mm4, %edx adc $(0), %edx addl (32)(%esp), %edi adc $(0), %edx sub %eax, %ecx movd %mm6, %eax movl %ecx, (16)(%esp) sbb $(0), %ebx movl %ebx, (20)(%esp) sbb $(0), %ebp movl %ebp, (24)(%esp) sbb $(0), %edi mov $(0), %eax movl %edi, (28)(%esp) adc $(0), %eax movd %mm1, %ecx psrlq $(32), %mm1 add %edx, %ecx movd %mm1, %edx adc $(0), %edx addl (36)(%esp), %ecx adc $(0), %edx movd %mm2, %ebx psrlq $(32), %mm2 add %edx, %ebx movd %mm2, %edx adc $(0), %edx addl (40)(%esp), %ebx adc $(0), %edx movd %mm3, %ebp psrlq $(32), %mm3 add %edx, %ebp movd %mm3, %edx adc $(0), %edx addl (44)(%esp), %ebp adc $(0), %edx sub %eax, %ecx movl %ecx, (32)(%esp) movd %mm6, %ecx sbb $(0), %ebx movl %ebx, (36)(%esp) sbb $(0), %ebp movl %ebp, (40)(%esp) sbb $(0), %ecx mov $(0), %ebx movd %mm7, %eax addl (48)(%esp), %edx adc $(0), %ebx add %ecx, %edx adc $(0), %ebx movl %edx, (44)(%esp) movl %ebx, (48)(%esp) sub $(1), %eax movd (4)(%esi), %mm1 movd (8)(%esi), %mm2 movd (12)(%esi), %mm3 movd (16)(%esi), %mm4 jz .Lexit_mmul_loopgas_11 movl (60)(%esp), %ebp jmp .Lmmul_loopgas_11 .Lexit_mmul_loopgas_11: emms mov (52)(%esp), %edi lea (%esp), %esi call .L__0006gas_11 .L__0006gas_11: pop %ebx sub $(.L__0006gas_11-p384r1_data), %ebx lea ((_prime384r1-p384r1_data))(%ebx), %ebx call h9_sub_384 movl (48)(%esp), %edx sub %eax, %edx cmove %edi, %esi movdqu (%esi), %xmm0 movdqu (16)(%esi), %xmm1 movdqu (32)(%esi), %xmm2 movdqu %xmm0, (%edi) movdqu %xmm1, (16)(%edi) movdqu %xmm2, (32)(%edi) mov (64)(%esp), %esp pop %ebp pop %edi pop %esi pop %ebx pop %ebp ret .Lfe11: .size h9_p384r1_mul_mont_slm, .Lfe11-(h9_p384r1_mul_mont_slm) .p2align 5, 0x90 .globl h9_p384r1_sqr_mont_slm .type h9_p384r1_sqr_mont_slm, @function h9_p384r1_sqr_mont_slm: push %ebp mov %esp, %ebp push %esi push %edi movl (12)(%ebp), %esi movl (8)(%ebp), %edi push %esi push %esi push %edi call h9_p384r1_mul_mont_slm add $(12), %esp pop %edi pop %esi pop %ebp ret .Lfe12: .size h9_p384r1_sqr_mont_slm, .Lfe12-(h9_p384r1_sqr_mont_slm) .p2align 5, 0x90 .globl h9_p384r1_mred .type h9_p384r1_mred, @function h9_p384r1_mred: push %ebp mov %esp, %ebp push %ebx push %esi push %edi movl (12)(%ebp), %esi mov $(12), %ecx xor %edx, %edx .p2align 5, 0x90 .Lmred_loopgas_13: movl (%esi), %eax movl (4)(%esi), %ebx add %eax, %ebx movl %ebx, (4)(%esi) movl (8)(%esi), %ebx adc $(0), %ebx movl %ebx, (8)(%esi) movl (12)(%esi), %ebx sbb $(0), %eax sub %eax, %ebx movl (%esi), %eax movl %ebx, (12)(%esi) movl (16)(%esi), %ebx sbb %eax, %ebx movl %ebx, (16)(%esi) movl (20)(%esi), %ebx sbb $(0), %ebx movl %ebx, (20)(%esi) movl (24)(%esi), %ebx sbb $(0), %ebx movl %ebx, (24)(%esi) movl (28)(%esi), %ebx sbb $(0), %ebx movl %ebx, (28)(%esi) movl (32)(%esi), %ebx sbb $(0), %ebx movl %ebx, (32)(%esi) movl (36)(%esi), %ebx sbb $(0), %ebx movl %ebx, (36)(%esi) movl (40)(%esi), %ebx sbb $(0), %ebx movl %ebx, (40)(%esi) movl (44)(%esi), %ebx sbb $(0), %ebx movl %ebx, (44)(%esi) movl (48)(%esi), %ebx sbb $(0), %eax add %edx, %eax mov $(0), %edx adc $(0), %edx add %eax, %ebx movl %ebx, (48)(%esi) adc $(0), %edx lea (4)(%esi), %esi sub $(1), %ecx jnz .Lmred_loopgas_13 movl (8)(%ebp), %edi call .L__0007gas_13 .L__0007gas_13: pop %ebx sub $(.L__0007gas_13-p384r1_data), %ebx lea ((_prime384r1-p384r1_data))(%ebx), %ebx call h9_sub_384 sub %eax, %edx cmove %edi, %esi movdqu (%esi), %xmm0 movdqu (16)(%esi), %xmm1 movdqu (32)(%esi), %xmm2 movdqu %xmm0, (%edi) movdqu %xmm1, (16)(%edi) movdqu %xmm2, (32)(%edi) pop %edi pop %esi pop %ebx pop %ebp ret .Lfe13: .size h9_p384r1_mred, .Lfe13-(h9_p384r1_mred) .p2align 5, 0x90 .globl h9_p384r1_select_pp_w5 .type h9_p384r1_select_pp_w5, @function h9_p384r1_select_pp_w5: push %ebp mov %esp, %ebp push %esi push %edi pxor %xmm0, %xmm0 movl (8)(%ebp), %edi movl (12)(%ebp), %esi movl (16)(%ebp), %eax movd %eax, %xmm7 pshufd $(0), %xmm7, %xmm7 mov $(1), %edx movd %edx, %xmm6 pshufd $(0), %xmm6, %xmm6 movdqa %xmm0, (%edi) movdqa %xmm0, (16)(%edi) movdqa %xmm0, (32)(%edi) movdqa %xmm0, (48)(%edi) movdqa %xmm0, (64)(%edi) movdqa %xmm0, (80)(%edi) movdqa %xmm0, (96)(%edi) movdqa %xmm0, (112)(%edi) movdqa %xmm0, (128)(%edi) movdqa %xmm6, %xmm5 mov $(16), %ecx .p2align 5, 0x90 .Lselect_loopgas_14: movdqa %xmm5, %xmm4 pcmpeqd %xmm7, %xmm4 movdqa %xmm4, %xmm0 pand (%esi), %xmm0 por (%edi), %xmm0 movdqa %xmm0, (%edi) movdqa %xmm4, %xmm1 pand (16)(%esi), %xmm1 por (16)(%edi), %xmm1 movdqa %xmm1, (16)(%edi) movdqa %xmm4, %xmm2 pand (32)(%esi), %xmm2 por (32)(%edi), %xmm2 movdqa %xmm2, (32)(%edi) movdqa %xmm4, %xmm0 pand (48)(%esi), %xmm0 por (48)(%edi), %xmm0 movdqa %xmm0, (48)(%edi) movdqa %xmm4, %xmm1 pand (64)(%esi), %xmm1 por (64)(%edi), %xmm1 movdqa %xmm1, (64)(%edi) movdqa %xmm4, %xmm2 pand (80)(%esi), %xmm2 por (80)(%edi), %xmm2 movdqa %xmm2, (80)(%edi) movdqa %xmm4, %xmm0 pand (96)(%esi), %xmm0 por (96)(%edi), %xmm0 movdqa %xmm0, (96)(%edi) movdqa %xmm4, %xmm1 pand (112)(%esi), %xmm1 por (112)(%edi), %xmm1 movdqa %xmm1, (112)(%edi) movdqa %xmm4, %xmm2 pand (128)(%esi), %xmm2 por (128)(%edi), %xmm2 movdqa %xmm2, (128)(%edi) paddd %xmm6, %xmm5 add $(144), %esi sub $(1), %ecx jnz .Lselect_loopgas_14 pop %edi pop %esi pop %ebp ret .Lfe14: .size h9_p384r1_select_pp_w5, .Lfe14-(h9_p384r1_select_pp_w5)
; boot sector that enters 32 - bit protected mode. [org 0x7c00] KERNEL_OFFSET equ 0x1000 mov [BOOT_DRIVE], dl ; BIOS stores our boot drive in DL , so it 's ; best to remember this for later. mov bp, 0x9000 mov sp, bp mov bx, MSG_REAL_MODE ;to print a message on screen, store message in BX Register call print_string call load_kernel call switch_to_pm jmp $ ; jump forever(jump to address of current instruction) %include "print_string.asm" %include "disk_load.asm" %include "print_string_pm.asm" %include "gdt.asm" %include "switch_to_pm.asm" [ bits 16] load_kernel: mov bx, MSG_LOAD_KERNEL ; using BX as a parameter of our function call print_string ; by specifying the address of a string mov bx, KERNEL_OFFSET mov dh, 30 mov dl, [BOOT_DRIVE] ; with dx having been loaded with number of sectors to read, we will call disk_load call disk_load ret [bits 32] BEGIN_PM: mov ebx, MSG_PROT_MODE call print_string_pm call KERNEL_OFFSET jmp $ BOOT_DRIVE: db 0 MSG_REAL_MODE: db " Hello GeekSkool,Started in 16- bit Real Mode ", 0 MSG_PROT_MODE: db " Successfully landed in 32- bit Protected Mode ", 0 MSG_LOAD_KERNEL: db " Loading kernel into memory. ", 0 times 510-($-$$) db 0 ; Pad the boot sector out with zeros ; When compiled , our program must fit into 512 bytes , ; with the last two bytes being the magic number , ; so here , tell our assembly compiler to pad out our ; program with enough zero bytes (db 0) to bring us to the ; 510 th byte. dw 0xaa55 ; Last two bytes form the magic number ; BIOS is informed that we are a boot sector
// Copyright (C) 2003, Fernando Luis Cacciola Carballal. // // Use, modification, and distribution is subject to 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) // // See http://www.boost.org/libs/optional for documentation. // // You are welcome to contact the author at: // fernando_cacciola@hotmail.com // #ifndef BOOST_UTILITY_COMPARE_POINTEES_25AGO2003_HPP #define BOOST_UTILITY_COMPARE_POINTEES_25AGO2003_HPP #include<functional> namespace boost { // template<class OP> bool equal_pointees(OP const& x, OP const& y); // template<class OP> struct equal_pointees_t; // // Being OP a model of OptionalPointee (either a pointer or an optional): // // If both x and y have valid pointees, returns the result of (*x == *y) // If only one has a valid pointee, returns false. // If none have valid pointees, returns true. // No-throw template<class OptionalPointee> inline bool equal_pointees ( OptionalPointee const& x, OptionalPointee const& y ) { return (!x) != (!y) ? false : ( !x ? true : (*x) == (*y) ) ; } template<class OptionalPointee> struct equal_pointees_t : std::binary_function<OptionalPointee,OptionalPointee,bool> { bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return equal_pointees(x,y) ; } } ; // template<class OP> bool less_pointees(OP const& x, OP const& y); // template<class OP> struct less_pointees_t; // // Being OP a model of OptionalPointee (either a pointer or an optional): // // If y has not a valid pointee, returns false. // ElseIf x has not a valid pointee, returns true. // ElseIf both x and y have valid pointees, returns the result of (*x < *y) // No-throw template<class OptionalPointee> inline bool less_pointees ( OptionalPointee const& x, OptionalPointee const& y ) { return !y ? false : ( !x ? true : (*x) < (*y) ) ; } template<class OptionalPointee> struct less_pointees_t : std::binary_function<OptionalPointee,OptionalPointee,bool> { bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return less_pointees(x,y) ; } } ; } // namespace boost #endif
; A314218: Coordination sequence Gal.5.304.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,11,17,22,28,33,39,45,50,55,61,67,72,78,83,89,95,100,105,111,117,122,128,133,139,145,150,155,161,167,172,178,183,189,195,200,205,211,217,222,228,233,239,245,250,255,261,267,272 mov $2,$0 mov $7,$0 lpb $2,1 add $2,1 mov $5,$2 lpb $5,1 add $2,5 add $3,$5 mov $4,$3 trn $3,$2 mov $5,$0 sub $5,$4 mov $6,6 lpe add $0,1 mov $1,$0 sub $2,$6 trn $2,1 mov $6,3 lpe trn $1,2 lpb $7,1 add $1,4 sub $7,1 lpe add $1,1
; ; ZX IF1 & Microdrive functions ; ; int i1_from_mdv() ; ; returns TRUE if the current program ; has been loaded from the microdrive ; ; $Id: if1_from_mdv.asm,v 1.4 2017/01/03 01:40:06 aralbrec Exp $ ; SECTION code_clib PUBLIC if1_from_mdv PUBLIC _if1_from_mdv if1_from_mdv: _if1_from_mdv: ld de,($5c53) ; PROG :location of BASIC program ld hl,($5c4b) ; VARS :location of variables sbc hl,de ; program length ld de,(23787) sbc hl,de ld hl,1 ret z dec hl ret
// 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. #include "chrome/browser/engagement/site_engagement_helper.h" #include <utility> #include "base/bind.h" #include "base/stl_util.h" #include "base/time/time.h" #include "base/trace_event/trace_event.h" #include "chrome/browser/prerender/chrome_prerender_contents_delegate.h" #include "chrome/browser/profiles/profile.h" #include "components/prerender/browser/prerender_contents.h" #include "content/public/browser/navigation_handle.h" #include "content/public/browser/web_contents.h" namespace { int g_seconds_to_pause_engagement_detection = 10; int g_seconds_delay_after_navigation = 10; int g_seconds_delay_after_media_starts = 10; int g_seconds_delay_after_show = 5; } // anonymous namespace // static void SiteEngagementService::Helper::SetSecondsBetweenUserInputCheck( int seconds) { g_seconds_to_pause_engagement_detection = seconds; } // static void SiteEngagementService::Helper::SetSecondsTrackingDelayAfterNavigation( int seconds) { g_seconds_delay_after_navigation = seconds; } // static void SiteEngagementService::Helper::SetSecondsTrackingDelayAfterShow( int seconds) { g_seconds_delay_after_show = seconds; } SiteEngagementService::Helper::~Helper() { if (web_contents()) { input_tracker_.Stop(); media_tracker_.Stop(); } } SiteEngagementService::Helper::PeriodicTracker::PeriodicTracker( SiteEngagementService::Helper* helper) : helper_(helper), pause_timer_(std::make_unique<base::OneShotTimer>()) {} SiteEngagementService::Helper::PeriodicTracker::~PeriodicTracker() {} void SiteEngagementService::Helper::PeriodicTracker::Start( base::TimeDelta initial_delay) { StartTimer(initial_delay); } void SiteEngagementService::Helper::PeriodicTracker::Pause() { TrackingStopped(); StartTimer( base::TimeDelta::FromSeconds(g_seconds_to_pause_engagement_detection)); } void SiteEngagementService::Helper::PeriodicTracker::Stop() { TrackingStopped(); pause_timer_->Stop(); } bool SiteEngagementService::Helper::PeriodicTracker::IsTimerRunning() { return pause_timer_->IsRunning(); } void SiteEngagementService::Helper::PeriodicTracker::SetPauseTimerForTesting( std::unique_ptr<base::OneShotTimer> timer) { pause_timer_ = std::move(timer); } void SiteEngagementService::Helper::PeriodicTracker::StartTimer( base::TimeDelta delay) { pause_timer_->Start( FROM_HERE, delay, base::BindOnce( &SiteEngagementService::Helper::PeriodicTracker::TrackingStarted, base::Unretained(this))); } SiteEngagementService::Helper::InputTracker::InputTracker( SiteEngagementService::Helper* helper, content::WebContents* web_contents) : PeriodicTracker(helper), content::WebContentsObserver(web_contents), is_tracking_(false) {} void SiteEngagementService::Helper::InputTracker::TrackingStarted() { is_tracking_ = true; } void SiteEngagementService::Helper::InputTracker::TrackingStopped() { is_tracking_ = false; } // Record that there was some user input, and defer handling of the input event. // Once the timer finishes running, the callbacks detecting user input will be // registered again. void SiteEngagementService::Helper::InputTracker::DidGetUserInteraction( const blink::WebInputEvent& event) { // Only respond to raw key down to avoid multiple triggering on a single input // (e.g. keypress is a key down then key up). if (!is_tracking_) return; const blink::WebInputEvent::Type type = event.GetType(); // This switch has a default NOTREACHED case because it will not test all // of the values of the WebInputEvent::Type enum (hence it won't require the // compiler verifying that all cases are covered). switch (type) { case blink::WebInputEvent::Type::kRawKeyDown: helper()->RecordUserInput(SiteEngagementService::ENGAGEMENT_KEYPRESS); break; case blink::WebInputEvent::Type::kMouseDown: helper()->RecordUserInput(SiteEngagementService::ENGAGEMENT_MOUSE); break; case blink::WebInputEvent::Type::kTouchStart: helper()->RecordUserInput( SiteEngagementService::ENGAGEMENT_TOUCH_GESTURE); break; case blink::WebInputEvent::Type::kGestureScrollBegin: helper()->RecordUserInput(SiteEngagementService::ENGAGEMENT_SCROLL); break; default: NOTREACHED(); } Pause(); } SiteEngagementService::Helper::MediaTracker::MediaTracker( SiteEngagementService::Helper* helper, content::WebContents* web_contents) : PeriodicTracker(helper), content::WebContentsObserver(web_contents) {} SiteEngagementService::Helper::MediaTracker::~MediaTracker() {} void SiteEngagementService::Helper::MediaTracker::TrackingStarted() { if (!active_media_players_.empty()) { // TODO(dominickn): Consider treating OCCLUDED tabs like HIDDEN tabs when // computing engagement score. They are currently treated as VISIBLE tabs to // preserve old behavior. helper()->RecordMediaPlaying(web_contents()->GetVisibility() == content::Visibility::HIDDEN); } Pause(); } void SiteEngagementService::Helper::MediaTracker::DidFinishNavigation( content::NavigationHandle* handle) { // Ignore subframe navigation to avoid clearing main frame active media // players when they navigate. if (!handle->HasCommitted() || !handle->IsInMainFrame() || handle->IsSameDocument()) { return; } // Media stops playing on navigation, so clear our state. active_media_players_.clear(); } void SiteEngagementService::Helper::MediaTracker::MediaStartedPlaying( const MediaPlayerInfo& media_info, const content::MediaPlayerId& id) { // Only begin engagement detection when media actually starts playing. active_media_players_.push_back(id); if (!IsTimerRunning()) Start(base::TimeDelta::FromSeconds(g_seconds_delay_after_media_starts)); } void SiteEngagementService::Helper::MediaTracker::MediaStoppedPlaying( const MediaPlayerInfo& media_info, const content::MediaPlayerId& id, WebContentsObserver::MediaStoppedReason reason) { base::Erase(active_media_players_, id); } SiteEngagementService::Helper::Helper(content::WebContents* web_contents) : content::WebContentsObserver(web_contents), input_tracker_(this, web_contents), media_tracker_(this, web_contents), service_(SiteEngagementService::Get( Profile::FromBrowserContext(web_contents->GetBrowserContext()))) {} void SiteEngagementService::Helper::RecordUserInput( SiteEngagementService::EngagementType type) { TRACE_EVENT0("SiteEngagement", "RecordUserInput"); content::WebContents* contents = web_contents(); if (contents) service_->HandleUserInput(contents, type); } void SiteEngagementService::Helper::RecordMediaPlaying(bool is_hidden) { content::WebContents* contents = web_contents(); if (contents) service_->HandleMediaPlaying(contents, is_hidden); } void SiteEngagementService::Helper::DidFinishNavigation( content::NavigationHandle* handle) { // Ignore uncommitted, non main-frame, same page, or error page navigations. if (!handle->HasCommitted() || !handle->IsInMainFrame() || handle->IsSameDocument() || handle->IsErrorPage()) { return; } input_tracker_.Stop(); media_tracker_.Stop(); // Ignore prerender loads. This means that prerenders will not receive // navigation engagement. The implications are as follows: // // - Instant search prerenders from the omnibox trigger DidFinishNavigation // twice: once for the prerender, and again when the page swaps in. The // second trigger has transition GENERATED and receives navigation // engagement. // - Prerenders initiated by <link rel="prerender"> (e.g. search results) are // always assigned the LINK transition, which is ignored for navigation // engagement. // // Prerenders trigger WasShown() when they are swapped in, so input engagement // will activate even if navigation engagement is not scored. if (prerender::ChromePrerenderContentsDelegate::FromWebContents( web_contents()) != nullptr) return; service_->HandleNavigation(web_contents(), handle->GetPageTransition()); input_tracker_.Start( base::TimeDelta::FromSeconds(g_seconds_delay_after_navigation)); } void SiteEngagementService::Helper::OnVisibilityChanged( content::Visibility visibility) { // TODO(fdoray): Once the page visibility API [1] treats hidden and occluded // documents the same way, consider stopping |input_tracker_| when // |visibility| is OCCLUDED. https://crbug.com/668690 // [1] https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API if (visibility == content::Visibility::HIDDEN) { input_tracker_.Stop(); } else { // Start a timer to track input if it isn't already running and input isn't // already being tracked. if (!input_tracker_.IsTimerRunning() && !input_tracker_.is_tracking()) { input_tracker_.Start( base::TimeDelta::FromSeconds(g_seconds_delay_after_show)); } } } WEB_CONTENTS_USER_DATA_KEY_IMPL(SiteEngagementService::Helper)
;; ;; Copyright (c) 2012-2018, Intel Corporation ;; ;; 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 Intel Corporation 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. ;; %define FUNC submit_job_hmac_sha_384_sse %define SHA_X_DIGEST_SIZE 384 %include "sse/mb_mgr_hmac_sha_512_submit_sse.asm"
global _start section .text _start: mov rax,0x10111011 mov rbx,0x11010110 and rax,rbx mov rax, 60 mov rdi, 10 syscall section .data
; A141044: Two 2's followed by all 1's. ; 2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 div $0,2 pow $1,$0 add $1,1 mov $0,$1
;******************************************************************************* ; MSP430x24x Demo - USCI_A0, SPI Interface to HC165 Shift Register ; ; Description: This program demonstrate a USCI_A0 in SPI mode interface to a ; an 'HC165 shift register. Read 8-bit Data from H-A into Data. ; ACLK = n/a, MCLK = SMCLK = default DCO ~1.045MHz, BRCLK = SMCLK/2 ; ; MSP430x24x ; ----------------- ; /|\| XIN|- ; | | | ; HC165 --|RST XOUT|- ; ---------- | | ; 8 | /LD|<---|P3.6 | ; -\->|A-H CLK|<---|P3.0/UCA0CLK | ; |-|INH QH|--->|P3.5/UCA0SOMI | ; |-|SER | | | ; v ; ; ; JL Bile ; Texas Instruments Inc. ; May 2008 ; Built Code Composer Essentials: v3 FET ;******************************************************************************* .cdecls C,LIST, "msp430x24x.h" Data .equ 0200h ;------------------------------------------------------------------------------- .text ;Program Start ;------------------------------------------------------------------------------- RESET mov.w #0500h,SP ; Initialize stackpointer StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop watchdog timer SetupP3 bis.b #021h,&P3SEL ; P3.0,5 USCI_A0 option select bis.b #040h,&P3DIR ; P3.6 output direction SetupSPI bis.b #UCCKPH+UCMSB+UCMST+UCSYNC,&UCA0CTL0 ; 3-pin, 8-bit SPI mast bis.b #UCSSEL_2,&UCA0CTL1 ; SMCLK bis.b #02h,&UCA0BR0 clr.b &UCA0BR1 ; clr.b &UCA0MCTL bic.b #UCSWRST,&UCA0CTL1 ; **Initialize USCI state machine** ; Mainloop call #RX_HC165 ; Load HC165 value into Rx buffer mov.b &UCA0RXBUF,&Data ; Move value into Data jmp Mainloop ; Repeat ; ;------------------------------------------------------------------------------- RX_HC165 ;------------------------------------------------------------------------------- bic.b #040h,&P3OUT ; Trigger low edge on HC165 /LD bis.b #040h,&P3OUT ; Return /LD to high bic.b #UCA0RXIFG,&IFG2 ; Clear U1RXBUF flag mov.b #00h,&UCA0TXBUF ; Dummy write to start SPI L1 bit.b #UCA0RXIFG,&IFG2 ; RXBUF ready? jnc L1 ; 1 = ready ret ; ; ;------------------------------------------------------------------------------- ; Interrupt Vectors ;------------------------------------------------------------------------------- .sect ".reset" ; POR, ext. Reset .short RESET .end
; SKKU Microprocessor HW3 of x86, by Yoseob Kim(2015312229) [org 0x7c00] ; Assembly command ; Let NASM compiler know starting address of memory ; BIOS reads 1st sector and copied it on memory address 0x7c00 [bits 16] ; Assembly command ; Let NASM compiler know that this code consists of 16its [SECTION .text] ; text section START: ; boot loader(1st sector) starts cli xor ax, ax mov ds, ax mov sp, 0x9000 ; stack pointer 0x9000 mov ax, 0xB800 mov es, ax ; memory address of printing on screen mov al, byte [MSG_test] mov byte [es : 80*2*0+2*0], al mov byte [es : 80*2*0+2*0+1], 0x05 mov al, byte [MSG_test+1] mov byte [es : 80*2*0+2*1], al mov byte [es : 80*2*0+2*1+1], 0x06 mov al, byte [MSG_test+2] mov byte [es : 80*2*0+2*2], al mov byte [es : 80*2*0+2*2+1], 0x07 mov al, byte [MSG_test+3] mov byte [es : 80*2*0+2*3], al mov byte [es : 80*2*0+2*3+1], 0x08 sti call load_sectors ; load rest sectors jmp sector_2 load_sectors: ; read and copy the rest sectors of disk push es xor ax, ax mov es, ax ; es=0x0000 mov bx, sector_2 ; es:bx, Buffer Address Pointer mov ah,2 ; Read Sector Mode mov al,(sector_end - sector_2)/512 + 1 ; Sectors to Read Count mov ch,0 ; Cylinder Number=0 mov cl,2 ; Sector Number=2 mov dh,0 ; Head=0 mov dl,0 ; Drive=0, A:drive int 0x13 ; BIOS interrupt ; Services depend on ah value pop es ret MSG_test: db'test',0 times 510-($-$$) db 0 ; $ : current address, $$ : start address of SECTION ; $-$$ means the size of source dw 0xAA55 ; signature bytes ; End of Master Boot Record(1st Sector) sector_2: ; Program Starts cli lgdt [gdt_ptr] ; Load GDT mov eax, cr0 or eax, 0x00000001 mov cr0, eax ; Switch Real mode to Protected mode jmp SYS_CODE_SEL:Protected_START ; jump Protected_START ; Remove prefetch queue ;--------------------------------------------------------------- Protected_START: ; Protected mode starts [bits 32] ; Assembly command ; Let NASM compiler know that this code consists of 32its mov ax, Video_SEL mov es, ax mov edi, 80*2*1+2*0 mov eax, MSG_Protected_MODE_Test mov bl, 0x02 call printf_s call print_cs_Protected ;-------------------------write your code here--------------------- ; control transfer ; ; ; ; STEP 1 ; get the base address of LDT and set the LDTR in GDT idx:4. ; base 15:0 of the start address of ldt ; ldt1 setting (base address) mov eax, ldt mov word [gdt+LDTR1+2h], ax ; base 23:16 of the start address of ldt shr eax, 16 mov byte [gdt+LDTR1+4h], al ; base 31:24 of the start address of ldt mov eax, ldt shr eax, 24 mov byte [gdt+LDTR1+7h], al ; ldt2 setting (base address) mov eax, ldt2 mov word [gdt+LDTR2+2h], ax ; base 23:16 of the start address of ldt shr eax, 16 mov byte [gdt+LDTR2+4h], al ; base 31:24 of the start address of ldt mov eax, ldt2 shr eax, 24 mov byte [gdt+LDTR2+7h], al ; offset setting (ldt1) mov ax, ldt2 - ldt - 1 mov word [gdt+LDTR1], ax ; offset setting (ldt2) mov ax, ldt_end - ldt2 - 1 mov word [gdt+LDTR2], ax ; STEP 2 ; control transfer ; set LDT1 to current-using LDT mov ax, LDTR1 lldt ax jmp LDT_CODE_SEL_0:LDT0_Start ; mov ax, LDTR2 ; lldt ax ; ; ;------------------------------------------------------------------ LDT0_Start: ; print strings mov edi, 80*2*3+2*0 mov eax, MSG_LDT0_Start mov bl, 0x02 call printf_s ; control transfer call print_cs_LDT0_Start ; control transfer ;jmp $ ; for the 1st problem(Protected_START->LDT0_Start) check call LDT_CODE_SEL_1:LDT0_Next ;jmp $ ; for the 2nd problem(LDT0_Start->LDT0->Next->LDT0_Start) check ; set LDT2 to current-using LDT mov ax, LDTR2 lldt ax jmp LDT_CODE_SEL_2:LDT1_Start LDT0_Next: ; pushad ; print strings mov edi, 80*2*5+2*0 mov eax, MSG_LDT0_Next mov bl, 0x02 call printf_s ; control transfer call print_cs_LDT0_Next call print_cs_in_stack ; popad retf LDT1_Start: ; print strings mov edi, 80*2*7+2*0 mov eax, MSG_LDT1_Start mov bl, 0x02 call printf_s ; control transfer call print_cs_LDT1_Start jmp $ ;end the program ;------------------------------------------------------------------------ MSG_Protected_MODE_Test: db'Protected Mode',0 MSG_LDT0_Start: db'Jumped to LDT0 with LDT_CODE_SEL_0',0 MSG_LDT0_Next: db'Jumped to LDT0_Next with LDT_CODE_SEL_1',0 MSG_LDT1_Start: db'Jumped to LDT1 with LDT_CODE_SEL_2',0 CS_Protected_Start: db'CS register of Protected_Start:',0 CS_LDT0_Start: db'CS register of LDT0_Start:',0 CS_LDT0_Next: db'CS register of LDT0_Next:',0 CS_LDT1_Start: db'CS register of LDT1_Start:',0 CS_in_stack: db'CS register in stack:',0 printf_s: mov cl, byte [ds:eax] mov byte [es: edi], cl inc edi mov byte [es: edi], bl inc edi inc eax mov cl, byte [ds:eax] mov ch, 0 cmp cl, ch je printf_end jmp printf_s printf_end: ret temp: dd 0 printf_n: inc eax inc eax inc eax mov bh, 0x01 jmp printf2 printf2: mov cl, byte [ds:eax] mov dl, cl shr dl, 4 cmp dl, 0x09 ja a1 jmp a2 printf3: mov byte [es: edi], dl inc edi mov byte [es: edi], bl inc edi mov dl, cl and dl, 0x0f cmp dl, 0x09 ja a3 jmp a4 printf4: mov byte [es: edi], dl inc edi mov byte [es: edi], bl inc edi cmp bh, 0x04 je printf_end1 jmp a5 a1 : add dl, 0x37 jmp printf3 a2 : add dl, 0x30 jmp printf3 a3 : add dl, 0x37 jmp printf4 a4 : add dl, 0x30 jmp printf4 a5 : add bh, 0x01 dec eax jmp printf2 printf_end1: ret print_cs_LDT0_Start: pushad mov eax, CS_LDT0_Start mov edi, 80*2*15+0 mov bl, 0x02 call printf_s mov edi, 80*2*15+2*27 mov bl, 0x04 mov [temp], cs mov eax, temp call printf_n popad ret print_cs_Protected: pushad mov eax, CS_Protected_Start mov edi, 80*2*14+0 mov bl, 0x02 call printf_s mov edi, 80*2*14+2*33 mov bl, 0x04 mov [temp], cs mov eax, temp call printf_n popad ret print_cs_in_stack: pushad mov eax, CS_in_stack mov edi, 80*2*20+0 mov bl, 0x02 call printf_s mov eax, [esp+40] mov [temp], eax mov eax, temp mov edi, 80*2*20+2*27 mov bl, 0x04 call printf_n popad ret print_cs_LDT0_Next: pushad mov eax, CS_LDT0_Next mov edi, 80*2*16+0 mov bl, 0x02 call printf_s mov edi, 80*2*16+2*27 mov bl, 0x04 mov [temp], cs mov eax, temp call printf_n popad ret print_cs_LDT1_Start: pushad mov eax, CS_LDT1_Start mov edi, 80*2*17+0 mov bl, 0x02 call printf_s mov edi, 80*2*17+2*27 mov bl, 0x04 mov [temp], cs mov eax, temp call printf_n popad ret ;--------------------------------------------------------------------- ;----------------------Global Description Table----------------------- ;[SECTION .data] ;null descriptor. gdt_ptr could be put here to save a few gdt: dw 0 dw 0 db 0 db 0 db 0 db 0 SYS_CODE_SEL equ 08h gdt1: dw 0FFFFh dw 00000h db 0 db 9Ah db 0cfh db 0 SYS_DATA_SEL equ 10h gdt2: dw 0FFFFh dw 00000h db 0 db 92h db 0cfh db 0 Video_SEL equ 18h gdt3: dw 0FFFFh dw 08000h db 0Bh db 92h db 40h db 00h ;-------------------------write your code here--------------------------- ; LDTR descriptors for two LDTs ; ; ; ; base addresses and limits of LDTRs in GDT must be defined in upper code blocks. ;LDTR1 descriptor (for LDT1) LDTR1 equ 20h gdt4: ; idx:4 dw 0h ; limit 15:0 ; temporary set 0 dw 0h ; base 15:0 ; temporary set 0 db 0h ; base 23:16 ; temporary set 0 db 82h ; flags, type db 00h ; limit 19:16, flags ; temporary set 0 db 0h ; base 31:24 ; temporary set 0 ;LDTR2 descriptor (for LDT1) LDTR2 equ 28h gdt5: ; idx:4 dw 0h ; limit 15:0 ; temporary set 0 dw 0h ; base 15:0 ; temporary set 0 db 0h ; base 23:16 ; temporary set 0 db 82h ; flags, type db 00h ; limit 19:16, flags ; temporary set 0 db 0h ; base 31:24 ; temporary set 0 ; ; ; ; ;------------------------------------------------------------------------ gdt_end: gdt_ptr: dw gdt_end - gdt - 1 dd gdt ;-------------------------Local Descriptor Table------------------------- ;-------------------------write your code here--------------------------- ; Make Local Descriptor Tables. ; ; Fill Code Segment Descriptors and Data Segment Descriptors ; ; ; ldt: ;Code Segment Descriptor ; LDT_CODE_SEL_0 equ 04h ; idx:0 dw 00FFh ; limit 15:0 dw 0000h ; base 15:0 db 00h ; base 23:16 db 9Ah ; flags, type db 0C0h ; limit 19:16, flags db 00h ; base 31:24 ;Data Segment Descriptor ; LDT_DATA_SEL_0 equ 0Ch ; idx:1 dw 00FFh ; limit 15:0 dw 0000h ; base 15:0 db 00h ; base 23:16 db 92h ; flags, type db 0C0h ; limit 19:16, flags db 00h ; base 31:24 ;Code Segment Descriptor ; LDT_CODE_SEL_1 equ 14h ; idx:0 dw 00FFh ; limit 15:0 dw 0000h ; base 15:0 db 00h ; base 23:16 db 9Ah ; flags, type db 0C0h ; limit 19:16, flags db 00h ; base 31:24 ldt2: ;Data Segment Descriptor ; LDT_DATA_SEL_1 equ 04h ; idx:1 dw 00FFh ; limit 15:0 dw 0000h ; base 15:0 db 00h ; base 23:16 db 92h ; flags, type db 0C0h ; limit 19:16, flags db 00h ; base 31:24 ;Code Segment Descriptor ; LDT_CODE_SEL_2 equ 0Ch ; idx:0 dw 00FFh ; limit 15:0 dw 0000h ; base 15:0 db 00h ; base 23:16 db 9Ah ; flags, type db 0C0h ; limit 19:16, flags db 00h ; base 31:24 ldt_end: ; ; ; ; ;------------------------------------------------------------------------ sector_end:
; ; Small C z88 File functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; ; 11/3/99 djm ***UNTESTED*** ; ; *** THIS IS A Z88 SPECIFIC ROUTINE!!! *** ; ; ; $Id: fdtell.asm,v 1.7 2016/03/06 20:36:12 dom Exp $ ; INCLUDE "fileio.def" SECTION code_clib PUBLIC fdtell PUBLIC _fdtell ;long fdtell(int fd) .fdtell ._fdtell pop bc ;ret pop hl ;fd push hl push bc push ix ;callers push hl pop ix ld a,FA_PTR call_oz(os_frm) pop ix ;callers push bc ;get the var into our preferred regs pop hl ret nc ;Error, return with -1 ld hl,65535 ld d,h ld e,l ret
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="pid, stat_loc, options"/> <%docstring> Invokes the syscall waitpid. See 'man 2 waitpid' for more information. Arguments: pid(pid_t): pid stat_loc(int): stat_loc options(int): options </%docstring> ${syscall('SYS_waitpid', pid, stat_loc, options)}
// code concerning the game over mode // states of the game over mode .const STEP_FILLWELL = 0 .const STEP_CLEARWELL = 1 .const STEP_GAMEOVERTEXT = 2 // ------------------------------------------------ StartGameOverMode: // play game over music lda #0 sta sounddelayCounter lda #SND_MUSIC_GAMEOVER jsr playsound // prepare for the first step lda #STEP_FILLWELL sta currentStep // we will render this block lda #105 sta drawCharacter // and we need to do 20 lines lda #19 sta linesLeft rts // --------------------------------------------------- UpdateGameOverMode: lda currentStep // which step to ... cmp #STEP_FILLWELL // perform? bne !otherStep+ jsr DrawLine dec linesLeft bmi !skip+ rts !skip: inc currentStep lda #$20 sta drawCharacter lda #19 sta linesLeft rts !otherStep: cmp #STEP_CLEARWELL bne !otherStep+ jsr DrawLine dec linesLeft bmi !skip+ rts !skip: // done clearing // print text and go to next mode ldy #WELL_GAMEOVER jsr PRINT_WELLDATA inc currentStep rts !otherStep: // waiting for a key or fire button lda inputResult cmp #DOWN beq !exit+ cmp #TURNCLOCK beq !exit+ rts !exit: jmp EndGameOverMode //rts // ---------------------------------------------------- DrawLine: clc ldy #12 ldx linesLeft jsr PLOT lda drawCharacter ldy #10 !loop: jsr PRINT dey bne !loop- rts // --------------------------------------------------- EndGameOverMode: lda #MODE_ENTERNAME sta gameMode jsr StartEnterNameMode rts // --------------------------------------------------- // the character to fill the well with drawCharacter: .byte 0 // the mode step variable currentStep: .byte 0 // the amount of lines left to fill linesLeft: .byte 0
#include "Server.h" #include <Network/NetworkDriver.h> #include <stdexcept> #include "Utilities/Utils.h" #include "Utilities/Config.h" #include "Protocol/Play.h" #include "Internal/InternalServer.h" #include <iostream> namespace Minecraft::Server { Server::Server() { m_IsRunning = false; socket = nullptr; } Server::~Server() { } void Server::init() { parseServerConfig(); m_IsRunning = true; utilityPrint("Starting Server...", LOGGER_LEVEL_INFO); std::cout << "B" << std::endl; if (!Network::g_NetworkDriver.Init()) { throw std::runtime_error("Fatal: Could not connect to Network! Check Stardust Core Logs!"); } std::cout << "B" << std::endl; #ifdef CRAFT_SERVER_DEBUG #if CURRENT_PLATFORM == PLATFORM_PSP pspDebugScreenInit(); pspDebugScreenClear(); pspDebugScreenSetXY(0, 0); #endif #endif socket = new ServerSocket(g_Config.port); socket->SetBlock(false); if (socket == nullptr) { throw std::runtime_error("Fatal: ServerSocket is nullptr!"); } g_NetMan = new NetworkManager(socket); g_NetMan->setConnectionStatus(CONNECTION_STATE_HANDSHAKE); if (g_NetMan == nullptr) { throw std::runtime_error("Fatal: Network Manager is nullptr!"); } Internal::g_InternalServer = new Internal::InternalServer(); } int count = 0; void Server::update() { if (g_Server->socket->isAlive()) { if (g_NetMan->getConnectionStatus() == CONNECTION_STATE_PLAY) { if (!Internal::g_InternalServer->isOpen()) { Internal::g_InternalServer->start(); } } int pc = 0; if (g_NetMan->getConnectionStatus() == CONNECTION_STATE_PLAY) { Internal::g_World->chunkgenUpdate(); } Internal::g_World->tickUpdate(); while (g_NetMan->ReceivePacket() && pc < 50) { pc++; } g_NetMan->HandlePackets(); //World Updates g_NetMan->SendPackets(); count++; if (count % 20 == 0) { Protocol::Play::PacketsOut::send_keepalive(0xCAFEBABECAFEBABE); Protocol::Play::PacketsOut::send_time_update2(Internal::g_World->timedata); } } else { g_NetMan->setConnectionStatus(CONNECTION_STATE_HANDSHAKE); if (Internal::g_InternalServer->isOpen()) { Internal::g_InternalServer->stop(); } g_Server->socket->ListenState(); } } Server* g_Server = new Server(); }
#include <stdexcept> // std::domain_error() #include "igs_resource_msg_from_err.h" #include "igs_resource_thread.h" //-------------------------------------------------------------------- // pthread_t = unsigned long int(rhel4) /* state が PTHREAD_CREATE_JOINABLE なら、pthread_join()を呼ぶこと。 PTHREAD_CREATE_DETACHED なら、なにも呼ぶ必要がないが、 thread終了を知るには自前で仕掛けが必要。 */ pthread_t igs::resource::thread_run( void *(*function)(void *), void *func_arg, const int state // PTHREAD_CREATE_JOINABLE/PTHREAD_CREATE_DETACHED ) { pthread_attr_t attr; if (::pthread_attr_init(&attr)) { throw std::domain_error("pthread_attr_init(-)"); } if (::pthread_attr_setdetachstate(&attr, state)) { throw std::domain_error("pthread_attr_setdetachstate(-)"); } pthread_t thread_id = 0; const int erno = ::pthread_create(&(thread_id), &attr, function, func_arg); if (0 != erno) { throw std::domain_error( igs_resource_msg_from_err("pthread_create(-)", erno)); } return thread_id; } /* const bool igs::resource::thread_was_done(const pthread_t thread_id) { ?????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????? threadの終了方法を見る関数は見つからない。 実行関数の引数で、終了フラグを立てて、外から感知する方法か。 関数が終了するまでの間のタイムラグがあるが、問題はあるのか??? } */ void igs::resource::thread_join(const pthread_t thread_id) { const int erno = ::pthread_join(thread_id, NULL); if (0 != erno) { throw std::domain_error(igs_resource_msg_from_err("pthread_join(-)", erno)); } }
SECTION code_fcntl PUBLIC asm_tty_execute_action EXTERN l_jphl asm_tty_execute_action: ; helper function for output consoles ; execute actions demanded by tty ; ; enter : hl = & action_table ; de = & parameters ; ; if producing nothing for the terminal ; ; a = 0 ; ; if executing an action ; ; a = action code (> 0) ; ; uses : af, bc, de, hl or a ret z ; if tty swallowed char dec a add a,a add a,l ld l,a ld a,0 adc a,h ld h,a ld a,(hl) inc hl ld h,(hl) ld l,a call l_jphl or a ret ; carry reset indicates char absorbed
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : start.asm ; Purpose : Test bed for BASIC ; Date : 3rd June 2019 ; Author : paul@robsons.org.uk ; ; ******************************************************************************************* ; ******************************************************************************************* * = 0 clc ; switch into 65816 16 bit mode. xce rep #$30 .al .xl ldx #$FFF0 ; 6502 stack at $FFE0 txs lda #$FE00 ; set DP to $FE00 tcd lda #CodeSpace >> 16 ; put the page number in A ($2) ldx #CodeSpace & $FFFF ; and the base address in X ($4000) ldy #CodeEndSpace & $FFFF ; and the end address in Y ($C000) jmp SwitchBasicInstance * = $10000 .include "basic.asm" *=$24000 ; actual code goes here, demo at 02-4000 CodeSpace: .binary "temp/basic.bin" CodeEndSpace:
; A169302: Number of reduced words of length n in Coxeter group on 49 generators S_i with relations (S_i)^2 = (S_i S_j)^29 = I. ; 1,49,2352,112896,5419008,260112384,12485394432,599298932736,28766348771328,1380784741023744,66277667569139712,3181328043318706176,152703746079297896448,7329779811806299029504,351829430966702353416192 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 div $3,$2 mul $2,48 lpe mov $0,$2 div $0,48
; carrega x"FF" em S (todos pxs em '1') leaw $0, %A movw %A, %S notw %S leaw $R1, %A movw %S, (%A) leaw $18954, %A movw %A, %S WHILE: leaw $R1, %A movw (%A), %D movw %S, %A movw %D, (%A) leaw $20, %A movw %S,%D addw %D, %A ,%S leaw $19274, %A subw %A, %S, %D leaw $WHILE, %A jg %D nop
; A020657: Lexicographically earliest increasing sequence of nonnegative numbers that contains no arithmetic progression of length 7. ; Submitted by Simon Strandgaard ; 0,1,2,3,4,5,7,8,9,10,11,12,14,15,16,17,18,19,21,22,23,24,25,26,28,29,30,31,32,33,35,36,37,38,39,40,49,50,51,52,53,54,56,57,58,59,60,61,63,64,65,66,67,68,70,71,72,73,74,75,77,78,79,80,81,82,84,85,86,87,88,89,98,99,100,101,102,103,105,106,107,108,109,110,112,113,114,115,116,117,119,120,121,122,123,124,126,127,128,129 mov $3,1 lpb $0 mov $2,$0 div $0,6 mod $2,6 mul $2,$3 add $1,$2 mul $3,7 lpe mov $0,$1
; --------------------------------------------------------------------------- ; Sprite mappings - invisible solid blocks ; --------------------------------------------------------------------------- dc.w byte_114BC-Map_obj71 dc.w byte_114D1-Map_obj71 dc.w byte_114E6-Map_obj71 byte_114BC: dc.b 4 dc.b $F0, 5, 0, $18, $F0 dc.b $F0, 5, 0, $18, 0 dc.b 0, 5, 0, $18, $F0 dc.b 0, 5, 0, $18, 0 byte_114D1: dc.b 4 dc.b $E0, 5, 0, $18, $C0 dc.b $E0, 5, 0, $18, $30 dc.b $10, 5, 0, $18, $C0 dc.b $10, 5, 0, $18, $30 byte_114E6: dc.b 4 dc.b $E0, 5, 0, $18, $80 dc.b $E0, 5, 0, $18, $70 dc.b $10, 5, 0, $18, $80 dc.b $10, 5, 0, $18, $70 even
TOESP_MSG_GET_ESP_STATUS = 0 ; Get ESP status TOESP_MSG_DEBUG_GET_LEVEL = 1 ; Get debug level TOESP_MSG_DEBUG_SET_LEVEL = 2 ; Set debug level TOESP_MSG_DEBUG_LOG = 3 ; Debug / Log data TOESP_MSG_CLEAR_BUFFERS = 4 ; Clear RX/TX buffers TOESP_MSG_E2N_BUFFER_DROP = 5 ; Drop messages from TX (ESP->NES) buffer TOESP_MSG_GET_WIFI_STATUS = 6 ; Get WiFi connection status TOESP_MSG_GET_RND_BYTE = 7 ; Get random byte TOESP_MSG_GET_RND_BYTE_RANGE = 8 ; Get random byte between custom min/max TOESP_MSG_GET_RND_WORD = 9 ; Get random word TOESP_MSG_GET_RND_WORD_RANGE = 10 ; Get random word between custom min/max TOESP_MSG_GET_SERVER_STATUS = 11 ; Get server connection status TOESP_MSG_GET_SERVER_PING = 12 ; Get ping between ESP and server TOESP_MSG_SET_SERVER_PROTOCOL = 13 ; Set protocol to be used to communicate (WS/UDP) TOESP_MSG_GET_SERVER_SETTINGS = 14 ; Get current server host name and port TOESP_MSG_GET_SERVER_CONFIG_SETTINGS = 15 ; Get server host name and port defined in the Rainbow config file TOESP_MSG_SET_SERVER_SETTINGS = 16 ; Set current server host name and port TOESP_MSG_RESTORE_SERVER_SETTINGS = 17 ; Restore server host name and port to values defined in the Rainbow config TOESP_MSG_CONNECT_TO_SERVER = 18 ; Connect to server TOESP_MSG_DISCONNECT_FROM_SERVER = 19 ; Disconnect from server TOESP_MSG_SEND_MESSAGE_TO_SERVER = 20 ; Send message to rainbow server TOESP_MSG_FILE_OPEN = 21 ; Open working file TOESP_MSG_FILE_CLOSE = 22 ; Close working file TOESP_MSG_FILE_EXISTS = 23 ; Check if file exists TOESP_MSG_FILE_DELETE = 24 ; Delete a file TOESP_MSG_FILE_SET_CUR = 25 ; Set working file cursor position a file TOESP_MSG_FILE_READ = 26 ; Read working file (at specific position) TOESP_MSG_FILE_WRITE = 27 ; Write working file (at specific position) TOESP_MSG_FILE_APPEND = 28 ; Append data to working file TOESP_MSG_FILE_COUNT = 29 ; Count files in a specific path TOESP_MSG_FILE_GET_LIST = 30 ; Get list of existing files in a path TOESP_MSG_FILE_GET_FREE_ID = 31 ; Get an unexisting file ID in a specific path TOESP_MSG_FILE_GET_INFO = 32 ; Get file info (size + crc32) FROMESP_MSG_READY = 0 ; ESP is ready FROMESP_MSG_DEBUG_LEVEL = 1 ; Returns the debug level FROMESP_MSG_FILE_EXISTS = 2 ; Returns if file exists or not FROMESP_MSG_FILE_DELETE = 3 ; Returns when trying to delete a file FROMESP_MSG_FILE_LIST = 4 ; Returns path file list (FILE_GET_LIST) FROMESP_MSG_FILE_DATA = 5 ; Returns file data (FILE_READ) FROMESP_MSG_FILE_COUNT = 6 ; Returns file count in a specific path FROMESP_MSG_FILE_ID = 7 ; Returns a free file ID (FILE_GET_FREE_ID) FROMESP_MSG_FILE_INFO = 8 ; Returns file info (size + CRC32) (FILE_GET_INFO) FROMESP_MSG_WIFI_STATUS = 9 ; Returns WiFi connection status FROMESP_MSG_SERVER_STATUS = 10 ; Returns server connection status FROMESP_MSG_SERVER_PING = 11 ; Returns min, max and average round-trip time and number of lost packets FROMESP_MSG_HOST_SETTINGS = 12 ; Returns server settings (host name + port) FROMESP_MSG_RND_BYTE = 13 ; Returns random byte value FROMESP_MSG_RND_WORD = 14 ; Returns random word value FROMESP_MSG_MESSAGE_FROM_SERVER = 15 ; Message from server ESP_FILE_PATH_SAVE = 0 ESP_FILE_PATH_ROMS = 1 ESP_FILE_PATH_USER = 2 ESP_PROTOCOL_WEBSOCKET = 0 ESP_PROTOCOL_UDP = 1 RAINBOW_DATA = $5000 RAINBOW_FLAGS = $5001 RAINBOW_PRG_BANKING_1 = $5002 RAINBOW_PRG_BANKING_2 = $5003 RAINBOW_PRG_BANKING_3 = $5004 RAINBOW_WRAM_BANKING = $5005 RAINBOW_CONFIGURATION = $5006 RAINBOW_CHR_BANKING_1 = $5400 RAINBOW_CHR_BANKING_2 = $5401 RAINBOW_CHR_BANKING_3 = $5402 RAINBOW_CHR_BANKING_4 = $5403 RAINBOW_CHR_BANKING_5 = $5404 RAINBOW_CHR_BANKING_6 = $5405 RAINBOW_CHR_BANKING_7 = $5406 RAINBOW_CHR_BANKING_8 = $5407 RAINBOW_PULSE_CHANNEL_1_CONTROL = $5800 RAINBOW_PULSE_CHANNEL_1_FREQ_LOW = $5801 RAINBOW_PULSE_CHANNEL_1_FREQ_HIGH = $5802 RAINBOW_PULSE_CHANNEL_2_CONTROL = $5803 RAINBOW_PULSE_CHANNEL_2_FREQ_LOW = $5804 RAINBOW_PULSE_CHANNEL_2_FREQ_HIGH = $5805 RAINBOW_SAW_CHANNEL_FREQ_LOW = $5c01 RAINBOW_SAW_CHANNEL_FREQ_HIGH = $5c02 RAINBOW_MAPPER_VERSION = $5c03 RAINBOW_IRQ_LATCH = $5c04 RAINBOW_IRQ_RELOAD = $5c05 RAINBOW_IRQ_DISABLE = $5c06 RAINBOW_IRQ_ENABLE = $5c07 ; Send a command to the ESP ; tmpfield1,tmpfield2 - address of the command data ; ; Command data follows the format ; First byte is the message length (number of bytes following this first byte). ; Second byte is the command opcode. ; Any remaining bytes are parameters for the command. ; ; Overwrites all registers esp_send_cmd: .( ldy #0 lda (tmpfield1), y sta RAINBOW_DATA tax iny copy_one_byte: lda (tmpfield1), y sta RAINBOW_DATA iny dex bne copy_one_byte rts .) ; Retrieve a message from ESP ; tmpfield1,tmpfield2 - address where the message is stored ; ; Message data follows the format ; First byte is the message length (number of bytes following this first byte). ; Second byte is the message type. ; Any remaining bytes are payload of the message. ; ; Output ; - Retrieved message is stored at address pointed by tmpfield1,tmpfield2 ; - Y number of bytes retrieved (zero if there was no message, message length otherwise) ; ; Note ; - Y returns the contents of the "message length" field, so it is one less than the number ; of bytes writen in memory. ; - It is indistinguishable if there was a message with a length field of zero or there ; was no message. ; ; Overwrites all registers esp_get_msg: .( ldy #0 bit RAINBOW_FLAGS bmi store_msg ; No message, set msg_len to zero lda #0 sta (tmpfield1), y jmp end store_msg: lda RAINBOW_DATA ; Garbage byte nop lda RAINBOW_DATA ; Message length sta (tmpfield1), y tax inx copy_one_byte: dex beq end iny lda RAINBOW_DATA sta (tmpfield1), y jmp copy_one_byte end: rts .)
// Write an 8085 assembly language program to multiply two 16-bit binary numbers LHLD 9000 SPHL LHLD 9002 XCHG LXI H,0000 LXI B,0000 LOOP: DAD SP JNC NOCARRY INX B NOCARRY: DCX D MOV A,E ORA D JNZ LOOP SHLD 9100 MOV L,C MOV H,B SHLD 9102 HLT
; A288156: Two even followed by three odd integers: the pattern is (0+2k,0+2k,1+2k,1+2k,1+2k) for k>=0. ; 0,0,1,1,1,2,2,3,3,3,4,4,5,5,5,6,6,7,7,7,8,8,9,9,9,10,10,11,11,11,12,12,13,13,13,14,14,15,15,15,16,16,17,17,17,18,18,19,19,19,20,20,21,21,21,22,22,23,23,23,24,24,25,25,25,26,26,27,27,27,28,28,29,29,29,30,30,31,31,31,32,32,33,33,33,34,34,35,35,35,36,36,37,37,37,38,38,39,39,39,40 mul $0,2 add $0,1 mov $1,$0 div $1,5
#ifndef sigmoid_h #define sigmoid_h #include "common.hpp" vector<float> Sigmoid(vector<float> v); #endif
#include <iostream> using namespace std; class Rat { private: int nom, denom; public: void init (int nom, int denom) { this->nom = nom; if (denom != 0) this->denom = denom; else denom = 1; } void read () { int n,d; cout << "Enter nominator:"; cin >> n; cout << "Enter denominator:"; cin >> d; init (n,d); } void print () { cout << "Nominator = " << nom << " Denominator = " << denom << endl; } Rat plus (Rat other) { Rat result; result.init (nom*other.denom + denom*other.nom, denom * other.denom); return result; } Rat operator + (Rat other) { Rat result; result.init (nom*other.denom + denom*other.nom, denom * other.denom); return result; } Rat mult (Rat other) { Rat result; result.init (nom*other.nom, denom * other.denom); return result; } Rat operator * (Rat other) { Rat result; result.init (nom*other.nom, denom * other.denom); return result; } }; int main () { Rat r1,r2,r3; r1.read(); r2.read(); r1.mult (r1.plus(r2.mult(r1))).print(); r3 = r1 * (r1 + r2 * r1); r3.print(); }
.data bl: .asciiz "\n" number: .word 0 fatorial: .word 0 text0: .asciiz "Digite o numero para calcular o fatorial: " text1: .asciiz "Serio?" text2: .asciiz "O fatorial e: 1" text3: .asciiz "O fatorial e: " .text main: # Line 4 - Output la $a0, text0 jal printText jal breakLine # Line 5 - Input jal userInput sw $v0, number jal breakLine # Line 6 - If lw $s7, number addi $s6, $zero, 0 bge $s7, $s6, else0 if0: # Line 7 - Output la $a0, text1 jal printText jal breakLine # Line 8 - End if j endElse0 else0: # Line 9 - Elif # Line 10 - If lw $s7, number addi $s6, $zero, 0 bne $s7, $s6, else1 if1: # Line 11 - Output la $a0, text2 jal printText jal breakLine # Line 12 - End if j endElse1 else1: # Line 13 - Else # Line 14 - Assignment lw $s7, number sw $s7, fatorial # Line 15 - While lw $s7, number addi $s6, $zero, 2 bgt $s7, $s6, while0 j endWhile0 while0: # Line 16 - Assignment lw $s7, number sub $t0, $s7, 1 # Line 17 - Assignment lw $s7, fatorial mul $s7, $s7, $t0 sw $s7, fatorial # Line 18 - Assignment lw $s7, number sub $s7, $s7, 1 sw $s7, number # Line 19 - End while lw $s7, number addi $s6, $zero, 2 bgt $s7, $s6, while0 endWhile0: # Line 20 - Output la $a0, text3 jal printText jal breakLine # Line 21 - Output lw $a0, fatorial jal printValue jal breakLine # Line 22 - End if endElse1: endElse0: j finishProgram printValue: li $v0, 1 syscall jr $ra printText: li $v0, 4 syscall jr $ra userInput: li $v0, 5 syscall jr $ra breakLine: li $v0, 4 la $a0, bl syscall jr $ra finishProgram: li $v0, 10 syscall
; /* ; * Provide SSE luma and chroma mc functions for HEVC decoding ; * Copyright (c) 2013 Pierre-Edouard LEPERE ; * ; * This file is part of FFmpeg. ; * ; * FFmpeg is free software; you can redistribute it and/or ; * modify it under the terms of the GNU Lesser General Public ; * License as published by the Free Software Foundation; either ; * version 2.1 of the License, or (at your option) any later version. ; * ; * FFmpeg 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 ; * Lesser General Public License for more details. ; * ; * You should have received a copy of the GNU Lesser General Public ; * License along with FFmpeg; if not, write to the Free Software ; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ; */ %include "libavutil/x86/x86util.asm" SECTION_RODATA pw_8: times 8 dw 512 pw_10: times 8 dw 2048 pw_bi_8: times 8 dw 256 pw_bi_10: times 8 dw 1024 max_pixels_10: times 8 dw 1023 zero: times 4 dd 0 one_per_32: times 4 dd 1 SECTION .text %macro EPEL_TABLE 4 hevc_epel_filters_%4_%1 times %2 d%3 -2, 58 times %2 d%3 10, -2 times %2 d%3 -4, 54 times %2 d%3 16, -2 times %2 d%3 -6, 46 times %2 d%3 28, -4 times %2 d%3 -4, 36 times %2 d%3 36, -4 times %2 d%3 -4, 28 times %2 d%3 46, -6 times %2 d%3 -2, 16 times %2 d%3 54, -4 times %2 d%3 -2, 10 times %2 d%3 58, -2 %endmacro EPEL_TABLE 8, 8, b, sse4 EPEL_TABLE 10, 4, w, sse4 %macro QPEL_TABLE 4 hevc_qpel_filters_%4_%1 times %2 d%3 -1, 4 times %2 d%3 -10, 58 times %2 d%3 17, -5 times %2 d%3 1, 0 times %2 d%3 -1, 4 times %2 d%3 -11, 40 times %2 d%3 40,-11 times %2 d%3 4, -1 times %2 d%3 0, 1 times %2 d%3 -5, 17 times %2 d%3 58,-10 times %2 d%3 4, -1 %endmacro QPEL_TABLE 8, 8, b, sse4 QPEL_TABLE 10, 4, w, sse4 %define hevc_qpel_filters_sse4_14 hevc_qpel_filters_sse4_10 %if ARCH_X86_64 %macro SIMPLE_BILOAD 4 ;width, tab, r1, r2 %if %1 <= 4 movq %3, [%2] ; load data from source2 %elif %1 <= 8 movdqa %3, [%2] ; load data from source2 %elif %1 <= 12 movdqa %3, [%2] ; load data from source2 movq %4, [%2+16] ; load data from source2 %else movdqa %3, [%2] ; load data from source2 movdqa %4, [%2+16] ; load data from source2 %endif %endmacro %macro SIMPLE_LOAD 4 ;width, bitd, tab, r1 %if %1 == 2 || (%2 == 8 && %1 <= 4) movd %4, [%3] ; load data from source %elif %1 == 4 || (%2 == 8 && %1 <= 8) movq %4, [%3] ; load data from source %else movdqu %4, [%3] ; load data from source %endif %endmacro %macro SIMPLE_8LOAD 5 ;width, bitd, tab, r1, r2 %if %1 == 2 || (%2 == 8 && %1 <= 4) movq %4, [%3] ; load data from source2 %elif %1 == 4 || (%2 == 8 && %1 <= 8) movdqa %4, [%3] ; load data from source2 %elif %1 <= 12 movdqa %4, [%3] ; load data from source2 movq %5, [%3+16] ; load data from source2 %else movdqa %4, [%3] ; load data from source2 movdqa %5, [%3+16] ; load data from source2 %endif %endmacro %macro EPEL_FILTER 2-4 ; bit depth, filter index %ifdef PIC lea rfilterq, [hevc_epel_filters_sse4_%1] %else %define rfilterq hevc_epel_filters_sse4_%1 %endif sub %2q, 1 shl %2q, 5 ; multiply by 32 %if %0 == 2 movdqa m14, [rfilterq + %2q] ; get 2 first values of filters movdqa m15, [rfilterq + %2q+16] ; get 2 last values of filters %else movdqa %3, [rfilterq + %2q] ; get 2 first values of filters movdqa %4, [rfilterq + %2q+16] ; get 2 last values of filters %endif %endmacro %macro EPEL_HV_FILTER 1 %ifdef PIC lea rfilterq, [hevc_epel_filters_sse4_%1] %else %define rfilterq hevc_epel_filters_sse4_%1 %endif sub mxq, 1 sub myq, 1 shl mxq, 5 ; multiply by 32 shl myq, 5 ; multiply by 32 movdqa m14, [rfilterq + mxq] ; get 2 first values of filters movdqa m15, [rfilterq + mxq+16] ; get 2 last values of filters lea r3srcq, [srcstrideq*3] %ifdef PIC lea rfilterq, [hevc_epel_filters_sse4_10] %else %define rfilterq hevc_epel_filters_sse4_10 %endif movdqa m12, [rfilterq + myq] ; get 2 first values of filters movdqa m13, [rfilterq + myq+16] ; get 2 last values of filters %endmacro %macro QPEL_FILTER 2 %ifdef PIC lea rfilterq, [hevc_qpel_filters_sse4_%1] %else %define rfilterq hevc_qpel_filters_sse4_%1 %endif lea %2q, [%2q*8-8] movdqa m12, [rfilterq + %2q*8] ; get 4 first values of filters movdqa m13, [rfilterq + %2q*8 + 16] ; get 4 first values of filters movdqa m14, [rfilterq + %2q*8 + 32] ; get 4 first values of filters movdqa m15, [rfilterq + %2q*8 + 48] ; get 4 first values of filters %endmacro %macro EPEL_LOAD 4 %ifdef PIC lea rfilterq, [%2] %else %define rfilterq %2 %endif movdqu m0, [rfilterq ] ;load 128bit of x %ifnum %3 movdqu m1, [rfilterq+ %3] ;load 128bit of x+stride movdqu m2, [rfilterq+2*%3] ;load 128bit of x+2*stride movdqu m3, [rfilterq+3*%3] ;load 128bit of x+3*stride %else movdqu m1, [rfilterq+ %3q] ;load 128bit of x+stride movdqu m2, [rfilterq+2*%3q] ;load 128bit of x+2*stride movdqu m3, [rfilterq+r3srcq] ;load 128bit of x+2*stride %endif %if %1 == 8 %if %4 > 8 SBUTTERFLY bw, 0, 1, 10 SBUTTERFLY bw, 2, 3, 10 %else punpcklbw m0, m1 punpcklbw m2, m3 %endif %else %if %4 > 4 SBUTTERFLY wd, 0, 1, 10 SBUTTERFLY wd, 2, 3, 10 %else punpcklwd m0, m1 punpcklwd m2, m3 %endif %endif %endmacro %macro QPEL_H_LOAD 4 %assign %%stride (%1+7)/8 %if %1 == 8 %if %3 <= 4 %define %%load movd %elif %3 == 8 %define %%load movq %else %define %%load movdqu %endif %else %if %3 == 2 %define %%load movd %elif %3 == 4 %define %%load movq %else %define %%load movdqu %endif %endif %%load m0, [%2-3*%%stride] ;load data from source %%load m1, [%2-2*%%stride] %%load m2, [%2-%%stride ] %%load m3, [%2 ] %%load m4, [%2+%%stride ] %%load m5, [%2+2*%%stride] %%load m6, [%2+3*%%stride] %%load m7, [%2+4*%%stride] %if %1 == 8 %if %3 > 8 SBUTTERFLY wd, 0, 1, %4 SBUTTERFLY wd, 2, 3, %4 SBUTTERFLY wd, 4, 5, %4 SBUTTERFLY wd, 6, 7, %4 %else punpcklwd m0, m1 punpcklwd m2, m3 punpcklwd m4, m5 punpcklwd m6, m7 %endif %else %if %3 > 4 SBUTTERFLY dq, 0, 1, %4 SBUTTERFLY dq, 2, 3, %4 SBUTTERFLY dq, 4, 5, %4 SBUTTERFLY dq, 6, 7, %4 %else punpckldq m0, m1 punpckldq m2, m3 punpckldq m4, m5 punpckldq m6, m7 %endif %endif %endmacro %macro QPEL_V_LOAD 4 lea r12q, [%2] sub r12q, r3srcq movdqu m0, [r12 ] ;load x- 3*srcstride movdqu m1, [r12+ %3q ] ;load x- 2*srcstride movdqu m2, [r12+ 2*%3q ] ;load x-srcstride movdqu m3, [%2 ] ;load x movdqu m4, [%2+ %3q] ;load x+stride movdqu m5, [%2+ 2*%3q] ;load x+2*stride movdqu m6, [%2+r3srcq] ;load x+3*stride movdqu m7, [%2+ 4*%3q] ;load x+4*stride %if %1 == 8 %if %4 > 8 SBUTTERFLY bw, 0, 1, 8 SBUTTERFLY bw, 2, 3, 8 SBUTTERFLY bw, 4, 5, 8 SBUTTERFLY bw, 6, 7, 8 %else punpcklbw m0, m1 punpcklbw m2, m3 punpcklbw m4, m5 punpcklbw m6, m7 %endif %else %if %4 > 4 SBUTTERFLY wd, 0, 1, 8 SBUTTERFLY wd, 2, 3, 8 SBUTTERFLY wd, 4, 5, 8 SBUTTERFLY wd, 6, 7, 8 %else punpcklwd m0, m1 punpcklwd m2, m3 punpcklwd m4, m5 punpcklwd m6, m7 %endif %endif %endmacro %macro PEL_10STORE2 3 movd [%1], %2 %endmacro %macro PEL_10STORE4 3 movq [%1], %2 %endmacro %macro PEL_10STORE6 3 movq [%1], %2 psrldq %2, 8 movd [%1+8], %2 %endmacro %macro PEL_10STORE8 3 movdqa [%1], %2 %endmacro %macro PEL_10STORE12 3 movdqa [%1], %2 movq [%1+16], %3 %endmacro %macro PEL_10STORE16 3 PEL_10STORE8 %1, %2, %3 movdqa [%1+16], %3 %endmacro %macro PEL_8STORE2 3 pextrw [%1], %2, 0 %endmacro %macro PEL_8STORE4 3 movd [%1], %2 %endmacro %macro PEL_8STORE6 3 movd [%1], %2 pextrw [%1+4], %2, 2 %endmacro %macro PEL_8STORE8 3 movq [%1], %2 %endmacro %macro PEL_8STORE12 3 movq [%1], %2 psrldq %2, 8 movd [%1+8], %2 %endmacro %macro PEL_8STORE16 3 movdqa [%1], %2 %endmacro %macro LOOP_END 4 lea %1q, [%1q+2*%2q] ; dst += dststride lea %3q, [%3q+ %4q] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop %endmacro %macro MC_PIXEL_COMPUTE 2 ;width, bitdepth %if %2 == 8 %if %1 > 8 punpckhbw m1, m0, m2 psllw m1, 14-%2 %endif punpcklbw m0, m2 %endif psllw m0, 14-%2 %endmacro %macro EPEL_COMPUTE 4 ; bitdepth, width, filter1, filter2 %if %1 == 8 pmaddubsw m0, %3 ;x1*c1+x2*c2 pmaddubsw m2, %4 ;x3*c3+x4*c4 paddw m0, m2 %if %2 > 8 pmaddubsw m1, %3 pmaddubsw m3, %4 paddw m1, m3 %endif %else pmaddwd m0, %3 pmaddwd m2, %4 paddd m0, m2 %if %2 > 4 pmaddwd m1, %3 pmaddwd m3, %4 paddd m1, m3 %endif %if %1 != 8 psrad m0, %1-8 psrad m1, %1-8 %endif packssdw m0, m1 %endif %endmacro %macro QPEL_HV_COMPUTE 4 ; width, bitdepth, filter idx %ifdef PIC lea rfilterq, [hevc_qpel_filters_sse4_%2] %else %define rfilterq hevc_qpel_filters_sse4_%2 %endif %if %2 == 8 pmaddubsw m0, [rfilterq + %3q*8 ] ;x1*c1+x2*c2 pmaddubsw m2, [rfilterq + %3q*8+16] ;x3*c3+x4*c4 pmaddubsw m4, [rfilterq + %3q*8+32] ;x5*c5+x6*c6 pmaddubsw m6, [rfilterq + %3q*8+48] ;x7*c7+x8*c8 paddw m0, m2 paddw m4, m6 paddw m0, m4 %else pmaddwd m0, [rfilterq + %3q*8 ] pmaddwd m2, [rfilterq + %3q*8+16] pmaddwd m4, [rfilterq + %3q*8+32] pmaddwd m6, [rfilterq + %3q*8+48] paddd m0, m2 paddd m4, m6 paddd m0, m4 %if %2 != 8 psrad m0, %2-8 %endif %if %1 > 4 pmaddwd m1, [rfilterq + %3q*8 ] pmaddwd m3, [rfilterq + %3q*8+16] pmaddwd m5, [rfilterq + %3q*8+32] pmaddwd m7, [rfilterq + %3q*8+48] paddd m1, m3 paddd m5, m7 paddd m1, m5 %if %2 != 8 psrad m1, %2-8 %endif %endif p%4 m0, m1 %endif %endmacro %macro QPEL_COMPUTE 2 ; width, bitdepth %if %2 == 8 pmaddubsw m0, m12 ;x1*c1+x2*c2 pmaddubsw m2, m13 ;x3*c3+x4*c4 pmaddubsw m4, m14 ;x5*c5+x6*c6 pmaddubsw m6, m15 ;x7*c7+x8*c8 paddw m0, m2 paddw m4, m6 paddw m0, m4 %if %1 > 8 pmaddubsw m1, m12 pmaddubsw m3, m13 pmaddubsw m5, m14 pmaddubsw m7, m15 paddw m1, m3 paddw m5, m7 paddw m1, m5 %endif %else pmaddwd m0, m12 pmaddwd m2, m13 pmaddwd m4, m14 pmaddwd m6, m15 paddd m0, m2 paddd m4, m6 paddd m0, m4 %if %2 != 8 psrad m0, %2-8 %endif %if %1 > 4 pmaddwd m1, m12 pmaddwd m3, m13 pmaddwd m5, m14 pmaddwd m7, m15 paddd m1, m3 paddd m5, m7 paddd m1, m5 %if %2 != 8 psrad m1, %2-8 %endif %endif %endif %endmacro %macro BI_COMPUTE 7 ; width, bitd, src1l, src1h, scr2l, scr2h, pw paddsw %3, %5 %if %1 > 8 paddsw %4, %6 %endif UNI_COMPUTE %1, %2, %3, %4, %7 %endmacro %macro UNI_COMPUTE 5 pmulhrsw %3, %5 %if %1 > 8 || (%2 > 8 && %1 > 4) pmulhrsw %4, %5 %endif %if %2 == 8 packuswb %3, %4 %else pminsw %3, [max_pixels_%2] pmaxsw %3, [zero] %if %1 > 8 pminsw %4, [max_pixels_%2] pmaxsw %4, [zero] %endif %endif %endmacro INIT_XMM sse4 ; adds ff_ and _sse4 to function name ; ****************************** ; void put_hevc_mc_pixels(int16_t *dst, ptrdiff_t dststride, ; uint8_t *_src, ptrdiff_t _srcstride, ; int height, int mx, int my) ; ****************************** %macro HEVC_PUT_HEVC_PEL_PIXELS 2 cglobal hevc_put_hevc_pel_pixels%1_%2, 5, 5, 3, dst, dststride, src, srcstride,height pxor m2, m2 .loop SIMPLE_LOAD %1, %2, srcq, m0 MC_PIXEL_COMPUTE %1, %2 PEL_10STORE%1 dstq, m0, m1 LOOP_END dst, dststride, src, srcstride RET cglobal hevc_put_hevc_uni_pel_pixels%1_%2, 5, 5, 3, dst, dststride, src, srcstride,height pxor m2, m2 .loop SIMPLE_LOAD %1, %2, srcq, m0 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET cglobal hevc_put_hevc_bi_pel_pixels%1_%2, 7, 7, 6, dst, dststride, src, srcstride, src2, src2stride,height pxor m2, m2 movdqa m5, [pw_bi_%2] .loop SIMPLE_LOAD %1, %2, srcq, m0 SIMPLE_BILOAD %1, src2q, m3, m4 MC_PIXEL_COMPUTE %1, %2 BI_COMPUTE %1, %2, m0, m1, m3, m4, m5 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride lea src2q, [src2q+2*src2strideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET %endmacro ; ****************************** ; void put_hevc_epel_hX(int16_t *dst, ptrdiff_t dststride, ; uint8_t *_src, ptrdiff_t _srcstride, ; int width, int height, int mx, int my, ; int16_t* mcbuffer) ; ****************************** %macro HEVC_PUT_HEVC_EPEL 2 cglobal hevc_put_hevc_epel_h%1_%2, 6, 7, 6, dst, dststride, src, srcstride, height, mx, rfilter %assign %%stride ((%2 + 7)/8) EPEL_FILTER %2, mx, m4, m5 .loop EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m4, m5 PEL_10STORE%1 dstq, m0, m1 LOOP_END dst, dststride, src, srcstride RET cglobal hevc_put_hevc_uni_epel_h%1_%2, 6, 7, 7, dst, dststride, src, srcstride, height, mx, rfilter %assign %%stride ((%2 + 7)/8) movdqa m6, [pw_%2] EPEL_FILTER %2, mx, m4, m5 .loop EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m4, m5 UNI_COMPUTE %1, %2, m0, m1, m6 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET cglobal hevc_put_hevc_bi_epel_h%1_%2, 8, 9, 7, dst, dststride, src, srcstride, src2, src2stride,height, mx, rfilter movdqa m6, [pw_bi_%2] EPEL_FILTER %2, mx, m4, m5 .loop EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m4, m5 SIMPLE_BILOAD %1, src2q, m2, m3 BI_COMPUTE %1, %2, m0, m1, m2, m3, m6 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride lea src2q, [src2q+2*src2strideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET ; ****************************** ; void put_hevc_epel_v(int16_t *dst, ptrdiff_t dststride, ; uint8_t *_src, ptrdiff_t _srcstride, ; int width, int height, int mx, int my, ; int16_t* mcbuffer) ; ****************************** cglobal hevc_put_hevc_epel_v%1_%2, 7, 8, 6, dst, dststride, src, srcstride, height, r3src, my, rfilter lea r3srcq, [srcstrideq*3] sub srcq, srcstrideq EPEL_FILTER %2, my, m4, m5 .loop EPEL_LOAD %2, srcq, srcstride, %1 EPEL_COMPUTE %2, %1, m4, m5 PEL_10STORE%1 dstq, m0, m1 LOOP_END dst, dststride, src, srcstride RET cglobal hevc_put_hevc_uni_epel_v%1_%2, 7, 8, 7, dst, dststride, src, srcstride, height, r3src, my, rfilter lea r3srcq, [srcstrideq*3] movdqa m6, [pw_%2] sub srcq, srcstrideq EPEL_FILTER %2, my, m4, m5 .loop EPEL_LOAD %2, srcq, srcstride, %1 EPEL_COMPUTE %2, %1, m4, m5 UNI_COMPUTE %1, %2, m0, m1, m6 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET cglobal hevc_put_hevc_bi_epel_v%1_%2, 9, 10, 7, dst, dststride, src, srcstride, src2, src2stride,height, r3src, my, rfilter lea r3srcq, [srcstrideq*3] movdqa m6, [pw_bi_%2] sub srcq, srcstrideq EPEL_FILTER %2, my, m4, m5 .loop EPEL_LOAD %2, srcq, srcstride, %1 EPEL_COMPUTE %2, %1, m4, m5 SIMPLE_BILOAD %1, src2q, m2, m3 BI_COMPUTE %1, %2, m0, m1, m2, m3, m6 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride lea src2q, [src2q+2*src2strideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET %endmacro ; ****************************** ; void put_hevc_epel_hv(int16_t *dst, ptrdiff_t dststride, ; uint8_t *_src, ptrdiff_t _srcstride, ; int width, int height, int mx, int my) ; ****************************** %macro HEVC_PUT_HEVC_EPEL_HV 2 cglobal hevc_put_hevc_epel_hv%1_%2, 7, 9, 12 , dst, dststride, src, srcstride, height, mx, my, r3src, rfilter %assign %%stride ((%2 + 7)/8) sub srcq, srcstrideq EPEL_HV_FILTER %2 EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m4, m0 lea srcq, [srcq + srcstrideq] EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m5, m0 lea srcq, [srcq + srcstrideq] EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m6, m0 lea srcq, [srcq + srcstrideq] .loop EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m7, m0 punpcklwd m0, m4, m5 punpcklwd m2, m6, m7 %if %1 > 4 punpckhwd m1, m4, m5 punpckhwd m3, m6, m7 %endif EPEL_COMPUTE 14, %1, m12, m13 PEL_10STORE%1 dstq, m0, m1 movdqa m4, m5 movdqa m5, m6 movdqa m6, m7 LOOP_END dst, dststride, src, srcstride RET cglobal hevc_put_hevc_uni_epel_hv%1_%2, 7, 9, 12 , dst, dststride, src, srcstride, height, mx, my, r3src, rfilter %assign %%stride ((%2 + 7)/8) sub srcq, srcstrideq EPEL_HV_FILTER %2 EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m4, m0 lea srcq, [srcq + srcstrideq] EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m5, m0 lea srcq, [srcq + srcstrideq] EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m6, m0 lea srcq, [srcq + srcstrideq] .loop EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m7, m0 punpcklwd m0, m4, m5 punpcklwd m2, m6, m7 %if %1 > 4 punpckhwd m1, m4, m5 punpckhwd m3, m6, m7 %endif EPEL_COMPUTE 14, %1, m12, m13 UNI_COMPUTE %1, %2, m0, m1, [pw_%2] PEL_%2STORE%1 dstq, m0, m1 movdqa m4, m5 movdqa m5, m6 movdqa m6, m7 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET cglobal hevc_put_hevc_bi_epel_hv%1_%2, 9, 11, 16, dst, dststride, src, srcstride, src2, src2stride, height, mx, my, r3src, rfilter %assign %%stride ((%2 + 7)/8) sub srcq, srcstrideq EPEL_HV_FILTER %2 EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m4, m0 lea srcq, [srcq + srcstrideq] EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m5, m0 lea srcq, [srcq + srcstrideq] EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m6, m0 lea srcq, [srcq + srcstrideq] .loop EPEL_LOAD %2, srcq-%%stride, %%stride, %1 EPEL_COMPUTE %2, %1, m14, m15 SWAP m7, m0 punpcklwd m0, m4, m5 punpcklwd m2, m6, m7 %if %1 > 4 punpckhwd m1, m4, m5 punpckhwd m3, m6, m7 %endif EPEL_COMPUTE 14, %1, m12, m13 SIMPLE_BILOAD %1, src2q, m8, m9 BI_COMPUTE %1, %2, m0, m1, m8, m9, [pw_bi_%2] PEL_%2STORE%1 dstq, m0, m1 movdqa m4, m5 movdqa m5, m6 movdqa m6, m7 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride lea src2q, [src2q+2*src2strideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET %endmacro ; ****************************** ; void put_hevc_qpel_hX_X_X(int16_t *dst, ptrdiff_t dststride, ; uint8_t *_src, ptrdiff_t _srcstride, ; int width, int height, int mx, int my) ; ****************************** %macro HEVC_PUT_HEVC_QPEL 2 cglobal hevc_put_hevc_qpel_h%1_%2, 6, 7, 15 , dst, dststride, src, srcstride, height, mx, rfilter QPEL_FILTER %2, mx .loop QPEL_H_LOAD %2, srcq, %1, 10 QPEL_COMPUTE %1, %2 %if %2 > 8 packssdw m0, m1 %endif PEL_10STORE%1 dstq, m0, m1 LOOP_END dst, dststride, src, srcstride RET cglobal hevc_put_hevc_uni_qpel_h%1_%2, 6, 7, 15 , dst, dststride, src, srcstride, height, mx, rfilter movdqa m9, [pw_%2] QPEL_FILTER %2, mx .loop QPEL_H_LOAD %2, srcq, %1, 10 QPEL_COMPUTE %1, %2 %if %2 > 8 packssdw m0, m1 %endif UNI_COMPUTE %1, %2, m0, m1, m9 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET cglobal hevc_put_hevc_bi_qpel_h%1_%2, 8, 9, 16 , dst, dststride, src, srcstride, src2, src2stride, height, mx, rfilter movdqa m9, [pw_bi_%2] QPEL_FILTER %2, mx .loop QPEL_H_LOAD %2, srcq, %1, 10 QPEL_COMPUTE %1, %2 %if %2 > 8 packssdw m0, m1 %endif SIMPLE_BILOAD %1, src2q, m10, m11 BI_COMPUTE %1, %2, m0, m1, m10, m11, m9 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride lea src2q, [src2q+2*src2strideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET ; ****************************** ; void put_hevc_qpel_vX_X_X(int16_t *dst, ptrdiff_t dststride, ; uint8_t *_src, ptrdiff_t _srcstride, ; int width, int height, int mx, int my) ; ****************************** cglobal hevc_put_hevc_qpel_v%1_%2, 7, 14, 15 , dst, dststride, src, srcstride, height, r3src, my, rfilter lea r3srcq, [srcstrideq*3] QPEL_FILTER %2, my .loop QPEL_V_LOAD %2, srcq, srcstride, %1 QPEL_COMPUTE %1, %2 %if %2 > 8 packssdw m0, m1 %endif PEL_10STORE%1 dstq, m0, m1 LOOP_END dst, dststride, src, srcstride RET cglobal hevc_put_hevc_uni_qpel_v%1_%2, 7, 14, 15 , dst, dststride, src, srcstride, height, r3src, my, rfilter movdqa m9, [pw_%2] lea r3srcq, [srcstrideq*3] QPEL_FILTER %2, my .loop QPEL_V_LOAD %2, srcq, srcstride, %1 QPEL_COMPUTE %1, %2 %if %2 > 8 packusdw m0, m1 %endif UNI_COMPUTE %1, %2, m0, m1, m9 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET cglobal hevc_put_hevc_bi_qpel_v%1_%2, 9, 14, 16 , dst, dststride, src, srcstride, src2, src2stride, height, r3src, my, rfilter movdqa m9, [pw_bi_%2] lea r3srcq, [srcstrideq*3] QPEL_FILTER %2, my .loop SIMPLE_BILOAD %1, src2q, m10, m11 QPEL_V_LOAD %2, srcq, srcstride, %1 QPEL_COMPUTE %1, %2 %if %2 > 8 packssdw m0, m1 %endif BI_COMPUTE %1, %2, m0, m1, m10, m11, m9 PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride lea src2q, [src2q+2*src2strideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET %endmacro ; ****************************** ; void put_hevc_qpel_hvX_X(int16_t *dst, ptrdiff_t dststride, ; uint8_t *_src, ptrdiff_t _srcstride, ; int height, int mx, int my) ; ****************************** %macro HEVC_PUT_HEVC_QPEL_HV 2 cglobal hevc_put_hevc_qpel_hv%1_%2, 7, 9, 12 , dst, dststride, src, srcstride, height, mx, my, r3src, rfilter lea mxq, [mxq*8-8] lea myq, [myq*8-8] lea r3srcq, [srcstrideq*3] sub srcq, r3srcq QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m8, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m9, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m10, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m11, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m12, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m13, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m14, m0 lea srcq, [srcq + srcstrideq] .loop QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m15, m0 punpcklwd m0, m8, m9 punpcklwd m2, m10, m11 punpcklwd m4, m12, m13 punpcklwd m6, m14, m15 %if %1 > 4 punpckhwd m1, m8, m9 punpckhwd m3, m10, m11 punpckhwd m5, m12, m13 punpckhwd m7, m14, m15 %endif QPEL_HV_COMPUTE %1, 14, my, ackssdw PEL_10STORE%1 dstq, m0, m1 %if %1 <= 4 movq m8, m9 movq m9, m10 movq m10, m11 movq m11, m12 movq m12, m13 movq m13, m14 movq m14, m15 %else movdqa m8, m9 movdqa m9, m10 movdqa m10, m11 movdqa m11, m12 movdqa m12, m13 movdqa m13, m14 movdqa m14, m15 %endif LOOP_END dst, dststride, src, srcstride RET cglobal hevc_put_hevc_uni_qpel_hv%1_%2, 7, 9, 12 , dst, dststride, src, srcstride, height, mx, my, r3src, rfilter lea mxq, [mxq*8-8] lea myq, [myq*8-8] lea r3srcq, [srcstrideq*3] sub srcq, r3srcq QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m8, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m9, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m10, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m11, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m12, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m13, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m14, m0 lea srcq, [srcq + srcstrideq] .loop QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m15, m0 punpcklwd m0, m8, m9 punpcklwd m2, m10, m11 punpcklwd m4, m12, m13 punpcklwd m6, m14, m15 %if %1 > 4 punpckhwd m1, m8, m9 punpckhwd m3, m10, m11 punpckhwd m5, m12, m13 punpckhwd m7, m14, m15 %endif QPEL_HV_COMPUTE %1, 14, my, ackusdw UNI_COMPUTE %1, %2, m0, m1, [pw_%2] PEL_%2STORE%1 dstq, m0, m1 %if %1 <= 4 movq m8, m9 movq m9, m10 movq m10, m11 movq m11, m12 movq m12, m13 movq m13, m14 movq m14, m15 %else movdqa m8, m9 movdqa m9, m10 movdqa m10, m11 movdqa m11, m12 movdqa m12, m13 movdqa m13, m14 movdqa m14, m15 %endif lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET cglobal hevc_put_hevc_bi_qpel_hv%1_%2, 9, 11, 16, dst, dststride, src, srcstride, src2, src2stride, height, mx, my, r3src, rfilter lea mxq, [mxq*8-8] lea myq, [myq*8-8] lea r3srcq, [srcstrideq*3] sub srcq, r3srcq QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m8, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m9, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m10, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m11, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m12, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m13, m0 lea srcq, [srcq + srcstrideq] QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m14, m0 lea srcq, [srcq + srcstrideq] .loop QPEL_H_LOAD %2, srcq, %1, 15 QPEL_HV_COMPUTE %1, %2, mx, ackssdw SWAP m15, m0 punpcklwd m0, m8, m9 punpcklwd m2, m10, m11 punpcklwd m4, m12, m13 punpcklwd m6, m14, m15 %if %1 > 4 punpckhwd m1, m8, m9 punpckhwd m3, m10, m11 punpckhwd m5, m12, m13 punpckhwd m7, m14, m15 %endif QPEL_HV_COMPUTE %1, 14, my, ackssdw SIMPLE_BILOAD %1, src2q, m8, m9 ;m9 not used in this case BI_COMPUTE %1, %2, m0, m1, m8, m9, [pw_bi_%2] PEL_%2STORE%1 dstq, m0, m1 %if %1 <= 4 movq m8, m9 movq m9, m10 movq m10, m11 movq m11, m12 movq m12, m13 movq m13, m14 movq m14, m15 %else movdqa m8, m9 movdqa m9, m10 movdqa m10, m11 movdqa m11, m12 movdqa m12, m13 movdqa m13, m14 movdqa m14, m15 %endif lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+srcstrideq] ; src += srcstride lea src2q, [src2q+2*src2strideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET %endmacro %macro WEIGHTING_FUNCS 2 %if WIN64 || ARCH_X86_32 cglobal hevc_put_hevc_uni_w%1_%2, 4, 5, 7, dst, dststride, src, srcstride, height, denom, wx, ox mov r4d, denomm %define SHIFT r4d %else cglobal hevc_put_hevc_uni_w%1_%2, 6, 6, 7, dst, dststride, src, srcstride, height, denom, wx, ox %define SHIFT denomd %endif lea SHIFT, [SHIFT+14-%2] ; shift = 14 - bitd + denom movd m2, wxm ; WX movd m4, SHIFT ; shift punpcklwd m2, m2 dec SHIFT movdqu m5, [one_per_32] movd m6, SHIFT pshufd m2, m2, 0 mov SHIFT, oxm pslld m5, m6 %if %2 != 8 shl SHIFT, %2-8 ; ox << (bitd - 8) %endif movd m3, SHIFT ; OX pshufd m3, m3, 0 %if WIN64 || ARCH_X86_32 mov SHIFT, heightm %endif .loop SIMPLE_LOAD %1, 10, srcq, m0 pmulhw m6, m0, m2 pmullw m0, m2 punpckhwd m1, m0, m6 punpcklwd m0, m6 paddd m0, m5 paddd m1, m5 psrad m0, m4 psrad m1, m4 paddd m0, m3 paddd m1, m3 packusdw m0, m1 %if %2 == 8 packuswb m0, m0 %else pminsw m0, [max_pixels_%2] %endif PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+2*srcstrideq] ; src += srcstride dec heightd ; cmp height jnz .loop ; height loop RET cglobal hevc_put_hevc_bi_w%1_%2, 6, 7, 10, dst, dststride, src, srcstride, src2, src2stride, height, denom, wx0, wx1, ox0, ox1 mov r6d, denomm movd m2, wx0m ; WX0 lea r6d, [r6d+14-%2] ; shift = 14 - bitd + denom movd m3, wx1m ; WX1 movd m0, r6d ; shift punpcklwd m2, m2 inc r6d punpcklwd m3, m3 movd m5, r6d ; shift+1 pshufd m2, m2, 0 mov r6d, ox0m pshufd m3, m3, 0 add r6d, ox1m %if %2 != 8 shl r6d, %2-8 ; ox << (bitd - 8) %endif inc r6d movd m4, r6d ; offset pshufd m4, m4, 0 mov r6d, heightm pslld m4, m0 .loop SIMPLE_LOAD %1, 10, srcq, m0 SIMPLE_LOAD %1, 10, src2q, m8 pmulhw m6, m0, m3 pmullw m0, m3 pmulhw m7, m8, m2 pmullw m8, m2 punpckhwd m1, m0, m6 punpcklwd m0, m6 punpckhwd m9, m8, m7 punpcklwd m8, m7 paddd m0, m8 paddd m1, m9 paddd m0, m4 paddd m1, m4 psrad m0, m5 psrad m1, m5 packusdw m0, m1 %if %2 == 8 packuswb m0, m0 %else pminsw m0, [max_pixels_%2] %endif PEL_%2STORE%1 dstq, m0, m1 lea dstq, [dstq+dststrideq] ; dst += dststride lea srcq, [srcq+2*srcstrideq] ; src += srcstride lea src2q, [src2q+2*src2strideq] ; src2 += srcstride dec r6d ; cmp height jnz .loop ; height loop RET %endmacro WEIGHTING_FUNCS 2, 8 WEIGHTING_FUNCS 4, 8 WEIGHTING_FUNCS 6, 8 WEIGHTING_FUNCS 8, 8 WEIGHTING_FUNCS 2, 10 WEIGHTING_FUNCS 4, 10 WEIGHTING_FUNCS 6, 10 WEIGHTING_FUNCS 8, 10 HEVC_PUT_HEVC_PEL_PIXELS 2, 8 HEVC_PUT_HEVC_PEL_PIXELS 4, 8 HEVC_PUT_HEVC_PEL_PIXELS 6, 8 HEVC_PUT_HEVC_PEL_PIXELS 8, 8 HEVC_PUT_HEVC_PEL_PIXELS 12, 8 HEVC_PUT_HEVC_PEL_PIXELS 16, 8 HEVC_PUT_HEVC_PEL_PIXELS 2, 10 HEVC_PUT_HEVC_PEL_PIXELS 4, 10 HEVC_PUT_HEVC_PEL_PIXELS 6, 10 HEVC_PUT_HEVC_PEL_PIXELS 8, 10 HEVC_PUT_HEVC_EPEL 2, 8 HEVC_PUT_HEVC_EPEL 4, 8 HEVC_PUT_HEVC_EPEL 6, 8 HEVC_PUT_HEVC_EPEL 8, 8 HEVC_PUT_HEVC_EPEL 12, 8 HEVC_PUT_HEVC_EPEL 16, 8 HEVC_PUT_HEVC_EPEL 2, 10 HEVC_PUT_HEVC_EPEL 4, 10 HEVC_PUT_HEVC_EPEL 6, 10 HEVC_PUT_HEVC_EPEL 8, 10 HEVC_PUT_HEVC_EPEL_HV 2, 8 HEVC_PUT_HEVC_EPEL_HV 4, 8 HEVC_PUT_HEVC_EPEL_HV 6, 8 HEVC_PUT_HEVC_EPEL_HV 8, 8 HEVC_PUT_HEVC_EPEL_HV 2, 10 HEVC_PUT_HEVC_EPEL_HV 4, 10 HEVC_PUT_HEVC_EPEL_HV 6, 10 HEVC_PUT_HEVC_EPEL_HV 8, 10 HEVC_PUT_HEVC_QPEL 4, 8 HEVC_PUT_HEVC_QPEL 8, 8 HEVC_PUT_HEVC_QPEL 12, 8 HEVC_PUT_HEVC_QPEL 16, 8 HEVC_PUT_HEVC_QPEL 4, 10 HEVC_PUT_HEVC_QPEL 8, 10 HEVC_PUT_HEVC_QPEL_HV 2, 8 HEVC_PUT_HEVC_QPEL_HV 4, 8 HEVC_PUT_HEVC_QPEL_HV 6, 8 HEVC_PUT_HEVC_QPEL_HV 8, 8 HEVC_PUT_HEVC_QPEL_HV 2, 10 HEVC_PUT_HEVC_QPEL_HV 4, 10 HEVC_PUT_HEVC_QPEL_HV 6, 10 HEVC_PUT_HEVC_QPEL_HV 8, 10 %endif ; ARCH_X86_64
/* RFC - KListBox.cpp Copyright (C) 2013-2019 CrownSoft This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include "../rfc.h" #include "KListBox.h" KListBox::KListBox(bool multipleSelection, bool sort, bool vscroll) : KComponent(false) { this->multipleSelection = multipleSelection; listener = 0; selectedItemIndex = -1; selectedItemEnd = -1; compClassName.AssignStaticText(TXT_WITH_LEN("LISTBOX")); compWidth = 100; compHeight = 100; compX = 0; compY = 0; compDwStyle = LBS_NOTIFY | WS_CHILD | WS_CLIPSIBLINGS | WS_TABSTOP; compDwExStyle = WS_EX_CLIENTEDGE | WS_EX_WINDOWEDGE; if(multipleSelection) compDwStyle = compDwStyle | LBS_MULTIPLESEL; if(sort) compDwStyle = compDwStyle | LBS_SORT; if(vscroll) compDwStyle = compDwStyle | WS_VSCROLL; stringList = new KPointerList<KString*>(100); } void KListBox::SetListener(KListBoxListener *listener) { this->listener = listener; } void KListBox::AddItem(const KString& text) { KString *str = new KString(text); stringList->AddPointer(str); if(compHWND) ::SendMessageW(compHWND, LB_ADDSTRING, 0, (LPARAM)(const wchar_t*)*str); } void KListBox::RemoveItem(int index) { KString *text = stringList->GetPointer(index); if (text) delete text; stringList->RemovePointer(index); if(compHWND) ::SendMessageW(compHWND, LB_DELETESTRING, index, 0); } void KListBox::RemoveItem(const KString& text) { const int itemIndex = this->GetItemIndex(text); if(itemIndex > -1) this->RemoveItem(itemIndex); } int KListBox::GetItemIndex(const KString& text) { const int listSize = stringList->GetSize(); if(listSize) { for(int i = 0; i < listSize; i++) { if (stringList->GetPointer(i)->Compare(text)) return i; } } return -1; } int KListBox::GetItemCount() { return stringList->GetSize(); } int KListBox::GetSelectedItemIndex() { if(compHWND) { const int index = (int)::SendMessageW(compHWND, LB_GETCURSEL, 0, 0); if(index != LB_ERR) return index; } return -1; } KString KListBox::GetSelectedItem() { const int itemIndex = this->GetSelectedItemIndex(); if(itemIndex > -1) return *stringList->GetPointer(itemIndex); return KString(); } int KListBox::GetSelectedItems(int* itemArray, int itemCountInArray) { if(compHWND) { const int items = (int)::SendMessageW(compHWND, LB_GETSELITEMS, itemCountInArray, (LPARAM)itemArray); if(items != LB_ERR) return items; } return -1; } void KListBox::ClearList() { stringList->DeleteAll(true); if(compHWND) ::SendMessageW(compHWND, LB_RESETCONTENT, 0, 0); } void KListBox::SelectItem(int index) { selectedItemIndex = index; if(compHWND) ::SendMessageW(compHWND, LB_SETCURSEL, index, 0); } void KListBox::SelectItems(int start, int end) { if(multipleSelection) { selectedItemIndex = start; selectedItemEnd = end; if(compHWND) ::SendMessageW(compHWND, LB_SELITEMRANGE, TRUE, MAKELPARAM(start, end)); } } bool KListBox::EventProc(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *result) { if (msg == WM_COMMAND) { if (HIWORD(wParam) == LBN_SELCHANGE) // listbox sel change! { this->OnItemSelect(); *result = 0; return true; } else if (HIWORD(wParam) == LBN_DBLCLK) // listbox double click { this->OnItemDoubleClick(); *result = 0; return true; } } return KComponent::EventProc(msg, wParam, lParam, result); } bool KListBox::Create(bool requireInitialMessages) { if(!compParentHWND) // user must specify parent handle! return false; ::CreateRFCComponent(this, requireInitialMessages); // we dont need to register LISTBOX class! if(compHWND) { ::SendMessageW(compHWND, WM_SETFONT, (WPARAM)compFont->GetFontHandle(), MAKELPARAM(true, 0)); // set font! ::EnableWindow(compHWND, compEnabled); const int listSize = stringList->GetSize(); if(listSize) { for(int i = 0; i < listSize; i++) ::SendMessageW(compHWND, LB_ADDSTRING, 0, (LPARAM)(const wchar_t*)*stringList->GetPointer(i)); } if(!multipleSelection) // single selction! { if(selectedItemIndex > -1) ::SendMessageW(compHWND, LB_SETCURSEL, selectedItemIndex, 0); }else { if(selectedItemIndex>-1) ::SendMessageW(compHWND, LB_SELITEMRANGE, TRUE, MAKELPARAM(selectedItemIndex, selectedItemEnd)); } if(compVisible) ::ShowWindow(compHWND, SW_SHOW); return true; } return false; } void KListBox::OnItemSelect() { if(listener) listener->OnListBoxItemSelect(this); } void KListBox::OnItemDoubleClick() { if(listener) listener->OnListBoxItemDoubleClick(this); } KListBox::~KListBox() { stringList->DeleteAll(false); delete stringList; }
#include <iostream> int main() { std::cout << " a = ? "; int a{}; std::cin >> a; std::cout << " b = ? "; int b{}; std::cin >> b; std::cout << "\n"; std::cout << " a + b = " << (a + b) << "\n"; std::cout << " a - b = " << (a - b) << "\n"; std::cout << " a * b = " << (a * b) << "\n"; std::cout << " a / b = " << (a / b) << "\n"; std::cout << " a % b = " << (a % b) << "\n"; }
;Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ ; ; 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 Texas Instruments Incorporated 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. ; ; brief: contains the line delay measurement of the synchronization state implementation ; ; Version Description Author ; 0.1 Created Thomas Mauer ;include section .include "../include/macros/macros.inc" .include "../include/icss/icss_regs.inc" .include "../include/protocol/sorte_pru_slave_register.inc" .include "../include/protocol/sorte_host_interface.inc" .include "../include/protocol/sorte_packet_definition.inc" .include "../include/protocol/sorte_slave_cfg.inc" .include "../include/protocol/sorte_state_define.inc" .global FN_LINE_DELAY_MASTER .global FN_LINE_DELAY_SLAVE .global STATE_MACHINE_RETURN ;**************************** ; line delay master function ;**************************** ; entry point called by main state machine for LINE DELAY state ; MASTER in this context is originator of the LINE DELAY measurement frame FN_LINE_DELAY_MASTER: ; Check to see if the PRU received a line delay trigger via scratch register ldi R0.b0, SHIFT_LINE_DELAY_TRIGGER xin SCRATCH_BANK0, &TEMP_REG_1.b0, 1 qbeq FN_LINE_DELAY_DONE, TEMP_REG_1.b0, 0 ; send LINE DELAY measurment frame ; pre-amble ; send 8 byte PA (preamble) .if $defined(FULL_PREAMBLE) ldi TX_DATA_WORD, 0x5555 NOP M_PUSH_WORD ldi TX_DATA_WORD, 0x5555 NOP M_PUSH_WORD .endif ; send 4 byte pre-amble ldi TX_DATA_WORD, 0x5555 NOP M_PUSH_WORD ldi TX_DATA_WORD, 0xd555 NOP M_PUSH_WORD ; 4 bytes header ldi32 TEMP_REG_2, DELAY_REQ_P mov TX_DATA_WORD, TEMP_REG_2.w0 NOP M_PUSH_WORD ; state change bit? qbne LINE_DELAY_MASTER_LAST, TEMP_REG_1.b0, 2 ; set set TEMP_REG_2.b3, TEMP_REG_2.b3, 3 ;ST_STATE_CHANGE ; initiate state change set DEVICE_STATUS, DEVICE_STATUS, SWITCH_PORT_CONFIG ldi PROTOCOL_STATE, SYNC_STATE LINE_DELAY_MASTER_LAST: mov TX_DATA_WORD, TEMP_REG_2.w2 NOP M_PUSH_WORD ; end packet with crc generated by PRU M_CMD16 D_PUSH_CRC_MSWORD_CMD | D_PUSH_CRC_LSWORD_CMD | D_TX_EOF ; clear scratch register ldi TEMP_REG_1.b0, 0 xout SCRATCH_BANK0, &TEMP_REG_1.b0, 1 ; receive DELAY_RESP packet LINE_DELAY_MASTER_WAIT_BANK0: xin RXL2_BANK0, &R18.b0, 1 qbeq LINE_DELAY_MASTER_WAIT_BANK0, R18.b0, 0 ; read rx and tx time stamp - sof based .if $defined (PRU0) lbco &R2,ICSS_IEP_CONST, ICSS_IEP_CAPR0_REG, 4 lbco &R6,ICSS_IEP_CONST, ICSS_IEP_CAPR4_REG, 4 ; use port 0, caculate difference between RX_SOF and TX_SOF sub TEMP_REG_1, R2, R6 .else lbco &R2,ICSS_IEP_CONST, ICSS_IEP_CAPR2_REG, 4 lbco &R6,ICSS_IEP_CONST, ICSS_IEP_CAPR5_REG, 4 ; use port 1, caculate difference between RX_SOF and TX_SOF sub TEMP_REG_1, R4, R7 .endif lbco &TEMP_REG_2, ICSS_SHARED_RAM_CONST, PORT_DELAY, 4 ; divide by n --> measurement results complete the measurement. lsr TEMP_REG_1, TEMP_REG_1, LD_SHIFT_16 add TEMP_REG_2,TEMP_REG_2, TEMP_REG_1 sbco &TEMP_REG_2, ICSS_SHARED_RAM_CONST, PORT_DELAY, 4 set DEVICE_STATUS, DEVICE_STATUS, RX_IGNORE_TO_EOF LINE_DELAY_MASTER_DONE: jmp STATE_MACHINE_RETURN ;*************************** ; line delay slave function ;*************************** ; SLAVE in this context is the responder to the LINE DELAY measurement frame FN_LINE_DELAY_SLAVE: M_XIN_L2_BANK0 LD_SLAVE_FRAME_PROCESS, 4 LD_SLAVE_FRAME_PROCESS: ; Check to see if the PRU received a line delay trigger qbne LINE_DELAY_IGNORE_FRAME, R2.b2, T_LD_REQ_P2P ; trigger line delay measurement on other PRU via scratch register ldi R0.b0, SHIFT_LINE_DELAY_TRIGGER ldi TEMP_REG_1.b0, 1 ; trigger line delay w/o state change qbbc LD_SLAVE_TRIGGER_LD, R2.b3, 3 ; ST_STATE_CHANGE ldi TEMP_REG_1.b0, 2 ; trigger line delay with state change (last line delay measurement) ; state change ldi PROTOCOL_STATE, SYNC_STATE set DEVICE_STATUS, DEVICE_STATUS, SWITCH_PORT_CONFIG ; last slave needs to initiate state and port switch here qbbs LD_SLAVE_TRIGGER_LD, DEVICE_STATUS, PRU_MASTER_PORT_FLAG ; initiate port switching for last slave ; clear scratch pad LDI TEMP_REG_1.b0, 0 LD_SLAVE_TRIGGER_LD: xout SCRATCH_BANK0, &TEMP_REG_1.b0, 1 LINE_DELAY_IGNORE_FRAME: set DEVICE_STATUS, DEVICE_STATUS, RX_IGNORE_TO_EOF FN_LINE_DELAY_DONE: jmp STATE_MACHINE_RETURN
; A077999: Expansion of (1-x)/(1-2*x-2*x^3). ; Submitted by Jamie Morken(s4) ; 1,1,2,6,14,32,76,180,424,1000,2360,5568,13136,30992,73120,172512,407008,960256,2265536,5345088,12610688,29752448,70195072,165611520,390727936,921846016,2174915072,5131286016,12106264064,28562358272,67387288576,158987105280,375098927104,884972431360,2087919073280,4926036000768,11622016864256,27419871875072,64691815751680,152627665231872,360095074213888,849573779931136,2004402890326016,4728995929079808,11157139418021888,26323084616695808,62104161091551232,146522601019146240,345691371271684096 mov $2,1 mov $4,1 lpb $0 sub $0,1 mul $1,2 add $1,$4 mul $2,2 mov $4,$3 mov $3,$2 mov $2,$1 lpe mov $0,$2
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: flyteidl/admin/execution.proto #include "flyteidl/admin/execution.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format_lite_inl.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> // @@protoc_insertion_point(includes) #include <google/protobuf/port_def.inc> extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<7> scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; namespace flyteidl { namespace admin { class ExecutionCreateRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionCreateRequest> _instance; } _ExecutionCreateRequest_default_instance_; class ExecutionRelaunchRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionRelaunchRequest> _instance; } _ExecutionRelaunchRequest_default_instance_; class ExecutionCreateResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionCreateResponse> _instance; } _ExecutionCreateResponse_default_instance_; class WorkflowExecutionGetRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<WorkflowExecutionGetRequest> _instance; } _WorkflowExecutionGetRequest_default_instance_; class ExecutionDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<Execution> _instance; } _Execution_default_instance_; class ExecutionListDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionList> _instance; } _ExecutionList_default_instance_; class LiteralMapBlobDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<LiteralMapBlob> _instance; const ::flyteidl::core::LiteralMap* values_; ::google::protobuf::internal::ArenaStringPtr uri_; } _LiteralMapBlob_default_instance_; class ExecutionClosureDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionClosure> _instance; const ::flyteidl::admin::LiteralMapBlob* outputs_; const ::flyteidl::core::ExecutionError* error_; ::google::protobuf::internal::ArenaStringPtr abort_cause_; } _ExecutionClosure_default_instance_; class ExecutionMetadataDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionMetadata> _instance; } _ExecutionMetadata_default_instance_; class NotificationListDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<NotificationList> _instance; } _NotificationList_default_instance_; class ExecutionSpecDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionSpec> _instance; const ::flyteidl::admin::NotificationList* notifications_; bool disable_all_; } _ExecutionSpec_default_instance_; class ExecutionTerminateRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionTerminateRequest> _instance; } _ExecutionTerminateRequest_default_instance_; class ExecutionTerminateResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<ExecutionTerminateResponse> _instance; } _ExecutionTerminateResponse_default_instance_; class WorkflowExecutionGetDataRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<WorkflowExecutionGetDataRequest> _instance; } _WorkflowExecutionGetDataRequest_default_instance_; class WorkflowExecutionGetDataResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<WorkflowExecutionGetDataResponse> _instance; } _WorkflowExecutionGetDataResponse_default_instance_; } // namespace admin } // namespace flyteidl static void InitDefaultsExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionCreateRequest_default_instance_; new (ptr) ::flyteidl::admin::ExecutionCreateRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionCreateRequest::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<2> scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base, &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; static void InitDefaultsExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_; new (ptr) ::flyteidl::admin::ExecutionRelaunchRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionRelaunchRequest::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionCreateResponse_default_instance_; new (ptr) ::flyteidl::admin::ExecutionCreateResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionCreateResponse::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsWorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_; new (ptr) ::flyteidl::admin::WorkflowExecutionGetRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::WorkflowExecutionGetRequest::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsExecution_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_Execution_default_instance_; new (ptr) ::flyteidl::admin::Execution(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::Execution::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<3> scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsExecution_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base, &scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base,}}; static void InitDefaultsExecutionList_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionList_default_instance_; new (ptr) ::flyteidl::admin::ExecutionList(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionList::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionList_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base,}}; static void InitDefaultsLiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_LiteralMapBlob_default_instance_; new (ptr) ::flyteidl::admin::LiteralMapBlob(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::LiteralMapBlob::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; static void InitDefaultsExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionClosure_default_instance_; new (ptr) ::flyteidl::admin::ExecutionClosure(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionClosure::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<7> scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 7, InitDefaultsExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base, &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base, &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionMetadata_default_instance_; new (ptr) ::flyteidl::admin::ExecutionMetadata(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionMetadata::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<3> scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsNotificationList_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_NotificationList_default_instance_; new (ptr) ::flyteidl::admin::NotificationList(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::NotificationList::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNotificationList_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base,}}; static void InitDefaultsExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionSpec_default_instance_; new (ptr) ::flyteidl::admin::ExecutionSpec(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionSpec::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<6> scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, &scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base, &scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base, &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base, &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base,}}; static void InitDefaultsExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionTerminateRequest_default_instance_; new (ptr) ::flyteidl::admin::ExecutionTerminateRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionTerminateRequest::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_ExecutionTerminateResponse_default_instance_; new (ptr) ::flyteidl::admin::ExecutionTerminateResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::ExecutionTerminateResponse::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto}, {}}; static void InitDefaultsWorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_; new (ptr) ::flyteidl::admin::WorkflowExecutionGetDataRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::WorkflowExecutionGetDataRequest::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsWorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_; new (ptr) ::flyteidl::admin::WorkflowExecutionGetDataResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::flyteidl::admin::WorkflowExecutionGetDataResponse::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto}, { &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base,}}; void InitDefaults_flyteidl_2fadmin_2fexecution_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); } ::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[15]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto[1]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fexecution_2eproto = nullptr; const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, project_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, domain_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, name_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, spec_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, inputs_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, id_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, name_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateResponse, id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetRequest, id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, id_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, spec_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, closure_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, executions_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, token_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, _oneof_case_[0]), ~0u, // no _weak_field_map_ offsetof(::flyteidl::admin::LiteralMapBlobDefaultTypeInternal, values_), offsetof(::flyteidl::admin::LiteralMapBlobDefaultTypeInternal, uri_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, data_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, _oneof_case_[0]), ~0u, // no _weak_field_map_ offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, outputs_), offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, error_), offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, abort_cause_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, computed_inputs_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, phase_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, started_at_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, duration_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, created_at_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, updated_at_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, notifications_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, workflow_id_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, output_result_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, mode_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, principal_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, nesting_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, scheduled_at_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, parent_node_execution_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, reference_execution_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NotificationList, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NotificationList, notifications_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, _oneof_case_[0]), ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, launch_plan_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, inputs_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, metadata_), offsetof(::flyteidl::admin::ExecutionSpecDefaultTypeInternal, notifications_), offsetof(::flyteidl::admin::ExecutionSpecDefaultTypeInternal, disable_all_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, labels_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, annotations_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, notification_overrides_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, id_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, cause_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataRequest, id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, outputs_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, inputs_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::admin::ExecutionCreateRequest)}, { 10, -1, sizeof(::flyteidl::admin::ExecutionRelaunchRequest)}, { 17, -1, sizeof(::flyteidl::admin::ExecutionCreateResponse)}, { 23, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetRequest)}, { 29, -1, sizeof(::flyteidl::admin::Execution)}, { 37, -1, sizeof(::flyteidl::admin::ExecutionList)}, { 44, -1, sizeof(::flyteidl::admin::LiteralMapBlob)}, { 52, -1, sizeof(::flyteidl::admin::ExecutionClosure)}, { 69, -1, sizeof(::flyteidl::admin::ExecutionMetadata)}, { 80, -1, sizeof(::flyteidl::admin::NotificationList)}, { 86, -1, sizeof(::flyteidl::admin::ExecutionSpec)}, { 99, -1, sizeof(::flyteidl::admin::ExecutionTerminateRequest)}, { 106, -1, sizeof(::flyteidl::admin::ExecutionTerminateResponse)}, { 111, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetDataRequest)}, { 117, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetDataResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionCreateRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionCreateResponse_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_Execution_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionList_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_LiteralMapBlob_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionClosure_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionMetadata_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_NotificationList_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionSpec_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionTerminateRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_ExecutionTerminateResponse_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto = { {}, AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto, "flyteidl/admin/execution.proto", schemas, file_default_instances, TableStruct_flyteidl_2fadmin_2fexecution_2eproto::offsets, file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto, 15, file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fexecution_2eproto, }; const char descriptor_table_protodef_flyteidl_2fadmin_2fexecution_2eproto[] = "\n\036flyteidl/admin/execution.proto\022\016flytei" "dl.admin\032\033flyteidl/admin/common.proto\032\034f" "lyteidl/core/literals.proto\032\035flyteidl/co" "re/execution.proto\032\036flyteidl/core/identi" "fier.proto\032\036google/protobuf/duration.pro" "to\032\037google/protobuf/timestamp.proto\"\237\001\n\026" "ExecutionCreateRequest\022\017\n\007project\030\001 \001(\t\022" "\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004spec\030\004 " "\001(\0132\035.flyteidl.admin.ExecutionSpec\022)\n\006in" "puts\030\005 \001(\0132\031.flyteidl.core.LiteralMap\"`\n" "\030ExecutionRelaunchRequest\0226\n\002id\030\001 \001(\0132*." "flyteidl.core.WorkflowExecutionIdentifie" "r\022\014\n\004name\030\003 \001(\t\"Q\n\027ExecutionCreateRespon" "se\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowE" "xecutionIdentifier\"U\n\033WorkflowExecutionG" "etRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Wo" "rkflowExecutionIdentifier\"\243\001\n\tExecution\022" "6\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" "utionIdentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl" ".admin.ExecutionSpec\0221\n\007closure\030\003 \001(\0132 ." "flyteidl.admin.ExecutionClosure\"M\n\rExecu" "tionList\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl." "admin.Execution\022\r\n\005token\030\002 \001(\t\"T\n\016Litera" "lMapBlob\022+\n\006values\030\001 \001(\0132\031.flyteidl.core" ".LiteralMapH\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"\256\004\n" "\020ExecutionClosure\0221\n\007outputs\030\001 \001(\0132\036.fly" "teidl.admin.LiteralMapBlobH\000\022.\n\005error\030\002 " "\001(\0132\035.flyteidl.core.ExecutionErrorH\000\022\025\n\013" "abort_cause\030\n \001(\tH\000\0226\n\017computed_inputs\030\003" " \001(\0132\031.flyteidl.core.LiteralMapB\002\030\001\0225\n\005p" "hase\030\004 \001(\0162&.flyteidl.core.WorkflowExecu" "tion.Phase\022.\n\nstarted_at\030\005 \001(\0132\032.google." "protobuf.Timestamp\022+\n\010duration\030\006 \001(\0132\031.g" "oogle.protobuf.Duration\022.\n\ncreated_at\030\007 " "\001(\0132\032.google.protobuf.Timestamp\022.\n\nupdat" "ed_at\030\010 \001(\0132\032.google.protobuf.Timestamp\022" "3\n\rnotifications\030\t \003(\0132\034.flyteidl.admin." "Notification\022.\n\013workflow_id\030\013 \001(\0132\031.flyt" "eidl.core.IdentifierB\017\n\routput_result\"\222\003" "\n\021ExecutionMetadata\022=\n\004mode\030\001 \001(\0162/.flyt" "eidl.admin.ExecutionMetadata.ExecutionMo" "de\022\021\n\tprincipal\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220" "\n\014scheduled_at\030\004 \001(\0132\032.google.protobuf.T" "imestamp\022E\n\025parent_node_execution\030\005 \001(\0132" "&.flyteidl.core.NodeExecutionIdentifier\022" "G\n\023reference_execution\030\020 \001(\0132*.flyteidl." "core.WorkflowExecutionIdentifier\"X\n\rExec" "utionMode\022\n\n\006MANUAL\020\000\022\r\n\tSCHEDULED\020\001\022\n\n\006" "SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016CHILD_WORKFLOW" "\020\004\"G\n\020NotificationList\0223\n\rnotifications\030" "\001 \003(\0132\034.flyteidl.admin.Notification\"\357\002\n\r" "ExecutionSpec\022.\n\013launch_plan\030\001 \001(\0132\031.fly" "teidl.core.Identifier\022-\n\006inputs\030\002 \001(\0132\031." "flyteidl.core.LiteralMapB\002\030\001\0223\n\010metadata" "\030\003 \001(\0132!.flyteidl.admin.ExecutionMetadat" "a\0229\n\rnotifications\030\005 \001(\0132 .flyteidl.admi" "n.NotificationListH\000\022\025\n\013disable_all\030\006 \001(" "\010H\000\022&\n\006labels\030\007 \001(\0132\026.flyteidl.admin.Lab" "els\0220\n\013annotations\030\010 \001(\0132\033.flyteidl.admi" "n.AnnotationsB\030\n\026notification_overridesJ" "\004\010\004\020\005\"b\n\031ExecutionTerminateRequest\0226\n\002id" "\030\001 \001(\0132*.flyteidl.core.WorkflowExecution" "Identifier\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTe" "rminateResponse\"Y\n\037WorkflowExecutionGetD" "ataRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.W" "orkflowExecutionIdentifier\"u\n WorkflowEx" "ecutionGetDataResponse\022(\n\007outputs\030\001 \001(\0132" "\027.flyteidl.admin.UrlBlob\022\'\n\006inputs\030\002 \001(\013" "2\027.flyteidl.admin.UrlBlobB3Z1github.com/" "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" "proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fexecution_2eproto = { false, InitDefaults_flyteidl_2fadmin_2fexecution_2eproto, descriptor_table_protodef_flyteidl_2fadmin_2fexecution_2eproto, "flyteidl/admin/execution.proto", &assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto, 2806, }; void AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[6] = { ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, }; ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fexecution_2eproto, deps, 6); } // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_flyteidl_2fadmin_2fexecution_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto(); return true; }(); namespace flyteidl { namespace admin { const ::google::protobuf::EnumDescriptor* ExecutionMetadata_ExecutionMode_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto[0]; } bool ExecutionMetadata_ExecutionMode_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: return true; default: return false; } } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const ExecutionMetadata_ExecutionMode ExecutionMetadata::MANUAL; const ExecutionMetadata_ExecutionMode ExecutionMetadata::SCHEDULED; const ExecutionMetadata_ExecutionMode ExecutionMetadata::SYSTEM; const ExecutionMetadata_ExecutionMode ExecutionMetadata::RELAUNCH; const ExecutionMetadata_ExecutionMode ExecutionMetadata::CHILD_WORKFLOW; const ExecutionMetadata_ExecutionMode ExecutionMetadata::ExecutionMode_MIN; const ExecutionMetadata_ExecutionMode ExecutionMetadata::ExecutionMode_MAX; const int ExecutionMetadata::ExecutionMode_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 // =================================================================== void ExecutionCreateRequest::InitAsDefaultInstance() { ::flyteidl::admin::_ExecutionCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::ExecutionSpec*>( ::flyteidl::admin::ExecutionSpec::internal_default_instance()); ::flyteidl::admin::_ExecutionCreateRequest_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( ::flyteidl::core::LiteralMap::internal_default_instance()); } class ExecutionCreateRequest::HasBitSetters { public: static const ::flyteidl::admin::ExecutionSpec& spec(const ExecutionCreateRequest* msg); static const ::flyteidl::core::LiteralMap& inputs(const ExecutionCreateRequest* msg); }; const ::flyteidl::admin::ExecutionSpec& ExecutionCreateRequest::HasBitSetters::spec(const ExecutionCreateRequest* msg) { return *msg->spec_; } const ::flyteidl::core::LiteralMap& ExecutionCreateRequest::HasBitSetters::inputs(const ExecutionCreateRequest* msg) { return *msg->inputs_; } void ExecutionCreateRequest::clear_inputs() { if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { delete inputs_; } inputs_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ExecutionCreateRequest::kProjectFieldNumber; const int ExecutionCreateRequest::kDomainFieldNumber; const int ExecutionCreateRequest::kNameFieldNumber; const int ExecutionCreateRequest::kSpecFieldNumber; const int ExecutionCreateRequest::kInputsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionCreateRequest::ExecutionCreateRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionCreateRequest) } ExecutionCreateRequest::ExecutionCreateRequest(const ExecutionCreateRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.project().size() > 0) { project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); } domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.domain().size() > 0) { domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); } name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.has_spec()) { spec_ = new ::flyteidl::admin::ExecutionSpec(*from.spec_); } else { spec_ = nullptr; } if (from.has_inputs()) { inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); } else { inputs_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionCreateRequest) } void ExecutionCreateRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&spec_, 0, static_cast<size_t>( reinterpret_cast<char*>(&inputs_) - reinterpret_cast<char*>(&spec_)) + sizeof(inputs_)); } ExecutionCreateRequest::~ExecutionCreateRequest() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionCreateRequest) SharedDtor(); } void ExecutionCreateRequest::SharedDtor() { project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete spec_; if (this != internal_default_instance()) delete inputs_; } void ExecutionCreateRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionCreateRequest& ExecutionCreateRequest::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionCreateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionCreateRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { delete spec_; } spec_ = nullptr; if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { delete inputs_; } inputs_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionCreateRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionCreateRequest*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // string project = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.project"); object = msg->mutable_project(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } // string domain = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.domain"); object = msg->mutable_domain(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } // string name = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } // .flyteidl.admin.ExecutionSpec spec = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::ExecutionSpec::_InternalParse; object = msg->mutable_spec(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.core.LiteralMap inputs = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; object = msg->mutable_inputs(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; string_till_end: static_cast<::std::string*>(object)->clear(); static_cast<::std::string*>(object)->reserve(size); goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionCreateRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionCreateRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string project = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_project())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->project().data(), static_cast<int>(this->project().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.ExecutionCreateRequest.project")); } else { goto handle_unusual; } break; } // string domain = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_domain())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->domain().data(), static_cast<int>(this->domain().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.ExecutionCreateRequest.domain")); } else { goto handle_unusual; } break; } // string name = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast<int>(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.ExecutionCreateRequest.name")); } else { goto handle_unusual; } break; } // .flyteidl.admin.ExecutionSpec spec = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_spec())); } else { goto handle_unusual; } break; } // .flyteidl.core.LiteralMap inputs = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_inputs())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionCreateRequest) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionCreateRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionCreateRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionCreateRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string project = 1; if (this->project().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->project().data(), static_cast<int>(this->project().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionCreateRequest.project"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->project(), output); } // string domain = 2; if (this->domain().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->domain().data(), static_cast<int>(this->domain().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionCreateRequest.domain"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->domain(), output); } // string name = 3; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast<int>(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionCreateRequest.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->name(), output); } // .flyteidl.admin.ExecutionSpec spec = 4; if (this->has_spec()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, HasBitSetters::spec(this), output); } // .flyteidl.core.LiteralMap inputs = 5; if (this->has_inputs()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, HasBitSetters::inputs(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionCreateRequest) } ::google::protobuf::uint8* ExecutionCreateRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionCreateRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string project = 1; if (this->project().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->project().data(), static_cast<int>(this->project().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionCreateRequest.project"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->project(), target); } // string domain = 2; if (this->domain().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->domain().data(), static_cast<int>(this->domain().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionCreateRequest.domain"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->domain(), target); } // string name = 3; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast<int>(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionCreateRequest.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->name(), target); } // .flyteidl.admin.ExecutionSpec spec = 4; if (this->has_spec()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, HasBitSetters::spec(this), target); } // .flyteidl.core.LiteralMap inputs = 5; if (this->has_inputs()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, HasBitSetters::inputs(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionCreateRequest) return target; } size_t ExecutionCreateRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionCreateRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string project = 1; if (this->project().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->project()); } // string domain = 2; if (this->domain().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->domain()); } // string name = 3; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // .flyteidl.admin.ExecutionSpec spec = 4; if (this->has_spec()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *spec_); } // .flyteidl.core.LiteralMap inputs = 5; if (this->has_inputs()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *inputs_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionCreateRequest) GOOGLE_DCHECK_NE(&from, this); const ExecutionCreateRequest* source = ::google::protobuf::DynamicCastToGenerated<ExecutionCreateRequest>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionCreateRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionCreateRequest) MergeFrom(*source); } } void ExecutionCreateRequest::MergeFrom(const ExecutionCreateRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionCreateRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.project().size() > 0) { project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); } if (from.domain().size() > 0) { domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); } if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.has_spec()) { mutable_spec()->::flyteidl::admin::ExecutionSpec::MergeFrom(from.spec()); } if (from.has_inputs()) { mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); } } void ExecutionCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionCreateRequest) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionCreateRequest::CopyFrom(const ExecutionCreateRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionCreateRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionCreateRequest::IsInitialized() const { return true; } void ExecutionCreateRequest::Swap(ExecutionCreateRequest* other) { if (other == this) return; InternalSwap(other); } void ExecutionCreateRequest::InternalSwap(ExecutionCreateRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(spec_, other->spec_); swap(inputs_, other->inputs_); } ::google::protobuf::Metadata ExecutionCreateRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void ExecutionRelaunchRequest::InitAsDefaultInstance() { ::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); } class ExecutionRelaunchRequest::HasBitSetters { public: static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionRelaunchRequest* msg); }; const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionRelaunchRequest::HasBitSetters::id(const ExecutionRelaunchRequest* msg) { return *msg->id_; } void ExecutionRelaunchRequest::clear_id() { if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ExecutionRelaunchRequest::kIdFieldNumber; const int ExecutionRelaunchRequest::kNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionRelaunchRequest::ExecutionRelaunchRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionRelaunchRequest) } ExecutionRelaunchRequest::ExecutionRelaunchRequest(const ExecutionRelaunchRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.has_id()) { id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); } else { id_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionRelaunchRequest) } void ExecutionRelaunchRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); id_ = nullptr; } ExecutionRelaunchRequest::~ExecutionRelaunchRequest() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionRelaunchRequest) SharedDtor(); } void ExecutionRelaunchRequest::SharedDtor() { name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete id_; } void ExecutionRelaunchRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionRelaunchRequest& ExecutionRelaunchRequest::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionRelaunchRequest::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionRelaunchRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionRelaunchRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionRelaunchRequest*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; object = msg->mutable_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // string name = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionRelaunchRequest.name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; string_till_end: static_cast<::std::string*>(object)->clear(); static_cast<::std::string*>(object)->reserve(size); goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionRelaunchRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionRelaunchRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id())); } else { goto handle_unusual; } break; } // string name = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast<int>(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.ExecutionRelaunchRequest.name")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionRelaunchRequest) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionRelaunchRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionRelaunchRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionRelaunchRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::id(this), output); } // string name = 3; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast<int>(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionRelaunchRequest.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->name(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionRelaunchRequest) } ::google::protobuf::uint8* ExecutionRelaunchRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionRelaunchRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::id(this), target); } // string name = 3; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast<int>(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionRelaunchRequest.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->name(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionRelaunchRequest) return target; } size_t ExecutionRelaunchRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionRelaunchRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 3; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *id_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionRelaunchRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionRelaunchRequest) GOOGLE_DCHECK_NE(&from, this); const ExecutionRelaunchRequest* source = ::google::protobuf::DynamicCastToGenerated<ExecutionRelaunchRequest>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionRelaunchRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionRelaunchRequest) MergeFrom(*source); } } void ExecutionRelaunchRequest::MergeFrom(const ExecutionRelaunchRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionRelaunchRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.has_id()) { mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); } } void ExecutionRelaunchRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionRelaunchRequest) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionRelaunchRequest::CopyFrom(const ExecutionRelaunchRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionRelaunchRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionRelaunchRequest::IsInitialized() const { return true; } void ExecutionRelaunchRequest::Swap(ExecutionRelaunchRequest* other) { if (other == this) return; InternalSwap(other); } void ExecutionRelaunchRequest::InternalSwap(ExecutionRelaunchRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(id_, other->id_); } ::google::protobuf::Metadata ExecutionRelaunchRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void ExecutionCreateResponse::InitAsDefaultInstance() { ::flyteidl::admin::_ExecutionCreateResponse_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); } class ExecutionCreateResponse::HasBitSetters { public: static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionCreateResponse* msg); }; const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionCreateResponse::HasBitSetters::id(const ExecutionCreateResponse* msg) { return *msg->id_; } void ExecutionCreateResponse::clear_id() { if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ExecutionCreateResponse::kIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionCreateResponse::ExecutionCreateResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionCreateResponse) } ExecutionCreateResponse::ExecutionCreateResponse(const ExecutionCreateResponse& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_id()) { id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); } else { id_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionCreateResponse) } void ExecutionCreateResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); id_ = nullptr; } ExecutionCreateResponse::~ExecutionCreateResponse() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionCreateResponse) SharedDtor(); } void ExecutionCreateResponse::SharedDtor() { if (this != internal_default_instance()) delete id_; } void ExecutionCreateResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionCreateResponse& ExecutionCreateResponse::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionCreateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionCreateResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionCreateResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionCreateResponse*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; object = msg->mutable_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionCreateResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionCreateResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionCreateResponse) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionCreateResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionCreateResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionCreateResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::id(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionCreateResponse) } ::google::protobuf::uint8* ExecutionCreateResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionCreateResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::id(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionCreateResponse) return target; } size_t ExecutionCreateResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionCreateResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *id_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionCreateResponse) GOOGLE_DCHECK_NE(&from, this); const ExecutionCreateResponse* source = ::google::protobuf::DynamicCastToGenerated<ExecutionCreateResponse>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionCreateResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionCreateResponse) MergeFrom(*source); } } void ExecutionCreateResponse::MergeFrom(const ExecutionCreateResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionCreateResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_id()) { mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); } } void ExecutionCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionCreateResponse) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionCreateResponse::CopyFrom(const ExecutionCreateResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionCreateResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionCreateResponse::IsInitialized() const { return true; } void ExecutionCreateResponse::Swap(ExecutionCreateResponse* other) { if (other == this) return; InternalSwap(other); } void ExecutionCreateResponse::InternalSwap(ExecutionCreateResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(id_, other->id_); } ::google::protobuf::Metadata ExecutionCreateResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void WorkflowExecutionGetRequest::InitAsDefaultInstance() { ::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); } class WorkflowExecutionGetRequest::HasBitSetters { public: static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const WorkflowExecutionGetRequest* msg); }; const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetRequest::HasBitSetters::id(const WorkflowExecutionGetRequest* msg) { return *msg->id_; } void WorkflowExecutionGetRequest::clear_id() { if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int WorkflowExecutionGetRequest::kIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 WorkflowExecutionGetRequest::WorkflowExecutionGetRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetRequest) } WorkflowExecutionGetRequest::WorkflowExecutionGetRequest(const WorkflowExecutionGetRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_id()) { id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); } else { id_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetRequest) } void WorkflowExecutionGetRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); id_ = nullptr; } WorkflowExecutionGetRequest::~WorkflowExecutionGetRequest() { // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetRequest) SharedDtor(); } void WorkflowExecutionGetRequest::SharedDtor() { if (this != internal_default_instance()) delete id_; } void WorkflowExecutionGetRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const WorkflowExecutionGetRequest& WorkflowExecutionGetRequest::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void WorkflowExecutionGetRequest::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* WorkflowExecutionGetRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<WorkflowExecutionGetRequest*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; object = msg->mutable_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool WorkflowExecutionGetRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionGetRequest) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void WorkflowExecutionGetRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::id(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetRequest) } ::google::protobuf::uint8* WorkflowExecutionGetRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::id(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetRequest) return target; } size_t WorkflowExecutionGetRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *id_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void WorkflowExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetRequest) GOOGLE_DCHECK_NE(&from, this); const WorkflowExecutionGetRequest* source = ::google::protobuf::DynamicCastToGenerated<WorkflowExecutionGetRequest>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetRequest) MergeFrom(*source); } } void WorkflowExecutionGetRequest::MergeFrom(const WorkflowExecutionGetRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_id()) { mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); } } void WorkflowExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetRequest) if (&from == this) return; Clear(); MergeFrom(from); } void WorkflowExecutionGetRequest::CopyFrom(const WorkflowExecutionGetRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool WorkflowExecutionGetRequest::IsInitialized() const { return true; } void WorkflowExecutionGetRequest::Swap(WorkflowExecutionGetRequest* other) { if (other == this) return; InternalSwap(other); } void WorkflowExecutionGetRequest::InternalSwap(WorkflowExecutionGetRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(id_, other->id_); } ::google::protobuf::Metadata WorkflowExecutionGetRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void Execution::InitAsDefaultInstance() { ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::ExecutionSpec*>( ::flyteidl::admin::ExecutionSpec::internal_default_instance()); ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::ExecutionClosure*>( ::flyteidl::admin::ExecutionClosure::internal_default_instance()); } class Execution::HasBitSetters { public: static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const Execution* msg); static const ::flyteidl::admin::ExecutionSpec& spec(const Execution* msg); static const ::flyteidl::admin::ExecutionClosure& closure(const Execution* msg); }; const ::flyteidl::core::WorkflowExecutionIdentifier& Execution::HasBitSetters::id(const Execution* msg) { return *msg->id_; } const ::flyteidl::admin::ExecutionSpec& Execution::HasBitSetters::spec(const Execution* msg) { return *msg->spec_; } const ::flyteidl::admin::ExecutionClosure& Execution::HasBitSetters::closure(const Execution* msg) { return *msg->closure_; } void Execution::clear_id() { if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Execution::kIdFieldNumber; const int Execution::kSpecFieldNumber; const int Execution::kClosureFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Execution::Execution() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.Execution) } Execution::Execution(const Execution& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_id()) { id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); } else { id_ = nullptr; } if (from.has_spec()) { spec_ = new ::flyteidl::admin::ExecutionSpec(*from.spec_); } else { spec_ = nullptr; } if (from.has_closure()) { closure_ = new ::flyteidl::admin::ExecutionClosure(*from.closure_); } else { closure_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Execution) } void Execution::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); ::memset(&id_, 0, static_cast<size_t>( reinterpret_cast<char*>(&closure_) - reinterpret_cast<char*>(&id_)) + sizeof(closure_)); } Execution::~Execution() { // @@protoc_insertion_point(destructor:flyteidl.admin.Execution) SharedDtor(); } void Execution::SharedDtor() { if (this != internal_default_instance()) delete id_; if (this != internal_default_instance()) delete spec_; if (this != internal_default_instance()) delete closure_; } void Execution::SetCachedSize(int size) const { _cached_size_.Set(size); } const Execution& Execution::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void Execution::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.Execution) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { delete spec_; } spec_ = nullptr; if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { delete closure_; } closure_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* Execution::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<Execution*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; object = msg->mutable_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.admin.ExecutionSpec spec = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::ExecutionSpec::_InternalParse; object = msg->mutable_spec(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.admin.ExecutionClosure closure = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::ExecutionClosure::_InternalParse; object = msg->mutable_closure(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Execution::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.Execution) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id())); } else { goto handle_unusual; } break; } // .flyteidl.admin.ExecutionSpec spec = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_spec())); } else { goto handle_unusual; } break; } // .flyteidl.admin.ExecutionClosure closure = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_closure())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.Execution) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.Execution) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Execution::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.Execution) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::id(this), output); } // .flyteidl.admin.ExecutionSpec spec = 2; if (this->has_spec()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, HasBitSetters::spec(this), output); } // .flyteidl.admin.ExecutionClosure closure = 3; if (this->has_closure()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, HasBitSetters::closure(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.Execution) } ::google::protobuf::uint8* Execution::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Execution) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::id(this), target); } // .flyteidl.admin.ExecutionSpec spec = 2; if (this->has_spec()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, HasBitSetters::spec(this), target); } // .flyteidl.admin.ExecutionClosure closure = 3; if (this->has_closure()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, HasBitSetters::closure(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Execution) return target; } size_t Execution::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Execution) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *id_); } // .flyteidl.admin.ExecutionSpec spec = 2; if (this->has_spec()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *spec_); } // .flyteidl.admin.ExecutionClosure closure = 3; if (this->has_closure()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *closure_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Execution::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Execution) GOOGLE_DCHECK_NE(&from, this); const Execution* source = ::google::protobuf::DynamicCastToGenerated<Execution>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Execution) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Execution) MergeFrom(*source); } } void Execution::MergeFrom(const Execution& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Execution) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_id()) { mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); } if (from.has_spec()) { mutable_spec()->::flyteidl::admin::ExecutionSpec::MergeFrom(from.spec()); } if (from.has_closure()) { mutable_closure()->::flyteidl::admin::ExecutionClosure::MergeFrom(from.closure()); } } void Execution::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Execution) if (&from == this) return; Clear(); MergeFrom(from); } void Execution::CopyFrom(const Execution& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Execution) if (&from == this) return; Clear(); MergeFrom(from); } bool Execution::IsInitialized() const { return true; } void Execution::Swap(Execution* other) { if (other == this) return; InternalSwap(other); } void Execution::InternalSwap(Execution* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(id_, other->id_); swap(spec_, other->spec_); swap(closure_, other->closure_); } ::google::protobuf::Metadata Execution::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void ExecutionList::InitAsDefaultInstance() { } class ExecutionList::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ExecutionList::kExecutionsFieldNumber; const int ExecutionList::kTokenFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionList::ExecutionList() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionList) } ExecutionList::ExecutionList(const ExecutionList& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), executions_(from.executions_) { _internal_metadata_.MergeFrom(from._internal_metadata_); token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.token().size() > 0) { token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionList) } void ExecutionList::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ExecutionList::~ExecutionList() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionList) SharedDtor(); } void ExecutionList::SharedDtor() { token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ExecutionList::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionList& ExecutionList::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionList::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionList) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; executions_.Clear(); token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionList::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionList*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // repeated .flyteidl.admin.Execution executions = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::Execution::_InternalParse; object = msg->add_executions(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); if (ptr >= end) break; } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); break; } // string token = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionList.token"); object = msg->mutable_token(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; string_till_end: static_cast<::std::string*>(object)->clear(); static_cast<::std::string*>(object)->reserve(size); goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionList) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .flyteidl.admin.Execution executions = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_executions())); } else { goto handle_unusual; } break; } // string token = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->token().data(), static_cast<int>(this->token().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.ExecutionList.token")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionList) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionList) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .flyteidl.admin.Execution executions = 1; for (unsigned int i = 0, n = static_cast<unsigned int>(this->executions_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->executions(static_cast<int>(i)), output); } // string token = 2; if (this->token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->token().data(), static_cast<int>(this->token().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionList.token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->token(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionList) } ::google::protobuf::uint8* ExecutionList::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .flyteidl.admin.Execution executions = 1; for (unsigned int i = 0, n = static_cast<unsigned int>(this->executions_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->executions(static_cast<int>(i)), target); } // string token = 2; if (this->token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->token().data(), static_cast<int>(this->token().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionList.token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->token(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionList) return target; } size_t ExecutionList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionList) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .flyteidl.admin.Execution executions = 1; { unsigned int count = static_cast<unsigned int>(this->executions_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->executions(static_cast<int>(i))); } } // string token = 2; if (this->token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->token()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionList) GOOGLE_DCHECK_NE(&from, this); const ExecutionList* source = ::google::protobuf::DynamicCastToGenerated<ExecutionList>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionList) MergeFrom(*source); } } void ExecutionList::MergeFrom(const ExecutionList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionList) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; executions_.MergeFrom(from.executions_); if (from.token().size() > 0) { token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); } } void ExecutionList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionList) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionList::CopyFrom(const ExecutionList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionList) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionList::IsInitialized() const { return true; } void ExecutionList::Swap(ExecutionList* other) { if (other == this) return; InternalSwap(other); } void ExecutionList::InternalSwap(ExecutionList* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&executions_)->InternalSwap(CastToBase(&other->executions_)); token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::google::protobuf::Metadata ExecutionList::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void LiteralMapBlob::InitAsDefaultInstance() { ::flyteidl::admin::_LiteralMapBlob_default_instance_.values_ = const_cast< ::flyteidl::core::LiteralMap*>( ::flyteidl::core::LiteralMap::internal_default_instance()); ::flyteidl::admin::_LiteralMapBlob_default_instance_.uri_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } class LiteralMapBlob::HasBitSetters { public: static const ::flyteidl::core::LiteralMap& values(const LiteralMapBlob* msg); }; const ::flyteidl::core::LiteralMap& LiteralMapBlob::HasBitSetters::values(const LiteralMapBlob* msg) { return *msg->data_.values_; } void LiteralMapBlob::set_allocated_values(::flyteidl::core::LiteralMap* values) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (values) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { values = ::google::protobuf::internal::GetOwnedMessage( message_arena, values, submessage_arena); } set_has_values(); data_.values_ = values; } // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LiteralMapBlob.values) } void LiteralMapBlob::clear_values() { if (has_values()) { delete data_.values_; clear_has_data(); } } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LiteralMapBlob::kValuesFieldNumber; const int LiteralMapBlob::kUriFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 LiteralMapBlob::LiteralMapBlob() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.LiteralMapBlob) } LiteralMapBlob::LiteralMapBlob(const LiteralMapBlob& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); clear_has_data(); switch (from.data_case()) { case kValues: { mutable_values()->::flyteidl::core::LiteralMap::MergeFrom(from.values()); break; } case kUri: { set_uri(from.uri()); break; } case DATA_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LiteralMapBlob) } void LiteralMapBlob::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); clear_has_data(); } LiteralMapBlob::~LiteralMapBlob() { // @@protoc_insertion_point(destructor:flyteidl.admin.LiteralMapBlob) SharedDtor(); } void LiteralMapBlob::SharedDtor() { if (has_data()) { clear_data(); } } void LiteralMapBlob::SetCachedSize(int size) const { _cached_size_.Set(size); } const LiteralMapBlob& LiteralMapBlob::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void LiteralMapBlob::clear_data() { // @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.LiteralMapBlob) switch (data_case()) { case kValues: { delete data_.values_; break; } case kUri: { data_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); break; } case DATA_NOT_SET: { break; } } _oneof_case_[0] = DATA_NOT_SET; } void LiteralMapBlob::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.LiteralMapBlob) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_data(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* LiteralMapBlob::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<LiteralMapBlob*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.core.LiteralMap values = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; object = msg->mutable_values(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // string uri = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.LiteralMapBlob.uri"); object = msg->mutable_uri(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; string_till_end: static_cast<::std::string*>(object)->clear(); static_cast<::std::string*>(object)->reserve(size); goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool LiteralMapBlob::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.LiteralMapBlob) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.core.LiteralMap values = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_values())); } else { goto handle_unusual; } break; } // string uri = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_uri())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->uri().data(), static_cast<int>(this->uri().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.LiteralMapBlob.uri")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.LiteralMapBlob) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.LiteralMapBlob) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void LiteralMapBlob::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.LiteralMapBlob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.LiteralMap values = 1; if (has_values()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::values(this), output); } // string uri = 2; if (has_uri()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->uri().data(), static_cast<int>(this->uri().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.LiteralMapBlob.uri"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->uri(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.LiteralMapBlob) } ::google::protobuf::uint8* LiteralMapBlob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LiteralMapBlob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.LiteralMap values = 1; if (has_values()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::values(this), target); } // string uri = 2; if (has_uri()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->uri().data(), static_cast<int>(this->uri().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.LiteralMapBlob.uri"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->uri(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LiteralMapBlob) return target; } size_t LiteralMapBlob::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LiteralMapBlob) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (data_case()) { // .flyteidl.core.LiteralMap values = 1; case kValues: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.values_); break; } // string uri = 2; case kUri: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->uri()); break; } case DATA_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void LiteralMapBlob::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LiteralMapBlob) GOOGLE_DCHECK_NE(&from, this); const LiteralMapBlob* source = ::google::protobuf::DynamicCastToGenerated<LiteralMapBlob>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LiteralMapBlob) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LiteralMapBlob) MergeFrom(*source); } } void LiteralMapBlob::MergeFrom(const LiteralMapBlob& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LiteralMapBlob) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; switch (from.data_case()) { case kValues: { mutable_values()->::flyteidl::core::LiteralMap::MergeFrom(from.values()); break; } case kUri: { set_uri(from.uri()); break; } case DATA_NOT_SET: { break; } } } void LiteralMapBlob::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LiteralMapBlob) if (&from == this) return; Clear(); MergeFrom(from); } void LiteralMapBlob::CopyFrom(const LiteralMapBlob& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LiteralMapBlob) if (&from == this) return; Clear(); MergeFrom(from); } bool LiteralMapBlob::IsInitialized() const { return true; } void LiteralMapBlob::Swap(LiteralMapBlob* other) { if (other == this) return; InternalSwap(other); } void LiteralMapBlob::InternalSwap(LiteralMapBlob* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(data_, other->data_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::google::protobuf::Metadata LiteralMapBlob::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void ExecutionClosure::InitAsDefaultInstance() { ::flyteidl::admin::_ExecutionClosure_default_instance_.outputs_ = const_cast< ::flyteidl::admin::LiteralMapBlob*>( ::flyteidl::admin::LiteralMapBlob::internal_default_instance()); ::flyteidl::admin::_ExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( ::flyteidl::core::ExecutionError::internal_default_instance()); ::flyteidl::admin::_ExecutionClosure_default_instance_.abort_cause_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->computed_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( ::flyteidl::core::LiteralMap::internal_default_instance()); ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( ::google::protobuf::Timestamp::internal_default_instance()); ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( ::google::protobuf::Duration::internal_default_instance()); ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( ::google::protobuf::Timestamp::internal_default_instance()); ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( ::google::protobuf::Timestamp::internal_default_instance()); ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->workflow_id_ = const_cast< ::flyteidl::core::Identifier*>( ::flyteidl::core::Identifier::internal_default_instance()); } class ExecutionClosure::HasBitSetters { public: static const ::flyteidl::admin::LiteralMapBlob& outputs(const ExecutionClosure* msg); static const ::flyteidl::core::ExecutionError& error(const ExecutionClosure* msg); static const ::flyteidl::core::LiteralMap& computed_inputs(const ExecutionClosure* msg); static const ::google::protobuf::Timestamp& started_at(const ExecutionClosure* msg); static const ::google::protobuf::Duration& duration(const ExecutionClosure* msg); static const ::google::protobuf::Timestamp& created_at(const ExecutionClosure* msg); static const ::google::protobuf::Timestamp& updated_at(const ExecutionClosure* msg); static const ::flyteidl::core::Identifier& workflow_id(const ExecutionClosure* msg); }; const ::flyteidl::admin::LiteralMapBlob& ExecutionClosure::HasBitSetters::outputs(const ExecutionClosure* msg) { return *msg->output_result_.outputs_; } const ::flyteidl::core::ExecutionError& ExecutionClosure::HasBitSetters::error(const ExecutionClosure* msg) { return *msg->output_result_.error_; } const ::flyteidl::core::LiteralMap& ExecutionClosure::HasBitSetters::computed_inputs(const ExecutionClosure* msg) { return *msg->computed_inputs_; } const ::google::protobuf::Timestamp& ExecutionClosure::HasBitSetters::started_at(const ExecutionClosure* msg) { return *msg->started_at_; } const ::google::protobuf::Duration& ExecutionClosure::HasBitSetters::duration(const ExecutionClosure* msg) { return *msg->duration_; } const ::google::protobuf::Timestamp& ExecutionClosure::HasBitSetters::created_at(const ExecutionClosure* msg) { return *msg->created_at_; } const ::google::protobuf::Timestamp& ExecutionClosure::HasBitSetters::updated_at(const ExecutionClosure* msg) { return *msg->updated_at_; } const ::flyteidl::core::Identifier& ExecutionClosure::HasBitSetters::workflow_id(const ExecutionClosure* msg) { return *msg->workflow_id_; } void ExecutionClosure::set_allocated_outputs(::flyteidl::admin::LiteralMapBlob* outputs) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_output_result(); if (outputs) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { outputs = ::google::protobuf::internal::GetOwnedMessage( message_arena, outputs, submessage_arena); } set_has_outputs(); output_result_.outputs_ = outputs; } // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.outputs) } void ExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_output_result(); if (error) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { error = ::google::protobuf::internal::GetOwnedMessage( message_arena, error, submessage_arena); } set_has_error(); output_result_.error_ = error; } // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.error) } void ExecutionClosure::clear_error() { if (has_error()) { delete output_result_.error_; clear_has_output_result(); } } void ExecutionClosure::clear_computed_inputs() { if (GetArenaNoVirtual() == nullptr && computed_inputs_ != nullptr) { delete computed_inputs_; } computed_inputs_ = nullptr; } void ExecutionClosure::clear_started_at() { if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { delete started_at_; } started_at_ = nullptr; } void ExecutionClosure::clear_duration() { if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { delete duration_; } duration_ = nullptr; } void ExecutionClosure::clear_created_at() { if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { delete created_at_; } created_at_ = nullptr; } void ExecutionClosure::clear_updated_at() { if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { delete updated_at_; } updated_at_ = nullptr; } void ExecutionClosure::clear_notifications() { notifications_.Clear(); } void ExecutionClosure::clear_workflow_id() { if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { delete workflow_id_; } workflow_id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ExecutionClosure::kOutputsFieldNumber; const int ExecutionClosure::kErrorFieldNumber; const int ExecutionClosure::kAbortCauseFieldNumber; const int ExecutionClosure::kComputedInputsFieldNumber; const int ExecutionClosure::kPhaseFieldNumber; const int ExecutionClosure::kStartedAtFieldNumber; const int ExecutionClosure::kDurationFieldNumber; const int ExecutionClosure::kCreatedAtFieldNumber; const int ExecutionClosure::kUpdatedAtFieldNumber; const int ExecutionClosure::kNotificationsFieldNumber; const int ExecutionClosure::kWorkflowIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionClosure::ExecutionClosure() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionClosure) } ExecutionClosure::ExecutionClosure(const ExecutionClosure& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), notifications_(from.notifications_) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_computed_inputs()) { computed_inputs_ = new ::flyteidl::core::LiteralMap(*from.computed_inputs_); } else { computed_inputs_ = nullptr; } if (from.has_started_at()) { started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); } else { started_at_ = nullptr; } if (from.has_duration()) { duration_ = new ::google::protobuf::Duration(*from.duration_); } else { duration_ = nullptr; } if (from.has_created_at()) { created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); } else { created_at_ = nullptr; } if (from.has_updated_at()) { updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); } else { updated_at_ = nullptr; } if (from.has_workflow_id()) { workflow_id_ = new ::flyteidl::core::Identifier(*from.workflow_id_); } else { workflow_id_ = nullptr; } phase_ = from.phase_; clear_has_output_result(); switch (from.output_result_case()) { case kOutputs: { mutable_outputs()->::flyteidl::admin::LiteralMapBlob::MergeFrom(from.outputs()); break; } case kError: { mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); break; } case kAbortCause: { set_abort_cause(from.abort_cause()); break; } case OUTPUT_RESULT_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionClosure) } void ExecutionClosure::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); ::memset(&computed_inputs_, 0, static_cast<size_t>( reinterpret_cast<char*>(&phase_) - reinterpret_cast<char*>(&computed_inputs_)) + sizeof(phase_)); clear_has_output_result(); } ExecutionClosure::~ExecutionClosure() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionClosure) SharedDtor(); } void ExecutionClosure::SharedDtor() { if (this != internal_default_instance()) delete computed_inputs_; if (this != internal_default_instance()) delete started_at_; if (this != internal_default_instance()) delete duration_; if (this != internal_default_instance()) delete created_at_; if (this != internal_default_instance()) delete updated_at_; if (this != internal_default_instance()) delete workflow_id_; if (has_output_result()) { clear_output_result(); } } void ExecutionClosure::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionClosure& ExecutionClosure::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionClosure::clear_output_result() { // @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.ExecutionClosure) switch (output_result_case()) { case kOutputs: { delete output_result_.outputs_; break; } case kError: { delete output_result_.error_; break; } case kAbortCause: { output_result_.abort_cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); break; } case OUTPUT_RESULT_NOT_SET: { break; } } _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; } void ExecutionClosure::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionClosure) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; notifications_.Clear(); if (GetArenaNoVirtual() == nullptr && computed_inputs_ != nullptr) { delete computed_inputs_; } computed_inputs_ = nullptr; if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { delete started_at_; } started_at_ = nullptr; if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { delete duration_; } duration_ = nullptr; if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { delete created_at_; } created_at_ = nullptr; if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { delete updated_at_; } updated_at_ = nullptr; if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { delete workflow_id_; } workflow_id_ = nullptr; phase_ = 0; clear_output_result(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionClosure::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionClosure*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.admin.LiteralMapBlob outputs = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::LiteralMapBlob::_InternalParse; object = msg->mutable_outputs(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.core.ExecutionError error = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; object = msg->mutable_error(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; object = msg->mutable_computed_inputs(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.core.WorkflowExecution.Phase phase = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); msg->set_phase(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } // .google.protobuf.Timestamp started_at = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::google::protobuf::Timestamp::_InternalParse; object = msg->mutable_started_at(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .google.protobuf.Duration duration = 6; case 6: { if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::google::protobuf::Duration::_InternalParse; object = msg->mutable_duration(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .google.protobuf.Timestamp created_at = 7; case 7: { if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::google::protobuf::Timestamp::_InternalParse; object = msg->mutable_created_at(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .google.protobuf.Timestamp updated_at = 8; case 8: { if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::google::protobuf::Timestamp::_InternalParse; object = msg->mutable_updated_at(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // repeated .flyteidl.admin.Notification notifications = 9; case 9: { if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::Notification::_InternalParse; object = msg->add_notifications(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); if (ptr >= end) break; } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 74 && (ptr += 1)); break; } // string abort_cause = 10; case 10: { if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionClosure.abort_cause"); object = msg->mutable_abort_cause(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } // .flyteidl.core.Identifier workflow_id = 11; case 11: { if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::Identifier::_InternalParse; object = msg->mutable_workflow_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; string_till_end: static_cast<::std::string*>(object)->clear(); static_cast<::std::string*>(object)->reserve(size); goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionClosure::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionClosure) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.admin.LiteralMapBlob outputs = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_outputs())); } else { goto handle_unusual; } break; } // .flyteidl.core.ExecutionError error = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error())); } else { goto handle_unusual; } break; } // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_computed_inputs())); } else { goto handle_unusual; } break; } // .flyteidl.core.WorkflowExecution.Phase phase = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); } else { goto handle_unusual; } break; } // .google.protobuf.Timestamp started_at = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_started_at())); } else { goto handle_unusual; } break; } // .google.protobuf.Duration duration = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_duration())); } else { goto handle_unusual; } break; } // .google.protobuf.Timestamp created_at = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_created_at())); } else { goto handle_unusual; } break; } // .google.protobuf.Timestamp updated_at = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_updated_at())); } else { goto handle_unusual; } break; } // repeated .flyteidl.admin.Notification notifications = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_notifications())); } else { goto handle_unusual; } break; } // string abort_cause = 10; case 10: { if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_abort_cause())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->abort_cause().data(), static_cast<int>(this->abort_cause().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.ExecutionClosure.abort_cause")); } else { goto handle_unusual; } break; } // .flyteidl.core.Identifier workflow_id = 11; case 11: { if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_workflow_id())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionClosure) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionClosure) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionClosure::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionClosure) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.admin.LiteralMapBlob outputs = 1; if (has_outputs()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::outputs(this), output); } // .flyteidl.core.ExecutionError error = 2; if (has_error()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, HasBitSetters::error(this), output); } // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; if (this->has_computed_inputs()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, HasBitSetters::computed_inputs(this), output); } // .flyteidl.core.WorkflowExecution.Phase phase = 4; if (this->phase() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->phase(), output); } // .google.protobuf.Timestamp started_at = 5; if (this->has_started_at()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, HasBitSetters::started_at(this), output); } // .google.protobuf.Duration duration = 6; if (this->has_duration()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, HasBitSetters::duration(this), output); } // .google.protobuf.Timestamp created_at = 7; if (this->has_created_at()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, HasBitSetters::created_at(this), output); } // .google.protobuf.Timestamp updated_at = 8; if (this->has_updated_at()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, HasBitSetters::updated_at(this), output); } // repeated .flyteidl.admin.Notification notifications = 9; for (unsigned int i = 0, n = static_cast<unsigned int>(this->notifications_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 9, this->notifications(static_cast<int>(i)), output); } // string abort_cause = 10; if (has_abort_cause()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->abort_cause().data(), static_cast<int>(this->abort_cause().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionClosure.abort_cause"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 10, this->abort_cause(), output); } // .flyteidl.core.Identifier workflow_id = 11; if (this->has_workflow_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11, HasBitSetters::workflow_id(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionClosure) } ::google::protobuf::uint8* ExecutionClosure::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionClosure) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.admin.LiteralMapBlob outputs = 1; if (has_outputs()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::outputs(this), target); } // .flyteidl.core.ExecutionError error = 2; if (has_error()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, HasBitSetters::error(this), target); } // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; if (this->has_computed_inputs()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, HasBitSetters::computed_inputs(this), target); } // .flyteidl.core.WorkflowExecution.Phase phase = 4; if (this->phase() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->phase(), target); } // .google.protobuf.Timestamp started_at = 5; if (this->has_started_at()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, HasBitSetters::started_at(this), target); } // .google.protobuf.Duration duration = 6; if (this->has_duration()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 6, HasBitSetters::duration(this), target); } // .google.protobuf.Timestamp created_at = 7; if (this->has_created_at()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 7, HasBitSetters::created_at(this), target); } // .google.protobuf.Timestamp updated_at = 8; if (this->has_updated_at()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 8, HasBitSetters::updated_at(this), target); } // repeated .flyteidl.admin.Notification notifications = 9; for (unsigned int i = 0, n = static_cast<unsigned int>(this->notifications_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 9, this->notifications(static_cast<int>(i)), target); } // string abort_cause = 10; if (has_abort_cause()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->abort_cause().data(), static_cast<int>(this->abort_cause().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionClosure.abort_cause"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 10, this->abort_cause(), target); } // .flyteidl.core.Identifier workflow_id = 11; if (this->has_workflow_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 11, HasBitSetters::workflow_id(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionClosure) return target; } size_t ExecutionClosure::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionClosure) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .flyteidl.admin.Notification notifications = 9; { unsigned int count = static_cast<unsigned int>(this->notifications_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->notifications(static_cast<int>(i))); } } // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; if (this->has_computed_inputs()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *computed_inputs_); } // .google.protobuf.Timestamp started_at = 5; if (this->has_started_at()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *started_at_); } // .google.protobuf.Duration duration = 6; if (this->has_duration()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *duration_); } // .google.protobuf.Timestamp created_at = 7; if (this->has_created_at()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *created_at_); } // .google.protobuf.Timestamp updated_at = 8; if (this->has_updated_at()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *updated_at_); } // .flyteidl.core.Identifier workflow_id = 11; if (this->has_workflow_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *workflow_id_); } // .flyteidl.core.WorkflowExecution.Phase phase = 4; if (this->phase() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); } switch (output_result_case()) { // .flyteidl.admin.LiteralMapBlob outputs = 1; case kOutputs: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *output_result_.outputs_); break; } // .flyteidl.core.ExecutionError error = 2; case kError: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *output_result_.error_); break; } // string abort_cause = 10; case kAbortCause: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->abort_cause()); break; } case OUTPUT_RESULT_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionClosure) GOOGLE_DCHECK_NE(&from, this); const ExecutionClosure* source = ::google::protobuf::DynamicCastToGenerated<ExecutionClosure>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionClosure) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionClosure) MergeFrom(*source); } } void ExecutionClosure::MergeFrom(const ExecutionClosure& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionClosure) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; notifications_.MergeFrom(from.notifications_); if (from.has_computed_inputs()) { mutable_computed_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.computed_inputs()); } if (from.has_started_at()) { mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); } if (from.has_duration()) { mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); } if (from.has_created_at()) { mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); } if (from.has_updated_at()) { mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); } if (from.has_workflow_id()) { mutable_workflow_id()->::flyteidl::core::Identifier::MergeFrom(from.workflow_id()); } if (from.phase() != 0) { set_phase(from.phase()); } switch (from.output_result_case()) { case kOutputs: { mutable_outputs()->::flyteidl::admin::LiteralMapBlob::MergeFrom(from.outputs()); break; } case kError: { mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); break; } case kAbortCause: { set_abort_cause(from.abort_cause()); break; } case OUTPUT_RESULT_NOT_SET: { break; } } } void ExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionClosure) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionClosure::CopyFrom(const ExecutionClosure& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionClosure) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionClosure::IsInitialized() const { return true; } void ExecutionClosure::Swap(ExecutionClosure* other) { if (other == this) return; InternalSwap(other); } void ExecutionClosure::InternalSwap(ExecutionClosure* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&notifications_)->InternalSwap(CastToBase(&other->notifications_)); swap(computed_inputs_, other->computed_inputs_); swap(started_at_, other->started_at_); swap(duration_, other->duration_); swap(created_at_, other->created_at_); swap(updated_at_, other->updated_at_); swap(workflow_id_, other->workflow_id_); swap(phase_, other->phase_); swap(output_result_, other->output_result_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::google::protobuf::Metadata ExecutionClosure::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void ExecutionMetadata::InitAsDefaultInstance() { ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->scheduled_at_ = const_cast< ::google::protobuf::Timestamp*>( ::google::protobuf::Timestamp::internal_default_instance()); ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->parent_node_execution_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->reference_execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); } class ExecutionMetadata::HasBitSetters { public: static const ::google::protobuf::Timestamp& scheduled_at(const ExecutionMetadata* msg); static const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution(const ExecutionMetadata* msg); static const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution(const ExecutionMetadata* msg); }; const ::google::protobuf::Timestamp& ExecutionMetadata::HasBitSetters::scheduled_at(const ExecutionMetadata* msg) { return *msg->scheduled_at_; } const ::flyteidl::core::NodeExecutionIdentifier& ExecutionMetadata::HasBitSetters::parent_node_execution(const ExecutionMetadata* msg) { return *msg->parent_node_execution_; } const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionMetadata::HasBitSetters::reference_execution(const ExecutionMetadata* msg) { return *msg->reference_execution_; } void ExecutionMetadata::clear_scheduled_at() { if (GetArenaNoVirtual() == nullptr && scheduled_at_ != nullptr) { delete scheduled_at_; } scheduled_at_ = nullptr; } void ExecutionMetadata::clear_parent_node_execution() { if (GetArenaNoVirtual() == nullptr && parent_node_execution_ != nullptr) { delete parent_node_execution_; } parent_node_execution_ = nullptr; } void ExecutionMetadata::clear_reference_execution() { if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { delete reference_execution_; } reference_execution_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ExecutionMetadata::kModeFieldNumber; const int ExecutionMetadata::kPrincipalFieldNumber; const int ExecutionMetadata::kNestingFieldNumber; const int ExecutionMetadata::kScheduledAtFieldNumber; const int ExecutionMetadata::kParentNodeExecutionFieldNumber; const int ExecutionMetadata::kReferenceExecutionFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionMetadata::ExecutionMetadata() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionMetadata) } ExecutionMetadata::ExecutionMetadata(const ExecutionMetadata& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.principal().size() > 0) { principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); } if (from.has_scheduled_at()) { scheduled_at_ = new ::google::protobuf::Timestamp(*from.scheduled_at_); } else { scheduled_at_ = nullptr; } if (from.has_parent_node_execution()) { parent_node_execution_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.parent_node_execution_); } else { parent_node_execution_ = nullptr; } if (from.has_reference_execution()) { reference_execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.reference_execution_); } else { reference_execution_ = nullptr; } ::memcpy(&mode_, &from.mode_, static_cast<size_t>(reinterpret_cast<char*>(&nesting_) - reinterpret_cast<char*>(&mode_)) + sizeof(nesting_)); // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionMetadata) } void ExecutionMetadata::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&scheduled_at_, 0, static_cast<size_t>( reinterpret_cast<char*>(&nesting_) - reinterpret_cast<char*>(&scheduled_at_)) + sizeof(nesting_)); } ExecutionMetadata::~ExecutionMetadata() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionMetadata) SharedDtor(); } void ExecutionMetadata::SharedDtor() { principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete scheduled_at_; if (this != internal_default_instance()) delete parent_node_execution_; if (this != internal_default_instance()) delete reference_execution_; } void ExecutionMetadata::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionMetadata& ExecutionMetadata::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionMetadata) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && scheduled_at_ != nullptr) { delete scheduled_at_; } scheduled_at_ = nullptr; if (GetArenaNoVirtual() == nullptr && parent_node_execution_ != nullptr) { delete parent_node_execution_; } parent_node_execution_ = nullptr; if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { delete reference_execution_; } reference_execution_ = nullptr; ::memset(&mode_, 0, static_cast<size_t>( reinterpret_cast<char*>(&nesting_) - reinterpret_cast<char*>(&mode_)) + sizeof(nesting_)); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionMetadata::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionMetadata*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); msg->set_mode(static_cast<::flyteidl::admin::ExecutionMetadata_ExecutionMode>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } // string principal = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionMetadata.principal"); object = msg->mutable_principal(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } // uint32 nesting = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; msg->set_nesting(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } // .google.protobuf.Timestamp scheduled_at = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::google::protobuf::Timestamp::_InternalParse; object = msg->mutable_scheduled_at(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; object = msg->mutable_parent_node_execution(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; case 16: { if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; object = msg->mutable_reference_execution(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; string_till_end: static_cast<::std::string*>(object)->clear(); static_cast<::std::string*>(object)->reserve(size); goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionMetadata::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionMetadata) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_mode(static_cast< ::flyteidl::admin::ExecutionMetadata_ExecutionMode >(value)); } else { goto handle_unusual; } break; } // string principal = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_principal())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->principal().data(), static_cast<int>(this->principal().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.ExecutionMetadata.principal")); } else { goto handle_unusual; } break; } // uint32 nesting = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &nesting_))); } else { goto handle_unusual; } break; } // .google.protobuf.Timestamp scheduled_at = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_scheduled_at())); } else { goto handle_unusual; } break; } // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_parent_node_execution())); } else { goto handle_unusual; } break; } // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; case 16: { if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_reference_execution())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionMetadata) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionMetadata) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionMetadata::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionMetadata) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; if (this->mode() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->mode(), output); } // string principal = 2; if (this->principal().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->principal().data(), static_cast<int>(this->principal().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionMetadata.principal"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->principal(), output); } // uint32 nesting = 3; if (this->nesting() != 0) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->nesting(), output); } // .google.protobuf.Timestamp scheduled_at = 4; if (this->has_scheduled_at()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, HasBitSetters::scheduled_at(this), output); } // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; if (this->has_parent_node_execution()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, HasBitSetters::parent_node_execution(this), output); } // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; if (this->has_reference_execution()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 16, HasBitSetters::reference_execution(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionMetadata) } ::google::protobuf::uint8* ExecutionMetadata::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionMetadata) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; if (this->mode() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->mode(), target); } // string principal = 2; if (this->principal().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->principal().data(), static_cast<int>(this->principal().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionMetadata.principal"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->principal(), target); } // uint32 nesting = 3; if (this->nesting() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->nesting(), target); } // .google.protobuf.Timestamp scheduled_at = 4; if (this->has_scheduled_at()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, HasBitSetters::scheduled_at(this), target); } // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; if (this->has_parent_node_execution()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, HasBitSetters::parent_node_execution(this), target); } // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; if (this->has_reference_execution()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 16, HasBitSetters::reference_execution(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionMetadata) return target; } size_t ExecutionMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionMetadata) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string principal = 2; if (this->principal().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->principal()); } // .google.protobuf.Timestamp scheduled_at = 4; if (this->has_scheduled_at()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *scheduled_at_); } // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; if (this->has_parent_node_execution()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *parent_node_execution_); } // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; if (this->has_reference_execution()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *reference_execution_); } // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; if (this->mode() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode()); } // uint32 nesting = 3; if (this->nesting() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->nesting()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionMetadata) GOOGLE_DCHECK_NE(&from, this); const ExecutionMetadata* source = ::google::protobuf::DynamicCastToGenerated<ExecutionMetadata>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionMetadata) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionMetadata) MergeFrom(*source); } } void ExecutionMetadata::MergeFrom(const ExecutionMetadata& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionMetadata) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.principal().size() > 0) { principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); } if (from.has_scheduled_at()) { mutable_scheduled_at()->::google::protobuf::Timestamp::MergeFrom(from.scheduled_at()); } if (from.has_parent_node_execution()) { mutable_parent_node_execution()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.parent_node_execution()); } if (from.has_reference_execution()) { mutable_reference_execution()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.reference_execution()); } if (from.mode() != 0) { set_mode(from.mode()); } if (from.nesting() != 0) { set_nesting(from.nesting()); } } void ExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionMetadata) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionMetadata::CopyFrom(const ExecutionMetadata& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionMetadata) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionMetadata::IsInitialized() const { return true; } void ExecutionMetadata::Swap(ExecutionMetadata* other) { if (other == this) return; InternalSwap(other); } void ExecutionMetadata::InternalSwap(ExecutionMetadata* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(scheduled_at_, other->scheduled_at_); swap(parent_node_execution_, other->parent_node_execution_); swap(reference_execution_, other->reference_execution_); swap(mode_, other->mode_); swap(nesting_, other->nesting_); } ::google::protobuf::Metadata ExecutionMetadata::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void NotificationList::InitAsDefaultInstance() { } class NotificationList::HasBitSetters { public: }; void NotificationList::clear_notifications() { notifications_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int NotificationList::kNotificationsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 NotificationList::NotificationList() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.NotificationList) } NotificationList::NotificationList(const NotificationList& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), notifications_(from.notifications_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NotificationList) } void NotificationList::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); } NotificationList::~NotificationList() { // @@protoc_insertion_point(destructor:flyteidl.admin.NotificationList) SharedDtor(); } void NotificationList::SharedDtor() { } void NotificationList::SetCachedSize(int size) const { _cached_size_.Set(size); } const NotificationList& NotificationList::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void NotificationList::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.NotificationList) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; notifications_.Clear(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* NotificationList::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<NotificationList*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // repeated .flyteidl.admin.Notification notifications = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::Notification::_InternalParse; object = msg->add_notifications(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); if (ptr >= end) break; } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool NotificationList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.NotificationList) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .flyteidl.admin.Notification notifications = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_notifications())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.NotificationList) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.NotificationList) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void NotificationList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.NotificationList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .flyteidl.admin.Notification notifications = 1; for (unsigned int i = 0, n = static_cast<unsigned int>(this->notifications_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->notifications(static_cast<int>(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.NotificationList) } ::google::protobuf::uint8* NotificationList::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NotificationList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .flyteidl.admin.Notification notifications = 1; for (unsigned int i = 0, n = static_cast<unsigned int>(this->notifications_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->notifications(static_cast<int>(i)), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NotificationList) return target; } size_t NotificationList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NotificationList) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .flyteidl.admin.Notification notifications = 1; { unsigned int count = static_cast<unsigned int>(this->notifications_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->notifications(static_cast<int>(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void NotificationList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NotificationList) GOOGLE_DCHECK_NE(&from, this); const NotificationList* source = ::google::protobuf::DynamicCastToGenerated<NotificationList>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NotificationList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NotificationList) MergeFrom(*source); } } void NotificationList::MergeFrom(const NotificationList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NotificationList) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; notifications_.MergeFrom(from.notifications_); } void NotificationList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NotificationList) if (&from == this) return; Clear(); MergeFrom(from); } void NotificationList::CopyFrom(const NotificationList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NotificationList) if (&from == this) return; Clear(); MergeFrom(from); } bool NotificationList::IsInitialized() const { return true; } void NotificationList::Swap(NotificationList* other) { if (other == this) return; InternalSwap(other); } void NotificationList::InternalSwap(NotificationList* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&notifications_)->InternalSwap(CastToBase(&other->notifications_)); } ::google::protobuf::Metadata NotificationList::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void ExecutionSpec::InitAsDefaultInstance() { ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->launch_plan_ = const_cast< ::flyteidl::core::Identifier*>( ::flyteidl::core::Identifier::internal_default_instance()); ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( ::flyteidl::core::LiteralMap::internal_default_instance()); ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::ExecutionMetadata*>( ::flyteidl::admin::ExecutionMetadata::internal_default_instance()); ::flyteidl::admin::_ExecutionSpec_default_instance_.notifications_ = const_cast< ::flyteidl::admin::NotificationList*>( ::flyteidl::admin::NotificationList::internal_default_instance()); ::flyteidl::admin::_ExecutionSpec_default_instance_.disable_all_ = false; ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( ::flyteidl::admin::Labels::internal_default_instance()); ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( ::flyteidl::admin::Annotations::internal_default_instance()); } class ExecutionSpec::HasBitSetters { public: static const ::flyteidl::core::Identifier& launch_plan(const ExecutionSpec* msg); static const ::flyteidl::core::LiteralMap& inputs(const ExecutionSpec* msg); static const ::flyteidl::admin::ExecutionMetadata& metadata(const ExecutionSpec* msg); static const ::flyteidl::admin::NotificationList& notifications(const ExecutionSpec* msg); static const ::flyteidl::admin::Labels& labels(const ExecutionSpec* msg); static const ::flyteidl::admin::Annotations& annotations(const ExecutionSpec* msg); }; const ::flyteidl::core::Identifier& ExecutionSpec::HasBitSetters::launch_plan(const ExecutionSpec* msg) { return *msg->launch_plan_; } const ::flyteidl::core::LiteralMap& ExecutionSpec::HasBitSetters::inputs(const ExecutionSpec* msg) { return *msg->inputs_; } const ::flyteidl::admin::ExecutionMetadata& ExecutionSpec::HasBitSetters::metadata(const ExecutionSpec* msg) { return *msg->metadata_; } const ::flyteidl::admin::NotificationList& ExecutionSpec::HasBitSetters::notifications(const ExecutionSpec* msg) { return *msg->notification_overrides_.notifications_; } const ::flyteidl::admin::Labels& ExecutionSpec::HasBitSetters::labels(const ExecutionSpec* msg) { return *msg->labels_; } const ::flyteidl::admin::Annotations& ExecutionSpec::HasBitSetters::annotations(const ExecutionSpec* msg) { return *msg->annotations_; } void ExecutionSpec::clear_launch_plan() { if (GetArenaNoVirtual() == nullptr && launch_plan_ != nullptr) { delete launch_plan_; } launch_plan_ = nullptr; } void ExecutionSpec::clear_inputs() { if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { delete inputs_; } inputs_ = nullptr; } void ExecutionSpec::set_allocated_notifications(::flyteidl::admin::NotificationList* notifications) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_notification_overrides(); if (notifications) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { notifications = ::google::protobuf::internal::GetOwnedMessage( message_arena, notifications, submessage_arena); } set_has_notifications(); notification_overrides_.notifications_ = notifications; } // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.notifications) } void ExecutionSpec::clear_labels() { if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { delete labels_; } labels_ = nullptr; } void ExecutionSpec::clear_annotations() { if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { delete annotations_; } annotations_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ExecutionSpec::kLaunchPlanFieldNumber; const int ExecutionSpec::kInputsFieldNumber; const int ExecutionSpec::kMetadataFieldNumber; const int ExecutionSpec::kNotificationsFieldNumber; const int ExecutionSpec::kDisableAllFieldNumber; const int ExecutionSpec::kLabelsFieldNumber; const int ExecutionSpec::kAnnotationsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionSpec::ExecutionSpec() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionSpec) } ExecutionSpec::ExecutionSpec(const ExecutionSpec& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_launch_plan()) { launch_plan_ = new ::flyteidl::core::Identifier(*from.launch_plan_); } else { launch_plan_ = nullptr; } if (from.has_inputs()) { inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); } else { inputs_ = nullptr; } if (from.has_metadata()) { metadata_ = new ::flyteidl::admin::ExecutionMetadata(*from.metadata_); } else { metadata_ = nullptr; } if (from.has_labels()) { labels_ = new ::flyteidl::admin::Labels(*from.labels_); } else { labels_ = nullptr; } if (from.has_annotations()) { annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); } else { annotations_ = nullptr; } clear_has_notification_overrides(); switch (from.notification_overrides_case()) { case kNotifications: { mutable_notifications()->::flyteidl::admin::NotificationList::MergeFrom(from.notifications()); break; } case kDisableAll: { set_disable_all(from.disable_all()); break; } case NOTIFICATION_OVERRIDES_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionSpec) } void ExecutionSpec::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); ::memset(&launch_plan_, 0, static_cast<size_t>( reinterpret_cast<char*>(&annotations_) - reinterpret_cast<char*>(&launch_plan_)) + sizeof(annotations_)); clear_has_notification_overrides(); } ExecutionSpec::~ExecutionSpec() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionSpec) SharedDtor(); } void ExecutionSpec::SharedDtor() { if (this != internal_default_instance()) delete launch_plan_; if (this != internal_default_instance()) delete inputs_; if (this != internal_default_instance()) delete metadata_; if (this != internal_default_instance()) delete labels_; if (this != internal_default_instance()) delete annotations_; if (has_notification_overrides()) { clear_notification_overrides(); } } void ExecutionSpec::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionSpec& ExecutionSpec::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionSpec::clear_notification_overrides() { // @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.ExecutionSpec) switch (notification_overrides_case()) { case kNotifications: { delete notification_overrides_.notifications_; break; } case kDisableAll: { // No need to clear break; } case NOTIFICATION_OVERRIDES_NOT_SET: { break; } } _oneof_case_[0] = NOTIFICATION_OVERRIDES_NOT_SET; } void ExecutionSpec::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionSpec) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaNoVirtual() == nullptr && launch_plan_ != nullptr) { delete launch_plan_; } launch_plan_ = nullptr; if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { delete inputs_; } inputs_ = nullptr; if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { delete metadata_; } metadata_ = nullptr; if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { delete labels_; } labels_ = nullptr; if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { delete annotations_; } annotations_ = nullptr; clear_notification_overrides(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionSpec::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionSpec*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.core.Identifier launch_plan = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::Identifier::_InternalParse; object = msg->mutable_launch_plan(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; object = msg->mutable_inputs(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.admin.ExecutionMetadata metadata = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::ExecutionMetadata::_InternalParse; object = msg->mutable_metadata(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.admin.NotificationList notifications = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::NotificationList::_InternalParse; object = msg->mutable_notifications(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // bool disable_all = 6; case 6: { if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; msg->set_disable_all(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } // .flyteidl.admin.Labels labels = 7; case 7: { if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::Labels::_InternalParse; object = msg->mutable_labels(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.admin.Annotations annotations = 8; case 8: { if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::Annotations::_InternalParse; object = msg->mutable_annotations(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionSpec::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionSpec) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.core.Identifier launch_plan = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_launch_plan())); } else { goto handle_unusual; } break; } // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_inputs())); } else { goto handle_unusual; } break; } // .flyteidl.admin.ExecutionMetadata metadata = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_metadata())); } else { goto handle_unusual; } break; } // .flyteidl.admin.NotificationList notifications = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_notifications())); } else { goto handle_unusual; } break; } // bool disable_all = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { clear_notification_overrides(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &notification_overrides_.disable_all_))); set_has_disable_all(); } else { goto handle_unusual; } break; } // .flyteidl.admin.Labels labels = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_labels())); } else { goto handle_unusual; } break; } // .flyteidl.admin.Annotations annotations = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_annotations())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionSpec) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionSpec) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionSpec::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionSpec) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.Identifier launch_plan = 1; if (this->has_launch_plan()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::launch_plan(this), output); } // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; if (this->has_inputs()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, HasBitSetters::inputs(this), output); } // .flyteidl.admin.ExecutionMetadata metadata = 3; if (this->has_metadata()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, HasBitSetters::metadata(this), output); } // .flyteidl.admin.NotificationList notifications = 5; if (has_notifications()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, HasBitSetters::notifications(this), output); } // bool disable_all = 6; if (has_disable_all()) { ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->disable_all(), output); } // .flyteidl.admin.Labels labels = 7; if (this->has_labels()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, HasBitSetters::labels(this), output); } // .flyteidl.admin.Annotations annotations = 8; if (this->has_annotations()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, HasBitSetters::annotations(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionSpec) } ::google::protobuf::uint8* ExecutionSpec::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionSpec) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.Identifier launch_plan = 1; if (this->has_launch_plan()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::launch_plan(this), target); } // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; if (this->has_inputs()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, HasBitSetters::inputs(this), target); } // .flyteidl.admin.ExecutionMetadata metadata = 3; if (this->has_metadata()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, HasBitSetters::metadata(this), target); } // .flyteidl.admin.NotificationList notifications = 5; if (has_notifications()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, HasBitSetters::notifications(this), target); } // bool disable_all = 6; if (has_disable_all()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->disable_all(), target); } // .flyteidl.admin.Labels labels = 7; if (this->has_labels()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 7, HasBitSetters::labels(this), target); } // .flyteidl.admin.Annotations annotations = 8; if (this->has_annotations()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 8, HasBitSetters::annotations(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionSpec) return target; } size_t ExecutionSpec::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionSpec) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .flyteidl.core.Identifier launch_plan = 1; if (this->has_launch_plan()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *launch_plan_); } // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; if (this->has_inputs()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *inputs_); } // .flyteidl.admin.ExecutionMetadata metadata = 3; if (this->has_metadata()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *metadata_); } // .flyteidl.admin.Labels labels = 7; if (this->has_labels()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *labels_); } // .flyteidl.admin.Annotations annotations = 8; if (this->has_annotations()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *annotations_); } switch (notification_overrides_case()) { // .flyteidl.admin.NotificationList notifications = 5; case kNotifications: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *notification_overrides_.notifications_); break; } // bool disable_all = 6; case kDisableAll: { total_size += 1 + 1; break; } case NOTIFICATION_OVERRIDES_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionSpec::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionSpec) GOOGLE_DCHECK_NE(&from, this); const ExecutionSpec* source = ::google::protobuf::DynamicCastToGenerated<ExecutionSpec>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionSpec) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionSpec) MergeFrom(*source); } } void ExecutionSpec::MergeFrom(const ExecutionSpec& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionSpec) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_launch_plan()) { mutable_launch_plan()->::flyteidl::core::Identifier::MergeFrom(from.launch_plan()); } if (from.has_inputs()) { mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); } if (from.has_metadata()) { mutable_metadata()->::flyteidl::admin::ExecutionMetadata::MergeFrom(from.metadata()); } if (from.has_labels()) { mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); } if (from.has_annotations()) { mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); } switch (from.notification_overrides_case()) { case kNotifications: { mutable_notifications()->::flyteidl::admin::NotificationList::MergeFrom(from.notifications()); break; } case kDisableAll: { set_disable_all(from.disable_all()); break; } case NOTIFICATION_OVERRIDES_NOT_SET: { break; } } } void ExecutionSpec::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionSpec) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionSpec::CopyFrom(const ExecutionSpec& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionSpec) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionSpec::IsInitialized() const { return true; } void ExecutionSpec::Swap(ExecutionSpec* other) { if (other == this) return; InternalSwap(other); } void ExecutionSpec::InternalSwap(ExecutionSpec* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(launch_plan_, other->launch_plan_); swap(inputs_, other->inputs_); swap(metadata_, other->metadata_); swap(labels_, other->labels_); swap(annotations_, other->annotations_); swap(notification_overrides_, other->notification_overrides_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::google::protobuf::Metadata ExecutionSpec::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void ExecutionTerminateRequest::InitAsDefaultInstance() { ::flyteidl::admin::_ExecutionTerminateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); } class ExecutionTerminateRequest::HasBitSetters { public: static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionTerminateRequest* msg); }; const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionTerminateRequest::HasBitSetters::id(const ExecutionTerminateRequest* msg) { return *msg->id_; } void ExecutionTerminateRequest::clear_id() { if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ExecutionTerminateRequest::kIdFieldNumber; const int ExecutionTerminateRequest::kCauseFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionTerminateRequest::ExecutionTerminateRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionTerminateRequest) } ExecutionTerminateRequest::ExecutionTerminateRequest(const ExecutionTerminateRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.cause().size() > 0) { cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); } if (from.has_id()) { id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); } else { id_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionTerminateRequest) } void ExecutionTerminateRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); id_ = nullptr; } ExecutionTerminateRequest::~ExecutionTerminateRequest() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionTerminateRequest) SharedDtor(); } void ExecutionTerminateRequest::SharedDtor() { cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete id_; } void ExecutionTerminateRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionTerminateRequest& ExecutionTerminateRequest::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionTerminateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionTerminateRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionTerminateRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionTerminateRequest*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; object = msg->mutable_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // string cause = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionTerminateRequest.cause"); object = msg->mutable_cause(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; } GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; string_till_end: static_cast<::std::string*>(object)->clear(); static_cast<::std::string*>(object)->reserve(size); goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionTerminateRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionTerminateRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id())); } else { goto handle_unusual; } break; } // string cause = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_cause())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->cause().data(), static_cast<int>(this->cause().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "flyteidl.admin.ExecutionTerminateRequest.cause")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionTerminateRequest) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionTerminateRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionTerminateRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionTerminateRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::id(this), output); } // string cause = 2; if (this->cause().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->cause().data(), static_cast<int>(this->cause().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionTerminateRequest.cause"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->cause(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionTerminateRequest) } ::google::protobuf::uint8* ExecutionTerminateRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionTerminateRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::id(this), target); } // string cause = 2; if (this->cause().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->cause().data(), static_cast<int>(this->cause().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "flyteidl.admin.ExecutionTerminateRequest.cause"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->cause(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionTerminateRequest) return target; } size_t ExecutionTerminateRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionTerminateRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string cause = 2; if (this->cause().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->cause()); } // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *id_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionTerminateRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionTerminateRequest) GOOGLE_DCHECK_NE(&from, this); const ExecutionTerminateRequest* source = ::google::protobuf::DynamicCastToGenerated<ExecutionTerminateRequest>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionTerminateRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionTerminateRequest) MergeFrom(*source); } } void ExecutionTerminateRequest::MergeFrom(const ExecutionTerminateRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionTerminateRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.cause().size() > 0) { cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); } if (from.has_id()) { mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); } } void ExecutionTerminateRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionTerminateRequest) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionTerminateRequest::CopyFrom(const ExecutionTerminateRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionTerminateRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionTerminateRequest::IsInitialized() const { return true; } void ExecutionTerminateRequest::Swap(ExecutionTerminateRequest* other) { if (other == this) return; InternalSwap(other); } void ExecutionTerminateRequest::InternalSwap(ExecutionTerminateRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); cause_.Swap(&other->cause_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(id_, other->id_); } ::google::protobuf::Metadata ExecutionTerminateRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void ExecutionTerminateResponse::InitAsDefaultInstance() { } class ExecutionTerminateResponse::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ExecutionTerminateResponse::ExecutionTerminateResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionTerminateResponse) } ExecutionTerminateResponse::ExecutionTerminateResponse(const ExecutionTerminateResponse& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionTerminateResponse) } void ExecutionTerminateResponse::SharedCtor() { } ExecutionTerminateResponse::~ExecutionTerminateResponse() { // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionTerminateResponse) SharedDtor(); } void ExecutionTerminateResponse::SharedDtor() { } void ExecutionTerminateResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const ExecutionTerminateResponse& ExecutionTerminateResponse::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void ExecutionTerminateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionTerminateResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* ExecutionTerminateResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<ExecutionTerminateResponse*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { default: { if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ExecutionTerminateResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionTerminateResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionTerminateResponse) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionTerminateResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ExecutionTerminateResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionTerminateResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionTerminateResponse) } ::google::protobuf::uint8* ExecutionTerminateResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionTerminateResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionTerminateResponse) return target; } size_t ExecutionTerminateResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionTerminateResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExecutionTerminateResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionTerminateResponse) GOOGLE_DCHECK_NE(&from, this); const ExecutionTerminateResponse* source = ::google::protobuf::DynamicCastToGenerated<ExecutionTerminateResponse>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionTerminateResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionTerminateResponse) MergeFrom(*source); } } void ExecutionTerminateResponse::MergeFrom(const ExecutionTerminateResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionTerminateResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; } void ExecutionTerminateResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionTerminateResponse) if (&from == this) return; Clear(); MergeFrom(from); } void ExecutionTerminateResponse::CopyFrom(const ExecutionTerminateResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionTerminateResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool ExecutionTerminateResponse::IsInitialized() const { return true; } void ExecutionTerminateResponse::Swap(ExecutionTerminateResponse* other) { if (other == this) return; InternalSwap(other); } void ExecutionTerminateResponse::InternalSwap(ExecutionTerminateResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata ExecutionTerminateResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void WorkflowExecutionGetDataRequest::InitAsDefaultInstance() { ::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); } class WorkflowExecutionGetDataRequest::HasBitSetters { public: static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const WorkflowExecutionGetDataRequest* msg); }; const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetDataRequest::HasBitSetters::id(const WorkflowExecutionGetDataRequest* msg) { return *msg->id_; } void WorkflowExecutionGetDataRequest::clear_id() { if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int WorkflowExecutionGetDataRequest::kIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 WorkflowExecutionGetDataRequest::WorkflowExecutionGetDataRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetDataRequest) } WorkflowExecutionGetDataRequest::WorkflowExecutionGetDataRequest(const WorkflowExecutionGetDataRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_id()) { id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); } else { id_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetDataRequest) } void WorkflowExecutionGetDataRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); id_ = nullptr; } WorkflowExecutionGetDataRequest::~WorkflowExecutionGetDataRequest() { // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetDataRequest) SharedDtor(); } void WorkflowExecutionGetDataRequest::SharedDtor() { if (this != internal_default_instance()) delete id_; } void WorkflowExecutionGetDataRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const WorkflowExecutionGetDataRequest& WorkflowExecutionGetDataRequest::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void WorkflowExecutionGetDataRequest::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetDataRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { delete id_; } id_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* WorkflowExecutionGetDataRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<WorkflowExecutionGetDataRequest*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; object = msg->mutable_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool WorkflowExecutionGetDataRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetDataRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.core.WorkflowExecutionIdentifier id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionGetDataRequest) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetDataRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void WorkflowExecutionGetDataRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetDataRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::id(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetDataRequest) } ::google::protobuf::uint8* WorkflowExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetDataRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::id(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetDataRequest) return target; } size_t WorkflowExecutionGetDataRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetDataRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .flyteidl.core.WorkflowExecutionIdentifier id = 1; if (this->has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *id_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void WorkflowExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) GOOGLE_DCHECK_NE(&from, this); const WorkflowExecutionGetDataRequest* source = ::google::protobuf::DynamicCastToGenerated<WorkflowExecutionGetDataRequest>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetDataRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetDataRequest) MergeFrom(*source); } } void WorkflowExecutionGetDataRequest::MergeFrom(const WorkflowExecutionGetDataRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_id()) { mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); } } void WorkflowExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) if (&from == this) return; Clear(); MergeFrom(from); } void WorkflowExecutionGetDataRequest::CopyFrom(const WorkflowExecutionGetDataRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool WorkflowExecutionGetDataRequest::IsInitialized() const { return true; } void WorkflowExecutionGetDataRequest::Swap(WorkflowExecutionGetDataRequest* other) { if (other == this) return; InternalSwap(other); } void WorkflowExecutionGetDataRequest::InternalSwap(WorkflowExecutionGetDataRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(id_, other->id_); } ::google::protobuf::Metadata WorkflowExecutionGetDataRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // =================================================================== void WorkflowExecutionGetDataResponse::InitAsDefaultInstance() { ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( ::flyteidl::admin::UrlBlob::internal_default_instance()); ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( ::flyteidl::admin::UrlBlob::internal_default_instance()); } class WorkflowExecutionGetDataResponse::HasBitSetters { public: static const ::flyteidl::admin::UrlBlob& outputs(const WorkflowExecutionGetDataResponse* msg); static const ::flyteidl::admin::UrlBlob& inputs(const WorkflowExecutionGetDataResponse* msg); }; const ::flyteidl::admin::UrlBlob& WorkflowExecutionGetDataResponse::HasBitSetters::outputs(const WorkflowExecutionGetDataResponse* msg) { return *msg->outputs_; } const ::flyteidl::admin::UrlBlob& WorkflowExecutionGetDataResponse::HasBitSetters::inputs(const WorkflowExecutionGetDataResponse* msg) { return *msg->inputs_; } void WorkflowExecutionGetDataResponse::clear_outputs() { if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { delete outputs_; } outputs_ = nullptr; } void WorkflowExecutionGetDataResponse::clear_inputs() { if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { delete inputs_; } inputs_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int WorkflowExecutionGetDataResponse::kOutputsFieldNumber; const int WorkflowExecutionGetDataResponse::kInputsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 WorkflowExecutionGetDataResponse::WorkflowExecutionGetDataResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetDataResponse) } WorkflowExecutionGetDataResponse::WorkflowExecutionGetDataResponse(const WorkflowExecutionGetDataResponse& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_outputs()) { outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); } else { outputs_ = nullptr; } if (from.has_inputs()) { inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); } else { inputs_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetDataResponse) } void WorkflowExecutionGetDataResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); ::memset(&outputs_, 0, static_cast<size_t>( reinterpret_cast<char*>(&inputs_) - reinterpret_cast<char*>(&outputs_)) + sizeof(inputs_)); } WorkflowExecutionGetDataResponse::~WorkflowExecutionGetDataResponse() { // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetDataResponse) SharedDtor(); } void WorkflowExecutionGetDataResponse::SharedDtor() { if (this != internal_default_instance()) delete outputs_; if (this != internal_default_instance()) delete inputs_; } void WorkflowExecutionGetDataResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const WorkflowExecutionGetDataResponse& WorkflowExecutionGetDataResponse::default_instance() { ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); return *internal_default_instance(); } void WorkflowExecutionGetDataResponse::Clear() { // @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetDataResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { delete outputs_; } outputs_ = nullptr; if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { delete inputs_; } inputs_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* WorkflowExecutionGetDataResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { auto msg = static_cast<WorkflowExecutionGetDataResponse*>(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; auto ptr = begin; while (ptr < end) { ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { // .flyteidl.admin.UrlBlob outputs = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::UrlBlob::_InternalParse; object = msg->mutable_outputs(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } // .flyteidl.admin.UrlBlob inputs = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::admin::UrlBlob::_InternalParse; object = msg->mutable_inputs(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; } auto res = UnknownFieldParse(tag, {_InternalParse, msg}, ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); ptr = res.first; GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); if (res.second) return ptr; } } // switch } // while return ptr; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool WorkflowExecutionGetDataResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetDataResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .flyteidl.admin.UrlBlob outputs = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_outputs())); } else { goto handle_unusual; } break; } // .flyteidl.admin.UrlBlob inputs = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_inputs())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionGetDataResponse) return true; failure: // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetDataResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void WorkflowExecutionGetDataResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetDataResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.admin.UrlBlob outputs = 1; if (this->has_outputs()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::outputs(this), output); } // .flyteidl.admin.UrlBlob inputs = 2; if (this->has_inputs()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, HasBitSetters::inputs(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetDataResponse) } ::google::protobuf::uint8* WorkflowExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetDataResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .flyteidl.admin.UrlBlob outputs = 1; if (this->has_outputs()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::outputs(this), target); } // .flyteidl.admin.UrlBlob inputs = 2; if (this->has_inputs()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, HasBitSetters::inputs(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetDataResponse) return target; } size_t WorkflowExecutionGetDataResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetDataResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .flyteidl.admin.UrlBlob outputs = 1; if (this->has_outputs()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *outputs_); } // .flyteidl.admin.UrlBlob inputs = 2; if (this->has_inputs()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *inputs_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void WorkflowExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) GOOGLE_DCHECK_NE(&from, this); const WorkflowExecutionGetDataResponse* source = ::google::protobuf::DynamicCastToGenerated<WorkflowExecutionGetDataResponse>( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetDataResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetDataResponse) MergeFrom(*source); } } void WorkflowExecutionGetDataResponse::MergeFrom(const WorkflowExecutionGetDataResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_outputs()) { mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); } if (from.has_inputs()) { mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); } } void WorkflowExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) if (&from == this) return; Clear(); MergeFrom(from); } void WorkflowExecutionGetDataResponse::CopyFrom(const WorkflowExecutionGetDataResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool WorkflowExecutionGetDataResponse::IsInitialized() const { return true; } void WorkflowExecutionGetDataResponse::Swap(WorkflowExecutionGetDataResponse* other) { if (other == this) return; InternalSwap(other); } void WorkflowExecutionGetDataResponse::InternalSwap(WorkflowExecutionGetDataResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(outputs_, other->outputs_); swap(inputs_, other->inputs_); } ::google::protobuf::Metadata WorkflowExecutionGetDataResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace admin } // namespace flyteidl namespace google { namespace protobuf { template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionCreateRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionCreateRequest >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionRelaunchRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionRelaunchRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionRelaunchRequest >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionCreateResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionCreateResponse >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetRequest >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::Execution* Arena::CreateMaybeMessage< ::flyteidl::admin::Execution >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::Execution >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionList* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionList >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionList >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::LiteralMapBlob* Arena::CreateMaybeMessage< ::flyteidl::admin::LiteralMapBlob >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::LiteralMapBlob >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionClosure >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionClosure >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionMetadata >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionMetadata >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::NotificationList* Arena::CreateMaybeMessage< ::flyteidl::admin::NotificationList >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::NotificationList >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionSpec >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionSpec >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionTerminateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionTerminateRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionTerminateRequest >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionTerminateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionTerminateResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::ExecutionTerminateResponse >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetDataRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetDataRequest >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetDataResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetDataResponse >(arena); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #include <google/protobuf/port_undef.inc>
j end add $t1, $0, $t0
%include "../utils/printf32.asm" ; global initialized variables ; perm: rw- section .data var_byte db 'A' ; db = define byte (8b, ex: char var_byte = 'A') var_byte1 db 0x41 ; same as above var_byte2 db 65 ; same as above var_word dw 10 ; dw = define word (16b, ex: short var_word = 10) var_dword dd 1 ; dd = define double word (32b, ex: int var_dword = 1) var_qword dq 12 ; dq = define quad word (64b, ex: long long var_qword = 12) str: db "salut", 0 ; char str[] = "salut"; 0 => '\0' str1 db 's', 'a', 'l', 'u', 't', 0 ; same as above arr dd 0, 1, 2, 3 ; int arr[] = {0, 1, 2, 3} ; arr2: dd 0 ; same as above ; 1 ; 2 ; 3 ; global constant variables ; perm: r-- section .rodata str2 db "salut", 0 ; same in .data ; global uninitialized variables ; perm: rw- section .bss v_byte resb 1 ; char v_byte; v_bytes resb 10 ; char v_bytes[10]; v_word resw 1 ; short v_word; v_words resw 100 ; short v_words[100]; ; resd ; resq ; instructions ; perm: r-x section .text extern printf global main main: push ebp mov ebp, esp ; eax - contine adresa mov eax, var_dword PRINTF32 `var_dword = 0x%x\n\x0`, eax ; eax - contine valoarea de la adresa var_dword mov eax, [var_dword] PRINTF32 `[var_dword] = %d\n\x0`, eax mov dword [var_dword], 10 PRINTF32 `[var_dword] = %d\n\x0`, [var_dword] mov [var_dword], dword 200000000 PRINTF32 `[var_dword] = %d\n\x0`, [var_dword] mov [var_dword], byte 255 PRINTF32 `[var_dword] = %d\n\x0`, [var_dword] ; var_qword var_qword + 4 ; 0x0c 0x00 0x00 0x00 | 0x00 0x00 0x00 0x00 PRINTF32 `[var_qword] = 0x%x\x0`, [var_qword + 4] PRINTF32 `%x\n\x0`, [var_qword] mov ecx, 4 xor eax, eax ; eax <- 0; eax e i ; sub eax, eax ; mov eax, 0 PRINTF32 `arr:\n\x0` print: ; arr[i] = *(arr + i) = "*(arr + i * sizeof(*arr))" PRINTF32 `%d\n\x0`, [arr + eax * 4] inc eax cmp ecx, eax jnz print mov ecx, 4 PRINTF32 `arr_rev:\n\x0` print_rev: ; arr[i] = *(arr + i) = "*(arr + i * sizeof(*arr))" PRINTF32 `%d\n\x0`, [arr + (ecx - 1) * 4] ; [arr + ecx * 4 - 4] loop print_rev mov ecx, 4 PRINTF32 `arr_rev:\n\x0` print_rev_no_loop: ; arr[i] = *(arr + i) = "*(arr + i * sizeof(*arr))" PRINTF32 `%d\n\x0`, [arr + (ecx - 1) * 4] ; [arr + ecx * 4 - 4] dec ecx jnz print_rev_no_loop ; Multiply ; res = D * I ; syntax: mul I (I - reg/mem) ; ; I = 8b => trebuie sa plasam D in AL; res = AX ; I = 16b => trebuie sa plasam D in AX; res = DX:AX ; I = 32b => trebuie sa plasam D in EAX; res = EDX:EAX mov eax, 12 mov ebx, 3 ; AX = al * bl (8b * 8b) mul bl PRINTF32 `%d\n\x0`, eax mov eax, 12 ; AX = al * *(var_byte) (8b * 8b) mul byte [var_byte] PRINTF32 `%d\n\x0`, eax ; Divide ; D = I * C + R ; syntax: div I (I - reg/mem) ; I = 8b => trebuie sa plasam D in AX; C = AL, R = AH ; I = 16b => trebuie sa plasam D in DX:AX; C = AX, R = DX ; I = 32b => trebuie sa plasam D in EDX:EAX; C = EAX, R = EDX mov eax, 14 mov ebx, 5 ; AX = bl * al + ah div bl PRINTF32 `{R, C} = 0x%x\n\x0`, eax xor ebx, ebx mov bl, al PRINTF32 `C = %d\n\x0`, ebx xor ebx, ebx mov bl, ah PRINTF32 `R = %d\n\x0`, ebx ; pentru numere negative: idiv, cdq leave ret
class Solution { public: bool containsDuplicate(vector<int>& nums) { if(nums.size() <= 1) return false; sort(nums.begin(), nums.end()); for(int i = 1; i < nums.size(); ++i) { if(nums[i] == nums[i-1]) { return true; } } return false; } };
map_header Route25, ROUTE_25, OVERWORLD, WEST connection west, Route24, ROUTE_24, 0 end_map_header
// (C) Copyright Gennadiy Rozental 2005-2014. // Use, modification, and distribution are subject to 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) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version : $Revision$ // // Description : defines parser - public interface for CLA parsing and accessing // *************************************************************************** #ifndef BOOST_TEST_UTILS_RUNTIME_CLA_PARSER_HPP #define BOOST_TEST_UTILS_RUNTIME_CLA_PARSER_HPP // Boost.Runtime.Parameter #include <boost/test/utils/runtime/config.hpp> #include <boost/test/utils/runtime/fwd.hpp> #include <boost/test/utils/runtime/argument.hpp> #include <boost/test/utils/runtime/cla/fwd.hpp> #include <boost/test/utils/runtime/cla/modifier.hpp> #include <boost/test/utils/runtime/cla/argv_traverser.hpp> // Boost #include <boost/optional.hpp> // STL #include <list> namespace boost { namespace BOOST_TEST_UTILS_RUNTIME_PARAM_NAMESPACE { namespace cla { // ************************************************************************** // // ************** runtime::cla::parser ************** // // ************************************************************************** // namespace cla_detail { template<typename Modifier> class global_mod_parser { public: global_mod_parser( parser& p, Modifier const& m ) : m_parser( p ) , m_modifiers( m ) {} template<typename Param> global_mod_parser const& operator<<( shared_ptr<Param> param ) const { param->accept_modifier( m_modifiers ); m_parser << param; return *this; } private: // Data members; parser& m_parser; Modifier const& m_modifiers; }; } // ************************************************************************** // // ************** runtime::cla::parser ************** // // ************************************************************************** // class parser { public: typedef std::list<parameter_ptr>::const_iterator param_iterator; typedef std::list<parameter_ptr>::size_type param_size_type; // Constructor explicit parser( cstring program_name = cstring() ); // parameter list construction interface parser& operator<<( parameter_ptr param ); // parser and global parameters modifiers template<typename Modifier> cla_detail::global_mod_parser<Modifier> operator-( Modifier const& m ) { nfp::optionally_assign( m_traverser.p_separator.value, m, input_separator ); nfp::optionally_assign( m_traverser.p_ignore_mismatch.value, m, ignore_mismatch_m ); return cla_detail::global_mod_parser<Modifier>( *this, m ); } // input processing method void parse( int& argc, char_type** argv ); // parameters access param_iterator first_param() const; param_iterator last_param() const; param_size_type num_params() const { return m_parameters.size(); } void reset(); // arguments access const_argument_ptr operator[]( cstring string_id ) const; cstring get( cstring string_id ) const; template<typename T> T const& get( cstring string_id ) const { return arg_value<T>( valid_argument( string_id ) ); } template<typename T> void get( cstring string_id, boost::optional<T>& res ) const { const_argument_ptr actual_arg = (*this)[string_id]; if( actual_arg ) res = arg_value<T>( *actual_arg ); else res.reset(); } // help/usage void usage( out_stream& ostr ); void help( out_stream& ostr ); private: argument const& valid_argument( cstring string_id ) const; // Data members argv_traverser m_traverser; std::list<parameter_ptr> m_parameters; dstring m_program_name; }; //____________________________________________________________________________// } // namespace cla } // namespace BOOST_TEST_UTILS_RUNTIME_PARAM_NAMESPACE } // namespace boost #ifndef BOOST_TEST_UTILS_RUNTIME_PARAM_OFFLINE #ifndef BOOST_TEST_UTILS_RUNTIME_PARAM_INLINE # define BOOST_TEST_UTILS_RUNTIME_PARAM_INLINE inline #endif # include <boost/test/utils/runtime/cla/parser.ipp> #endif #endif // BOOST_TEST_UTILS_RUNTIME_CLA_PARSER_HPP
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 15/10/98 ; ; ; Page the graphics bank in/out - used by all gfx functions ; Simply does a swap... ; ; ; $Id: swapgfxbk.asm,v 1.5 2017-01-02 22:57:59 aralbrec Exp $ ; SECTION code_clib PUBLIC swapgfxbk PUBLIC _swapgfxbk PUBLIC swapgfxbk1 PUBLIC _swapgfxbk1 .swapgfxbk ._swapgfxbk di ret .swapgfxbk1 ._swapgfxbk1 ld iy,23610 ei ret
/* * Automatically Generated from Mathematica. * Fri 5 Nov 2021 09:03:12 GMT-04:00 */ #ifndef JS_Y_TIME_LEFTSTANCE_HH #define JS_Y_TIME_LEFTSTANCE_HH namespace frost { namespace gen { void Js_y_time_LeftStance(double *p_output1, const double *var1); } } #endif // JS_Y_TIME_LEFTSTANCE_HH
// Copyright 2016 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/ash/app_mode/arc/arc_kiosk_app_launcher.h> #include <memory> #include <string> #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" #include "chromeos/ui/base/window_pin_type.h" #include "chromeos/ui/base/window_properties.h" #include "components/arc/arc_util.h" #include "components/arc/metrics/arc_metrics_constants.h" #include "ui/aura/env.h" #include "ui/base/ui_base_features.h" #include "ui/events/event_constants.h" namespace ash { ArcKioskAppLauncher::ArcKioskAppLauncher(content::BrowserContext* context, ArcAppListPrefs* prefs, const std::string& app_id, Delegate* delegate) : app_id_(app_id), prefs_(prefs), delegate_(delegate) { prefs_->AddObserver(this); aura::Env::GetInstance()->AddObserver(this); // Launching the app by app id in landscape mode and in non-touch mode. arc::LaunchApp(context, app_id_, ui::EF_NONE, arc::UserInteractionType::NOT_USER_INITIATED); } ArcKioskAppLauncher::~ArcKioskAppLauncher() { StopObserving(); } void ArcKioskAppLauncher::OnTaskCreated(int32_t task_id, const std::string& package_name, const std::string& activity, const std::string& intent) { std::unique_ptr<ArcAppListPrefs::AppInfo> app = prefs_->GetApp(app_id_); if (!app || app->package_name != package_name || app->activity != activity) return; task_id_ = task_id; // The app window may have been created already. for (aura::Window* window : windows_) { if (CheckAndPinWindow(window)) break; } } void ArcKioskAppLauncher::OnWindowInitialized(aura::Window* window) { // The |window|’s task ID is not set yet. We need to observe // the window until the |kApplicationIdKey| property is set. window->AddObserver(this); windows_.insert(window); } void ArcKioskAppLauncher::OnWindowPropertyChanged(aura::Window* window, const void* key, intptr_t old) { // If we do not know yet what task ID to look for, do nothing. // Existing windows will be revisited the moment the task ID // becomes known. if (task_id_ == -1) return; // We are only interested in changes to |kApplicationIdKey|, // but that constant is not accessible outside shell_surface.cc. // So we react to all property changes. CheckAndPinWindow(window); } void ArcKioskAppLauncher::OnWindowDestroying(aura::Window* window) { window->RemoveObserver(this); windows_.erase(window); } bool ArcKioskAppLauncher::CheckAndPinWindow(aura::Window* const window) { DCHECK_GE(task_id_, 0); if (arc::GetWindowTaskId(window) != task_id_) return false; // Stop observing as target window is already found. StopObserving(); window->SetProperty(chromeos::kWindowPinTypeKey, chromeos::WindowPinType::kTrustedPinned); if (delegate_) delegate_->OnAppWindowLaunched(); return true; } void ArcKioskAppLauncher::StopObserving() { aura::Env::GetInstance()->RemoveObserver(this); for (auto* window : windows_) window->RemoveObserver(this); windows_.clear(); prefs_->RemoveObserver(this); } } // namespace ash
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0xbc23, %r12 clflush (%r12) nop nop nop dec %r9 vmovups (%r12), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rbx nop nop nop add $24566, %r14 lea addresses_normal_ht+0x5e59, %rsi nop nop nop nop nop add %r8, %r8 movw $0x6162, (%rsi) nop sub %r9, %r9 lea addresses_WT_ht+0x11963, %rax nop nop nop nop xor $47374, %r8 mov (%rax), %ebx dec %r9 lea addresses_normal_ht+0x1d863, %rsi nop nop nop nop xor $38288, %r9 vmovups (%rsi), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %rbx nop nop nop nop nop inc %r9 lea addresses_A_ht+0xe483, %rsi lea addresses_UC_ht+0x1b7db, %rdi clflush (%rsi) nop nop nop add $18483, %r9 mov $120, %rcx rep movsl nop nop nop nop nop xor $58624, %rsi lea addresses_WC_ht+0x7083, %r8 sub %r12, %r12 movw $0x6162, (%r8) nop and $31840, %rdi lea addresses_normal_ht+0x5cc3, %r9 xor %r12, %r12 mov $0x6162636465666768, %rsi movq %rsi, %xmm1 movups %xmm1, (%r9) nop nop inc %r14 lea addresses_WT_ht+0x13c61, %rsi nop nop nop add $4926, %rax mov $0x6162636465666768, %r14 movq %r14, %xmm3 and $0xffffffffffffffc0, %rsi vmovaps %ymm3, (%rsi) nop nop nop nop xor $10054, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r13 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi // Store lea addresses_WC+0x17603, %rbp nop cmp $16348, %rcx movb $0x51, (%rbp) nop xor %rax, %rax // Store lea addresses_normal+0xf653, %rsi clflush (%rsi) add $14566, %rdx movw $0x5152, (%rsi) nop nop nop nop sub %rdi, %rdi // REPMOV lea addresses_UC+0xd883, %rsi lea addresses_A+0x13083, %rdi clflush (%rdi) and %rdx, %rdx mov $54, %rcx rep movsl nop nop cmp $52009, %rsi // Faulty Load lea addresses_A+0x13083, %rsi nop nop nop nop nop cmp $26566, %rbp mov (%rsi), %cx lea oracles, %r13 and $0xff, %rcx shlq $12, %rcx mov (%r13,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC'}, 'dst': {'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
;; ;; Copyright (c) 2020-2021, Intel Corporation ;; ;; 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 Intel Corporation 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. ;; %include "include/os.asm" %include "include/reg_sizes.asm" %include "include/clear_regs.asm" %include "include/crc32_refl_const.inc" %include "include/crc32_refl.inc" %include "include/cet.inc" %include "include/error.inc" %ifndef LINUX %xdefine arg1 rcx %xdefine arg2 rdx %xdefine arg3 r8 %xdefine arg4 r9 %else %xdefine arg1 rdi %xdefine arg2 rsi %xdefine arg3 rdx %xdefine arg4 rcx %endif struc STACK_FRAME _xmm_save: resq 8 * 2 _rsp_save: resq 1 endstruc mksection .text ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; arg1 - buffer pointer ;; arg2 - buffer size in bytes ;; Returns CRC value through RAX align 32 MKGLOBAL(crc16_x25_avx512, function,) crc16_x25_avx512: endbranch64 %ifdef SAFE_PARAM ;; Reset imb_errno IMB_ERR_CHECK_RESET ;; Check len == 0 or arg2, arg2 jz .end_param_check ;; Check in == NULL (invalid if len != 0) or arg1, arg1 jz .wrong_param .end_param_check: %endif %ifndef LINUX mov rax, rsp sub rsp, STACK_FRAME_size and rsp, -16 mov [rsp + _rsp_save], rax vmovdqa [rsp + _xmm_save + 16*0], xmm6 vmovdqa [rsp + _xmm_save + 16*1], xmm7 vmovdqa [rsp + _xmm_save + 16*2], xmm8 vmovdqa [rsp + _xmm_save + 16*3], xmm9 vmovdqa [rsp + _xmm_save + 16*4], xmm10 vmovdqa [rsp + _xmm_save + 16*5], xmm11 vmovdqa [rsp + _xmm_save + 16*6], xmm12 vmovdqa [rsp + _xmm_save + 16*7], xmm13 %endif lea arg4, [rel crc16_x25_ccitt_const] mov arg3, arg2 mov arg2, arg1 mov DWORD(arg1), 0xffff0000 call crc32_refl_by16_vclmul_avx512 and eax, 0xffff %ifdef SAFE_DATA clear_scratch_zmms_asm %endif %ifndef LINUX vmovdqa xmm6, [rsp + _xmm_save + 16*0] vmovdqa xmm7, [rsp + _xmm_save + 16*1] vmovdqa xmm8, [rsp + _xmm_save + 16*2] vmovdqa xmm9, [rsp + _xmm_save + 16*3] vmovdqa xmm10, [rsp + _xmm_save + 16*4] vmovdqa xmm11, [rsp + _xmm_save + 16*5] vmovdqa xmm12, [rsp + _xmm_save + 16*6] vmovdqa xmm13, [rsp + _xmm_save + 16*7] mov rsp, [rsp + _rsp_save] %endif ret %ifdef SAFE_PARAM .wrong_param: ;; Clear reg and imb_errno IMB_ERR_CHECK_START rax ;; Check in != NULL IMB_ERR_CHECK_NULL arg1, rax, IMB_ERR_NULL_SRC ;; Set imb_errno IMB_ERR_CHECK_END rax ret %endif mksection stack-noexec
; A212823: Number of 0..2 arrays of length n with no adjacent pair equal to its immediately preceding adjacent pair, and new values introduced in 0..2 order. ; Submitted by Jon Maiga ; 1,2,5,12,33,90,246,672,1836,5016,13704,37440,102288,279456,763488,2085888,5698752,15569280,42536064,116210688,317493504,867408384,2369803776,6474424320,17688456192,48325761024,132028434432,360708390912,985473650688,2692364083200,7355675467776,20096079101952,54903509139456,149999176482816,409805371244544,1119609095454720,3058828933398528,8356876057706496,22831409982210048,62376572079833088,170415964124086272,465585072407838720,1272002073063849984,3475174290943377408,9494352728014454784 mov $3,1 lpb $0 sub $0,1 mov $2,$3 add $3,$1 mov $1,$2 mul $3,2 lpe mov $0,$3 mul $0,6 div $0,4 sub $0,3 div $0,2 add $0,2
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // 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. // //------------------------------------------------------------------------------ #include "core/logger.hpp" #include <chrono> #include <cstdint> #include <string> #include <utility> namespace fetch { namespace generics { class MilliTimer { public: using Clock = std::chrono::steady_clock; using Timepoint = Clock::time_point; static constexpr char const *LOGGING_NAME = "MilliTimer"; MilliTimer(MilliTimer const &rhs) = delete; MilliTimer(MilliTimer &&rhs) = delete; MilliTimer &operator=(MilliTimer const &rhs) = delete; MilliTimer &operator=(MilliTimer &&rhs) = delete; explicit MilliTimer(std::string name, int64_t threshold = 100) : start_(Clock::now()) , name_(std::move(name)) , threshold_(threshold) { if (!threshold) { FETCH_LOG_DEBUG(LOGGING_NAME, "Starting millitimer for ", name_); } } ~MilliTimer() { auto const duration = std::chrono::duration_cast<std::chrono::milliseconds>(Clock::now() - start_); if (duration.count() > threshold_) { FETCH_LOG_WARN(LOGGING_NAME, "Timer: ", name_, " duration: ", duration.count(), "ms"); } else { FETCH_LOG_DEBUG(LOGGING_NAME, "Consumed milliseconds: ", duration.count(), " at ", name_); } } private: // members here. Timepoint start_; std::string name_; int64_t threshold_; }; } // namespace generics } // namespace fetch