text stringlengths 1 1.05M |
|---|
;
; jiss2red-64.asm - reduced-size IDCT (64-bit SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled with NASM (Netwide Assembler),
; can *not* be assembled with Microsoft's MASM or any compatible
; assembler (including Borland's Turbo Assembler).
; NASM is available from http://nasm.sourceforge.net/ or
; http://sourceforge.net/project/showfiles.php?group_id=6208
;
; This file contains inverse-DCT routines that produce reduced-size
; output: either 4x4 or 2x2 pixels from an 8x8 DCT block.
; The following code is based directly on the IJG's original jidctred.c;
; see the jidctred.c for more details.
;
; [TAB8]
%include "jsimdext.inc"
%include "jdct.inc"
; --------------------------------------------------------------------------
%define CONST_BITS 13
%define PASS1_BITS 2
%define DESCALE_P1_4 (CONST_BITS-PASS1_BITS+1)
%define DESCALE_P2_4 (CONST_BITS+PASS1_BITS+3+1)
%define DESCALE_P1_2 (CONST_BITS-PASS1_BITS+2)
%define DESCALE_P2_2 (CONST_BITS+PASS1_BITS+3+2)
%if CONST_BITS == 13
F_0_211 equ 1730 ; FIX(0.211164243)
F_0_509 equ 4176 ; FIX(0.509795579)
F_0_601 equ 4926 ; FIX(0.601344887)
F_0_720 equ 5906 ; FIX(0.720959822)
F_0_765 equ 6270 ; FIX(0.765366865)
F_0_850 equ 6967 ; FIX(0.850430095)
F_0_899 equ 7373 ; FIX(0.899976223)
F_1_061 equ 8697 ; FIX(1.061594337)
F_1_272 equ 10426 ; FIX(1.272758580)
F_1_451 equ 11893 ; FIX(1.451774981)
F_1_847 equ 15137 ; FIX(1.847759065)
F_2_172 equ 17799 ; FIX(2.172734803)
F_2_562 equ 20995 ; FIX(2.562915447)
F_3_624 equ 29692 ; FIX(3.624509785)
%else
; NASM cannot do compile-time arithmetic on floating-point constants.
%define DESCALE(x,n) (((x)+(1<<((n)-1)))>>(n))
F_0_211 equ DESCALE( 226735879,30-CONST_BITS) ; FIX(0.211164243)
F_0_509 equ DESCALE( 547388834,30-CONST_BITS) ; FIX(0.509795579)
F_0_601 equ DESCALE( 645689155,30-CONST_BITS) ; FIX(0.601344887)
F_0_720 equ DESCALE( 774124714,30-CONST_BITS) ; FIX(0.720959822)
F_0_765 equ DESCALE( 821806413,30-CONST_BITS) ; FIX(0.765366865)
F_0_850 equ DESCALE( 913142361,30-CONST_BITS) ; FIX(0.850430095)
F_0_899 equ DESCALE( 966342111,30-CONST_BITS) ; FIX(0.899976223)
F_1_061 equ DESCALE(1139878239,30-CONST_BITS) ; FIX(1.061594337)
F_1_272 equ DESCALE(1366614119,30-CONST_BITS) ; FIX(1.272758580)
F_1_451 equ DESCALE(1558831516,30-CONST_BITS) ; FIX(1.451774981)
F_1_847 equ DESCALE(1984016188,30-CONST_BITS) ; FIX(1.847759065)
F_2_172 equ DESCALE(2332956230,30-CONST_BITS) ; FIX(2.172734803)
F_2_562 equ DESCALE(2751909506,30-CONST_BITS) ; FIX(2.562915447)
F_3_624 equ DESCALE(3891787747,30-CONST_BITS) ; FIX(3.624509785)
%endif
; --------------------------------------------------------------------------
SECTION SEG_CONST
alignz 16
global EXTN(jconst_idct_red_sse2)
EXTN(jconst_idct_red_sse2):
PW_F184_MF076 times 4 dw F_1_847,-F_0_765
PW_F256_F089 times 4 dw F_2_562, F_0_899
PW_F106_MF217 times 4 dw F_1_061,-F_2_172
PW_MF060_MF050 times 4 dw -F_0_601,-F_0_509
PW_F145_MF021 times 4 dw F_1_451,-F_0_211
PW_F362_MF127 times 4 dw F_3_624,-F_1_272
PW_F085_MF072 times 4 dw F_0_850,-F_0_720
PD_DESCALE_P1_4 times 4 dd 1 << (DESCALE_P1_4-1)
PD_DESCALE_P2_4 times 4 dd 1 << (DESCALE_P2_4-1)
PD_DESCALE_P1_2 times 4 dd 1 << (DESCALE_P1_2-1)
PD_DESCALE_P2_2 times 4 dd 1 << (DESCALE_P2_2-1)
PB_CENTERJSAMP times 16 db CENTERJSAMPLE
alignz 16
; --------------------------------------------------------------------------
SECTION SEG_TEXT
BITS 64
;
; Perform dequantization and inverse DCT on one block of coefficients,
; producing a reduced-size 4x4 output block.
;
; GLOBAL(void)
; jsimd_idct_4x4_sse2 (void * dct_table, JCOEFPTR coef_block,
; JSAMPARRAY output_buf, JDIMENSION output_col)
;
; r10 = void * dct_table
; r11 = JCOEFPTR coef_block
; r12 = JSAMPARRAY output_buf
; r13 = JDIMENSION output_col
%define original_rbp rbp+0
%define wk(i) rbp-(WK_NUM-(i))*SIZEOF_XMMWORD ; xmmword wk[WK_NUM]
%define WK_NUM 2
align 16
global EXTN(jsimd_idct_4x4_sse2)
EXTN(jsimd_idct_4x4_sse2):
push rbp
mov rax,rsp ; rax = original rbp
sub rsp, byte 4
and rsp, byte (-SIZEOF_XMMWORD) ; align to 128 bits
mov [rsp],rax
mov rbp,rsp ; rbp = aligned rbp
lea rsp, [wk(0)]
collect_args
; ---- Pass 1: process columns from input.
mov rdx, r10 ; quantptr
mov rsi, r11 ; inptr
%ifndef NO_ZERO_COLUMN_TEST_4X4_SSE2
mov eax, DWORD [DWBLOCK(1,0,rsi,SIZEOF_JCOEF)]
or eax, DWORD [DWBLOCK(2,0,rsi,SIZEOF_JCOEF)]
jnz short .columnDCT
movdqa xmm0, XMMWORD [XMMBLOCK(1,0,rsi,SIZEOF_JCOEF)]
movdqa xmm1, XMMWORD [XMMBLOCK(2,0,rsi,SIZEOF_JCOEF)]
por xmm0, XMMWORD [XMMBLOCK(3,0,rsi,SIZEOF_JCOEF)]
por xmm1, XMMWORD [XMMBLOCK(5,0,rsi,SIZEOF_JCOEF)]
por xmm0, XMMWORD [XMMBLOCK(6,0,rsi,SIZEOF_JCOEF)]
por xmm1, XMMWORD [XMMBLOCK(7,0,rsi,SIZEOF_JCOEF)]
por xmm0,xmm1
packsswb xmm0,xmm0
packsswb xmm0,xmm0
movd eax,xmm0
test rax,rax
jnz short .columnDCT
; -- AC terms all zero
movdqa xmm0, XMMWORD [XMMBLOCK(0,0,rsi,SIZEOF_JCOEF)]
pmullw xmm0, XMMWORD [XMMBLOCK(0,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
psllw xmm0,PASS1_BITS
movdqa xmm3,xmm0 ; xmm0=in0=(00 01 02 03 04 05 06 07)
punpcklwd xmm0,xmm0 ; xmm0=(00 00 01 01 02 02 03 03)
punpckhwd xmm3,xmm3 ; xmm3=(04 04 05 05 06 06 07 07)
pshufd xmm1,xmm0,0x50 ; xmm1=[col0 col1]=(00 00 00 00 01 01 01 01)
pshufd xmm0,xmm0,0xFA ; xmm0=[col2 col3]=(02 02 02 02 03 03 03 03)
pshufd xmm6,xmm3,0x50 ; xmm6=[col4 col5]=(04 04 04 04 05 05 05 05)
pshufd xmm3,xmm3,0xFA ; xmm3=[col6 col7]=(06 06 06 06 07 07 07 07)
jmp near .column_end
%endif
.columnDCT:
; -- Odd part
movdqa xmm0, XMMWORD [XMMBLOCK(1,0,rsi,SIZEOF_JCOEF)]
movdqa xmm1, XMMWORD [XMMBLOCK(3,0,rsi,SIZEOF_JCOEF)]
pmullw xmm0, XMMWORD [XMMBLOCK(1,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
pmullw xmm1, XMMWORD [XMMBLOCK(3,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
movdqa xmm2, XMMWORD [XMMBLOCK(5,0,rsi,SIZEOF_JCOEF)]
movdqa xmm3, XMMWORD [XMMBLOCK(7,0,rsi,SIZEOF_JCOEF)]
pmullw xmm2, XMMWORD [XMMBLOCK(5,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
pmullw xmm3, XMMWORD [XMMBLOCK(7,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
movdqa xmm4,xmm0
movdqa xmm5,xmm0
punpcklwd xmm4,xmm1
punpckhwd xmm5,xmm1
movdqa xmm0,xmm4
movdqa xmm1,xmm5
pmaddwd xmm4,[rel PW_F256_F089] ; xmm4=(tmp2L)
pmaddwd xmm5,[rel PW_F256_F089] ; xmm5=(tmp2H)
pmaddwd xmm0,[rel PW_F106_MF217] ; xmm0=(tmp0L)
pmaddwd xmm1,[rel PW_F106_MF217] ; xmm1=(tmp0H)
movdqa xmm6,xmm2
movdqa xmm7,xmm2
punpcklwd xmm6,xmm3
punpckhwd xmm7,xmm3
movdqa xmm2,xmm6
movdqa xmm3,xmm7
pmaddwd xmm6,[rel PW_MF060_MF050] ; xmm6=(tmp2L)
pmaddwd xmm7,[rel PW_MF060_MF050] ; xmm7=(tmp2H)
pmaddwd xmm2,[rel PW_F145_MF021] ; xmm2=(tmp0L)
pmaddwd xmm3,[rel PW_F145_MF021] ; xmm3=(tmp0H)
paddd xmm6,xmm4 ; xmm6=tmp2L
paddd xmm7,xmm5 ; xmm7=tmp2H
paddd xmm2,xmm0 ; xmm2=tmp0L
paddd xmm3,xmm1 ; xmm3=tmp0H
movdqa XMMWORD [wk(0)], xmm2 ; wk(0)=tmp0L
movdqa XMMWORD [wk(1)], xmm3 ; wk(1)=tmp0H
; -- Even part
movdqa xmm4, XMMWORD [XMMBLOCK(0,0,rsi,SIZEOF_JCOEF)]
movdqa xmm5, XMMWORD [XMMBLOCK(2,0,rsi,SIZEOF_JCOEF)]
movdqa xmm0, XMMWORD [XMMBLOCK(6,0,rsi,SIZEOF_JCOEF)]
pmullw xmm4, XMMWORD [XMMBLOCK(0,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
pmullw xmm5, XMMWORD [XMMBLOCK(2,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
pmullw xmm0, XMMWORD [XMMBLOCK(6,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
pxor xmm1,xmm1
pxor xmm2,xmm2
punpcklwd xmm1,xmm4 ; xmm1=tmp0L
punpckhwd xmm2,xmm4 ; xmm2=tmp0H
psrad xmm1,(16-CONST_BITS-1) ; psrad xmm1,16 & pslld xmm1,CONST_BITS+1
psrad xmm2,(16-CONST_BITS-1) ; psrad xmm2,16 & pslld xmm2,CONST_BITS+1
movdqa xmm3,xmm5 ; xmm5=in2=z2
punpcklwd xmm5,xmm0 ; xmm0=in6=z3
punpckhwd xmm3,xmm0
pmaddwd xmm5,[rel PW_F184_MF076] ; xmm5=tmp2L
pmaddwd xmm3,[rel PW_F184_MF076] ; xmm3=tmp2H
movdqa xmm4,xmm1
movdqa xmm0,xmm2
paddd xmm1,xmm5 ; xmm1=tmp10L
paddd xmm2,xmm3 ; xmm2=tmp10H
psubd xmm4,xmm5 ; xmm4=tmp12L
psubd xmm0,xmm3 ; xmm0=tmp12H
; -- Final output stage
movdqa xmm5,xmm1
movdqa xmm3,xmm2
paddd xmm1,xmm6 ; xmm1=data0L
paddd xmm2,xmm7 ; xmm2=data0H
psubd xmm5,xmm6 ; xmm5=data3L
psubd xmm3,xmm7 ; xmm3=data3H
movdqa xmm6,[rel PD_DESCALE_P1_4] ; xmm6=[rel PD_DESCALE_P1_4]
paddd xmm1,xmm6
paddd xmm2,xmm6
psrad xmm1,DESCALE_P1_4
psrad xmm2,DESCALE_P1_4
paddd xmm5,xmm6
paddd xmm3,xmm6
psrad xmm5,DESCALE_P1_4
psrad xmm3,DESCALE_P1_4
packssdw xmm1,xmm2 ; xmm1=data0=(00 01 02 03 04 05 06 07)
packssdw xmm5,xmm3 ; xmm5=data3=(30 31 32 33 34 35 36 37)
movdqa xmm7, XMMWORD [wk(0)] ; xmm7=tmp0L
movdqa xmm6, XMMWORD [wk(1)] ; xmm6=tmp0H
movdqa xmm2,xmm4
movdqa xmm3,xmm0
paddd xmm4,xmm7 ; xmm4=data1L
paddd xmm0,xmm6 ; xmm0=data1H
psubd xmm2,xmm7 ; xmm2=data2L
psubd xmm3,xmm6 ; xmm3=data2H
movdqa xmm7,[rel PD_DESCALE_P1_4] ; xmm7=[rel PD_DESCALE_P1_4]
paddd xmm4,xmm7
paddd xmm0,xmm7
psrad xmm4,DESCALE_P1_4
psrad xmm0,DESCALE_P1_4
paddd xmm2,xmm7
paddd xmm3,xmm7
psrad xmm2,DESCALE_P1_4
psrad xmm3,DESCALE_P1_4
packssdw xmm4,xmm0 ; xmm4=data1=(10 11 12 13 14 15 16 17)
packssdw xmm2,xmm3 ; xmm2=data2=(20 21 22 23 24 25 26 27)
movdqa xmm6,xmm1 ; transpose coefficients(phase 1)
punpcklwd xmm1,xmm4 ; xmm1=(00 10 01 11 02 12 03 13)
punpckhwd xmm6,xmm4 ; xmm6=(04 14 05 15 06 16 07 17)
movdqa xmm7,xmm2 ; transpose coefficients(phase 1)
punpcklwd xmm2,xmm5 ; xmm2=(20 30 21 31 22 32 23 33)
punpckhwd xmm7,xmm5 ; xmm7=(24 34 25 35 26 36 27 37)
movdqa xmm0,xmm1 ; transpose coefficients(phase 2)
punpckldq xmm1,xmm2 ; xmm1=[col0 col1]=(00 10 20 30 01 11 21 31)
punpckhdq xmm0,xmm2 ; xmm0=[col2 col3]=(02 12 22 32 03 13 23 33)
movdqa xmm3,xmm6 ; transpose coefficients(phase 2)
punpckldq xmm6,xmm7 ; xmm6=[col4 col5]=(04 14 24 34 05 15 25 35)
punpckhdq xmm3,xmm7 ; xmm3=[col6 col7]=(06 16 26 36 07 17 27 37)
.column_end:
; -- Prefetch the next coefficient block
prefetchnta [rsi + DCTSIZE2*SIZEOF_JCOEF + 0*32]
prefetchnta [rsi + DCTSIZE2*SIZEOF_JCOEF + 1*32]
prefetchnta [rsi + DCTSIZE2*SIZEOF_JCOEF + 2*32]
prefetchnta [rsi + DCTSIZE2*SIZEOF_JCOEF + 3*32]
; ---- Pass 2: process rows, store into output array.
mov rax, [original_rbp]
mov rdi, r12 ; (JSAMPROW *)
mov rax, r13
; -- Even part
pxor xmm4,xmm4
punpcklwd xmm4,xmm1 ; xmm4=tmp0
psrad xmm4,(16-CONST_BITS-1) ; psrad xmm4,16 & pslld xmm4,CONST_BITS+1
; -- Odd part
punpckhwd xmm1,xmm0
punpckhwd xmm6,xmm3
movdqa xmm5,xmm1
movdqa xmm2,xmm6
pmaddwd xmm1,[rel PW_F256_F089] ; xmm1=(tmp2)
pmaddwd xmm6,[rel PW_MF060_MF050] ; xmm6=(tmp2)
pmaddwd xmm5,[rel PW_F106_MF217] ; xmm5=(tmp0)
pmaddwd xmm2,[rel PW_F145_MF021] ; xmm2=(tmp0)
paddd xmm6,xmm1 ; xmm6=tmp2
paddd xmm2,xmm5 ; xmm2=tmp0
; -- Even part
punpcklwd xmm0,xmm3
pmaddwd xmm0,[rel PW_F184_MF076] ; xmm0=tmp2
movdqa xmm7,xmm4
paddd xmm4,xmm0 ; xmm4=tmp10
psubd xmm7,xmm0 ; xmm7=tmp12
; -- Final output stage
movdqa xmm1,[rel PD_DESCALE_P2_4] ; xmm1=[rel PD_DESCALE_P2_4]
movdqa xmm5,xmm4
movdqa xmm3,xmm7
paddd xmm4,xmm6 ; xmm4=data0=(00 10 20 30)
paddd xmm7,xmm2 ; xmm7=data1=(01 11 21 31)
psubd xmm5,xmm6 ; xmm5=data3=(03 13 23 33)
psubd xmm3,xmm2 ; xmm3=data2=(02 12 22 32)
paddd xmm4,xmm1
paddd xmm7,xmm1
psrad xmm4,DESCALE_P2_4
psrad xmm7,DESCALE_P2_4
paddd xmm5,xmm1
paddd xmm3,xmm1
psrad xmm5,DESCALE_P2_4
psrad xmm3,DESCALE_P2_4
packssdw xmm4,xmm3 ; xmm4=(00 10 20 30 02 12 22 32)
packssdw xmm7,xmm5 ; xmm7=(01 11 21 31 03 13 23 33)
movdqa xmm0,xmm4 ; transpose coefficients(phase 1)
punpcklwd xmm4,xmm7 ; xmm4=(00 01 10 11 20 21 30 31)
punpckhwd xmm0,xmm7 ; xmm0=(02 03 12 13 22 23 32 33)
movdqa xmm6,xmm4 ; transpose coefficients(phase 2)
punpckldq xmm4,xmm0 ; xmm4=(00 01 02 03 10 11 12 13)
punpckhdq xmm6,xmm0 ; xmm6=(20 21 22 23 30 31 32 33)
packsswb xmm4,xmm6 ; xmm4=(00 01 02 03 10 11 12 13 20 ..)
paddb xmm4,[rel PB_CENTERJSAMP]
pshufd xmm2,xmm4,0x39 ; xmm2=(10 11 12 13 20 21 22 23 30 ..)
pshufd xmm1,xmm4,0x4E ; xmm1=(20 21 22 23 30 31 32 33 00 ..)
pshufd xmm3,xmm4,0x93 ; xmm3=(30 31 32 33 00 01 02 03 10 ..)
mov rdx, JSAMPROW [rdi+0*SIZEOF_JSAMPROW]
mov rsi, JSAMPROW [rdi+1*SIZEOF_JSAMPROW]
movd XMM_DWORD [rdx+rax*SIZEOF_JSAMPLE], xmm4
movd XMM_DWORD [rsi+rax*SIZEOF_JSAMPLE], xmm2
mov rdx, JSAMPROW [rdi+2*SIZEOF_JSAMPROW]
mov rsi, JSAMPROW [rdi+3*SIZEOF_JSAMPROW]
movd XMM_DWORD [rdx+rax*SIZEOF_JSAMPLE], xmm1
movd XMM_DWORD [rsi+rax*SIZEOF_JSAMPLE], xmm3
uncollect_args
mov rsp,rbp ; rsp <- aligned rbp
pop rsp ; rsp <- original rbp
pop rbp
ret
; --------------------------------------------------------------------------
;
; Perform dequantization and inverse DCT on one block of coefficients,
; producing a reduced-size 2x2 output block.
;
; GLOBAL(void)
; jsimd_idct_2x2_sse2 (void * dct_table, JCOEFPTR coef_block,
; JSAMPARRAY output_buf, JDIMENSION output_col)
;
; r10 = void * dct_table
; r11 = JCOEFPTR coef_block
; r12 = JSAMPARRAY output_buf
; r13 = JDIMENSION output_col
align 16
global EXTN(jsimd_idct_2x2_sse2)
EXTN(jsimd_idct_2x2_sse2):
push rbp
mov rax,rsp
mov rbp,rsp
collect_args
push rbx
; ---- Pass 1: process columns from input.
mov rdx, r10 ; quantptr
mov rsi, r11 ; inptr
; | input: | result: |
; | 00 01 ** 03 ** 05 ** 07 | |
; | 10 11 ** 13 ** 15 ** 17 | |
; | ** ** ** ** ** ** ** ** | |
; | 30 31 ** 33 ** 35 ** 37 | A0 A1 A3 A5 A7 |
; | ** ** ** ** ** ** ** ** | B0 B1 B3 B5 B7 |
; | 50 51 ** 53 ** 55 ** 57 | |
; | ** ** ** ** ** ** ** ** | |
; | 70 71 ** 73 ** 75 ** 77 | |
; -- Odd part
movdqa xmm0, XMMWORD [XMMBLOCK(1,0,rsi,SIZEOF_JCOEF)]
movdqa xmm1, XMMWORD [XMMBLOCK(3,0,rsi,SIZEOF_JCOEF)]
pmullw xmm0, XMMWORD [XMMBLOCK(1,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
pmullw xmm1, XMMWORD [XMMBLOCK(3,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
movdqa xmm2, XMMWORD [XMMBLOCK(5,0,rsi,SIZEOF_JCOEF)]
movdqa xmm3, XMMWORD [XMMBLOCK(7,0,rsi,SIZEOF_JCOEF)]
pmullw xmm2, XMMWORD [XMMBLOCK(5,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
pmullw xmm3, XMMWORD [XMMBLOCK(7,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
; xmm0=(10 11 ** 13 ** 15 ** 17), xmm1=(30 31 ** 33 ** 35 ** 37)
; xmm2=(50 51 ** 53 ** 55 ** 57), xmm3=(70 71 ** 73 ** 75 ** 77)
pcmpeqd xmm7,xmm7
pslld xmm7,WORD_BIT ; xmm7={0x0000 0xFFFF 0x0000 0xFFFF ..}
movdqa xmm4,xmm0 ; xmm4=(10 11 ** 13 ** 15 ** 17)
movdqa xmm5,xmm2 ; xmm5=(50 51 ** 53 ** 55 ** 57)
punpcklwd xmm4,xmm1 ; xmm4=(10 30 11 31 ** ** 13 33)
punpcklwd xmm5,xmm3 ; xmm5=(50 70 51 71 ** ** 53 73)
pmaddwd xmm4,[rel PW_F362_MF127]
pmaddwd xmm5,[rel PW_F085_MF072]
psrld xmm0,WORD_BIT ; xmm0=(11 -- 13 -- 15 -- 17 --)
pand xmm1,xmm7 ; xmm1=(-- 31 -- 33 -- 35 -- 37)
psrld xmm2,WORD_BIT ; xmm2=(51 -- 53 -- 55 -- 57 --)
pand xmm3,xmm7 ; xmm3=(-- 71 -- 73 -- 75 -- 77)
por xmm0,xmm1 ; xmm0=(11 31 13 33 15 35 17 37)
por xmm2,xmm3 ; xmm2=(51 71 53 73 55 75 57 77)
pmaddwd xmm0,[rel PW_F362_MF127]
pmaddwd xmm2,[rel PW_F085_MF072]
paddd xmm4,xmm5 ; xmm4=tmp0[col0 col1 **** col3]
paddd xmm0,xmm2 ; xmm0=tmp0[col1 col3 col5 col7]
; -- Even part
movdqa xmm6, XMMWORD [XMMBLOCK(0,0,rsi,SIZEOF_JCOEF)]
pmullw xmm6, XMMWORD [XMMBLOCK(0,0,rdx,SIZEOF_ISLOW_MULT_TYPE)]
; xmm6=(00 01 ** 03 ** 05 ** 07)
movdqa xmm1,xmm6 ; xmm1=(00 01 ** 03 ** 05 ** 07)
pslld xmm6,WORD_BIT ; xmm6=(-- 00 -- ** -- ** -- **)
pand xmm1,xmm7 ; xmm1=(-- 01 -- 03 -- 05 -- 07)
psrad xmm6,(WORD_BIT-CONST_BITS-2) ; xmm6=tmp10[col0 **** **** ****]
psrad xmm1,(WORD_BIT-CONST_BITS-2) ; xmm1=tmp10[col1 col3 col5 col7]
; -- Final output stage
movdqa xmm3,xmm6
movdqa xmm5,xmm1
paddd xmm6,xmm4 ; xmm6=data0[col0 **** **** ****]=(A0 ** ** **)
paddd xmm1,xmm0 ; xmm1=data0[col1 col3 col5 col7]=(A1 A3 A5 A7)
psubd xmm3,xmm4 ; xmm3=data1[col0 **** **** ****]=(B0 ** ** **)
psubd xmm5,xmm0 ; xmm5=data1[col1 col3 col5 col7]=(B1 B3 B5 B7)
movdqa xmm2,[rel PD_DESCALE_P1_2] ; xmm2=[rel PD_DESCALE_P1_2]
punpckldq xmm6,xmm3 ; xmm6=(A0 B0 ** **)
movdqa xmm7,xmm1
punpcklqdq xmm1,xmm5 ; xmm1=(A1 A3 B1 B3)
punpckhqdq xmm7,xmm5 ; xmm7=(A5 A7 B5 B7)
paddd xmm6,xmm2
psrad xmm6,DESCALE_P1_2
paddd xmm1,xmm2
paddd xmm7,xmm2
psrad xmm1,DESCALE_P1_2
psrad xmm7,DESCALE_P1_2
; -- Prefetch the next coefficient block
prefetchnta [rsi + DCTSIZE2*SIZEOF_JCOEF + 0*32]
prefetchnta [rsi + DCTSIZE2*SIZEOF_JCOEF + 1*32]
prefetchnta [rsi + DCTSIZE2*SIZEOF_JCOEF + 2*32]
prefetchnta [rsi + DCTSIZE2*SIZEOF_JCOEF + 3*32]
; ---- Pass 2: process rows, store into output array.
mov rdi, r12 ; (JSAMPROW *)
mov rax, r13
; | input:| result:|
; | A0 B0 | |
; | A1 B1 | C0 C1 |
; | A3 B3 | D0 D1 |
; | A5 B5 | |
; | A7 B7 | |
; -- Odd part
packssdw xmm1,xmm1 ; xmm1=(A1 A3 B1 B3 A1 A3 B1 B3)
packssdw xmm7,xmm7 ; xmm7=(A5 A7 B5 B7 A5 A7 B5 B7)
pmaddwd xmm1,[rel PW_F362_MF127]
pmaddwd xmm7,[rel PW_F085_MF072]
paddd xmm1,xmm7 ; xmm1=tmp0[row0 row1 row0 row1]
; -- Even part
pslld xmm6,(CONST_BITS+2) ; xmm6=tmp10[row0 row1 **** ****]
; -- Final output stage
movdqa xmm4,xmm6
paddd xmm6,xmm1 ; xmm6=data0[row0 row1 **** ****]=(C0 C1 ** **)
psubd xmm4,xmm1 ; xmm4=data1[row0 row1 **** ****]=(D0 D1 ** **)
punpckldq xmm6,xmm4 ; xmm6=(C0 D0 C1 D1)
paddd xmm6,[rel PD_DESCALE_P2_2]
psrad xmm6,DESCALE_P2_2
packssdw xmm6,xmm6 ; xmm6=(C0 D0 C1 D1 C0 D0 C1 D1)
packsswb xmm6,xmm6 ; xmm6=(C0 D0 C1 D1 C0 D0 C1 D1 ..)
paddb xmm6,[rel PB_CENTERJSAMP]
pextrw ebx,xmm6,0x00 ; ebx=(C0 D0 -- --)
pextrw ecx,xmm6,0x01 ; ecx=(C1 D1 -- --)
mov rdx, JSAMPROW [rdi+0*SIZEOF_JSAMPROW]
mov rsi, JSAMPROW [rdi+1*SIZEOF_JSAMPROW]
mov WORD [rdx+rax*SIZEOF_JSAMPLE], bx
mov WORD [rsi+rax*SIZEOF_JSAMPLE], cx
pop rbx
uncollect_args
pop rbp
ret
; For some reason, the OS X linker does not honor the request to align the
; segment unless we do this.
align 16
|
#include <omni/ui/entity_toggle_widget.hpp>
#include <omni/ui/entity_widget_provider_base.hpp>
omni::ui::entity_toggle_widget::entity_toggle_widget (omni::core::context & context, entity_widget_provider_base & provider, QWidget * parent) :
entity_base_widget (parent),
_c (context),
_provider (provider),
_toggleAction ("Test", this),
_layout (this),
_entity (),
_viewWidget (),
_editWidget ()
{
_toggleAction.setShortcut (QKeySequence (Qt::Key_Return));
_toggleAction.setShortcutContext (Qt::WidgetWithChildrenShortcut);
addAction (& _toggleAction);
connect (& _toggleAction, SIGNAL(triggered()), SLOT (toggleViewMode()));
toggleViewMode ();
setAutoFillBackground (true);
setFocusPolicy (Qt::StrongFocus);
}
std::shared_ptr <omni::core::model::entity> omni::ui::entity_toggle_widget::getEntity ()
{
if (_viewWidget) {
return _viewWidget->getEntity ();
} else if (_editWidget) {
return _editWidget->getEntity ();
} else {
return std::shared_ptr <omni::core::model::entity> ();
}
}
void omni::ui::entity_toggle_widget::setEntity (std::shared_ptr <omni::core::model::entity> entity)
{
if (_viewWidget) {
_viewWidget->setEntity (entity);
} else if (_editWidget) {
_editWidget->setEntity (entity);
}
}
void omni::ui::entity_toggle_widget::focusInEvent (QFocusEvent * event)
{
QWidget::focusInEvent (event);
QPalette pal;
pal.setBrush (QPalette::Background, Qt::red);
setPalette (pal);
}
void omni::ui::entity_toggle_widget::focusOutEvent (QFocusEvent * event)
{
QWidget::focusOutEvent (event);
QPalette pal;
setPalette (pal);
}
omni::ui::entity_toggle_widget::Mode omni::ui::entity_toggle_widget::currentViewMode ()
{
if (_viewWidget) {
return Mode::m_view;
} else {
return Mode::m_edit;
}
}
omni::ui::entity_toggle_widget::Mode omni::ui::entity_toggle_widget::toggleViewMode ()
{
if (_viewWidget) {
// Go into edit mode:
bool hadFocus = hasFocus () || _viewWidget->hasFocus ();
_editWidget = _provider.createEditWidget (this, _c, *_viewWidget);
_layout.addWidget (_editWidget.get ());
_viewWidget.reset ();
if (hadFocus) {
_editWidget->setFocus (Qt::TabFocusReason);
}
setFocusProxy (_editWidget.get ());
return Mode::m_edit;
} else {
// Accept input, go into view mode:
bool hadFocus;
if (_editWidget) {
hadFocus = hasFocus () || _editWidget->hasFocus ();
} else {
hadFocus = hasFocus ();
}
_viewWidget = _provider.createViewWidget (this, _c, _editWidget.get ());
_editWidget.reset ();
_layout.addWidget (_viewWidget.get ());
setFocusProxy (nullptr);
if (hadFocus) {
setFocus (Qt::TabFocusReason);
}
return Mode::m_view;
}
}
void omni::ui::entity_toggle_widget::keyPressEvent (QKeyEvent * /*event*/)
{
/*
if (! _editProvider.keyPressEvent (event)) {
QWidget::keyPressEvent (event);
}
*/
}
/*
bool omni::forge::literal_edit_provider::keyPressEvent (QKeyEvent * event)
{
if (std::isalnum (event->key (), std::locale (""))) {
return true;
} else {
return false;
}
}
*/
|
; A289643: n*(2*n+1)*binomial(n+2,n)/3.
; 0,3,20,70,180,385,728,1260,2040,3135,4620,6578,9100,12285,16240,21080,26928,33915,42180,51870,63140,76153,91080,108100,127400,149175,173628,200970,231420,265205,302560,343728,388960,438515,492660,551670,615828,685425,760760,842140
sub $0,1
mov $1,$0
add $0,3
add $1,$0
bin $0,3
mul $1,$0
|
DATA SEGMENT
STR1 DB "ENTER YOUR STRING HERE ->$"
STR2 DB "YOUR STRING IS ->$"
STR3 DB "REVERSE STRING IS ->$"
INSTR1 DB 20 DUP("$")
RSTR DB 20 DUP("$")
NEWLINE DB 10,13,"$"
N DB ?
S DB ?
MSG1 DB "STRING IS PALINDROME$"
MSG2 DB "STRING IS NOT PALINDROME$"
A DB "1"
DATA ENDS
CODE SEGMENT
ASSUME DS:DATA,CS:CODE
START:
MOV AX,DATA
MOV DS,AX
LEA SI,INSTR1
MOV AH,09H
LEA DX,STR1
INT 21H
MOV AH,0AH
MOV DX,SI
INT 21H
MOV AH,09H
LEA DX,NEWLINE
INT 21H
MOV AH,09H
LEA DX,STR2
INT 21H
MOV AH,09H
LEA DX,INSTR1+2
INT 21H
MOV AH,09H
LEA DX,NEWLINE
INT 21H
MOV AH,09H
LEA DX,STR3
INT 21H
MOV CL,INSTR1+1
ADD CL,1
ADD SI,2
L1:
INC SI
CMP BYTE PTR[SI],"$"
JNE L1
DEC SI
LEA DI,RSTR
L2:MOV AL,BYTE PTR[SI]
MOV BYTE PTR[DI],AL
DEC SI
INC DI
LOOP L2
MOV AH,09H
LEA DX,NEWLINE
INT 21H
MOV AH,09H
LEA DX,RSTR
INT 21H
MOV AH,09H
LEA DX,NEWLINE
INT 21H
LEA SI,INSTR1
LEA DI,RSTR
MOV AH,09H
LEA DX,NEWLINE
INT 21H
ADD SI,2
L7:
MOV BL,BYTE PTR[DI]
CMP BYTE PTR[SI],BL
JNE LL2
INC SI
INC DI
MOV BL,BYTE PTR[DI]
MOV AH,02H
MOV DL,BL
INT 21H
MOV AH,09H
LEA DX,NEWLINE
INT 21H
CMP BYTE PTR[DI],"$"
JNE L7
MOV AH,09H
LEA DX,NEWLINE
INT 21H
MOV AH,09H
LEA DX,MSG1
INT 21H
JMP L5
LL2:
MOV AH,09H
LEA DX,NEWLINE
INT 21H
MOV AH,09H
LEA DX,MSG2
INT 21H
L5:
MOV AH,4CH
INT 21H
CODE ENDS
END START
|
default rel
section .text
global _0x0fb0_cmpxchg
global _0x0fb1_cmpxchg
global _0x0fb2_lss
global _0x0fb3_btr
global _0x0fb4_lfs
global _0x0fb5_lgs
global _0x0fb6_movzbS
global _0x0fb7_movzwS
global _0x0fb8_popcnt
;; global _0x0fb9
global _0x0fba_bitop
global _0x0fbb_btc
global _0x0fbc_bsf
global _0x0fbd_bsr
global _0x0fbe_movsbS
global _0x0fbf_movswS
%include "extern_for_inst.asm"
_0x0fb0_cmpxchg:
call _do01
;; db 0xeb,0xfe
ret
_0x0fb1_cmpxchg:
call _do01
;; db 0xeb,0xfe
ret
_0x0fb2_lss:
db 0xeb,0xfe
_0x0fb3_btr:
db 0xeb,0xfe
_0x0fb4_lfs:
db 0xeb,0xfe
_0x0fb5_lgs:
db 0xeb,0xfe
;;; casting from 1byte to larger bytes
;;; the bits which was not given from another register will be fed as value0.
_0x0fb6_movzbS:
add dword [_rip],1
call _get_mod_reg_rm
;; it loads just 1byte which means dflag must be 0
mov byte [_context._dflag],0x00
call _set_scale_index_base
call _fetch_displacement_by_mod
ret
call _load_rm_by_mod
call _mov_res_to_arg2
call _mov_reg_to_arg1
call _assign
pop rbp
ret
_0x0fb7_movzwS:
add dword [_rip],1
call _get_mod_reg_rm
call _set_scale_index_base
call _fetch_displacement_by_mod
ret
db 0xeb,0xfe
;;; [TODO] needs to be sign extended..
_0x0fbe_movsbS:
add dword [_rip],1
call _get_mod_reg_rm
;; it loads just 1byte which means dflag must be 0
mov byte [_context._dflag],0x00
call _set_scale_index_base
call _fetch_displacement_by_mod
ret
call _load_rm_by_mod
call _mov_res_to_arg2
call _mov_reg_to_arg1
call _assign
pop rbp
ret
|
/*
* Copyright 2021 Marzocchi Alessandro
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "device.h"
using namespace HFMidi;
Device::Device(QObject *parent) : QObject(parent)
{
}
QSharedPointer<Port> Device::openPort(const QString &id)
{
QSharedPointer<Port> ret=m_ports.value(id);
if(!ret)
{
ret=createPort(id);
addPortToCache(id, ret);
}
return ret;
}
QSharedPointer<Port> Device::createPort(const QString &id)
{
Q_UNUSED(id);
return nullptr;
}
void Device::addPortToCache(const QString &portId, QWeakPointer<Port> portPtr)
{
if(portPtr)
m_ports.insert(portId, portPtr);
}
|
//
// Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
#ifndef BOOST_BEAST_CORE_IMPL_FILE_POSIX_IPP
#define BOOST_BEAST_CORE_IMPL_FILE_POSIX_IPP
#if ! defined(BOOST_BEAST_NO_POSIX_FADVISE)
# if defined(__APPLE__) || (defined(ANDROID) && (__ANDROID_API__ < 21))
# define BOOST_BEAST_NO_POSIX_FADVISE
# endif
#endif
#if ! defined(BOOST_BEAST_USE_POSIX_FADVISE)
# if ! defined(BOOST_BEAST_NO_POSIX_FADVISE)
# define BOOST_BEAST_USE_POSIX_FADVISE 1
# else
# define BOOST_BEAST_USE_POSIX_FADVISE 0
# endif
#endif
#include <limits>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/stat.h>
#include <unistd.h>
#include <limits.h>
namespace boost {
namespace beast {
namespace detail {
inline
int
file_posix_close(int fd)
{
for(;;)
{
if(! ::close(fd))
break;
int const ev = errno;
if(errno != EINTR)
return ev;
}
return 0;
}
} // detail
inline
file_posix::
~file_posix()
{
if(fd_ != -1)
detail::file_posix_close(fd_);
}
inline
file_posix::
file_posix(file_posix&& other)
: fd_(other.fd_)
{
other.fd_ = -1;
}
inline
file_posix&
file_posix::
operator=(file_posix&& other)
{
if(&other == this)
return *this;
if(fd_ != -1)
detail::file_posix_close(fd_);
fd_ = other.fd_;
other.fd_ = -1;
return *this;
}
inline
void
file_posix::
native_handle(native_handle_type fd)
{
if(fd_ != -1)
detail::file_posix_close(fd_);
fd_ = fd;
}
inline
void
file_posix::
close(error_code& ec)
{
if(fd_ != -1)
{
auto const ev =
detail::file_posix_close(fd_);
if(ev)
ec.assign(ev, generic_category());
else
ec.assign(0, ec.category());
fd_ = -1;
}
else
{
ec.assign(0, ec.category());
}
}
inline
void
file_posix::
open(char const* path, file_mode mode, error_code& ec)
{
if(fd_ != -1)
{
auto const ev =
detail::file_posix_close(fd_);
if(ev)
ec.assign(ev, generic_category());
else
ec.assign(0, ec.category());
fd_ = -1;
}
int f = 0;
#if BOOST_BEAST_USE_POSIX_FADVISE
int advise = 0;
#endif
switch(mode)
{
default:
case file_mode::read:
f = O_RDONLY;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_RANDOM;
#endif
break;
case file_mode::scan:
f = O_RDONLY;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_SEQUENTIAL;
#endif
break;
case file_mode::write:
f = O_RDWR | O_CREAT | O_TRUNC;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_RANDOM;
#endif
break;
case file_mode::write_new:
f = O_RDWR | O_CREAT | O_EXCL;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_RANDOM;
#endif
break;
case file_mode::write_existing:
f = O_RDWR | O_EXCL;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_RANDOM;
#endif
break;
case file_mode::append:
f = O_RDWR | O_CREAT | O_TRUNC;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_SEQUENTIAL;
#endif
break;
case file_mode::append_new:
f = O_RDWR | O_CREAT | O_EXCL;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_SEQUENTIAL;
#endif
break;
case file_mode::append_existing:
f = O_RDWR | O_EXCL;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_SEQUENTIAL;
#endif
break;
}
for(;;)
{
fd_ = ::open(path, f, 0644);
if(fd_ != -1)
break;
auto const ev = errno;
if(ev != EINTR)
{
ec.assign(ev, generic_category());
return;
}
}
#if BOOST_BEAST_USE_POSIX_FADVISE
if(::posix_fadvise(fd_, 0, 0, advise))
{
auto const ev = errno;
detail::file_posix_close(fd_);
fd_ = -1;
ec.assign(ev, generic_category());
return;
}
#endif
ec.assign(0, ec.category());
}
inline
std::uint64_t
file_posix::
size(error_code& ec) const
{
if(fd_ == -1)
{
ec = make_error_code(errc::invalid_argument);
return 0;
}
struct stat st;
if(::fstat(fd_, &st) != 0)
{
ec.assign(errno, generic_category());
return 0;
}
ec.assign(0, ec.category());
return st.st_size;
}
inline
std::uint64_t
file_posix::
pos(error_code& ec) const
{
if(fd_ == -1)
{
ec = make_error_code(errc::invalid_argument);
return 0;
}
auto const result = ::lseek(fd_, 0, SEEK_CUR);
if(result == (off_t)-1)
{
ec.assign(errno, generic_category());
return 0;
}
ec.assign(0, ec.category());
return result;
}
inline
void
file_posix::
seek(std::uint64_t offset, error_code& ec)
{
if(fd_ == -1)
{
ec = make_error_code(errc::invalid_argument);
return;
}
auto const result = ::lseek(fd_, offset, SEEK_SET);
if(result == static_cast<off_t>(-1))
{
ec.assign(errno, generic_category());
return;
}
ec.assign(0, ec.category());
}
inline
std::size_t
file_posix::
read(void* buffer, std::size_t n, error_code& ec) const
{
if(fd_ == -1)
{
ec = make_error_code(errc::invalid_argument);
return 0;
}
std::size_t nread = 0;
while(n > 0)
{
auto const amount = static_cast<ssize_t>((std::min)(
n, static_cast<std::size_t>(SSIZE_MAX)));
auto const result = ::read(fd_, buffer, amount);
if(result == -1)
{
auto const ev = errno;
if(ev == EINTR)
continue;
ec.assign(ev, generic_category());
return nread;
}
if(result == 0)
{
// short read
return nread;
}
n -= result;
nread += result;
buffer = reinterpret_cast<char*>(buffer) + result;
}
return nread;
}
inline
std::size_t
file_posix::
write(void const* buffer, std::size_t n, error_code& ec)
{
if(fd_ == -1)
{
ec = make_error_code(errc::invalid_argument);
return 0;
}
std::size_t nwritten = 0;
while(n > 0)
{
auto const amount = static_cast<ssize_t>((std::min)(
n, static_cast<std::size_t>(SSIZE_MAX)));
auto const result = ::write(fd_, buffer, amount);
if(result == -1)
{
auto const ev = errno;
if(ev == EINTR)
continue;
ec.assign(ev, generic_category());
return nwritten;
}
n -= result;
nwritten += result;
buffer = reinterpret_cast<char const*>(buffer) + result;
}
return nwritten;
}
} // beast
} // boost
#endif
|
; **********************************************************************************************************
;
; Name: memory.asm
; Purpose Memory addressing Words for Z80 CMForth Core (5.1.1)
; Author: Paul Robson (paul@robsons.org.uk)
; Date: 28th January 2018
;
; **********************************************************************************************************
; **********************************************************************************************************
; +! : add to memory
; **********************************************************************************************************
WD_Add16Bit: ; ==== +! ====
exx
pop hl
pop de
ld a,e
add a,(hl)
ld (hl),a
inc hl
ld a,d
adc a,(hl)
ld (hl),a
exx
jp (ix)
db 0,0,0
; **********************************************************************************************************
; c! : 8 bit memory store
; **********************************************************************************************************
WD_Write8: ; ==== c! ====
exx
pop hl
pop de
ld (hl),e
exx
jp (ix)
db 0
; **********************************************************************************************************
; c@ : 8 bit memory read
; **********************************************************************************************************
WD_Read8: ; ==== c@ ====
pop hl
ld l,(hl)
ld h,0
push hl
jp (ix)
db 0
|
//
// Copyright (C) 2013 OpenSim Ltd.
//
// This program 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
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//
#include "inet/physicallayer/base/SNIRBase.h"
namespace inet {
namespace physicallayer {
SNIRBase::SNIRBase(const IReception *reception, const INoise *noise) :
reception(reception),
noise(noise)
{
}
void SNIRBase::printToStream(std::ostream& stream) const
{
stream << "reception = { " << reception << " }, "
<< "noise = { " << noise << " }";
}
} // namespace physicallayer
} // namespace inet
|
; _Noreturn void abort(void)
SECTION code_clib
SECTION code_stdlib
PUBLIC abort
EXTERN asm_abort
defc abort = asm_abort
|
;代码清单9-2
;文件名:c09_2.asm
;文件说明:用于演示BIOS中断的用户程序
;创建日期:2012-3-28 20:35
;===============================================================================
SECTION header vstart=0 ;定义用户程序头部段
program_length dd program_end ;程序总长度[0x00]
;用户程序入口点
code_entry dw start ;偏移地址[0x04]
dd section.code.start ;段地址[0x06]
realloc_tbl_len dw (header_end-realloc_begin)/4
;段重定位表项个数[0x0a]
realloc_begin:
;段重定位表
code_segment dd section.code.start ;[0x0c]
data_segment dd section.data.start ;[0x14]
stack_segment dd section.stack.start ;[0x1c]
header_end:
;===============================================================================
SECTION code align=16 vstart=0 ;定义代码段(16字节对齐)
start:
mov ax,[stack_segment]
mov ss,ax
mov sp,ss_pointer
mov ax,[data_segment]
mov ds,ax
mov cx,msg_end-message
mov bx,message
.putc:
mov ah,0x0e
mov al,[bx]
int 0x10
inc bx
loop .putc
.reps:
mov ah,0x00
int 0x16
mov ah,0x0e
mov bl,0x07
int 0x10
jmp .reps
;===============================================================================
SECTION data align=16 vstart=0
message db 'Hello, friend!',0x0d,0x0a
db 'This simple procedure used to demonstrate '
db 'the BIOS interrupt.',0x0d,0x0a
db 'Please press the keys on the keyboard ->'
msg_end:
;===============================================================================
SECTION stack align=16 vstart=0
resb 256
ss_pointer:
;===============================================================================
SECTION program_trail
program_end: |
; ==================================================================
; MikeOS -- The Mike Operating System kernel
; Copyright (C) 2006 - 2019 MikeOS Developers -- see doc/LICENSE.TXT
;
; This is loaded from the drive by BOOTLOAD.BIN, as KERNEL.BIN.
; First we have the system call vectors, which start at a static point
; for programs to use. Following that is the main kernel code and
; then additional system call code is included.
; ==================================================================
BITS 16
%DEFINE MIKEOS_VER 'q3' ; OS version number
%DEFINE MIKEOS_API_VER 17 ; API version for programs to check
; This is the location in RAM for kernel disk operations, 24K
; after the point where the kernel has loaded; it's 8K in size,
; because external programs load after it at the 32K point:
disk_buffer equ 24576
; ------------------------------------------------------------------
; OS CALL VECTORS -- Static locations for system call vectors
; Note: these cannot be moved, or it'll break the calls!
; The comments show exact locations of instructions in this section,
; and are used in programs/mikedev.inc so that an external program can
; use a MikeOS system call without having to know its exact position
; in the kernel source code...
os_call_vectors:
jmp os_main ; 0000h -- Called from bootloader
jmp os_print_string ; 0003h
jmp os_move_cursor ; 0006h
jmp os_clear_screen ; 0009h
jmp os_print_horiz_line ; 000Ch
jmp os_print_newline ; 000Fh
jmp os_wait_for_key ; 0012h
jmp os_check_for_key ; 0015h
jmp os_int_to_string ; 0018h
jmp os_speaker_tone ; 001Bh
jmp os_speaker_off ; 001Eh
jmp os_load_file ; 0021h
jmp os_pause ; 0024h
jmp os_fatal_error ; 0027h
jmp os_draw_background ; 002Ah
jmp os_string_length ; 002Dh
jmp os_string_uppercase ; 0030h
jmp os_string_lowercase ; 0033h
jmp os_input_string ; 0036h
jmp os_string_copy ; 0039h
jmp os_dialog_box ; 003Ch
jmp os_string_join ; 003Fh
jmp os_get_file_list ; 0042h
jmp os_string_compare ; 0045h
jmp os_string_chomp ; 0048h
jmp os_string_strip ; 004Bh
jmp os_string_truncate ; 004Eh
jmp os_bcd_to_int ; 0051h
jmp os_get_time_string ; 0054h
jmp os_get_api_version ; 0057h
jmp os_file_selector ; 005Ah
jmp os_get_date_string ; 005Dh
jmp os_send_via_serial ; 0060h
jmp os_get_via_serial ; 0063h
jmp os_find_char_in_string ; 0066h
jmp os_get_cursor_pos ; 0069h
jmp os_print_space ; 006Ch
jmp os_dump_string ; 006Fh
jmp os_print_digit ; 0072h
jmp os_print_1hex ; 0075h
jmp os_print_2hex ; 0078h
jmp os_print_4hex ; 007Bh
jmp os_long_int_to_string ; 007Eh
jmp os_long_int_negate ; 0081h
jmp os_set_time_fmt ; 0084h
jmp os_set_date_fmt ; 0087h
jmp os_show_cursor ; 008Ah
jmp os_hide_cursor ; 008Dh
jmp os_dump_registers ; 0090h
jmp os_string_strincmp ; 0093h
jmp os_write_file ; 0096h
jmp os_file_exists ; 0099h
jmp os_create_file ; 009Ch
jmp os_remove_file ; 009Fh
jmp os_rename_file ; 00A2h
jmp os_get_file_size ; 00A5h
jmp os_input_dialog ; 00A8h
jmp os_list_dialog ; 00ABh
jmp os_string_reverse ; 00AEh
jmp os_string_to_int ; 00B1h
jmp os_draw_block ; 00B4h
jmp os_get_random ; 00B7h
jmp os_string_charchange ; 00BAh
jmp os_serial_port_enable ; 00BDh
jmp os_sint_to_string ; 00C0h
jmp os_string_parse ; 00C3h
jmp os_run_basic ; 00C6h
jmp os_port_byte_out ; 00C9h
jmp os_port_byte_in ; 00CCh
jmp os_string_tokenize ; 00CFh
; ------------------------------------------------------------------
; START OF MAIN KERNEL CODE
os_main:
cli ; Clear interrupts
mov ax, 0
mov ss, ax ; Set stack segment and pointer
mov sp, 0FFFFh
sti ; Restore interrupts
cld ; The default direction for string operations
; will be 'up' - incrementing address in RAM
mov ax, 2000h ; Set all segments to match where kernel is loaded
mov ds, ax ; After this, we don't need to bother with
mov es, ax ; segments ever again, as MikeOS and its programs
mov fs, ax ; live entirely in 64K
mov gs, ax
cmp dl, 0
je no_change
mov [bootdev], dl ; Save boot device number
push es
mov ah, 8 ; Get drive parameters
int 13h
pop es
and cx, 3Fh ; Maximum sector number
mov [SecsPerTrack], cx ; Sector numbers start at 1
movzx dx, dh ; Maximum head number
add dx, 1 ; Head numbers start at 0 - add 1 for total
mov [Sides], dx
no_change:
mov ax, 1003h ; Set text output with certain attributes
mov bx, 0 ; to be bright, and not blinking
int 10h
call os_seed_random ; Seed random number generator
; Let's see if there's a file called AUTORUN.BIN and execute
; it if so, before going to the program launcher menu
mov ax, autorun_bin_file_name
call os_file_exists
jc no_autorun_bin ; Skip next three lines if AUTORUN.BIN doesn't exist
mov cx, 32768 ; Otherwise load the program into RAM...
call os_load_file
jmp execute_bin_program ; ...and move on to the executing part
; Or perhaps there's an AUTORUN.BAS file?
no_autorun_bin:
mov ax, autorun_bas_file_name
call os_file_exists
jc option_screen ; Skip next section if AUTORUN.BAS doesn't exist
mov cx, 32768 ; Otherwise load the program into RAM
call os_load_file
call os_clear_screen
mov ax, 32768
call os_run_basic ; Run the kernel's BASIC interpreter
jmp app_selector ; And go to the app selector menu when BASIC ends
; Now we display a dialog box offering the user a choice of
; a menu-driven program selector, or a command-line interface
option_screen:
mov ax, os_init_msg ; Set up the welcome screen
mov bx, os_version_msg
mov cx, 10011111b ; Colour: white text on light blue
call os_draw_background
mov ax, dialog_string_1 ; Ask if user wants app selector or command-line
mov bx, dialog_string_2
mov cx, dialog_string_3
mov dx, 1 ; We want a two-option dialog box (OK or Cancel)
call os_dialog_box
cmp ax, 1 ; If OK (option 0) chosen, start app selector
jne near start_monitor
call os_clear_screen ; Otherwise clean screen and start the CLI
call start_basic
jmp option_screen ; Offer menu/CLI choice after CLI has exited
; Data for the above code...
os_init_msg db 'Welcome to q3OS', 0
os_version_msg db 'Version ', MIKEOS_VER, 0
dialog_string_1 db 'Thanks for trying out q3OS!', 0
dialog_string_2 db 'Please select an interface: OK for the', 0
dialog_string_3 db 'program menu, Cancel for Monitor.', 0
app_selector:
mov ax, os_init_msg ; Draw main screen layout
mov bx, os_version_msg
mov cx, 10011111b ; Colour: white text on light blue
call os_draw_background
call os_file_selector ; Get user to select a file, and store
; the resulting string location in AX
; (other registers are undetermined)
jc option_screen ; Return to the CLI/menu choice screen if Esc pressed
mov si, ax ; Did the user try to run 'KERNEL.BIN'?
mov di, kern_file_name
call os_string_compare
jc no_kernel_execute ; Show an error message if so
; Next, we need to check that the program we're attempting to run is
; valid -- in other words, that it has a .BIN extension
push si ; Save filename temporarily
mov bx, si
mov ax, si
call os_string_length
mov si, bx
add si, ax ; SI now points to end of filename...
dec si
dec si
dec si ; ...and now to start of extension!
mov di, bin_ext
mov cx, 3
rep cmpsb ; Are final 3 chars 'BIN'?
jne not_bin_extension ; If not, it might be a '.BAS'
pop si ; Restore filename
mov ax, si
mov cx, 32768 ; Where to load the program file
call os_load_file ; Load filename pointed to by AX
start_basic:
mov ax, test_basic_file
mov cx, 32768
call os_load_file
mov ax, 32768
mov si, 0
call os_run_basic
start_monitor:
mov ax, monitor_file_name
mov cx, 32768
call os_load_file
execute_bin_program:
call os_clear_screen ; Clear screen before running
mov ax, 0 ; Clear all registers
mov bx, 0
mov cx, 0
mov dx, 0
mov si, 0
mov di, 0
call 32768 ; Call the external program code,
; loaded at second 32K of segment
; (program must end with 'ret')
mov si, program_finished_msg ; Give the program a chance to display
call os_print_string ; any output before clearing the screen
call os_wait_for_key
call os_clear_screen ; When finished, clear screen
jmp app_selector ; and go back to the program list
no_kernel_execute: ; Warn about trying to executing kernel!
mov ax, kerndlg_string_1
mov bx, kerndlg_string_2
mov cx, kerndlg_string_3
mov dx, 0 ; One button for dialog box
call os_dialog_box
jmp app_selector ; Start over again...
not_bin_extension:
pop si ; We pushed during the .BIN extension check
push si ; Save it again in case of error...
mov bx, si
mov ax, si
call os_string_length
mov si, bx
add si, ax ; SI now points to end of filename...
dec si
dec si
dec si ; ...and now to start of extension!
mov di, bas_ext
mov cx, 3
rep cmpsb ; Are final 3 chars 'BAS'?
jne not_bas_extension ; If not, error out
pop si
mov ax, si
mov cx, 32768 ; Where to load the program file
call os_load_file ; Load filename pointed to by AX
call os_clear_screen ; Clear screen before running
mov ax, 32768
mov si, 0 ; No params to pass
call os_run_basic ; And run our BASIC interpreter on the code!
mov si, program_finished_msg
call os_print_string
call os_wait_for_key
call os_clear_screen
jmp app_selector ; and go back to the program list
not_bas_extension:
pop si
mov ax, ext_string_1
mov bx, ext_string_2
mov cx, 0
mov dx, 0 ; One button for dialog box
call os_dialog_box
jmp app_selector ; Start over again...
; And now data for the above code...
kern_file_name db 'KERNEL.BIN', 0
autorun_bin_file_name db 'AUTORUN.BIN', 0
autorun_bas_file_name db 'AUTORUN.BAS', 0
monitor_file_name db 'MONITOR.BIN', 0
test_basic_file db 'TEST.BAS', 0
bin_ext db 'BIN'
bas_ext db 'BAS'
kerndlg_string_1 db 'Cannot load and execute MikeOS kernel!', 0
kerndlg_string_2 db 'KERNEL.BIN is the core of MikeOS, and', 0
kerndlg_string_3 db 'is not a normal program.', 0
ext_string_1 db 'Invalid filename extension! You can', 0
ext_string_2 db 'only execute .BIN or .BAS programs.', 0
program_finished_msg db '>>> Program finished --- press a key to continue...', 0
; ------------------------------------------------------------------
; SYSTEM VARIABLES -- Settings for programs and system calls
; Time and date formatting
fmt_12_24 db 1 ; Non-zero = 24-hr format
fmt_date db 2, '-' ; 0, 1, 2 = M/D/Y, D/M/Y or Y/M/D
; Bit 7 = use name for months
; If bit 7 = 0, second byte = separator character
; ------------------------------------------------------------------
; FEATURES -- Code to pull into the kernel
%INCLUDE "features/cli.asm"
%INCLUDE "features/disk.asm"
%INCLUDE "features/keyboard.asm"
%INCLUDE "features/math.asm"
%INCLUDE "features/misc.asm"
%INCLUDE "features/ports.asm"
%INCLUDE "features/screen.asm"
%INCLUDE "features/sound.asm"
%INCLUDE "features/string.asm"
%INCLUDE "features/basic.asm"
; ==================================================================
; END OF KERNEL
; ==================================================================
|
; A107713: Convolution of 2^n*n! and n!.
; Submitted by Jamie Morken(s4)
; 1,3,12,66,484,4536,52128,709776,11153376,198339840,3932962560,85976743680,2053285148160,53173906652160,1483987541299200,44396218792396800,1417294759310438400,48088097391133900800,1728013936221838540800,65558270633421791232000
mov $1,1
mov $2,1
mov $3,1
lpb $0
mul $3,$0
sub $0,1
add $2,1
mul $3,2
add $3,$1
mul $1,$2
lpe
mov $0,$3
|
MODULE generic_console_ioctl
PUBLIC generic_console_ioctl
SECTION code_clib
INCLUDE "ioctl.def"
EXTERN generic_console_cls
EXTERN __console_h
EXTERN __console_w
PUBLIC CLIB_GENCON_CAPS
defc CLIB_GENCON_CAPS = CAP_GENCON_FG_COLOUR | CAP_GENCON_BG_COLOUR | CAP_GENCON_INVERSE
; a = ioctl
; de = arg
generic_console_ioctl:
ex de,hl
ld c,(hl) ;bc = where we point to
inc hl
ld b,(hl)
check_mode:
cp IOCTL_GENCON_SET_MODE
jr nz,failure
ld a,c ; The mode
ld l,40 ; columns
ld h,@01000000 ; Flags for port 10 - TODO, rompack
and a
jr z,set_mode
ld l,80
ld h,@01000001 ; Flags for port 10 - TODO, rompack
cp 1
jr nz,failure
set_mode:
ld a,l
ld (__console_w),a
ld a,h
out ($10),a
call generic_console_cls
and a
ret
failure:
scf
ret
|
; A157731: a(n) = 18522*n - 10248.
; 8274,26796,45318,63840,82362,100884,119406,137928,156450,174972,193494,212016,230538,249060,267582,286104,304626,323148,341670,360192,378714,397236,415758,434280,452802,471324,489846,508368,526890,545412,563934,582456,600978,619500,638022,656544,675066,693588,712110,730632,749154,767676,786198,804720,823242,841764,860286,878808,897330,915852,934374,952896,971418,989940,1008462,1026984,1045506,1064028,1082550,1101072,1119594,1138116,1156638,1175160,1193682,1212204,1230726,1249248,1267770,1286292
mul $0,18522
add $0,8274
|
#include "util.h"
#include <regex>
// external libraries
#include <CLI/CLI.hpp>
#include <boost/beast/version.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <nlohmann/json.hpp>
#include "momo_version.h"
#include "rtc_base/helpers.h"
#if USE_ROS
#include "ros/ros.h"
#endif
using json = nlohmann::json;
#if USE_ROS
void Util::parseArgs(int argc,
char* argv[],
bool& use_test,
bool& use_ayame,
bool& use_sora,
int& log_level,
ConnectionSettings& cs) {
ros::init(argc, argv, "momo", ros::init_options::AnonymousName);
ros::NodeHandle nh;
cs.camera_name = nh.resolveName("image");
cs.audio_topic_name = nh.resolveName("audio");
ros::NodeHandle local_nh("~");
local_nh.param<bool>("compressed", cs.image_compressed, cs.image_compressed);
local_nh.param<bool>("use_test", use_test, use_test);
local_nh.param<bool>("use_ayame", use_ayame, use_ayame);
local_nh.param<bool>("use_sora", use_sora, use_sora);
local_nh.param<bool>("no_google_stun", cs.no_google_stun,
cs.no_google_stun);
local_nh.param<bool>("no_video_device", cs.no_video_device,
cs.no_video_device);
local_nh.param<bool>("no_audio_device", cs.no_audio_device,
cs.no_audio_device);
local_nh.param<bool>("force_i420", cs.force_i420, cs.force_i420);
local_nh.param<bool>("use_native", cs.use_native, cs.use_native);
#if USE_MMAL_ENCODER || USE_JETSON_ENCODER
local_nh.param<std::string>("video_device", cs.video_device, cs.video_device);
#endif
local_nh.param<std::string>("sora_video_codec", cs.sora_video_codec,
cs.sora_video_codec);
local_nh.param<std::string>("sora_audio_codec", cs.sora_audio_codec,
cs.sora_audio_codec);
local_nh.param<int>("sora_video_bitrate", cs.sora_video_bitrate,
cs.sora_video_bitrate);
local_nh.param<int>("sora_audio_bitrate", cs.sora_audio_bitrate,
cs.sora_audio_bitrate);
local_nh.param<std::string>("resolution", cs.resolution, cs.resolution);
local_nh.param<int>("framerate", cs.framerate, cs.framerate);
local_nh.param<int>("audio_topic_rate", cs.audio_topic_rate,
cs.audio_topic_rate);
local_nh.param<int>("audio_topic_ch", cs.audio_topic_ch, cs.audio_topic_ch);
local_nh.param<std::string>("priority", cs.priority, cs.priority);
local_nh.param<int>("sora_port", cs.sora_port, cs.sora_port);
local_nh.param<int>("test_port", cs.test_port, cs.test_port);
local_nh.param<bool>("insecure", cs.insecure, cs.insecure);
local_nh.param<int>("log_level", log_level, log_level);
// オーディオフラグ
local_nh.param<bool>("disable_echo_cancellation",
cs.disable_echo_cancellation,
cs.disable_echo_cancellation);
local_nh.param<bool>("disable_auto_gain_control",
cs.disable_auto_gain_control,
cs.disable_auto_gain_control);
local_nh.param<bool>("disable_noise_suppression",
cs.disable_noise_suppression,
cs.disable_noise_suppression);
local_nh.param<bool>("disable_highpass_filter", cs.disable_highpass_filter,
cs.disable_highpass_filter);
local_nh.param<bool>("disable_typing_detection", cs.disable_typing_detection,
cs.disable_typing_detection);
local_nh.param<bool>("disable_residual_echo_detector",
cs.disable_residual_echo_detector,
cs.disable_residual_echo_detector);
if (use_sora && local_nh.hasParam("SIGNALING_URL") &&
local_nh.hasParam("CHANNEL_ID")) {
local_nh.getParam("SIGNALING_URL", cs.sora_signaling_host);
local_nh.getParam("CHANNEL_ID", cs.sora_channel_id);
local_nh.param<bool>("auto", cs.sora_auto_connect, cs.sora_auto_connect);
std::string sora_metadata;
local_nh.param<std::string>("metadata", sora_metadata, "");
// メタデータのパース
if (!sora_metadata.empty()) {
cs.sora_metadata = json::parse(sora_metadata);
}
} else if (use_test) {
local_nh.param<std::string>("document_root", cs.test_document_root,
get_current_dir_name());
} else if (use_ayame && local_nh.hasParam("SIGNALING_URL") &&
local_nh.hasParam("ROOM_ID")) {
local_nh.getParam("SIGNALING_URL", cs.ayame_signaling_host);
local_nh.getParam("ROOM_ID", cs.ayame_room_id);
local_nh.param<std::string>("client_id", cs.ayame_client_id,
cs.ayame_client_id);
local_nh.param<std::string>("signaling_key", cs.ayame_signaling_key,
cs.ayame_signaling_key);
} else {
exit(1);
}
}
#else
void Util::parseArgs(int argc,
char* argv[],
bool& use_test,
bool& use_ayame,
bool& use_sora,
int& log_level,
ConnectionSettings& cs) {
CLI::App app("Momo - WebRTC Native Client");
app.set_help_all_flag("--help-all",
"Print help message for all modes and exit");
bool version = false;
bool video_codecs = false;
auto is_valid_force_i420 = CLI::Validator(
[](std::string input) -> std::string {
#if USE_MMAL_ENCODER || USE_JETSON_ENCODER || USE_NVCODEC_ENCODER
return std::string();
#else
return "Not available because your device does not have this feature.";
#endif
},
"");
auto is_valid_use_native = CLI::Validator(
[](std::string input) -> std::string {
#if USE_MMAL_ENCODER || USE_JETSON_ENCODER || USE_NVCODEC_ENCODER
return std::string();
#else
return "Not available because your device does not have this feature.";
#endif
},
"");
auto is_valid_h264 = CLI::Validator(
[](std::string input) -> std::string {
#if USE_H264
return std::string();
#else
if (input == "H264") {
return "Not available because your device does not have this "
"feature.";
}
return std::string();
#endif
},
"");
auto is_sdl_available = CLI::Validator(
[](std::string input) -> std::string {
#if USE_SDL2
return std::string();
#else
return "Not available because your device does not have this "
"feature.";
#endif
},
"");
auto is_valid_resolution = CLI::Validator(
[](std::string input) -> std::string {
if (input == "QVGA" || input == "VGA" || input == "HD" ||
input == "FHD" || input == "4K") {
return std::string();
}
// 数値x数値、というフォーマットになっているか確認する
std::regex re("^[1-9][0-9]*x[1-9][0-9]*$");
if (std::regex_match(input, re)) {
return std::string();
}
return "Must be one of QVGA, VGA, HD, FHD, 4K, or "
"[WIDTH]x[HEIGHT].";
},
"");
auto is_valid_screen_capture = CLI::Validator(
[](std::string input) -> std::string {
#if USE_SCREEN_CAPTURER
return std::string();
#else
return "Not available because your device does not have this feature.";
#endif
},
"");
app.add_flag("--no-google-stun", cs.no_google_stun,
"Do not use google stun");
app.add_flag("--no-video-device", cs.no_video_device,
"Do not use video device");
app.add_flag("--no-audio-device", cs.no_audio_device,
"Do not use audio device");
app.add_flag(
"--force-i420", cs.force_i420,
"Prefer I420 format for video capture (only on supported devices)")
->check(is_valid_force_i420);
app.add_flag("--use-native", cs.use_native,
"Perform MJPEG deoode and video resize by hardware acceleration "
"(only on supported devices)")
->check(is_valid_use_native);
#if defined(__APPLE__) || defined(_WIN32)
app.add_option("--video-device", cs.video_device,
"Use the video device specified by an index or a name "
"(use the first one if not specified)");
#elif defined(__linux__)
app.add_option("--video-device", cs.video_device,
"Use the video input device specified by a name "
"(some device will be used if not specified)")
->check(CLI::ExistingFile);
#endif
app.add_option("--resolution", cs.resolution,
"Video resolution (one of QVGA, VGA, HD, FHD, 4K, or "
"[WIDTH]x[HEIGHT])")
->check(is_valid_resolution);
app.add_option("--framerate", cs.framerate, "Video framerate")
->check(CLI::Range(1, 60));
app.add_flag("--fixed-resolution", cs.fixed_resolution,
"Maintain video resolution in degradation");
app.add_set("--priority", cs.priority, {"BALANCE", "FRAMERATE", "RESOLUTION"},
"Preference in video degradation (experimental)");
app.add_flag("--use-sdl", cs.use_sdl,
"Show video using SDL (if SDL is available)")
->check(is_sdl_available);
app.add_flag("--show-me", cs.show_me, "Show self video (if SDL is available)")
->check(is_sdl_available);
app.add_option("--window-width", cs.window_width,
"Window width for videos (if SDL is available)")
->check(is_sdl_available)
->check(CLI::Range(180, 16384));
app.add_option("--window-height", cs.window_height,
"Window height for videos (if SDL is available)")
->check(is_sdl_available)
->check(CLI::Range(180, 16384));
app.add_flag("--fullscreen", cs.fullscreen,
"Use fullscreen window for videos (if SDL is available)")
->check(is_sdl_available);
app.add_flag("--version", version, "Show version information");
app.add_flag("--insecure", cs.insecure,
"Allow insecure server connections when using SSL");
auto log_level_map = std::vector<std::pair<std::string, int> >(
{{"verbose", 0}, {"info", 1}, {"warning", 2}, {"error", 3}, {"none", 4}});
app.add_option("--log-level", log_level, "Log severity level threshold")
->transform(CLI::CheckedTransformer(log_level_map, CLI::ignore_case));
app.add_flag("--screen-capture", cs.screen_capture, "Capture screen")
->check(is_valid_screen_capture);
// オーディオフラグ
app.add_flag("--disable-echo-cancellation", cs.disable_echo_cancellation,
"Disable echo cancellation for audio");
app.add_flag("--disable-auto-gain-control", cs.disable_auto_gain_control,
"Disable auto gain control for audio");
app.add_flag("--disable-noise-suppression", cs.disable_noise_suppression,
"Disable noise suppression for audio");
app.add_flag("--disable-highpass-filter", cs.disable_highpass_filter,
"Disable highpass filter for audio");
app.add_flag("--disable-typing-detection", cs.disable_typing_detection,
"Disable typing detection for audio");
app.add_flag("--disable-residual-echo-detector",
cs.disable_residual_echo_detector,
"Disable residual echo detector for audio");
// ビデオエンコーダ
app.add_flag("--video-codec-engines", video_codecs,
"List available video encoders/decoders");
{
auto info = VideoCodecInfo::Get();
// 長いので短くする
auto f = [](auto x) {
return CLI::CheckedTransformer(VideoCodecInfo::GetValidMappingInfo(x),
CLI::ignore_case);
};
app.add_flag("--vp8-encoder", cs.vp8_encoder, "VP8 Encoder")
->transform(f(info.vp8_encoders));
app.add_flag("--vp8-decoder", cs.vp8_decoder, "VP8 Decoder")
->transform(f(info.vp8_decoders));
app.add_flag("--vp9-encoder", cs.vp9_encoder, "VP9 Encoder")
->transform(f(info.vp9_encoders));
app.add_flag("--vp9-decoder", cs.vp9_decoder, "VP9 Decoder")
->transform(f(info.vp9_decoders));
app.add_flag("--av1-encoder", cs.av1_encoder, "AV1 Encoder")
->transform(f(info.av1_encoders));
app.add_flag("--av1-decoder", cs.av1_decoder, "AV1 Decoder")
->transform(f(info.av1_decoders));
app.add_flag("--h264-encoder", cs.h264_encoder, "H.264 Encoder")
->transform(f(info.h264_encoders));
app.add_flag("--h264-decoder", cs.h264_decoder, "H.264 Decoder")
->transform(f(info.h264_decoders));
}
auto is_serial_setting_format = CLI::Validator(
[](std::string input) -> std::string {
try {
auto separater_pos = input.find(',');
std::string baudrate_str = input.substr(separater_pos + 1);
unsigned int _ = std::stoi(baudrate_str);
return std::string();
} catch (std::invalid_argument& e) {
return "Value " + input +
" is not serial setting format [DEVICE],[BAUDRATE]";
} catch (std::out_of_range& e) {
return "Value " + input +
" is not serial setting format [DEVICE],[BAUDRATE]";
}
},
"serial setting format");
std::string serial_setting;
app.add_option(
"--serial", serial_setting,
"Serial port settings for datachannel passthrough [DEVICE],[BAUDRATE]")
->check(is_serial_setting_format);
auto test_app = app.add_subcommand(
"test", "Mode for momo development with simple HTTP server");
auto ayame_app = app.add_subcommand(
"ayame", "Mode for working with WebRTC Signaling Server Ayame");
auto sora_app =
app.add_subcommand("sora", "Mode for working with WebRTC SFU Sora");
test_app
->add_option("--document-root", cs.test_document_root,
"HTTP document root directory")
->check(CLI::ExistingDirectory);
test_app->add_option("--port", cs.test_port, "Port number (default: 8080)")
->check(CLI::Range(0, 65535));
ayame_app
->add_option("SIGNALING-URL", cs.ayame_signaling_host, "Signaling URL")
->required();
ayame_app->add_option("ROOM-ID", cs.ayame_room_id, "Room ID")->required();
ayame_app->add_option("--client-id", cs.ayame_client_id, "Client ID");
ayame_app->add_option("--signaling-key", cs.ayame_signaling_key,
"Signaling key");
sora_app->add_option("SIGNALING-URL", cs.sora_signaling_host, "Signaling URL")
->required();
sora_app->add_option("CHANNEL-ID", cs.sora_channel_id, "Channel ID")
->required();
sora_app->add_flag("--auto", cs.sora_auto_connect,
"Connect to Sora automatically");
auto bool_map = std::vector<std::pair<std::string, bool> >(
{{"false", false}, {"true", true}});
sora_app
->add_option("--video", cs.sora_video,
"Send video to sora (default: true)")
->transform(CLI::CheckedTransformer(bool_map, CLI::ignore_case));
sora_app
->add_option("--audio", cs.sora_audio,
"Send audio to sora (default: true)")
->transform(CLI::CheckedTransformer(bool_map, CLI::ignore_case));
sora_app
->add_set("--video-codec", cs.sora_video_codec,
{"", "VP8", "VP9", "AV1", "H264"}, "Video codec for send")
->check(is_valid_h264);
sora_app->add_set("--audio-codec", cs.sora_audio_codec, {"", "OPUS"},
"Audio codec for send");
sora_app
->add_option("--video-bitrate", cs.sora_video_bitrate, "Video bitrate")
->check(CLI::Range(0, 30000));
sora_app
->add_option("--audio-bitrate", cs.sora_audio_bitrate, "Audio bitrate")
->check(CLI::Range(0, 510));
sora_app->add_flag("--multistream", cs.sora_multistream, "Use multistream");
sora_app->add_set(
"--role", cs.sora_role,
{"upstream", "downstream", "sendonly", "recvonly", "sendrecv"},
"Role (default: upstream)");
sora_app
->add_option("--spotlight", cs.sora_spotlight,
"Stream count delivered in spotlight")
->check(CLI::Range(1, 10));
sora_app->add_option("--port", cs.sora_port, "Port number (default: -1)")
->check(CLI::Range(-1, 65535));
auto is_json = CLI::Validator(
[](std::string input) -> std::string {
try {
auto _ = json::parse(input);
return std::string();
} catch (json::parse_error& e) {
return "Value " + input + " is not JSON Value";
}
},
"JSON Value");
std::string sora_metadata;
sora_app
->add_option("--metadata", sora_metadata,
"Signaling metadata used in connect message")
->check(is_json);
try {
app.parse(argc, argv);
} catch (const CLI::ParseError& e) {
exit(app.exit(e));
}
if (!serial_setting.empty()) {
auto separater_pos = serial_setting.find(',');
std::string baudrate_str = serial_setting.substr(separater_pos + 1);
cs.serial_device = serial_setting.substr(0, separater_pos);
cs.serial_rate = std::stoi(baudrate_str);
}
// メタデータのパース
if (!sora_metadata.empty()) {
cs.sora_metadata = json::parse(sora_metadata);
}
if (cs.test_document_root.empty()) {
cs.test_document_root = boost::filesystem::current_path().string();
}
if (version) {
std::cout << MomoVersion::GetClientName() << std::endl;
std::cout << std::endl;
std::cout << "WebRTC: " << MomoVersion::GetLibwebrtcName() << std::endl;
std::cout << "Environment: " << MomoVersion::GetEnvironmentName()
<< std::endl;
std::cout << std::endl;
std::cout << "USE_MMAL_ENCODER=" BOOST_PP_STRINGIZE(USE_MMAL_ENCODER)
<< std::endl;
std::cout << "USE_JETSON_ENCODER=" BOOST_PP_STRINGIZE(USE_JETSON_ENCODER)
<< std::endl;
std::cout << "USE_NVCODEC_ENCODER=" BOOST_PP_STRINGIZE(USE_NVCODEC_ENCODER)
<< std::endl;
std::cout << "USE_SDL2=" BOOST_PP_STRINGIZE(USE_SDL2) << std::endl;
exit(0);
}
if (video_codecs) {
ShowVideoCodecs(VideoCodecInfo::Get());
exit(0);
}
if (!test_app->parsed() && !sora_app->parsed() && !ayame_app->parsed()) {
std::cout << app.help() << std::endl;
exit(1);
}
if (sora_app->parsed()) {
use_sora = true;
}
if (test_app->parsed()) {
use_test = true;
}
if (ayame_app->parsed()) {
use_ayame = true;
}
}
#endif
void Util::ShowVideoCodecs(VideoCodecInfo info) {
// VP8:
// Encoder:
// - Software (default)
// Decoder:
// - Jetson (default)
// - Software
//
// VP9:
// Encoder:
// - Software (default)
// ...
//
// みたいな感じに出力する
auto list_codecs = [](std::vector<VideoCodecInfo::Type> types) {
if (types.empty()) {
std::cout << " *UNAVAILABLE*" << std::endl;
return;
}
for (int i = 0; i < types.size(); i++) {
auto type = types[i];
auto p = VideoCodecInfo::TypeToString(type);
std::cout << " - " << p.first << " [" << p.second << "]";
if (i == 0) {
std::cout << " (default)";
}
std::cout << std::endl;
}
};
std::cout << "VP8:" << std::endl;
std::cout << " Encoder:" << std::endl;
list_codecs(info.vp8_encoders);
std::cout << " Decoder:" << std::endl;
list_codecs(info.vp8_decoders);
std::cout << "" << std::endl;
std::cout << "VP9:" << std::endl;
std::cout << " Encoder:" << std::endl;
list_codecs(info.vp9_encoders);
std::cout << " Decoder:" << std::endl;
list_codecs(info.vp9_decoders);
std::cout << "" << std::endl;
std::cout << "AV1:" << std::endl;
std::cout << " Encoder:" << std::endl;
list_codecs(info.av1_encoders);
std::cout << " Decoder:" << std::endl;
list_codecs(info.av1_decoders);
std::cout << "" << std::endl;
std::cout << "H264:" << std::endl;
std::cout << " Encoder:" << std::endl;
list_codecs(info.h264_encoders);
std::cout << " Decoder:" << std::endl;
list_codecs(info.h264_decoders);
}
std::string Util::generateRandomChars() {
return generateRandomChars(32);
}
std::string Util::generateRandomChars(size_t length) {
std::string result;
rtc::CreateRandomString(length, &result);
return result;
}
std::string Util::generateRandomNumericChars(size_t length) {
auto randomNumerics = []() -> char {
const char charset[] = "0123456789";
const size_t max_index = (sizeof(charset) - 1);
return charset[rand() % max_index];
};
std::string result(length, 0);
std::generate_n(result.begin(), length, randomNumerics);
return result;
}
std::string Util::iceConnectionStateToString(
webrtc::PeerConnectionInterface::IceConnectionState state) {
switch (state) {
case webrtc::PeerConnectionInterface::kIceConnectionNew:
return "new";
case webrtc::PeerConnectionInterface::kIceConnectionChecking:
return "checking";
case webrtc::PeerConnectionInterface::kIceConnectionConnected:
return "connected";
case webrtc::PeerConnectionInterface::kIceConnectionCompleted:
return "completed";
case webrtc::PeerConnectionInterface::kIceConnectionFailed:
return "failed";
case webrtc::PeerConnectionInterface::kIceConnectionDisconnected:
return "disconnected";
case webrtc::PeerConnectionInterface::kIceConnectionClosed:
return "closed";
case webrtc::PeerConnectionInterface::kIceConnectionMax:
return "max";
}
return "unknown";
}
namespace http = boost::beast::http;
using string_view = boost::beast::string_view;
string_view Util::mimeType(string_view path) {
using boost::beast::iequals;
auto const ext = [&path] {
auto const pos = path.rfind(".");
if (pos == string_view::npos)
return string_view{};
return path.substr(pos);
}();
if (iequals(ext, ".htm"))
return "text/html";
if (iequals(ext, ".html"))
return "text/html";
if (iequals(ext, ".php"))
return "text/html";
if (iequals(ext, ".css"))
return "text/css";
if (iequals(ext, ".txt"))
return "text/plain";
if (iequals(ext, ".js"))
return "application/javascript";
if (iequals(ext, ".json"))
return "application/json";
if (iequals(ext, ".xml"))
return "application/xml";
if (iequals(ext, ".swf"))
return "application/x-shockwave-flash";
if (iequals(ext, ".flv"))
return "video/x-flv";
if (iequals(ext, ".png"))
return "image/png";
if (iequals(ext, ".jpe"))
return "image/jpeg";
if (iequals(ext, ".jpeg"))
return "image/jpeg";
if (iequals(ext, ".jpg"))
return "image/jpeg";
if (iequals(ext, ".gif"))
return "image/gif";
if (iequals(ext, ".bmp"))
return "image/bmp";
if (iequals(ext, ".ico"))
return "image/vnd.microsoft.icon";
if (iequals(ext, ".tiff"))
return "image/tiff";
if (iequals(ext, ".tif"))
return "image/tiff";
if (iequals(ext, ".svg"))
return "image/svg+xml";
if (iequals(ext, ".svgz"))
return "image/svg+xml";
return "application/text";
}
http::response<http::string_body> Util::badRequest(
const http::request<http::string_body>& req,
string_view why) {
http::response<http::string_body> res{http::status::bad_request,
req.version()};
res.set(http::field::server, BOOST_BEAST_VERSION_STRING);
res.set(http::field::content_type, "text/html");
res.keep_alive(req.keep_alive());
res.body() = why.to_string();
res.prepare_payload();
return res;
}
http::response<http::string_body> Util::notFound(
const http::request<http::string_body>& req,
string_view target) {
http::response<http::string_body> res{http::status::not_found, req.version()};
res.set(http::field::server, BOOST_BEAST_VERSION_STRING);
res.set(http::field::content_type, "text/html");
res.keep_alive(req.keep_alive());
res.body() = "The resource '" + target.to_string() + "' was not found.";
res.prepare_payload();
return res;
}
http::response<http::string_body> Util::serverError(
const http::request<http::string_body>& req,
string_view what) {
http::response<http::string_body> res{http::status::internal_server_error,
req.version()};
res.set(http::field::server, BOOST_BEAST_VERSION_STRING);
res.set(http::field::content_type, "text/html");
res.keep_alive(req.keep_alive());
res.body() = "An error occurred: '" + what.to_string() + "'";
res.prepare_payload();
return res;
}
|
.n64
.relativeinclude on
.create "../roms/patched.z64", 0
.incbin "../roms/base.z64"
;==================================================================================================
; Constants
;==================================================================================================
.include "constants.asm"
.include "addresses.asm"
;==================================================================================================
; Base game editing region
;==================================================================================================
.include "boot.asm"
.include "hacks.asm"
.include "malon.asm"
.include "mido.asm"
;==================================================================================================
; New code region
;==================================================================================================
.headersize (0x80400000 - 0x03480000)
.org 0x80400000
.area 0x10000
.area 0x20, 0
RANDO_CONTEXT:
.word COOP_CONTEXT
.word COSMETIC_CONTEXT
.word extern_ctxt
.endarea
.include "coop_state.asm" ; This should always come first
.include "config.asm"
.include "init.asm"
.include "item_overrides.asm"
.include "cutscenes.asm"
.include "shop.asm"
.include "every_frame.asm"
.include "menu.asm"
.include "time_travel.asm"
.include "song_fix.asm"
.include "scarecrow.asm"
.include "empty_bomb_fix.asm"
.include "initial_save.asm"
.include "textbox.asm"
.include "fishing.asm"
.include "bgs_fix.asm"
.include "chus_in_logic.asm"
.include "rainbow_bridge.asm"
.include "lacs_condition.asm"
.include "gossip_hints.asm"
.include "potion_shop.asm"
.include "jabu_elevator.asm"
.include "dampe.asm"
.include "dpad.asm"
.include "chests.asm"
.include "bunny_hood.asm"
.include "magic_color.asm"
.include "debug.asm"
.include "cow.asm"
.include "lake_hylia.asm"
.include "timers.asm"
.include "shooting_gallery.asm"
.include "damage.asm"
.include "bean_salesman.asm"
.include "grotto.asm"
.include "deku_mouth_condition.asm"
.importobj "../build/bundle.o"
.align 8
FONT_TEXTURE:
.incbin("../resources/font.bin")
DPAD_TEXTURE:
.incbin("../resources/dpad.bin")
.endarea
.close
|
; A170302: Number of reduced words of length n in Coxeter group on 5 generators S_i with relations (S_i)^2 = (S_i S_j)^42 = I.
; 1,5,20,80,320,1280,5120,20480,81920,327680,1310720,5242880,20971520,83886080,335544320,1342177280,5368709120,21474836480,85899345920,343597383680,1374389534720,5497558138880,21990232555520,87960930222080
mov $1,4
pow $1,$0
mul $1,5
div $1,4
mov $0,$1
|
.MODEL SMALL
.STACK 100H
.DATA
PROMPT DB 'The Lower Case Letters are: $'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
LEA DX, PROMPT
MOV AH, 9
INT 21H
MOV CX, 26 ; 26 Alphabet
MOV AH, 2
MOV DL, 122 ; Assign z in DL
@LOOP:
INT 21H
DEC DL
DEC CX
JNZ @LOOP
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN |
SECTION "Code",CODE
__DCB "1234"
SECTION "Code2",CODE
__DCB "Offset by some random amount"
__DCL @
__DCL @
|
; Exceptions
extern divide_by_zero_isr
extern debug_isr
extern non_maskable_interrupt_isr
extern breakpoint_isr
extern overflow_isr
extern bound_range_exceeded_isr
extern invalid_opcode_isr
extern device_not_available_isr
extern double_fault_isr
extern coprocessor_segment_overrun_isr
extern invalid_tss_isr
extern segment_not_present_isr
extern stack_segment_fault_isr
extern general_protection_fault_isr
extern page_fault_isr
extern x87_float_exception_isr
extern alignment_check_isr
extern machine_check_isr
extern simd_float_exception_isr
extern virtualization_exception_isr
extern security_exception_isr
; Hardware IRQs (PIC1)
extern pit_isr
extern ps2_keyboard_isr
extern cascade_isr
extern com2_isr
extern com1_isr
extern lpt2_isr
extern floppy_isr
extern lpt1_isr
; Hardware IRQs (PIC2)
extern cmos_clock_isr
extern legacy_scsi_isr
extern scsi2_isr
extern scsi1_isr
extern ps2_mouse_isr
extern fpu_isr
extern primary_ata_isr
extern secondary_ata_isr
; Exceptions
global divide_by_zero_isr_asm
global debug_isr_asm
global non_maskable_interrupt_isr_asm
global breakpoint_isr_asm
global overflow_isr_asm
global bound_range_exceeded_isr_asm
global invalid_opcode_isr_asm
global device_not_available_isr_asm
global double_fault_isr_asm
global coprocessor_segment_overrun_isr_asm
global invalid_tss_isr_asm
global segment_not_present_isr_asm
global stack_segment_fault_isr_asm
global general_protection_fault_isr_asm
global page_fault_isr_asm
global x87_float_exception_isr_asm
global alignment_check_isr_asm
global machine_check_isr_asm
global simd_float_exception_isr_asm
global virtualization_exception_isr_asm
global security_exception_isr_asm
; Hardware IRQs (PIC1)
global pit_isr_asm
global ps2_keyboard_isr_asm
global cascade_isr_asm
global com2_isr_asm
global com1_isr_asm
global lpt2_isr_asm
global floppy_isr_asm
global lpt1_isr_asm
; Hardware IRQs (PIC2)
global cmos_clock_isr_asm
global legacy_scsi_isr_asm
global scsi2_isr_asm
global scsi1_isr_asm
global ps2_mouse_isr_asm
global fpu_isr_asm
global primary_ata_isr_asm
global secondary_ata_isr_asm
; Exceptions
divide_by_zero_isr_asm:
pusha
call divide_by_zero_isr
popa
iret
debug_isr_asm:
pusha
call debug_isr
popa
iret
non_maskable_interrupt_isr_asm:
pusha
call non_maskable_interrupt_isr
popa
iret
breakpoint_isr_asm:
pusha
call breakpoint_isr
popa
iret
overflow_isr_asm:
pusha
call overflow_isr
popa
iret
bound_range_exceeded_isr_asm:
pusha
call bound_range_exceeded_isr
popa
iret
invalid_opcode_isr_asm:
pusha
call invalid_opcode_isr
popa
iret
device_not_available_isr_asm:
pusha
call device_not_available_isr
popa
iret
double_fault_isr_asm:
pusha
call double_fault_isr
popa
iret
coprocessor_segment_overrun_isr_asm:
pusha
call coprocessor_segment_overrun_isr
popa
iret
invalid_tss_isr_asm:
pusha
call invalid_tss_isr
popa
iret
segment_not_present_isr_asm:
pusha
call segment_not_present_isr
popa
iret
stack_segment_fault_isr_asm:
pusha
call stack_segment_fault_isr
popa
iret
general_protection_fault_isr_asm:
pusha
call general_protection_fault_isr
popa
iret
page_fault_isr_asm:
pusha
call page_fault_isr
popa
iret
x87_float_exception_isr_asm:
pusha
call x87_float_exception_isr
popa
iret
alignment_check_isr_asm:
pusha
call alignment_check_isr
popa
iret
machine_check_isr_asm:
pusha
call machine_check_isr
popa
iret
simd_float_exception_isr_asm:
pusha
call simd_float_exception_isr
popa
iret
virtualization_exception_isr_asm:
pusha
call virtualization_exception_isr
popa
iret
security_exception_isr_asm:
pusha
call security_exception_isr
popa
iret
; Hardware IRQs (PIC1)
pit_isr_asm:
pusha
call pit_isr
popa
iret
ps2_keyboard_isr_asm:
pusha
call ps2_keyboard_isr
popa
iret
cascade_isr_asm:
pusha
call cascade_isr
popa
iret
com2_isr_asm:
pusha
call com2_isr
popa
iret
com1_isr_asm:
pusha
call com1_isr
popa
iret
lpt2_isr_asm:
pusha
call lpt2_isr
popa
iret
floppy_isr_asm:
pusha
call floppy_isr
popa
iret
lpt1_isr_asm:
pusha
call lpt1_isr
popa
iret
; Hardware IRQs (PIC2)
cmos_clock_isr_asm:
pusha
call cmos_clock_isr
popa
iret
legacy_scsi_isr_asm:
pusha
call legacy_scsi_isr
popa
iret
scsi2_isr_asm:
pusha
call scsi2_isr
popa
iret
scsi1_isr_asm:
pusha
call scsi1_isr
popa
iret
ps2_mouse_isr_asm:
pusha
call ps2_mouse_isr
popa
iret
fpu_isr_asm:
pusha
call fpu_isr
popa
iret
primary_ata_isr_asm:
pusha
call primary_ata_isr
popa
iret
secondary_ata_isr_asm:
pusha
call secondary_ata_isr
popa
iret
|
#include "../run.h"
void kernel_case2(float (&A)[16][8]) {} |
/* ---------------------------------------------------------------- *
Antti Jumpponen <kuumies@gmail.com>
The implementation of kuu::sunne::OpenGLGeometryRender class
* ---------------------------------------------------------------- */
#include "sunne_opengl_shading_render.h"
#include "sunne_opengl_planet.h"
#include "sunne_opengl_resources.h"
#include "sunne_opengl_satellite.h"
#include "../sunne_renderer_scene.h"
namespace kuu
{
namespace sunne
{
/* ---------------------------------------------------------------- *
* ---------------------------------------------------------------- */
struct OpenGLShadingRender::Impl
{
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
Impl(const glm::ivec2& size,
std::shared_ptr<OpenGLResources> resources,
OpenGLShadingRender* self)
: size(size)
, self(self)
, resources(resources)
{
createTexture();
createRenderbuffer();
createFramebuffer();
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
~Impl()
{
destroyFramebuffer();
destroyRenderbuffer();
destroyTexture();
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void createTexture()
{
glGenTextures(1, &self->tex);
glBindTexture(GL_TEXTURE_2D, self->tex);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexImage2D(GL_TEXTURE_2D, 0,
GL_RGBA16F, size.x, size.y, 0,
GL_RGBA, GL_FLOAT, nullptr);
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void destroyTexture()
{
glDeleteTextures(1, &self->tex);
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void createRenderbuffer()
{
glGenRenderbuffers(1, &rbo);
glBindRenderbuffer(GL_RENDERBUFFER, rbo);
glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24,
size.x, size.y);
glBindRenderbuffer(GL_RENDERBUFFER, 0);
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void destroyRenderbuffer()
{
glDeleteRenderbuffers(1, &rbo);
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void createFramebuffer()
{
glGenFramebuffers(1, &fbo);
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
glFramebufferTexture2D(GL_FRAMEBUFFER,
GL_COLOR_ATTACHMENT0,
GL_TEXTURE_2D,
self->tex,
0);
glFramebufferRenderbuffer(GL_FRAMEBUFFER,
GL_DEPTH_ATTACHMENT,
GL_RENDERBUFFER,
rbo);
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void destroyFramebuffer()
{
glDeleteFramebuffers(1, &fbo);
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void resize(const glm::ivec2& newSize)
{
size = newSize;
destroyTexture();
destroyRenderbuffer();
destroyFramebuffer();
createTexture();
createRenderbuffer();
createFramebuffer();
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void load(std::shared_ptr<RendererScene> scene)
{
//for (std::shared_ptr<RendererScene::Planet> planet : scene->planets)
// resources->openglPlanet(planet, size)->loadResources();
//resources->openglSatellite()->loadResources();
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
void draw(std::shared_ptr<RendererScene> scene)
{
const glm::mat4 view = scene->camera->viewMatrix();
const glm::mat4 projection = scene->camera->projectionMatrix();
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
glViewport(0, 0, size.x, size.y);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
resources->openglSatellite(scene->satellite)->draw(view, projection);
//for (std::shared_ptr<RendererScene::Planet> planet : scene->planets)
// resources->openglPlanet(planet, size)->draw(view, projection);
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
/* ------------------------------------------------------------ *
* ------------------------------------------------------------ */
glm::ivec2 size;
OpenGLShadingRender* self;
GLuint rbo = 0;
GLuint fbo = 0;
std::shared_ptr<OpenGLResources> resources;
};
/* ---------------------------------------------------------------- *
* ---------------------------------------------------------------- */
OpenGLShadingRender::OpenGLShadingRender(const glm::ivec2& size,
std::shared_ptr<OpenGLResources> resources)
: impl(std::make_shared<Impl>(size, resources, this))
{}
/* ---------------------------------------------------------------- *
* ---------------------------------------------------------------- */
void OpenGLShadingRender::resize(const glm::ivec2& size)
{ impl->resize(size); }
/* ---------------------------------------------------------------- *
* ---------------------------------------------------------------- */
void OpenGLShadingRender::load(std::shared_ptr<RendererScene> scene)
{ impl->load(scene); }
void OpenGLShadingRender::draw(std::shared_ptr<RendererScene> scene)
{ impl->draw(scene); }
} // namespace sunne
} // namespace kuu
|
; A186497: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f(i)=3i-2 and g(j)=j-th triangular number. Complement of A186498.
; 1,4,6,7,9,11,12,14,15,16,18,19,21,22,23,25,26,27,28,30,31,32,34,35,36,37,39,40,41,42,43,45,46,47,48,50,51,52,53,54,56,57,58,59,60,61,63,64,65,66,67,69,70,71,72,73,74,76,77,78,79,80,81,82,84,85,86,87,88,89,91,92,93,94,95,96,97,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,116,117,118,119,120,121,122,123,125,126,127,128,129,130,131,132,133,135,136,137,138,139,140,141,142,144,145,146
mov $1,$0
mov $2,2
add $2,$0
mul $0,2
sub $2,1
add $0,$2
lpb $0,1
sub $0,1
add $1,1
mov $3,$1
sub $3,$2
trn $0,$3
lpe
|
; A186298: A007520(n)-2.
; Submitted by Christian Krause
; 1,9,17,41,57,65,81,105,129,137,161,177,209,225,249,281,305,329,345,377,417,441,465,489,497,521,545,561,569,585,617,641,657,681,689,737,785,809,825,857,881,905,945,969,1017,1049,1089,1121,1161,1169,1185
mov $1,10
mov $2,$0
pow $2,2
lpb $2
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,8
mov $4,$0
max $4,1
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,9
|
/*
(c) 2014 Glen Joseph Fernandes
<glenjofe -at- gmail.com>
Distributed under the Boost Software
License, Version 1.0.
http://boost.org/LICENSE_1_0.txt
*/
#ifndef BOOST_ALIGN_DETAIL_ALIGNMENT_OF_GCC_HPP
#define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_GCC_HPP
#include <boost/align/detail/integral_constant.hpp>
#include <cstddef>
namespace boost {
namespace alignment {
namespace detail {
template<class T>
struct alignment_of
: integral_constant<std::size_t, __alignof__(T)> {
};
} /* .detail */
} /* .alignment */
} /* .boost */
#endif
|
/* ************************************************************************
* Copyright 2018-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "bytes.hpp"
#include "cblas_interface.hpp"
#include "flops.hpp"
#include "near.hpp"
#include "norm.hpp"
#include "rocblas.hpp"
#include "rocblas_init.hpp"
#include "rocblas_math.hpp"
#include "rocblas_random.hpp"
#include "rocblas_test.hpp"
#include "rocblas_vector.hpp"
#include "unit.hpp"
#include "utility.hpp"
template <typename T>
void testing_hpr_strided_batched_bad_arg(const Arguments& arg)
{
const bool FORTRAN = arg.fortran;
auto rocblas_hpr_strided_batched_fn
= FORTRAN ? rocblas_hpr_strided_batched<T, true> : rocblas_hpr_strided_batched<T, false>;
rocblas_fill uplo = rocblas_fill_upper;
rocblas_int N = 10;
rocblas_int incx = 1;
real_t<T> alpha = 0.6;
rocblas_int batch_count = 5;
rocblas_stride stride_x = 100;
rocblas_stride stride_A = 100;
rocblas_local_handle handle(arg.atomics_mode);
size_t size_A = size_t(N) * (N + 1) / 2;
// allocate memory on device
device_strided_batch_vector<T> dA_1(size_A, 1, stride_A, batch_count);
device_strided_batch_vector<T> dx(N, incx, stride_x, batch_count);
CHECK_DEVICE_ALLOCATION(dA_1.memcheck());
CHECK_DEVICE_ALLOCATION(dx.memcheck());
EXPECT_ROCBLAS_STATUS(
rocblas_hpr_strided_batched_fn(
handle, rocblas_fill_full, N, &alpha, dx, incx, stride_x, dA_1, stride_A, batch_count),
rocblas_status_invalid_value);
EXPECT_ROCBLAS_STATUS(
rocblas_hpr_strided_batched_fn(
handle, uplo, N, &alpha, nullptr, incx, stride_x, dA_1, stride_A, batch_count),
rocblas_status_invalid_pointer);
EXPECT_ROCBLAS_STATUS(
rocblas_hpr_strided_batched_fn(
handle, uplo, N, &alpha, dx, incx, stride_x, nullptr, stride_A, batch_count),
rocblas_status_invalid_pointer);
EXPECT_ROCBLAS_STATUS(
rocblas_hpr_strided_batched_fn(
nullptr, uplo, N, &alpha, dx, incx, stride_x, dA_1, stride_A, batch_count),
rocblas_status_invalid_handle);
}
template <typename T>
void testing_hpr_strided_batched(const Arguments& arg)
{
const bool FORTRAN = arg.fortran;
auto rocblas_hpr_strided_batched_fn
= FORTRAN ? rocblas_hpr_strided_batched<T, true> : rocblas_hpr_strided_batched<T, false>;
rocblas_int N = arg.N;
rocblas_int incx = arg.incx;
real_t<T> h_alpha = arg.get_alpha<real_t<T>>();
rocblas_fill uplo = char2rocblas_fill(arg.uplo);
rocblas_stride stride_x = arg.stride_x;
rocblas_stride stride_A = arg.stride_a;
rocblas_int batch_count = arg.batch_count;
rocblas_local_handle handle(arg.atomics_mode);
// argument check before allocating invalid memory
bool invalid_size = N < 0 || !incx || batch_count < 0;
if(invalid_size || !N || !batch_count)
{
EXPECT_ROCBLAS_STATUS(
rocblas_hpr_strided_batched_fn(
handle, uplo, N, nullptr, nullptr, incx, stride_x, nullptr, stride_A, batch_count),
invalid_size ? rocblas_status_invalid_size : rocblas_status_success);
return;
}
size_t abs_incx = incx >= 0 ? incx : -incx;
size_t size_A = size_t(N) * (N + 1) / 2;
// Naming: dK is in GPU (device) memory. hK is in CPU (host) memory
host_strided_batch_vector<T> hA_1(size_A, 1, stride_A, batch_count);
host_strided_batch_vector<T> hA_2(size_A, 1, stride_A, batch_count);
host_strided_batch_vector<T> hA_gold(size_A, 1, stride_A, batch_count);
host_strided_batch_vector<T> hx(N, incx, stride_x, batch_count);
host_vector<real_t<T>> halpha(1);
CHECK_HIP_ERROR(hA_1.memcheck());
CHECK_HIP_ERROR(hA_2.memcheck());
CHECK_HIP_ERROR(hA_gold.memcheck());
CHECK_HIP_ERROR(hx.memcheck());
CHECK_HIP_ERROR(halpha.memcheck());
halpha[0] = h_alpha;
// allocate memory on device
device_strided_batch_vector<T> dA_1(size_A, 1, stride_A, batch_count);
device_strided_batch_vector<T> dA_2(size_A, 1, stride_A, batch_count);
device_strided_batch_vector<T> dx(N, incx, stride_x, batch_count);
device_vector<real_t<T>> d_alpha(1);
CHECK_DEVICE_ALLOCATION(dA_1.memcheck());
CHECK_DEVICE_ALLOCATION(dA_2.memcheck());
CHECK_DEVICE_ALLOCATION(dx.memcheck());
CHECK_DEVICE_ALLOCATION(d_alpha.memcheck());
double gpu_time_used, cpu_time_used;
double rocblas_gflops, cblas_gflops, rocblas_bandwidth;
double rocblas_error_1;
double rocblas_error_2;
// Initial Data on CPU
rocblas_init<T>(hA_1, true);
rocblas_init<T>(hx, false);
hA_2.copy_from(hA_1);
hA_gold.copy_from(hA_1);
// copy data from CPU to device
CHECK_HIP_ERROR(dA_1.transfer_from(hA_1));
CHECK_HIP_ERROR(dA_2.transfer_from(hA_1));
CHECK_HIP_ERROR(dx.transfer_from(hx));
CHECK_HIP_ERROR(d_alpha.transfer_from(halpha));
if(arg.unit_check || arg.norm_check)
{
CHECK_ROCBLAS_ERROR(rocblas_set_pointer_mode(handle, rocblas_pointer_mode_host));
CHECK_ROCBLAS_ERROR(rocblas_hpr_strided_batched_fn(
handle, uplo, N, &h_alpha, dx, incx, stride_x, dA_1, stride_A, batch_count));
CHECK_ROCBLAS_ERROR(rocblas_set_pointer_mode(handle, rocblas_pointer_mode_device));
CHECK_ROCBLAS_ERROR(rocblas_hpr_strided_batched_fn(
handle, uplo, N, d_alpha, dx, incx, stride_x, dA_2, stride_A, batch_count));
// copy output from device to CPU
CHECK_HIP_ERROR(hA_1.transfer_from(dA_1));
CHECK_HIP_ERROR(hA_2.transfer_from(dA_2));
// CPU BLAS
cpu_time_used = get_time_us_no_sync();
for(int i = 0; i < batch_count; i++)
{
cblas_hpr<T>(uplo, N, h_alpha, hx[i], incx, hA_gold[i]);
}
cpu_time_used = get_time_us_no_sync() - cpu_time_used;
cblas_gflops = batch_count * hpr_gflop_count<T>(N) / cpu_time_used * 1e6;
if(arg.unit_check)
{
const double tol = N * sum_error_tolerance<T>;
near_check_general<T>(1, size_A, 1, stride_A, hA_gold, hA_1, batch_count, tol);
near_check_general<T>(1, size_A, 1, stride_A, hA_gold, hA_2, batch_count, tol);
}
if(arg.norm_check)
{
rocblas_error_1
= norm_check_general<T>('F', 1, size_A, 1, stride_A, hA_gold, hA_1, batch_count);
rocblas_error_2
= norm_check_general<T>('F', 1, size_A, 1, stride_A, hA_gold, hA_2, batch_count);
}
}
if(arg.timing)
{
int number_cold_calls = arg.cold_iters;
int number_hot_calls = arg.iters;
CHECK_ROCBLAS_ERROR(rocblas_set_pointer_mode(handle, rocblas_pointer_mode_host));
for(int iter = 0; iter < number_cold_calls; iter++)
{
rocblas_hpr_strided_batched_fn(
handle, uplo, N, &h_alpha, dx, incx, stride_x, dA_1, stride_A, batch_count);
}
hipStream_t stream;
CHECK_ROCBLAS_ERROR(rocblas_get_stream(handle, &stream));
gpu_time_used = get_time_us_sync(stream); // in microseconds
for(int iter = 0; iter < number_hot_calls; iter++)
{
rocblas_hpr_strided_batched_fn(
handle, uplo, N, &h_alpha, dx, incx, stride_x, dA_1, stride_A, batch_count);
}
gpu_time_used = (get_time_us_sync(stream) - gpu_time_used) / number_hot_calls;
rocblas_gflops = batch_count * hpr_gflop_count<T>(N) / gpu_time_used * 1e6;
rocblas_bandwidth = batch_count * hpr_gbyte_count<T>(N) / gpu_time_used * 1e6;
// only norm_check return an norm error, unit check won't return anything
rocblas_cout << "N,alpha,incx,stride_x,stride_A,batch_count,rocblas-Gflops,rocblas-GB/s";
if(arg.norm_check)
rocblas_cout << ",CPU-Gflops,norm_error_host_ptr,norm_error_dev_ptr";
rocblas_cout << std::endl;
rocblas_cout << N << "," << h_alpha << "," << incx << "," << stride_x << "," << stride_A
<< "," << batch_count << "," << rocblas_gflops << "," << rocblas_bandwidth;
if(arg.norm_check)
rocblas_cout << "," << cblas_gflops << "," << rocblas_error_1 << "," << rocblas_error_2;
rocblas_cout << std::endl;
}
}
|
#include "ResourceSupportVector.hpp"
#include <math.h>
#include <sstream>
#include <base-logging/Logging.hpp>
#include <moreorg/OrganizationModelAsk.hpp>
namespace moreorg {
namespace algebra {
std::map<SupportType, std::string> SupportTypeTxt = {
{NO_SUPPORT, "no support"},
{PARTIAL_SUPPORT, "partial support"},
{FULL_SUPPORT, "full support"},
}
;
ResourceSupportVector::ResourceSupportVector()
: mSizes()
, mLabels(0)
{}
ResourceSupportVector::ResourceSupportVector(const base::VectorXd& sizes,
const owlapi::model::IRIList& labels)
: mSizes(sizes)
, mLabels(labels)
{}
ResourceSupportVector ResourceSupportVector::intersection(const ResourceSupportVector& a, const ResourceSupportVector& b)
{
checkDimensions(a,b);
uint32_t maxDimension = a.getNumberOfDimensions();
base::VectorXd intersectionAB(maxDimension);
for(uint32_t dim = 0; dim < maxDimension; ++dim)
{
intersectionAB(dim) = std::min(a(dim), b(dim));
}
return ResourceSupportVector( intersectionAB );
}
bool ResourceSupportVector::contains(const ResourceSupportVector& other) const
{
checkDimensions(*this, other);
uint32_t maxDimension = other.getNumberOfDimensions();
for(uint32_t dim = 0; dim < maxDimension; ++dim)
{
if((*this)(dim) >= other(dim))
{
continue;
} else {
return false;
}
}
return true;
}
bool ResourceSupportVector::fullSupportFrom(const ResourceSupportVector& other) const
{
return other.contains(*this);
}
bool ResourceSupportVector::partialSupportFrom(const ResourceSupportVector& other) const
{
return other.mSizes.dot(mSizes) != 0;
}
ResourceSupportVector ResourceSupportVector::operator*(double factor) const
{
ResourceSupportVector scaledVector = *this;
scaledVector.mSizes *= factor;
return scaledVector;
}
ResourceSupportVector ResourceSupportVector::operator+(const ResourceSupportVector& other) const
{
ResourceSupportVector summedVector = *this;
summedVector += other;
return summedVector;
}
ResourceSupportVector& ResourceSupportVector::operator+=(const ResourceSupportVector& other)
{
if(other.mSizes.norm() == 0)
{
return *this;
}
if(other.mLabels != this->mLabels)
{
throw std::invalid_argument("organization_mode::algebra::ResourceSupportVector::operator+"
" cannot sum vectors since labels differ: '" +
owlapi::model::IRI::toString(mLabels) + "' vs '" +
owlapi::model::IRI::toString(other.mLabels) + "'");
}
mSizes += other.mSizes;
return *this;
}
SupportType ResourceSupportVector::getSupportFrom(const ResourceSupportVector& other,
const OrganizationModelAsk& ask) const
{
ResourceSupportVector a = this->embedClassRelationship(ask);
ResourceSupportVector b = other.embedClassRelationship(ask);
if(a.fullSupportFrom(b))
{
return FULL_SUPPORT;
} else if(a.partialSupportFrom(b))
{
return PARTIAL_SUPPORT;
} else {
return NO_SUPPORT;
}
}
ResourceSupportVector ResourceSupportVector::getRatios(const ResourceSupportVector& other) const
{
assert(other.size() != 0);
uint32_t maxDimensions = other.size();
ResourceSupportVector ratio( base::VectorXd::Zero(maxDimensions), mLabels);
for(uint32_t dim = 0; dim < maxDimensions; ++dim)
{
double otherDim = other(dim);
if(std::abs(otherDim) < 1E-05)
{
ratio(dim) = std::numeric_limits<double>::quiet_NaN();
} else {
ratio(dim) = mSizes(dim) / otherDim;
}
}
return ratio;
}
ResourceSupportVector ResourceSupportVector::missingSupportFrom(const ResourceSupportVector& other) const
{
base::VectorXd delta = other.mSizes - mSizes;
uint32_t maxDimensions = delta.size();
for(uint32_t dim = 0; dim < maxDimensions; ++dim)
{
double support = delta(dim);
if( support < 0)
{
delta(dim) = std::abs(support);
} else {
delta(dim) = 0;
}
}
return delta;
}
std::string ResourceSupportVector::toString(uint32_t indent) const
{
std::stringstream ss;
std::string hspace(indent,' ');
ss << hspace << "ResourceSupportVector: " << std::endl;
for(size_t i = 0; i < mLabels.size(); ++i)
{
if(mSizes.size() > static_cast<int>(i) )
{
ss << hspace << " " << mLabels[i] << ": " << mSizes(i) << std::endl;
} else {
ss << hspace << " " << mLabels[i] << ": n/a" << std::endl;
}
}
return ss.str();
}
ResourceSupportVector ResourceSupportVector::embedClassRelationship(const OrganizationModelAsk& ask) const
{
using namespace owlapi::model;
ResourceSupportVector supportVector = *this;
uint32_t max = supportVector.size();
std::vector<IRI> labels = supportVector.getLabels();
for(uint32_t i = 0; i < max; ++i)
{
IRI i_model = labels[i];
for(uint32_t a = i+1; a < max; ++a)
{
IRI a_model = labels[a];
if(ask.ontology().isSubClassOf(i_model, a_model))
{
supportVector(a) += supportVector(i);
} else if(ask.ontology().isSubClassOf(a_model, i_model))
{
supportVector(i) += supportVector(a);
}
}
}
return supportVector;
}
void ResourceSupportVector::checkDimensions(const ResourceSupportVector& a, const ResourceSupportVector& b)
{
if(a.getNumberOfDimensions() != b.getNumberOfDimensions())
{
LOG_WARN_S << "moreorg::algebra::ResourceSupportVector::intersection "
<< " cannot compute intersection since number of dimensions differ: "
<< a.toString() << " vs. "
<< b.toString();
throw std::invalid_argument("moreorg::algebra::ResourceSupportVector::intersection \
cannot compute intersection since number of dimensions differ: " + a.toString() + " vs. "
+ b.toString());
}
}
bool ResourceSupportVector::isNonNegative(const ResourceSupportVector& a)
{
uint32_t maxDim = a.getNumberOfDimensions();
for(uint32_t dim = 0; dim < maxDim; ++dim)
{
if(a(dim) < 0)
{
return false;
}
}
return true;
}
} // end namespace algebra
} // end namespace moreorg
|
#include <chrono>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <unistd.h>
#include <signal.h>
#include <cstdio>
#include <fcntl.h>
#include <string>
#include <stdio.h>
#include <termios.h>
#include <mutex>
#include <thread>
#include <boost/asio.hpp>
#include <boost/filesystem.hpp>
#include "protocol/protocol.hpp"
#include "protocol/messages.hpp"
#include "protocol/decoder.hpp"
#include "reader.hpp"
int pipe_gps;
int pipe_instrument;
int armed;
int armed_count;
std::ofstream fileout;
//Uses ANSI color codes to change the terminal colors based on system state
void update_color() {
//Pre-arm, flashing red
if (armed == 1) {
if (armed_count > 60)
armed_count = 0;
else if (armed_count > 30)
printf("\033[1;37;41m");
else
printf("\033[0m");
armed_count++;
}
//Armed, solid red
else if (armed == 2) {
printf("\033[1;37;41m");
}
//Flight, solid blue
else if (armed == 3) {
printf("\033[1;37;44m");
}
//Apogee, flashing blue
else if (armed == 4) {
if (armed_count > 60)
armed_count = 0;
else if (armed_count > 30)
printf("\033[1;37;44m");
else
printf("\033[0m");
armed_count++;
}
//Zero-g, flashing multicolored
else if (armed == 5) {
if (armed_count > 120)
armed_count = 0;
else if (armed_count > 100)
printf("\033[1;37;45m");
else if (armed_count > 80)
printf("\033[1;37;44m");
else if (armed_count > 60)
printf("\033[1;37;46m");
else if (armed_count > 40)
printf("\033[1;37;42m");
else if (armed_count > 20)
printf("\033[1;37;43m");
else
printf("\033[1;37;41m");
armed_count++;
}
//Descent, solid magenta
else if (armed == 6) {
printf("\033[1;37;45m");
}
//Recovery, flashing magenta
else if (armed == 7) {
if (armed_count > 60)
armed_count = 0;
else if (armed_count > 30)
printf("\033[1;37;45m");
else
printf("\033[0m");
armed_count++;
}
else
printf("\033[0m");
}
/*
* Cases for handling each message type received through the serial port.
*
* All messages are output to the fileout, some messages are currently not being printed to STDOUT. Additionally, some messages are piped to other parts of the program, using linux named pipes.
*
* If new messages are added to the protocol, a matching case must be added here.
*/
template <std::size_t buffer_size>
void handle(const protocol::decoded_message_t<buffer_size>& decoded) {
switch(decoded.id) {
case protocol::message::heartbeat_message_t::ID: {
break;
}
case protocol::message::log_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::log_message_t&>(decoded.payload);
std::cout << "<log>: " << message.data << std::endl;
fileout << message.time << " <log>: " << message.data << std::endl;
update_color();
break;
}
case protocol::message::attitude_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::attitude_message_t&>(decoded.payload);
std::ostringstream os;
os << "attitude,";
std::cout << "<attitude>: ";
fileout << message.time << " <attitude>: ";
for (int i = 0; i < 9; i++) {
std::cout<<std::fixed<<std::setprecision(3)<<message.dcm[i]<<" ";
fileout << std::fixed<<std::setprecision(3)<<message.dcm[i]<<" ";
os << message.dcm[i];
if (i != 8)
os << ",";
}
std::cout << std::endl;
fileout << std::endl;
os << std::endl;
update_color();
if (pipe_instrument != -1) {
const char* line = os.str().c_str();
write(pipe_instrument, line, strlen(line));
}
break;
}
case protocol::message::motor_throttle_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::motor_throttle_message_t&>(decoded.payload);
//std::cout << "<throttle>: ";
fileout << message.time << " <throttle>: ";
for(int i = 0; i < 4; i++) {
//std::cout << std::fixed << std::setprecision(2) << message.throttles[i] << " ";
fileout << std::fixed << std::setprecision(2) << message.throttles[i] << " ";
}
//std::cout << std::endl;
fileout << std::endl;
//update_color();
break;
}
case protocol::message::location_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::location_message_t&>(decoded.payload);
std::cout << "<location>: ";
fileout << message.time << " <location>: ";
std::cout << std::fixed << std::setprecision(6) << message.lat << ", " << message.lon << ", " << message.alt << std::endl;
fileout << std::fixed << std::setprecision(6) << message.lat << ", " << message.lon << ", " << message.alt << std::endl;
std::ostringstream os;
std::ostringstream os2;
os << message.lat << "," << message.lon << "," << message.alt<< "\n";
os2 << "altitude," << message.alt << "," << message.time << "\n";
const char* line = os.str().c_str();
const char* line2 = os2.str().c_str();
write(pipe_gps, line, strlen(line));
//update_color();
if (pipe_instrument != -1)
write(pipe_instrument, line2, strlen(line2));
break;
}
case protocol::message::system_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::system_message_t&>(decoded.payload);
std::cout << "<system>: " << +message.state << ", " << std::fixed << std::setprecision(3) << message.motorDC << std::endl;
fileout << message.time << " <system>: " << +message.state << ", " << std::fixed << std::setprecision(3) << message.motorDC << std::endl;
if (armed != (int)message.state) {
armed = (int)message.state;
armed_count = 0;
}
update_color();
break;
}
case protocol::message::sensor_calibration_response_message_t::ID: {
//auto message = reinterpret_cast<const protocol::message::sensor_calibration_response_message_t&>(decoded.payload);
//std::cout << "<calibration>: <accel>: " << "<gyro>: " << "<mag>: " << std::endl;
//fileout << message.time << " <calibration>: <accel>: " << "<gyro>: " << "<mag>: " << std::endl;
break;
}
case protocol::message::raw_1000_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::raw_1000_message_t&>(decoded.payload);
std::cout << "<1000>: <accel>: " << std::fixed << std::setprecision(3) << message.accel[0] << " " << message.accel[1] << " " << message.accel[2];
fileout << message.time << " <1000>: <accel>: " << std::fixed << std::setprecision(3) << message.accel[0] << " " << message.accel[1] << " " << message.accel[2];
std::cout << " <accelH>: " << message.accelH[0] << " " << message.accelH[1] << " " << message.accelH[2];
fileout << " <accelH>: " << message.accelH[0] << " " << message.accelH[1] << " " << message.accelH[2];
std::cout << " <gyro>: " << message.gyro[0] << " " << message.gyro[1] << " " << message.gyro[2] << std::endl;
fileout << " <gyro>: " << message.gyro[0] << " " << message.gyro[1] << " " << message.gyro[2] << std::endl;
update_color();
break;
}
case protocol::message::raw_50_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::raw_50_message_t&>(decoded.payload);
std::cout << "<temp>: " << message.temp << " <bar>: " << message.bar << std::endl;
fileout << message.time << " <temp>: " << message.temp << " <bar>: " << message.bar << std::endl;
std::ostringstream os;
os << "pressure," << message.bar << "\n";
const char* line = os.str().c_str();
if (pipe_instrument != -1)
write(pipe_instrument, line, strlen(line));
update_color();
break;
}
case protocol::message::raw_10_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::raw_10_message_t&>(decoded.payload);
std::cout << "<10>: <gps valid>: " << message.gps_valid << " <geiger>: " << message.geigerCount << std::endl;
fileout << message.time << "<10>: <gps valid>: " << message.gps_valid << " <geiger>: " << message.geigerCount << std::endl;
update_color();
break;
}
case protocol::message::fs_info_message_t::ID: {
auto message = reinterpret_cast<const protocol::message::fs_info_message_t&>(decoded.payload);
std::cout << " <filesystem>: Logging to " << +message.fname<< ", logged " << +message.fsize<< " bytes" << std::endl;
fileout << message.time << " <filesystem>: Logging to " << +message.fname<< ", logged " << +message.fsize<< " bytes" << std::endl;
update_color();
break;
}
default:
//std::cout << "<UNKNOWN>: " << std::hex << decoded.id << std::dec << std::endl;
//fileout << "<UNKNOWN>: " << std::hex << decoded.id << std::dec << std::endl;
break;
}
}
/*
* Nonblocking check if keyboard input happened.
* Used to check for arm/disarm keyboard commands.
*/
int kbhit(void) {
struct termios oldt, newt;
int ch;
int oldf;
tcgetattr(STDIN_FILENO, &oldt);
newt = oldt;
newt.c_lflag &= ~(ICANON | ECHO);
tcsetattr(STDIN_FILENO, F_GETFL, 0);
oldf = fcntl(STDIN_FILENO, F_GETFL, 0);
fcntl(STDIN_FILENO, F_SETFL, oldf | O_NONBLOCK);
ch = getchar();
tcsetattr(STDIN_FILENO, TCSANOW, &oldt);
fcntl(STDIN_FILENO, F_SETFL, oldf);
if (ch != EOF) {
ungetc(ch, stdin);
return 1;
}
return 0;
}
int main(int argc, char **argv) {
if(argc < 2) {
std::cerr << "Usage: " << argv[0] << " <ttyUSB>" << std::endl;
return EXIT_FAILURE;
}
//Assumes first serial device connected is payload, second is avionics
std::string pre = "";
if (strcmp(argv[1], "/dev/ttyUSB0") != 0) {
pre = "avionics";
if (!boost::filesystem::exists("/tmp/rocket_avionics"))
pipe_gps = open("/tmp/rocket_avionics", O_WRONLY|O_NONBLOCK);
else
pipe_gps = open("/tmp/rocket_avionics", O_WRONLY|O_NONBLOCK|O_CREAT);
pipe_instrument = -1;
}
else {
pre = "payload";
if (!boost::filesystem::exists("/tmp/rocket_payload"))
pipe_gps = open("/tmp/rocket_payload", O_WRONLY|O_NONBLOCK);
else
pipe_gps = open("/tmp/rocket_payload", O_WRONLY|O_NONBLOCK|O_CREAT);
if (!boost::filesystem::exists("/tmp/rocket_instrument"))
pipe_instrument = open("/tmp/rocket_instrument", O_WRONLY|O_NONBLOCK);
else
pipe_instrument = open("/tmp/rocket_instrument",O_WRONLY|O_NONBLOCK|O_CREAT);
}
//Create new numbered log file
int i = 0;
while (true) {
std::ostringstream fo;
fo << "./logs/" << pre << i << ".txt";
if (boost::filesystem::exists(fo.str()))
i++;
else {
std::cout << "opened file: " << fo.str() << "\n";
fileout.open(fo.str());
break;
}
}
//Setup serial ports
boost::asio::io_service io;
boost::asio::serial_port port(io, argv[1]);
port.set_option(boost::asio::serial_port_base::baud_rate(38400));
protocol::Decoder decoder;
//Setup arm and disarm messages
protocol::Encoder encoder;
std::mutex write_msg_mutex;
std::array<std::uint8_t, 255> buffer_out;
armed = 0;
armed_count = 0;
protocol::message::set_arm_state_message_t armMsg {
.armed = true
};
protocol::message::set_arm_state_message_t disarmMsg {
.armed = false
};
while(true) {
char buffer[1];
boost::asio::read(port, boost::asio::buffer(buffer));
if (kbhit()) {
std::string temp;
std::cin >> temp;
if (temp.compare("arm") == 0) {
std::cout << "ARMING ROCKET" << std::endl;
std::uint16_t len = encoder.encode(armMsg, &buffer_out);
boost::asio::write(port, boost::asio::buffer(buffer_out.data(), len));
}
else if (temp.compare("d") == 0) {
std::cout << "DISARMING ROCKET" << std::endl;
std::uint16_t len = encoder.encode(disarmMsg, &buffer_out);
boost::asio::write(port, boost::asio::buffer(buffer_out.data(), len));
}
std::cin.clear();
std::cin.ignore(INT_MAX, '\n');
}
protocol::decoded_message_t<255> decoded;
if(decoder.process(buffer[0], &decoded)) {
handle(decoded);
}
}
}
|
#ifndef ENGINE_H
#define ENGINE_H
#include <memory>
#include <stack>
#include <SFML/Graphics/RenderWindow.hpp>
#include "game.hpp"
#include "../states/gameState.hpp"
#include "../states/intro/stateIntroSFML.hpp"
class Engine {
private:
Game game;
std::stack< std::unique_ptr< GameState > > states;
void changeState( std::unique_ptr< GameState > state );
void gameLoop();
void popState();
void pushInitialState();
void pushState( std::unique_ptr< GameState > state );
public:
Engine();
virtual ~Engine();
void startGame();
};
#endif // GAME_H
|
; A020937: Greatest k such that (k-th prime) < (7 times n-th prime).
; Submitted by Jamie Morken(s3)
; 6,8,11,15,21,24,30,32,37,46,47,55,61,62,66,73,80,82,91,94,97,101,106,114,123,126,128,132,135,138,154,156,162,164,175,177,184,189,192,197,204,205,217,217,220,221,233,246,250,252,258,263,263,273,278,282,289
mul $0,2
max $0,1
seq $0,173919 ; Numbers that are prime or one less than a prime.
mul $0,7
seq $0,230980 ; Number of primes <= n, starting at n=0.
|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkProp3DButtonRepresentation.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#include "vtkPickingManager.h"
#include "vtkProp3DButtonRepresentation.h"
#include "vtkProp3D.h"
#include "vtkPropPicker.h"
#include "vtkProp3DFollower.h"
#include "vtkRenderer.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkAssemblyPath.h"
#include "vtkInteractorObserver.h"
#include "vtkCoordinate.h"
#include "vtkRenderWindow.h"
#include "vtkCamera.h"
#include "vtkObjectFactory.h"
#include "vtkSmartPointer.h"
#include "vtkMath.h"
#include <map>
vtkStandardNewMacro(vtkProp3DButtonRepresentation);
struct vtkScaledProp
{
vtkSmartPointer<vtkProp3D> Prop;
double Origin[3];
double Scale;
double Translation[3];
vtkScaledProp()
{
this->Origin[0] = this->Origin[1] = this->Origin[2] = 0.0;
this->Scale = 1.0;
this->Translation[0] = this->Translation[1] = this->Translation[2] = 0.0;
}
};
// Map of textures
class vtkPropArray : public std::map<int,vtkScaledProp> {};
typedef std::map<int,vtkScaledProp>::iterator vtkPropArrayIterator;
//----------------------------------------------------------------------
vtkProp3DButtonRepresentation::vtkProp3DButtonRepresentation()
{
// Current button representation
this->CurrentProp = nullptr;
// Following
this->FollowCamera = 0;
this->Follower = vtkProp3DFollower::New();
// List of textures
this->PropArray = new vtkPropArray;
this->Picker = vtkPropPicker::New();
this->Picker->PickFromListOn();
}
//----------------------------------------------------------------------
vtkProp3DButtonRepresentation::~vtkProp3DButtonRepresentation()
{
this->Follower->Delete();
delete this->PropArray;
this->Picker->Delete();
}
//-------------------------------------------------------------------------
void vtkProp3DButtonRepresentation::SetState(int state)
{
this->Superclass::SetState(state);
this->CurrentProp = this->GetButtonProp(this->State);
this->Follower->SetProp3D(this->CurrentProp);
this->Picker->InitializePickList();
if ( this->CurrentProp )
{
this->Picker->AddPickList(this->CurrentProp);
}
}
//-------------------------------------------------------------------------
void vtkProp3DButtonRepresentation::
SetButtonProp(int i, vtkProp3D *prop)
{
if ( i < 0 )
{
i = 0;
}
if ( i >= this->NumberOfStates )
{
i = this->NumberOfStates - 1;
}
vtkScaledProp sprop;
sprop.Prop = prop;
(*this->PropArray)[i] = sprop;
}
//-------------------------------------------------------------------------
vtkProp3D *vtkProp3DButtonRepresentation::
GetButtonProp(int i)
{
if ( i < 0 )
{
i = 0;
}
if ( i >= this->NumberOfStates )
{
i = this->NumberOfStates - 1;
}
vtkPropArrayIterator iter = this->PropArray->find(i);
if ( iter != this->PropArray->end() )
{
return (*iter).second.Prop;
}
else
{
return nullptr;
}
}
//------------------------------------------------------------------------------
void vtkProp3DButtonRepresentation::RegisterPickers()
{
vtkPickingManager* pm = this->GetPickingManager();
if (!pm)
{
return;
}
pm->AddPicker(this->Picker, this);
}
//-------------------------------------------------------------------------
void vtkProp3DButtonRepresentation::PlaceWidget(double bds[6])
{
double bounds[6], center[3], aBds[6], aCenter[3];
this->AdjustBounds(bds, bounds, center);
for (int i=0; i<6; i++)
{
this->InitialBounds[i] = bounds[i];
}
this->InitialLength = sqrt((bounds[1]-bounds[0])*(bounds[1]-bounds[0]) +
(bounds[3]-bounds[2])*(bounds[3]-bounds[2]) +
(bounds[5]-bounds[4])*(bounds[5]-bounds[4]));
this->SetState(this->State);
vtkProp3D *prop;
vtkPropArrayIterator iter;
for ( iter=this->PropArray->begin(); iter != this->PropArray->end(); ++iter )
{
prop = (*iter).second.Prop;
prop->GetBounds(aBds);
aCenter[0] = (aBds[0]+aBds[1]) / 2.0;
aCenter[1] = (aBds[2]+aBds[3]) / 2.0;
aCenter[2] = (aBds[4]+aBds[5]) / 2.0;
// Now fit the actor bounds in the place bounds by tampering with its
// transform.
(*iter).second.Origin[0] = aCenter[0];
(*iter).second.Origin[1] = aCenter[1];
(*iter).second.Origin[2] = aCenter[2];
(*iter).second.Translation[0] = center[0]-aCenter[0];
(*iter).second.Translation[1] = center[1]-aCenter[1];
(*iter).second.Translation[2] = center[2]-aCenter[2];
double s[3], sMin;
for (int i=0; i < 3; ++i)
{
if ( (bounds[2*i+1]-bounds[2*i]) <= 0.0 || (aBds[2*i+1]-aBds[2*i]) <= 0.0 )
{
s[i] = VTK_FLOAT_MAX;
}
else
{
s[i] = (bounds[2*i+1]-bounds[2*i]) / (aBds[2*i+1]-aBds[2*i]);
}
}
sMin = (s[0]<s[1] ? (s[0]<s[2] ? s[0] : s[2]) : (s[1]<s[2] ? s[1] : s[2]) );
(*iter).second.Scale = sMin;
}
}
//-------------------------------------------------------------------------
int vtkProp3DButtonRepresentation
::ComputeInteractionState(int X, int Y, int vtkNotUsed(modify))
{
this->InteractionState = vtkButtonRepresentation::Outside;
if (!this->Renderer ||
!this->Renderer->GetRenderWindow()->GetMapped())
{
return this->InteractionState;
}
this->VisibilityOn(); //actor must be on to be picked
vtkAssemblyPath* path = this->GetAssemblyPath(X, Y, 0., this->Picker);
if ( path != nullptr )
{
this->InteractionState = vtkButtonRepresentation::Inside;
}
return this->InteractionState;
}
//----------------------------------------------------------------------
void vtkProp3DButtonRepresentation::BuildRepresentation()
{
// The net effect is to resize the handle
if ( this->GetMTime() > this->BuildTime ||
(this->Renderer && this->Renderer->GetVTKWindow() &&
this->Renderer->GetVTKWindow()->GetMTime() > this->BuildTime) )
{
this->SetState(this->State); //side effect sets CurrentProp
vtkPropArrayIterator iter = this->PropArray->find(this->State);
if ( this->CurrentProp == nullptr || iter == this->PropArray->end() )
{
return;
}
// In case follower is being used
if ( this->FollowCamera )
{
this->Follower->SetCamera(this->Renderer->GetActiveCamera());
this->Follower->SetProp3D(this->CurrentProp);
this->Follower->SetOrigin((*iter).second.Origin);
this->Follower->SetPosition((*iter).second.Translation);
this->Follower->SetScale((*iter).second.Scale);
}
else
{
this->CurrentProp->SetOrigin((*iter).second.Origin);
this->CurrentProp->SetPosition((*iter).second.Translation);
this->CurrentProp->SetScale((*iter).second.Scale);
}
this->BuildTime.Modified();
}
}
//----------------------------------------------------------------------
void vtkProp3DButtonRepresentation::ShallowCopy(vtkProp *prop)
{
vtkProp3DButtonRepresentation *rep =
vtkProp3DButtonRepresentation::SafeDownCast(prop);
if ( rep )
{
vtkPropArrayIterator iter;
for ( iter=rep->PropArray->begin();
iter != rep->PropArray->end(); ++iter )
{
(*this->PropArray)[(*iter).first] = (*iter).second;
}
this->FollowCamera = rep->FollowCamera;
}
this->Superclass::ShallowCopy(prop);
}
//----------------------------------------------------------------------
void vtkProp3DButtonRepresentation::
ReleaseGraphicsResources(vtkWindow *win)
{
this->Follower->ReleaseGraphicsResources(win);
}
//----------------------------------------------------------------------
int vtkProp3DButtonRepresentation::
RenderVolumetricGeometry(vtkViewport *viewport)
{
this->BuildRepresentation();
if ( !this->CurrentProp )
{
return 0;
}
if ( this->FollowCamera )
{
return this->Follower->RenderVolumetricGeometry(viewport);
}
else
{
return this->CurrentProp->RenderVolumetricGeometry(viewport);
}
}
//----------------------------------------------------------------------
int vtkProp3DButtonRepresentation::
RenderOpaqueGeometry(vtkViewport *viewport)
{
this->BuildRepresentation();
if ( !this->CurrentProp )
{
return 0;
}
if ( this->FollowCamera )
{
return this->Follower->RenderOpaqueGeometry(viewport);
}
else
{
return this->CurrentProp->RenderOpaqueGeometry(viewport);
}
}
//-----------------------------------------------------------------------------
int vtkProp3DButtonRepresentation::
RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
{
this->BuildRepresentation();
if ( !this->CurrentProp )
{
return 0;
}
if ( this->FollowCamera )
{
return this->Follower->RenderTranslucentPolygonalGeometry(viewport);
}
else
{
return this->CurrentProp->RenderTranslucentPolygonalGeometry(viewport);
}
}
//-----------------------------------------------------------------------------
int vtkProp3DButtonRepresentation::
HasTranslucentPolygonalGeometry()
{
this->BuildRepresentation();
if ( this->CurrentProp )
{
return this->CurrentProp->HasTranslucentPolygonalGeometry();
}
else
{
return 0;
}
}
//----------------------------------------------------------------------
double *vtkProp3DButtonRepresentation::GetBounds()
{
if ( !this->CurrentProp )
{
return nullptr;
}
if ( this->FollowCamera )
{
return this->Follower->GetBounds();
}
else
{
return this->CurrentProp->GetBounds();
}
}
//----------------------------------------------------------------------
void vtkProp3DButtonRepresentation::GetActors(vtkPropCollection *pc)
{
if ( this->CurrentProp )
{
this->CurrentProp->GetActors(pc);
}
}
//----------------------------------------------------------------------
void vtkProp3DButtonRepresentation::PrintSelf(ostream& os, vtkIndent indent)
{
//Superclass typedef defined in vtkTypeMacro() found in vtkSetGet.h
this->Superclass::PrintSelf(os,indent);
os << indent << "Follow Camera: " << (this->FollowCamera ? "On\n" : "Off\n");
os << indent << "3D Props: \n";
vtkPropArrayIterator iter;
int i;
for ( i=0, iter=this->PropArray->begin();
iter != this->PropArray->end(); ++iter, ++i )
{
os << indent << " (" << i << "): " << (*iter).second.Prop << "\n";
}
}
|
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# * *
# ************************************************************************** */
#
# /* See http://www.boost.org for most recent version. */
#
# ifndef MSGPACK_PREPROCESSOR_DETAIL_NULL_HPP
# define MSGPACK_PREPROCESSOR_DETAIL_NULL_HPP
#
# /* empty file */
#
# endif
|
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>chmod(file, mode) -> str
Invokes the syscall chmod.
See 'man 2 chmod' for more information.
Arguments:
file(char*): file
mode(mode_t): mode
Returns:
int
</%docstring>
<%page args="file=0, mode=0"/>
<%
abi = pwnlib.abi.ABI.syscall()
stack = abi.stack
regs = abi.register_arguments[1:]
allregs = pwnlib.shellcraft.registers.current()
can_pushstr = ['file']
can_pushstr_array = []
argument_names = ['file', 'mode']
argument_values = [file, mode]
# 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=%s' % (name, pwnlib.shellcraft.pretty(arg, False)))
# 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_chmod']:
if hasattr(pwnlib.constants, syscall):
break
else:
raise Exception("Could not locate any syscalls: %r" % syscalls)
%>
/* chmod(${', '.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)}
|
absolute 0x5000
label
label2 equ 0x9999
global label
global label2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x348, %r11
nop
nop
dec %r9
movups (%r11), %xmm4
vpextrq $0, %xmm4, %r14
nop
nop
inc %rdi
lea addresses_UC_ht+0x5bbe, %rsi
lea addresses_D_ht+0x2158, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
dec %r9
mov $23, %rcx
rep movsw
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_D_ht+0x9226, %rsi
lea addresses_WC_ht+0x79fe, %rdi
nop
nop
nop
nop
sub %rbp, %rbp
mov $118, %rcx
rep movsl
nop
and $7156, %rdi
lea addresses_WT_ht+0xb026, %rsi
lea addresses_UC_ht+0x8fc6, %rdi
add $48530, %r11
mov $30, %rcx
rep movsw
nop
nop
add $43347, %rsi
lea addresses_WT_ht+0xf3ea, %rdi
xor $25797, %r9
movb (%rdi), %r11b
nop
nop
dec %rdi
lea addresses_WC_ht+0x14226, %rsi
lea addresses_normal_ht+0x136ba, %rdi
nop
nop
inc %rbx
mov $93, %rcx
rep movsl
mfence
lea addresses_UC_ht+0xc796, %rsi
dec %rbp
movb (%rsi), %r14b
xor $21479, %rbp
lea addresses_UC_ht+0xbd26, %rcx
nop
xor %r9, %r9
mov $0x6162636465666768, %rdi
movq %rdi, (%rcx)
nop
nop
cmp %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r9
push %rcx
push %rdi
// Load
mov $0xea, %r9
nop
nop
nop
nop
add $11833, %r15
movb (%r9), %r13b
dec %r15
// Faulty Load
lea addresses_WC+0x19e26, %rcx
nop
and $7049, %r14
mov (%rcx), %r9
lea oracles, %r13
and $0xff, %r9
shlq $12, %r9
mov (%r13,%r9,1), %r9
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 "JNIHelper.h"
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <android/bitmap.h>
#include <cassert>
#include <string>
#include "JPAGLayerHandle.h"
static constexpr int BITMAP_FLAGS_ALPHA_UNPREMUL = 2;
static constexpr int BITMAP_FLAGS_IS_HARDWARE = 1 << 31;
jobject MakeRectFObject(JNIEnv* env, float x, float y, float width, float height) {
static Global<jclass> RectFClass(env, env->FindClass("android/graphics/RectF"));
static auto RectFConstructID = env->GetMethodID(RectFClass.get(), "<init>", "(FFFF)V");
return env->NewObject(RectFClass.get(), RectFConstructID, x, y, x + width, y + height);
}
jint MakeColorInt(JNIEnv*, uint32_t red, uint32_t green, uint32_t blue) {
uint32_t color = (255 << 24) | (red << 16) | (green << 8) | (blue << 0);
return static_cast<int>(color);
}
jobject MakePAGFontObject(JNIEnv* env, const char* familyName, const char* familyStyle) {
static Global<jclass> PAGFontClass(env, env->FindClass("org/libpag/PAGFont"));
static jmethodID PAGFontConstructID = env->GetMethodID(PAGFontClass.get(), "<init>", "()V");
static jfieldID PAGFont_fontFamily =
env->GetFieldID(PAGFontClass.get(), "fontFamily", "Ljava/lang/String;");
static jfieldID PAGFont_fontStyle =
env->GetFieldID(PAGFontClass.get(), "fontStyle", "Ljava/lang/String;");
jobject fontObject = env->NewObject(PAGFontClass.get(), PAGFontConstructID);
Local<jstring> fontFamily = {env, SafeConvertToJString(env, familyName)};
env->SetObjectField(fontObject, PAGFont_fontFamily, fontFamily.get());
Local<jstring> fontStyle = {env, SafeConvertToJString(env, familyStyle)};
env->SetObjectField(fontObject, PAGFont_fontStyle, fontStyle.get());
return fontObject;
}
jobject MakeByteBufferObject(JNIEnv* env, const void* bytes, size_t length) {
static Global<jclass> ByteBufferClass(env, env->FindClass("java/nio/ByteBuffer"));
static jmethodID ByteBuffer_wrap =
env->GetStaticMethodID(ByteBufferClass.get(), "wrap", "([B)Ljava/nio/ByteBuffer;");
Local<jbyteArray> byteArray = {env, env->NewByteArray(length)};
env->SetByteArrayRegion(byteArray.get(), 0, length, (jbyte*)bytes);
return env->CallStaticObjectMethod(ByteBufferClass.get(), ByteBuffer_wrap, byteArray.get());
}
pag::Color ToColor(JNIEnv*, jint value) {
auto color = static_cast<uint32_t>(value);
auto red = (((color) >> 16) & 0xFF);
auto green = (((color) >> 8) & 0xFF);
auto blue = (((color) >> 0) & 0xFF);
return {static_cast<uint8_t>(red), static_cast<uint8_t>(green), static_cast<uint8_t>(blue)};
}
std::unique_ptr<pag::ByteData> ReadBytesFromAssets(JNIEnv* env, jobject managerObj,
jstring pathObj) {
if (managerObj == nullptr || pathObj == nullptr) {
return nullptr;
}
auto manager = AAssetManager_fromJava(env, managerObj);
if (manager == nullptr) {
return nullptr;
}
auto path = SafeConvertToStdString(env, pathObj);
if (path.empty()) {
return nullptr;
}
auto asset = AAssetManager_open(manager, path.c_str(), AASSET_MODE_UNKNOWN);
if (asset == nullptr) {
return nullptr;
}
auto size = static_cast<size_t>(AAsset_getLength(asset));
auto byteData = pag::ByteData::Make(size);
auto numBytes = AAsset_read(asset, byteData->data(), size);
AAsset_close(asset);
if (numBytes <= 0) {
return nullptr;
}
return byteData;
}
RectData ToRectData(JNIEnv* env, jobject rect) {
static Global<jclass> RectFClass(env, env->FindClass("android/graphics/RectF"));
static auto leftID = env->GetFieldID(RectFClass.get(), "left", "F");
static auto topID = env->GetFieldID(RectFClass.get(), "top", "F");
static auto rightID = env->GetFieldID(RectFClass.get(), "right", "F");
static auto bottomID = env->GetFieldID(RectFClass.get(), "bottom", "F");
auto left = env->GetFloatField(rect, leftID);
auto top = env->GetFloatField(rect, topID);
auto right = env->GetFloatField(rect, rightID);
auto bottom = env->GetFloatField(rect, bottomID);
return {left, top, right - left, bottom - top};
}
jobjectArray ToPAGLayerJavaObjectList(JNIEnv* env,
const std::vector<std::shared_ptr<pag::PAGLayer>>& layers) {
static Global<jclass> PAGLayer_Class(env, env->FindClass("org/libpag/PAGLayer"));
if (layers.empty()) {
return env->NewObjectArray(0, PAGLayer_Class.get(), nullptr);
}
jobjectArray layerArray = env->NewObjectArray(layers.size(), PAGLayer_Class.get(), nullptr);
for (size_t i = 0; i < layers.size(); ++i) {
auto layer = layers[i];
Local<jobject> jLayer = {env, ToPAGLayerJavaObject(env, layer)};
env->SetObjectArrayElement(layerArray, i, jLayer.get());
}
return layerArray;
}
jobject ToPAGLayerJavaObject(JNIEnv* env, std::shared_ptr<pag::PAGLayer> pagLayer) {
if (env == nullptr || pagLayer == nullptr) {
return nullptr;
}
if (pagLayer->externalHandle != nullptr &&
!env->IsSameObject(static_cast<jobject>(pagLayer->externalHandle), nullptr)) {
return static_cast<jobject>(pagLayer->externalHandle);
}
jobject layerObject = nullptr;
switch (pagLayer->layerType()) {
case pag::LayerType::Shape: {
static auto PAGLayer_Class = Global<jclass>(env, env->FindClass("org/libpag/PAGShapeLayer"));
static auto PAGLayer_Constructor = env->GetMethodID(PAGLayer_Class.get(), "<init>", "(J)V");
layerObject = env->NewObject(PAGLayer_Class.get(), PAGLayer_Constructor,
reinterpret_cast<jlong>(new JPAGLayerHandle(pagLayer)));
break;
}
case pag::LayerType::Solid: {
static auto PAGLayer_Class = Global<jclass>(env, env->FindClass("org/libpag/PAGSolidLayer"));
static auto PAGLayer_Constructor = env->GetMethodID(PAGLayer_Class.get(), "<init>", "(J)V");
layerObject = env->NewObject(PAGLayer_Class.get(), PAGLayer_Constructor,
reinterpret_cast<jlong>(new JPAGLayerHandle(pagLayer)));
break;
}
case pag::LayerType::PreCompose: {
if (std::static_pointer_cast<pag::PAGComposition>(pagLayer)->isPAGFile()) {
static auto PAGLayer_Class = Global<jclass>(env, env->FindClass("org/libpag/PAGFile"));
static auto PAGLayer_Constructor = env->GetMethodID(PAGLayer_Class.get(), "<init>", "(J)V");
layerObject = env->NewObject(PAGLayer_Class.get(), PAGLayer_Constructor,
reinterpret_cast<jlong>(new JPAGLayerHandle(pagLayer)));
} else {
static auto PAGLayer_Class =
Global<jclass>(env, env->FindClass("org/libpag/PAGComposition"));
static auto PAGLayer_Constructor = env->GetMethodID(PAGLayer_Class.get(), "<init>", "(J)V");
layerObject = env->NewObject(PAGLayer_Class.get(), PAGLayer_Constructor,
reinterpret_cast<jlong>(new JPAGLayerHandle(pagLayer)));
}
break;
}
case pag::LayerType::Text: {
static auto PAGLayer_Class = Global<jclass>(env, env->FindClass("org/libpag/PAGTextLayer"));
static auto PAGLayer_Constructor = env->GetMethodID(PAGLayer_Class.get(), "<init>", "(J)V");
layerObject = env->NewObject(PAGLayer_Class.get(), PAGLayer_Constructor,
reinterpret_cast<jlong>(new JPAGLayerHandle(pagLayer)));
break;
}
case pag::LayerType::Image: {
static auto PAGLayer_Class = Global<jclass>(env, env->FindClass("org/libpag/PAGImageLayer"));
static auto PAGLayer_Constructor = env->GetMethodID(PAGLayer_Class.get(), "<init>", "(J)V");
layerObject = env->NewObject(PAGLayer_Class.get(), PAGLayer_Constructor,
reinterpret_cast<jlong>(new JPAGLayerHandle(pagLayer)));
break;
}
default: {
static auto PAGLayer_Class = Global<jclass>(env, env->FindClass("org/libpag/PAGLayer"));
static auto PAGLayer_Constructor = env->GetMethodID(PAGLayer_Class.get(), "<init>", "(J)V");
layerObject = env->NewObject(PAGLayer_Class.get(), PAGLayer_Constructor,
reinterpret_cast<jlong>(new JPAGLayerHandle(pagLayer)));
break;
}
}
auto gObject = env->NewWeakGlobalRef(layerObject);
pagLayer->externalHandle = gObject;
return layerObject;
}
std::shared_ptr<pag::PAGLayer> ToPAGLayerNativeObject(JNIEnv* env, jobject jLayer) {
if (env == nullptr || jLayer == nullptr) {
return nullptr;
}
static Global<jclass> PAGLayer_Class(env, env->FindClass("org/libpag/PAGLayer"));
static auto PAGLayer_nativeContext = env->GetFieldID(PAGLayer_Class.get(), "nativeContext", "J");
auto nativeContext =
reinterpret_cast<JPAGLayerHandle*>(env->GetLongField(jLayer, PAGLayer_nativeContext));
if (nativeContext == nullptr) {
return nullptr;
}
return nativeContext->get();
}
std::shared_ptr<pag::PAGComposition> ToPAGCompositionNativeObject(JNIEnv* env,
jobject jComposition) {
if (env == nullptr || jComposition == nullptr) {
return nullptr;
}
static Global<jclass> PAGComposition_Class(env, env->FindClass("org/libpag/PAGComposition"));
static auto PAGComposition_nativeContext =
env->GetFieldID(PAGComposition_Class.get(), "nativeContext", "J");
auto nativeContext = reinterpret_cast<JPAGLayerHandle*>(
env->GetLongField(jComposition, PAGComposition_nativeContext));
if (nativeContext == nullptr) {
return nullptr;
}
return std::static_pointer_cast<pag::PAGComposition>(nativeContext->get());
}
jobject ToPAGMarkerObject(JNIEnv* env, const pag::Marker* marker) {
if (env == nullptr || marker == nullptr) {
return nullptr;
}
static Global<jclass> PAGMarker_Class(env, env->FindClass("org/libpag/PAGMarker"));
static auto PAGMarker_Construct =
env->GetMethodID(PAGMarker_Class.get(), "<init>", "(JJLjava/lang/String;)V");
Local<jstring> comment = {env, SafeConvertToJString(env, marker->comment.c_str())};
return env->NewObject(PAGMarker_Class.get(), PAGMarker_Construct, marker->startTime,
marker->duration, comment.get());
}
jobject ToPAGVideoRangeObject(JNIEnv* env, const pag::PAGVideoRange& range) {
if (env == nullptr) {
return nullptr;
}
static Global<jclass> PAGVideoRange_Class(env, env->FindClass("org/libpag/PAGVideoRange"));
static auto PAGVideoRange_Construct =
env->GetMethodID(PAGVideoRange_Class.get(), "<init>", "(JJJZ)V");
return env->NewObject(PAGVideoRange_Class.get(), PAGVideoRange_Construct, range.startTime(),
range.endTime(), range.playDuration(), range.reversed());
}
pag::ImageInfo GetImageInfo(JNIEnv* env, jobject bitmap) {
AndroidBitmapInfo bitmapInfo = {};
if (bitmap == nullptr || AndroidBitmap_getInfo(env, bitmap, &bitmapInfo) != 0 ||
(bitmapInfo.flags & BITMAP_FLAGS_IS_HARDWARE)) {
return {};
}
pag::AlphaType alphaType = (bitmapInfo.flags & BITMAP_FLAGS_ALPHA_UNPREMUL)
? pag::AlphaType::Unpremultiplied
: pag::AlphaType::Premultiplied;
pag::ColorType colorType;
switch (bitmapInfo.format) {
case ANDROID_BITMAP_FORMAT_RGBA_8888:
colorType = pag::ColorType::RGBA_8888;
break;
case ANDROID_BITMAP_FORMAT_A_8:
colorType = pag::ColorType::ALPHA_8;
break;
default:
colorType = pag::ColorType::Unknown;
break;
}
return pag::ImageInfo::Make(bitmapInfo.width, bitmapInfo.height, colorType, alphaType,
bitmapInfo.stride);
} |
; A186188: Least k such that A156077^(k)(n)=1 where a^(k)=a(a^(k-1)).
; 1,1,1,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6
mov $2,3
lpb $0,1
trn $0,$2
add $0,$2
sub $0,1
sub $0,$1
add $1,1
mul $2,2
lpe
add $1,1
|
// *************************************************************************
// Copyright (C) 2014 by Arash Bakhtiari
// You may not use this file except in compliance with the License.
// You obtain a copy of the License in the LICENSE file.
// 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.
// *************************************************************************
// SYSTEM
#include <mpi.h>
#include <omp.h>
#include <stdio.h>
#include <cstdlib>
#include <iostream>
#include <pvfmm_common.hpp>
#include <string>
#include <utility>
#include <vector>
// PVFMM
#include <cheb_node.hpp>
#include <fmm_cheb.hpp>
#include <fmm_node.hpp>
#include <fmm_tree.hpp>
#include <profile.hpp>
// LOCAL
#include <field_wrappers.h>
#include <utils.hpp>
// TBSLAS
#include <utils/common.h>
#include <utils/fields.h>
#include <utils/reporter.h>
#include <tree/tree_semilag.h>
#include <tree/tree_utils.h>
#include <kernels/mod_laplace.h>
int NUM_TIME_STEPS = 1;
double TBSLAS_DT;
double TBSLAS_DIFF_COEFF;
double TBSLAS_ALPHA;
double EXP_ALPHA;
// current simulation time
// double tcurr = 0.25;
double tcurr_init = 25;
double tcurr = 25;
typedef tbslas::MetaData<std::string, std::string, std::string> MetaData_t;
// template <class Real_t>
// void get_exp_alpha_field_wrapper(const Real_t* coord,
// int n,
// Real_t* out) {
// const Real_t xc = 0.5;
// const Real_t yc = 0.5;
// const Real_t zc = 0.55;
// const Real_t R = 0.3;
// const Real_t alpha = EXP_ALPHA;
// tbslas::get_exp_alpha_field(coord, n, out, xc, yc, zc, R, alpha);
// }
// template <class Real_t>
// void get_taylor_green_field_wrapper(const Real_t* coord,
// int n,
// Real_t* out) {
// tbslas::get_taylor_green_field(coord, n, out);
// }
// template <class Real_t>
// void get_multiple_guassian_kernel_wraper(const Real_t* coord,
// int n,
// Real_t* out) {
// // FIRST GAUSSIAN
// const Real_t xc1 = 0.6;
// const Real_t yc1 = 0.6;
// const Real_t zc1 = 0.6;
// std::vector<Real_t> out1(n);
// tbslas::gaussian_kernel(coord, n, out1.data(), xc1, yc1, zc1);
// // FIRST GAUSSIAN
// const Real_t xc2 = 0.4;
// const Real_t yc2 = 0.4;
// const Real_t zc2 = 0.4;
// std::vector<Real_t> out2(n);
// tbslas::gaussian_kernel(coord, n, out2.data(), xc2, yc2, zc2);
// // FIRST GAUSSIAN
// const Real_t xc3 = 0.3;
// const Real_t yc3 = 0.3;
// const Real_t zc3 = 0.7;
// std::vector<Real_t> out3(n);
// tbslas::gaussian_kernel(coord, n, out3.data(), xc3, yc3, zc3);
// for (int i = 0; i < n; i++) {
// out[i] = out1[i] + out2[i] + out3[i];
// }
// }
// template <class Real_t>
// void get_guassian_kernel_wraper(const Real_t* coord,
// int n,
// Real_t* out) {
// const Real_t xc = 0.7;
// const Real_t yc = 0.7;
// const Real_t zc = 0.7;
// tbslas::gaussian_kernel(coord, n, out, xc, yc, zc);
// }
// template <class Real_t>
// void get_hopf_field_wrapper(const Real_t* coord,
// int n,
// Real_t* out) {
// const Real_t xc = 0.5;
// const Real_t yc = 0.5;
// const Real_t zc = 0.5;
// tbslas::get_hopf_field(coord, n, out, xc, yc, zc);
// }
// template <class Real_t>
// void get_diffusion_kernel_atT(const Real_t* coord,
// int n,
// Real_t* out) {
// const Real_t amp = 1e-2;
// const Real_t xc = 0.5;
// const Real_t yc = 0.5;
// const Real_t zc = 0.5;
// tbslas::diffusion_kernel(coord,
// n,
// out,
// TBSLAS_DIFF_COEFF,
// tcurr,
// amp,
// xc,
// yc,
// zc);
// }
// template <class Real_t>
// void get_diffusion_kernel_hopf(const Real_t* coord,
// int n,
// Real_t* out) {
// const Real_t amp = 1e-2;
// const Real_t xc = 0.6;
// const Real_t yc = 0.6;
// const Real_t zc = 0.6;
// double time_curr = 2.5;
// tbslas::diffusion_kernel(coord,
// n,
// out,
// TBSLAS_DIFF_COEFF,
// time_curr,
// amp,
// xc,
// yc,
// zc);
// }
// template <class Real_t>
// void get_gaussian_kernel_wrapper(const Real_t* coord,
// int n,
// Real_t* out) {
// const Real_t xc = 0.5;
// const Real_t yc = 0.5;
// const Real_t zc = 0.55;
// tbslas::gaussian_kernel(coord, n, out, xc, yc, zc);
// }
// template <class Real_t>
// void get_diffusion_kernel_atT_hom(const Real_t* coord,
// int n,
// Real_t* out) {
// const Real_t amp = 1e-2;
// const Real_t xc = 0.5+(tcurr-tcurr_init)*-0.5;
// const Real_t yc = 0.5;
// const Real_t zc = 0.5;
// tbslas::diffusion_kernel(coord,
// n,
// out,
// TBSLAS_DIFF_COEFF,
// tcurr,
// amp,
// xc,
// yc,
// zc);
// }
// template <class Real_t>
// void fn_input_t2(const Real_t* coord,
// int n,
// Real_t* out) {
// tbslas::gaussian_kernel_diffusion_input(coord,
// n,
// out,
// TBSLAS_ALPHA);
// }
// template <class Real_t>
// void fn_poten_t2(const Real_t* coord,
// int n,
// Real_t* out) {
// tbslas::gaussian_kernel(coord,
// n,
// out);
// }
template <class Real_t>
void RunAdvectDiff(int test, size_t N, size_t M, bool unif, int mult_order,
int cheb_deg, int depth, bool adap, Real_t tol, int merge,
MPI_Comm comm) {
typedef double RealType;
typedef pvfmm::FMM_Node<pvfmm::Cheb_Node<Real_t> > FMMNode_t;
typedef pvfmm::FMM_Cheb<FMMNode_t> FMM_Mat_t;
typedef pvfmm::FMM_Tree<FMM_Mat_t> FMM_Tree_t;
typedef typename FMM_Tree_t::Node_t NodeType;
tbslas::SimConfig* sim_config = tbslas::SimConfigSingleton::Instance();
// Find out number of OMP thereads.
int omp_p = omp_get_max_threads();
// **********************************************************************
// SETUP FMM KERNEL
// **********************************************************************
const pvfmm::Kernel<Real_t>* mykernel = NULL;
pvfmm::BoundaryType bndry;
const pvfmm::Kernel<double> modified_laplace_kernel_d =
pvfmm::BuildKernel<double, tbslas::modified_laplace_poten>(
tbslas::GetModfiedLaplaceKernelName<double>(TBSLAS_ALPHA), 3,
std::pair<int, int>(1, 1));
// **********************************************************************
// SETUP TEST CASE
// **********************************************************************
void (*fn_1)(const double*, int, double*) = NULL;
fn_1 = tbslas::get_linear_field_y<double, 3>;
void (*fn_input_)(const Real_t*, int, Real_t*) = NULL;
void (*fn_poten_)(const Real_t*, int, Real_t*) = NULL;
void (*fn_veloc_)(const Real_t*, int, Real_t*) = NULL;
switch (test) {
case 1:
fn_input_ = get_diffusion_kernel_atT<Real_t>;
fn_poten_ = get_diffusion_kernel_atT<Real_t>;
fn_veloc_ = tbslas::get_vorticity_field<double, 3>;
mykernel = &modified_laplace_kernel_d;
// bndry = pvfmm::FreeSpace;
bndry = pvfmm::Periodic;
break;
case 2:
fn_input_ = fn_input_t2<Real_t>;
fn_poten_ = fn_poten_t2<Real_t>;
fn_veloc_ = tbslas::get_vorticity_field<double, 3>;
mykernel = &modified_laplace_kernel_d;
// bndry = pvfmm::FreeSpace;
bndry = pvfmm::Periodic;
break;
case 3:
fn_input_ = get_diffusion_kernel_atT_hom<Real_t>;
fn_poten_ = get_diffusion_kernel_atT_hom<Real_t>;
fn_veloc_ = tbslas::get_vel_field_hom_x<
double, 3>; // tbslas::get_vorticity_field<double,3>,
mykernel = &modified_laplace_kernel_d;
bndry = pvfmm::Periodic;
break;
case 4:
// tcurr = 0;
fn_input_ = fn_input_t2<Real_t>; // get_slotted_cylinder<double,3>;
fn_poten_ = fn_input_t2<Real_t>; // get_slotted_cylinder<double,3>;
fn_veloc_ = tbslas::get_vel_field_hom_x<double, 3>;
mykernel = &modified_laplace_kernel_d;
bndry = pvfmm::Periodic;
break;
case 5:
fn_input_ = get_diffusion_kernel_hopf<Real_t>;
fn_poten_ = get_diffusion_kernel_hopf<Real_t>;
fn_veloc_ = get_hopf_field_wrapper<double>;
mykernel = &modified_laplace_kernel_d;
bndry = pvfmm::Periodic;
break;
case 6:
fn_input_ = get_exp_alpha_field_wrapper<Real_t>;
fn_poten_ = get_exp_alpha_field_wrapper<Real_t>;
fn_veloc_ = get_hopf_field_wrapper<double>;
mykernel = &modified_laplace_kernel_d;
bndry = pvfmm::Periodic;
break;
case 7:
fn_input_ = get_exp_alpha_field_wrapper<Real_t>;
fn_poten_ = get_exp_alpha_field_wrapper<Real_t>;
fn_veloc_ = get_taylor_green_field_wrapper<Real_t>;
mykernel = &modified_laplace_kernel_d;
bndry = pvfmm::Periodic;
break;
case 8:
fn_input_ = get_diffusion_kernel_hopf<Real_t>;
fn_poten_ = get_diffusion_kernel_hopf<Real_t>;
fn_veloc_ = get_taylor_green_field_wrapper<Real_t>;
mykernel = &modified_laplace_kernel_d;
bndry = pvfmm::Periodic;
break;
case 9:
fn_input_ = get_guassian_kernel_wraper<Real_t>;
fn_poten_ = get_guassian_kernel_wraper<Real_t>;
fn_veloc_ = get_hopf_field_wrapper<double>;
mykernel = &modified_laplace_kernel_d;
bndry = pvfmm::Periodic;
break;
case 10:
fn_input_ = get_gaussian_kernel_wrapper<Real_t>;
fn_poten_ = get_gaussian_kernel_wrapper<Real_t>;
fn_veloc_ = get_taylor_green_field_wrapper<Real_t>;
mykernel = &modified_laplace_kernel_d;
bndry = pvfmm::Periodic;
break;
default:
fn_input_ = NULL;
fn_poten_ = NULL;
break;
}
// Find out my identity in the default communicator
int myrank, np;
MPI_Comm_rank(comm, &myrank);
MPI_Comm_size(comm, &np);
// =========================================================================
// SIMULATION PARAMETERS
// =========================================================================
sim_config->bc = bndry;
// **********************************************************************
// SETUP TREE FOR PREVIOUS TIME STEP
// **********************************************************************
FMM_Tree_t* treep = new FMM_Tree_t(comm);
tbslas::ConstructTree<FMM_Tree_t>(N, M, cheb_deg, depth, adap, tol, comm,
fn_input_, 1, *treep);
// **********************************************************************
// SETUP TREE FOR CURRENT TIMESTEP
// **********************************************************************
tcurr += TBSLAS_DT;
FMM_Tree_t* treec = new FMM_Tree_t(comm);
tbslas::ConstructTree<FMM_Tree_t>(N, M, cheb_deg, depth, adap, tol, comm,
fn_input_, 1, *treec);
if (sim_config->vtk_save_rate) {
// treep->Write2File(tbslas::GetVTKFileName(-1,
// sim_config->vtk_filename_variable).c_str(), sim_config->vtk_order);
treec->Write2File(
tbslas::GetVTKFileName(0, sim_config->vtk_filename_variable).c_str(),
sim_config->vtk_order);
}
// **********************************************************************
// SETUP VELOCITY FIELD TREE
// **********************************************************************
FMM_Tree_t* tvel = new FMM_Tree_t(comm);
tbslas::ConstructTree<FMM_Tree_t>(N, M, cheb_deg, depth, adap, tol, comm,
fn_veloc_, 3, *tvel);
if (sim_config->vtk_save_rate) {
tvel->Write2File(tbslas::GetVTKFileName(0, "velocity").c_str(),
sim_config->vtk_order);
}
double in_al2, in_rl2, in_ali, in_rli;
CheckChebOutput<FMM_Tree_t>(treec, fn_poten_, mykernel->ker_dim[1], in_al2,
in_rl2, in_ali, in_rli, std::string("Input"));
int con_noct_sum = 0;
int con_noct_max = 0;
int con_noct_min = 0;
int vel_noct_sum = 0;
int vel_noct_max = 0;
int vel_noct_min = 0;
if (sim_config->profile) {
int con_noct = tbslas::CountNumLeafNodes(*treep);
con_noct_sum += con_noct;
con_noct_max = con_noct;
con_noct_min = con_noct;
int vel_noct = tbslas::CountNumLeafNodes(*tvel);
vel_noct_sum += vel_noct;
vel_noct_max = vel_noct;
vel_noct_min = vel_noct;
}
// set the input_fn to NULL -> needed for adaptive refinement
{
std::vector<NodeType*> nlist = treep->GetNodeList();
for (int i = 0; i < nlist.size(); i++) {
nlist[i]->input_fn = (void (*)(const Real_t*, int, Real_t*))NULL;
}
nlist = treec->GetNodeList();
for (int i = 0; i < nlist.size(); i++) {
nlist[i]->input_fn = (void (*)(const Real_t*, int, Real_t*))NULL;
}
}
// GET THE TREE PARAMETERS FROM CURRENT TREE
FMMNode_t* n_curr = treec->PostorderFirst();
while (n_curr != NULL) {
if (!n_curr->IsGhost() && n_curr->IsLeaf()) break;
n_curr = treec->PostorderNxt(n_curr);
}
int data_dof = n_curr->DataDOF();
int sdim = treec->Dim();
int timestep = 1;
std::vector<double> dprts_points_pos;
std::vector<double> treep_points_val;
std::vector<double> treec_points_val;
std::vector<double> treen_points_val;
// **********************************************************************
// SETUP FMM
// **********************************************************************
// Initialize FMM_Mat.
FMM_Mat_t* fmm_mat = NULL;
{
fmm_mat = new FMM_Mat_t;
fmm_mat->Initialize(mult_order, cheb_deg, comm, mykernel);
}
int tcon_init_depth = 0;
int tvel_init_depth = 0;
tbslas::GetTreeMaxDepth<FMM_Tree_t>(*treec, tcon_init_depth);
tbslas::GetTreeMaxDepth<FMM_Tree_t>(*tvel, tvel_init_depth);
for (; timestep < NUM_TIME_STEPS + 1; timestep += 1) {
// =====================================================================
// (SEMI) MERGE TO FIX IMBALANCE
// =====================================================================
switch (merge) {
case 2:
pvfmm::Profile::Tic("CMerge", &sim_config->comm, false, 5);
tbslas::MergeTree(*tvel, *treep);
pvfmm::Profile::Toc();
pvfmm::Profile::Tic("CMerge", &sim_config->comm, false, 5);
tbslas::MergeTree(*tvel, *treec);
pvfmm::Profile::Toc();
break;
case 3:
pvfmm::Profile::Tic("SMerge", &sim_config->comm, false, 5);
tbslas::SemiMergeTree(*tvel, *treep);
pvfmm::Profile::Toc();
pvfmm::Profile::Tic("SMerge", &sim_config->comm, false, 5);
tbslas::SemiMergeTree(*tvel, *treec);
pvfmm::Profile::Toc();
break;
}
// use previous time step's tree for the next time step
FMM_Tree_t* treen = treep;
if (sim_config->profile) {
int con_noct = tbslas::CountNumLeafNodes(*treen);
con_noct_sum += con_noct;
if (con_noct > con_noct_max) con_noct_max = con_noct;
if (con_noct < con_noct_min) con_noct_min = con_noct;
int vel_noct = tbslas::CountNumLeafNodes(*tvel);
vel_noct_sum += vel_noct;
if (vel_noct > vel_noct_max) vel_noct_max = vel_noct;
if (vel_noct < vel_noct_min) vel_noct_min = vel_noct;
}
// UPDATE THE SIMULATION CURRENT TIME
tcurr += TBSLAS_DT;
tbslas::NodeFieldFunctor<double, FMM_Tree_t> vel_evaluator(tvel);
tbslas::NodeFieldFunctor<double, FMM_Tree_t> trc_evaluator(treec);
tbslas::NodeFieldFunctor<double, FMM_Tree_t> trp_evaluator(treep);
pvfmm::Profile::Tic(
std::string("Solve_TN" +
tbslas::ToString(static_cast<long long>(timestep)))
.c_str(),
&comm, true);
{
// =====================================================================
// SOLVE SEMILAG
// =====================================================================
// COLLECT THE MERGED TREE POINTS
tbslas::CollectChebTreeGridPoints(*treen, dprts_points_pos);
int treen_num_points = dprts_points_pos.size() / COORD_DIM;
treep_points_val.resize(treen_num_points * data_dof);
treec_points_val.resize(treen_num_points * data_dof);
treen_points_val.resize(treen_num_points * data_dof);
pvfmm::Profile::Tic("SLM", &sim_config->comm, false, 5);
{
// ===================================
// FIRST STEP BACKWARD TRAJ COMPUTATION
// ===================================
ComputeTrajRK2(vel_evaluator, dprts_points_pos, tcurr,
tcurr - TBSLAS_DT, sim_config->num_rk_step,
dprts_points_pos);
trc_evaluator(dprts_points_pos.data(), treen_num_points,
treec_points_val.data());
// ===================================
// SECOND STEP BACKWARD TRAJ COMPUTATION
// ===================================
ComputeTrajRK2(vel_evaluator, dprts_points_pos, tcurr - TBSLAS_DT,
tcurr - TBSLAS_DT * 2, sim_config->num_rk_step,
dprts_points_pos);
trp_evaluator(dprts_points_pos.data(), treen_num_points,
treep_points_val.data());
// ===================================
// COMBINE AND STORE THE SEMILAG VALUES
// ===================================
double ccoeff = 4.0 / 3;
double pcoeff = 1.0 / 3;
#pragma omp parallel for
for (int i = 0; i < treen_points_val.size(); i++) {
treen_points_val[i] =
ccoeff * treec_points_val[i] - pcoeff * treep_points_val[i];
}
tbslas::SetTreeGridValues(*treen, cheb_deg, data_dof, treen_points_val);
// FMMNode_t* n_next = treen->PostorderFirst();
// while (n_next != NULL) {
// if(!n_next->IsGhost() && n_next->IsLeaf()) break;
// n_next = treen->PostorderNxt(n_next);
// }
// std::vector<NodeType*> nodes;
// while (n_next != NULL) {
// if (n_next->IsLeaf() && !n_next->IsGhost())
// nodes.push_back(n_next); n_next = treen->PostorderNxt(n_next);
// }
// int num_points_per_node = (cheb_deg+1)*(cheb_deg+1)*(cheb_deg+1);
// int tree_next_node_counter = 0;
// while (n_next != NULL) {
// if (n_next->IsLeaf() && !n_next->IsGhost()) {
// tbslas::NewPt2ChebPt<double>(&treen_points_val[tree_next_node_counter*num_points_per_node*data_dof],
// cheb_deg, data_dof);
// pvfmm::cheb_approx<double,
// double>(&treen_points_val[tree_next_node_counter*num_points_per_node*data_dof],
// cheb_deg,
// data_dof,
// &(n_next->ChebData()[0]));
// tree_next_node_counter++;
// }
// n_next = treen->PostorderNxt(n_next);
//}
// int omp_p=omp_get_max_threads();
// static pvfmm::Matrix<RealType> M;
// tbslas::GetPt2CoeffMatrix<RealType>(cheb_deg, M);
// int num_points_per_node=M.Dim(0);
// pvfmm::Matrix<RealType>
// Mvalue(treen_points_val.size()/num_points_per_node,M.Dim(0),&treen_points_val[0],false);
// pvfmm::Matrix<RealType>
// Mcoeff(treen_points_val.size()/num_points_per_node,M.Dim(1));
// #pragma omp parallel for schedule(static)
// for(int pid=0;pid<omp_p;pid++){
// long a=(pid+0)*nodes.size()/omp_p;
// long b=(pid+1)*nodes.size()/omp_p;
// pvfmm::Matrix<RealType> Mi((b-a)*data_dof, Mvalue.Dim(1),
// &Mvalue[a*data_dof][0], false); pvfmm::Matrix<RealType>
// Mo((b-a)*data_dof, Mcoeff.Dim(1), &Mcoeff[a*data_dof][0],
// false); pvfmm::Matrix<RealType>::GEMM(Mo, Mi, M); for(long
// j=0;j<b-a;j++){
// memcpy(&(nodes[a+j]->ChebData()[0]), &Mo[j*data_dof][0],
// M.Dim(1)*data_dof*sizeof(RealType));
// }
// }
pvfmm::Profile::Add_FLOP(
3 *
treen_points_val
.size()); // for combining the two previous time steps values
}
pvfmm::Profile::Toc(); // SL
// =========================================================================
// RUN FMM
// =========================================================================
pvfmm::Profile::Tic("FMM", &comm, true);
treen->InitFMM_Tree(false, bndry);
treen->SetupFMM(fmm_mat);
treen->RunFMM();
treen->Copy_FMMOutput(); // Copy FMM output to tree Data.
pvfmm::Profile::Toc();
}
pvfmm::Profile::Toc(); // solve
// =====================================================================
// REFINE TREE
// =====================================================================
pvfmm::Profile::Tic("RefineTree", &sim_config->comm, false, 5);
treen->RefineTree();
pvfmm::Profile::Toc();
pvfmm::Profile::Tic("Balance21", &sim_config->comm, false, 5);
treen->Balance21(sim_config->bc);
pvfmm::Profile::Toc();
// TODO: ONLY FOR STEADY VELOCITY TREES
tvel->RefineTree();
// ======================================================================
// Write2File
// ======================================================================
if (sim_config->vtk_save_rate) {
if (timestep % sim_config->vtk_save_rate == 0) {
treen->Write2File(
tbslas::GetVTKFileName(timestep, sim_config->vtk_filename_variable)
.c_str(),
sim_config->vtk_order);
double al2, rl2, ali, rli;
CheckChebOutput<FMM_Tree_t>(
treen, fn_poten_, mykernel->ker_dim[1], al2, rl2, ali, rli,
std::string("Output_TN" +
tbslas::ToString(static_cast<long long>(timestep))));
}
}
treep = treec;
treec = treen;
}
// =========================================================================
// REPORT RESULTS
// =========================================================================
double al2, rl2, ali, rli;
CheckChebOutput<FMM_Tree_t>(treec, fn_poten_, mykernel->ker_dim[1], al2, rl2,
ali, rli, std::string("Output"));
int tcon_max_depth = 0;
int tvel_max_depth = 0;
tbslas::GetTreeMaxDepth<FMM_Tree_t>(*treec, tcon_max_depth);
tbslas::GetTreeMaxDepth<FMM_Tree_t>(*tvel, tvel_max_depth);
typedef tbslas::Reporter<Real_t> Rep;
if (!myrank) {
Rep::AddData("NP", np, tbslas::REP_INT);
Rep::AddData("OMP", sim_config->num_omp_threads, tbslas::REP_INT);
Rep::AddData("TOL", sim_config->tree_tolerance);
Rep::AddData("Q", sim_config->tree_chebyshev_order, tbslas::REP_INT);
Rep::AddData("MaxD", sim_config->tree_max_depth, tbslas::REP_INT);
Rep::AddData("CIniD", tcon_init_depth, tbslas::REP_INT);
Rep::AddData("VIniD", tvel_init_depth, tbslas::REP_INT);
Rep::AddData("CMaxD", tcon_max_depth, tbslas::REP_INT);
Rep::AddData("VMaxD", tvel_max_depth, tbslas::REP_INT);
Rep::AddData("DT", sim_config->dt);
Rep::AddData("TN", sim_config->total_num_timestep, tbslas::REP_INT);
Rep::AddData("TEST", test, tbslas::REP_INT);
Rep::AddData("MERGE", merge, tbslas::REP_INT);
Rep::AddData("DIFF", TBSLAS_DIFF_COEFF);
Rep::AddData("ALPHA", TBSLAS_ALPHA);
Rep::AddData("InAL2", in_al2);
Rep::AddData("OutAL2", al2);
Rep::AddData("InRL2", in_rl2);
Rep::AddData("OutRL2", rl2);
Rep::AddData("InALINF", in_ali);
Rep::AddData("OutALINF", ali);
Rep::AddData("InRLINF", in_rli);
Rep::AddData("OutRLINF", rli);
Rep::AddData("CMinNOCT", con_noct_min, tbslas::REP_INT);
Rep::AddData("CAvgNOCT",
con_noct_sum / (sim_config->total_num_timestep + 1),
tbslas::REP_INT); // NUMBER OF TIMESTEPS + INITIAL TREE
Rep::AddData("CMaxNOCT", con_noct_max, tbslas::REP_INT);
Rep::AddData("VMinNOCT", vel_noct_min, tbslas::REP_INT);
Rep::AddData("VAvgNOCT",
vel_noct_sum / (sim_config->total_num_timestep + 1),
tbslas::REP_INT); // NUMBER OF TIMESTEPS + INITIAL TREE
Rep::AddData("VMaxNOCT", vel_noct_max, tbslas::REP_INT);
Rep::Report();
}
// **********************************************************************
// CLEAN UP MEMORY
// **********************************************************************
// Delete matrices.
if (fmm_mat) delete fmm_mat;
// Delete the tree.
delete treep;
delete treec;
delete tvel;
}
int main(int argc, char** argv) {
MPI_Init(&argc, &argv);
MPI_Comm comm = MPI_COMM_WORLD;
int myrank;
MPI_Comm_rank(comm, &myrank);
parse_command_line_options(argc, argv);
bool unif =
(commandline_option(
argc, argv, "-unif", NULL, false,
"-unif : Uniform point distribution.") != NULL);
int m =
strtoul(commandline_option(
argc, argv, "-m", "10", false,
"-m <int> = (10) : Multipole order (+ve even integer)."),
NULL, 10);
int test = strtoul(commandline_option(argc, argv, "-test", "1", false,
"-test <int> = (1) : 1) Laplace, "
"Smooth Gaussian, Periodic Boundary"),
NULL, 10);
int merge = strtoul(commandline_option(argc, argv, "-merge", "1", false,
"-merge <int> = (1) : 1) no merge "
"2) complete merge 3) Semi-Merge"),
NULL, 10);
double exp_alpha = strtod(commandline_option(argc, argv, "-ea", "10", false,
"-ea <real> = (10) : alpha"),
NULL);
// =========================================================================
// SIMULATION PARAMETERS
// =========================================================================
tbslas::SimConfig* sim_config = tbslas::SimConfigSingleton::Instance();
pvfmm::Profile::Enable(sim_config->profile);
sim_config->vtk_filename_variable = "conc";
NUM_TIME_STEPS = sim_config->total_num_timestep;
TBSLAS_DT = sim_config->dt;
TBSLAS_DIFF_COEFF = sim_config->diff;
TBSLAS_ALPHA = 3.0 / 2.0 / TBSLAS_DT / TBSLAS_DIFF_COEFF;
EXP_ALPHA = exp_alpha;
// =========================================================================
// PRINT METADATA
// =========================================================================
if (!myrank) {
MetaData_t::Print();
}
// =========================================================================
// RUN
// =========================================================================
pvfmm::Profile::Tic("AdvDif", &comm, true);
RunAdvectDiff<double>(test, sim_config->tree_num_point_sources,
sim_config->tree_num_points_per_octanct, unif, m,
sim_config->tree_chebyshev_order,
sim_config->tree_max_depth, sim_config->tree_adap,
sim_config->tree_tolerance, merge, comm);
pvfmm::Profile::Toc();
// Output Profiling results.
pvfmm::Profile::print(&comm);
// Shut down MPI
MPI_Finalize();
return 0;
}
|
dnl x86-64 mpn_popcount optimized for "Core 2".
dnl Copyright 2007 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
MULFUNC_PROLOGUE(mpn_popcount)
include_mpn(`x86/pentium4/sse2/popcount.asm')
|
; A259624: Strictly increasing list of F - 1, F, and F + 1, where F = A000045, the Fibonacci numbers.
; 0,1,2,3,4,5,6,7,8,9,12,13,14,20,21,22,33,34,35,54,55,56,88,89,90,143,144,145,232,233,234,376,377,378,609,610,611,986,987,988,1596,1597,1598,2583,2584,2585,4180,4181,4182,6764,6765,6766,10945,10946,10947,17710,17711,17712,28656,28657,28658,46367,46368,46369,75024,75025,75026,121392,121393,121394,196417,196418,196419,317810,317811,317812,514228,514229,514230,832039,832040,832041,1346268,1346269,1346270,2178308,2178309,2178310,3524577,3524578,3524579,5702886,5702887,5702888,9227464,9227465,9227466,14930351,14930352,14930353,24157816,24157817,24157818,39088168,39088169,39088170,63245985,63245986,63245987,102334154,102334155,102334156,165580140,165580141,165580142,267914295,267914296,267914297,433494436,433494437,433494438,701408732,701408733,701408734,1134903169,1134903170,1134903171,1836311902,1836311903,1836311904,2971215072,2971215073,2971215074,4807526975,4807526976,4807526977,7778742048,7778742049,7778742050,12586269024,12586269025,12586269026,20365011073,20365011074,20365011075,32951280098,32951280099,32951280100,53316291172,53316291173,53316291174,86267571271,86267571272,86267571273,139583862444,139583862445,139583862446,225851433716,225851433717,225851433718,365435296161,365435296162,365435296163,591286729878,591286729879,591286729880,956722026040,956722026041,956722026042,1548008755919,1548008755920,1548008755921,2504730781960,2504730781961,2504730781962,4052739537880,4052739537881,4052739537882,6557470319841,6557470319842,6557470319843,10610209857722,10610209857723,10610209857724,17167680177564,17167680177565,17167680177566,27777890035287,27777890035288,27777890035289,44945570212852,44945570212853,44945570212854,72723460248140,72723460248141,72723460248142,117669030460993,117669030460994,117669030460995,190392490709134,190392490709135,190392490709136,308061521170128,308061521170129,308061521170130,498454011879263,498454011879264,498454011879265,806515533049392,806515533049393,806515533049394,1304969544928656,1304969544928657,1304969544928658,2111485077978049,2111485077978050,2111485077978051,3416454622906706,3416454622906707,3416454622906708,5527939700884756,5527939700884757,5527939700884758,8944394323791463,8944394323791464,8944394323791465
mov $2,$0
lpb $0
sub $0,1
add $1,$2
mov $2,$4
mov $3,$0
trn $0,2
sub $2,5
trn $2,$3
mov $4,$1
lpe
|
#include <doctest/doctest.h>
#include <raytracerchallenge/base/Color.h>
using namespace raytracerchallenge;
TEST_CASE("Colors") {
SUBCASE("Colors are (red, green, blue) tuples") {
Color c = Color(-0.5, 0.4, 1.7);
CHECK(c.red == -0.5);
CHECK(c.green == 0.4);
CHECK(c.blue == 1.7);
}
SUBCASE("Default Color is black") {
Color c = Color();
CHECK(c.red == 0.0);
CHECK(c.green == 0.0);
CHECK(c.blue == 0.0);
}
SUBCASE("Adding colors") {
Color c1 = Color(0.9, 0.6, 0.75);
Color c2 = Color(0.7, 0.1, 0.25);
CHECK(c1 + c2 == Color(1.6, 0.7, 1.0));
}
SUBCASE("Subtracting colors") {
Color c1 = Color(0.9, 0.6, 0.75);
Color c2 = Color(0.7, 0.1, 0.25);
CHECK(c1 - c2 == Color(0.2, 0.5, 0.5));
}
SUBCASE("Multiplying a color by a scalar") {
Color c = Color(0.2, 0.3, 0.4);
CHECK(c * 2 == Color(0.4, 0.6, 0.8));
}
SUBCASE("Multiplying colors") {
Color c1 = Color(1.0, 0.2, 0.4);
Color c2 = Color(0.9, 1.0, 0.1);
CHECK(c1 * c2 == Color(0.9, 0.2, 0.04));
}
} |
// Copyright 2018 The MediaPipe Authors.
//
// 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 "absl/strings/str_replace.h"
#include "mediapipe/calculators/tensorflow/tensorflow_session.h"
#include "mediapipe/calculators/tensorflow/tensorflow_session_from_saved_model_generator.pb.h"
#include "mediapipe/framework/calculator_framework.h"
#include "mediapipe/framework/deps/file_path.h"
#include "mediapipe/framework/packet.h"
#include "mediapipe/framework/packet_generator.pb.h"
#include "mediapipe/framework/port/gmock.h"
#include "mediapipe/framework/port/gtest.h"
#include "mediapipe/framework/port/parse_text_proto.h"
#include "mediapipe/framework/port/status_matchers.h"
#include "mediapipe/framework/tool/tag_map_helper.h"
#include "mediapipe/framework/tool/validate_type.h"
#include "tensorflow/core/framework/device_attributes.pb.h"
namespace mediapipe {
namespace {
namespace tf = ::tensorflow;
std::string GetSavedModelDir() {
std::string out_path =
file::JoinPath("./", "mediapipe/calculators/tensorflow/testdata/",
"tensorflow_saved_model/00000000");
return out_path;
}
// Helper function that creates Tensor INT32 matrix with size 1x3.
tf::Tensor TensorMatrix1x3(const int v1, const int v2, const int v3) {
tf::Tensor tensor(tf::DT_INT32,
tf::TensorShape(std::vector<tf::int64>({1, 3})));
auto matrix = tensor.matrix<int32>();
matrix(0, 0) = v1;
matrix(0, 1) = v2;
matrix(0, 2) = v3;
return tensor;
}
class TensorFlowSessionFromSavedModelGeneratorTest : public ::testing::Test {
protected:
void SetUp() override {
extendable_options_.Clear();
generator_options_ = extendable_options_.MutableExtension(
TensorFlowSessionFromSavedModelGeneratorOptions::ext);
generator_options_->set_saved_model_path(GetSavedModelDir());
}
PacketGeneratorOptions extendable_options_;
TensorFlowSessionFromSavedModelGeneratorOptions* generator_options_;
};
TEST_F(TensorFlowSessionFromSavedModelGeneratorTest,
CreatesPacketWithGraphAndBindings) {
PacketSet input_side_packets(tool::CreateTagMap({}).ValueOrDie());
PacketSet output_side_packets(
tool::CreateTagMap({"SESSION:session"}).ValueOrDie());
mediapipe::Status run_status = tool::RunGenerateAndValidateTypes(
"TensorFlowSessionFromSavedModelGenerator", extendable_options_,
input_side_packets, &output_side_packets);
MP_EXPECT_OK(run_status) << run_status.message();
const TensorFlowSession& session =
output_side_packets.Tag("SESSION").Get<TensorFlowSession>();
// Session must be set.
ASSERT_NE(session.session, nullptr);
// Bindings are inserted.
EXPECT_EQ(session.tag_to_tensor_map.size(), 4);
// For some reason, EXPECT_EQ and EXPECT_NE are not working with iterators.
EXPECT_FALSE(session.tag_to_tensor_map.find("A") ==
session.tag_to_tensor_map.end());
EXPECT_FALSE(session.tag_to_tensor_map.find("B") ==
session.tag_to_tensor_map.end());
EXPECT_FALSE(session.tag_to_tensor_map.find("MULTIPLIED") ==
session.tag_to_tensor_map.end());
EXPECT_FALSE(session.tag_to_tensor_map.find("EXPENSIVE") ==
session.tag_to_tensor_map.end());
// Sanity: find() actually returns a reference to end() if element not
// found.
EXPECT_TRUE(session.tag_to_tensor_map.find("Z") ==
session.tag_to_tensor_map.end());
EXPECT_EQ(session.tag_to_tensor_map.at("A"), "a:0");
EXPECT_EQ(session.tag_to_tensor_map.at("B"), "b:0");
EXPECT_EQ(session.tag_to_tensor_map.at("MULTIPLIED"), "multiplied:0");
EXPECT_EQ(session.tag_to_tensor_map.at("EXPENSIVE"), "expensive:0");
}
TEST_F(TensorFlowSessionFromSavedModelGeneratorTest,
CreateSessionFromSidePacket) {
generator_options_->clear_saved_model_path();
PacketSet input_side_packets(
tool::CreateTagMap({"STRING_SAVED_MODEL_PATH:saved_model_dir"})
.ValueOrDie());
input_side_packets.Tag("STRING_SAVED_MODEL_PATH") =
Adopt(new std::string(GetSavedModelDir()));
PacketSet output_side_packets(
tool::CreateTagMap({"SESSION:session"}).ValueOrDie());
mediapipe::Status run_status = tool::RunGenerateAndValidateTypes(
"TensorFlowSessionFromSavedModelGenerator", extendable_options_,
input_side_packets, &output_side_packets);
MP_EXPECT_OK(run_status) << run_status.message();
const TensorFlowSession& session =
output_side_packets.Tag("SESSION").Get<TensorFlowSession>();
// Session must be set.
ASSERT_NE(session.session, nullptr);
}
// Integration test. Verifies that TensorFlowInferenceCalculator correctly
// consumes the Packet emitted by this factory.
TEST_F(TensorFlowSessionFromSavedModelGeneratorTest,
ProducesPacketUsableByTensorFlowInferenceCalculator) {
CalculatorGraphConfig graph_config =
mediapipe::ParseTextProtoOrDie<CalculatorGraphConfig>(
absl::Substitute(R"(
node {
calculator: "TensorFlowInferenceCalculator"
input_side_packet: "SESSION:tf_model"
input_stream: "A:a_tensor"
output_stream: "MULTIPLIED:multiplied_tensor"
options {
[mediapipe.TensorFlowInferenceCalculatorOptions.ext] {
batch_size: 5
add_batch_dim_to_tensors: false
}
}
}
packet_generator {
packet_generator: "TensorFlowSessionFromSavedModelGenerator"
output_side_packet: "SESSION:tf_model"
options {
[mediapipe.TensorFlowSessionFromSavedModelGeneratorOptions.ext]: {
$0
}
}
}
input_stream: "a_tensor"
)",
generator_options_->DebugString()));
CalculatorGraph graph;
MP_ASSERT_OK(graph.Initialize(graph_config));
StatusOrPoller status_or_poller =
graph.AddOutputStreamPoller("multiplied_tensor");
ASSERT_TRUE(status_or_poller.ok());
OutputStreamPoller poller = std::move(status_or_poller.ValueOrDie());
MP_ASSERT_OK(graph.StartRun({}));
MP_ASSERT_OK(graph.AddPacketToInputStream(
"a_tensor",
Adopt(new auto(TensorMatrix1x3(1, -1, 10))).At(Timestamp(0))));
MP_ASSERT_OK(graph.CloseInputStream("a_tensor"));
Packet packet;
ASSERT_TRUE(poller.Next(&packet));
// input tensor gets multiplied by [[3, 2, 1]]. Expected output:
tf::Tensor expected_multiplication = TensorMatrix1x3(3, -2, 10);
EXPECT_EQ(expected_multiplication.DebugString(),
packet.Get<tf::Tensor>().DebugString());
ASSERT_FALSE(poller.Next(&packet));
MP_ASSERT_OK(graph.WaitUntilDone());
}
TEST_F(TensorFlowSessionFromSavedModelGeneratorTest,
GetsBundleGivenParentDirectory) {
generator_options_->set_saved_model_path(
std::string(file::SplitPath(GetSavedModelDir()).first));
generator_options_->set_load_latest_model(true);
PacketSet input_side_packets(tool::CreateTagMap({}).ValueOrDie());
PacketSet output_side_packets(
tool::CreateTagMap({"SESSION:session"}).ValueOrDie());
mediapipe::Status run_status = tool::RunGenerateAndValidateTypes(
"TensorFlowSessionFromSavedModelGenerator", extendable_options_,
input_side_packets, &output_side_packets);
MP_EXPECT_OK(run_status) << run_status.message();
const TensorFlowSession& session =
output_side_packets.Tag("SESSION").Get<TensorFlowSession>();
// Session must be set.
ASSERT_NE(session.session, nullptr);
}
TEST_F(TensorFlowSessionFromSavedModelGeneratorTest,
ConfiguresSessionGivenConfig) {
generator_options_->set_saved_model_path(
std::string(file::SplitPath(GetSavedModelDir()).first));
generator_options_->set_load_latest_model(true);
generator_options_->mutable_session_config()->mutable_device_count()->insert(
{"CPU", 10});
PacketSet input_side_packets(tool::CreateTagMap({}).ValueOrDie());
PacketSet output_side_packets(
tool::CreateTagMap({"SESSION:session"}).ValueOrDie());
mediapipe::Status run_status = tool::RunGenerateAndValidateTypes(
"TensorFlowSessionFromSavedModelGenerator", extendable_options_,
input_side_packets, &output_side_packets);
MP_EXPECT_OK(run_status) << run_status.message();
const TensorFlowSession& session =
output_side_packets.Tag("SESSION").Get<TensorFlowSession>();
// Session must be set.
ASSERT_NE(session.session, nullptr);
std::vector<tensorflow::DeviceAttributes> devices;
ASSERT_EQ(session.session->ListDevices(&devices), tensorflow::Status::OK());
EXPECT_THAT(devices.size(), 10);
}
} // namespace
} // namespace mediapipe
|
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes "black" in every pixel;
// the screen should remain fully black as long as the key is pressed.
// When no key is pressed, the program clears the screen, i.e. writes
// "white" in every pixel;
// the screen should remain fully clear as long as no key is pressed.
// Put your code here.
@24575
D = A // D = 24575
@0
M = D // M[0] = 24575
@SCREEN
D = A // D = @SCREEN Address
@1
M = D // M[1] = @SCREEN Address
(LOOP)
@KBD
D = M
@FILL
D;JGT // if out > 0 jump
@CLEAR
0;JMP // jump
(FILL)
@0
D = M // D = M[0]
@1
D = D - M // D = M[0] - M[1]
@LOOP
D;JLT // if out < 0 jump
@1
D = M // D = M[1]
A = M // A = M[1]
M = -1
@1
M = D + 1 // M = D + 1
@LOOP
0;JMP // jump
(CLEAR)
@SCREEN
D = A // D = @SCREEN Address
@1
D = D - M // D = @SCREEN Address - M[1]
@LOOP
D;JGT // if out > 0 jump
@1
D = M // D = M[1]
A = M // A = M[1]
M = 0 // M[1] = 0
@1
M = D - 1 // M[1] = M[1] - 1
@LOOP
0;JMP |
struct SuperScope : Controller {
enum : uint {
X, Y, Trigger, Cursor, Turbo, Pause,
};
SuperScope(uint port);
auto data() -> uint2;
auto latch(bool data) -> void;
auto latch() -> void override;
auto draw(uint16_t* data, uint pitch, uint width, uint height) -> void override;
private:
bool latched;
uint counter;
int x;
int y;
bool trigger;
bool cursor;
bool turbo;
bool pause;
bool offscreen;
bool oldturbo;
bool triggerlock;
bool pauselock;
uint prev;
};
|
INCLUDE "graphics/grafix.inc"
XLIB w_respixel
LIB l_cmp
LIB w_pixeladdress
XREF COORDS
;
; $Id: w_respixl.asm,v 1.1 2008/07/17 15:39:56 stefano Exp $
;
; ******************************************************************
;
; Reset pixel at (x,y) coordinate.
;
; Wide resolution (WORD based parameters) version by Stefano Bodrato
;
; Design & programming by Gunther Strube, Copyright (C) InterLogic 1995
;
; The (0,0) origin is placed at the top left corner.
;
; in: hl,de = (x,y) coordinate of pixel
;
; registers changed after return:
; ......../ixiy same
; afbcdehl/.... different
;
.w_respixel
push hl
ld hl,maxy
call l_cmp
pop hl
ret nc ; Return if Y overflows
push de
ld de,maxx
call l_cmp
pop de
ret c ; Return if X overflows
ld (COORDS),hl ; store Y
ld (COORDS+2),de ; store X: COORDS must be 2 bytes wider
call w_pixeladdress
ld b,a
ld a,1
jr z, reset_pixel
.reset_position rlca
djnz reset_position
.reset_pixel ex de,hl
cpl
and (hl)
ld (hl),a
ret
|
; A SIMPLE PROGRAM TO DISPLAY A 10x10 SOLID BOX OF ASTERISKS
.MODEL SMALL
.DATA
ASTERISKS DB 0AH, 0DH, "**********$"
.CODE
MAIN PROC
; INITIALIZE DATA SEGMENT
MOV AX, @DATA
MOV DS, AX
MOV AH, 9
LEA DX, ASTERISKS
; DISPLAY 10 TIMES
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
; DOS EXIT
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN |
gdt_start: ; don't remove the labels, they're needed to compute sizes and jumps
; the GDT starts with a null 8-byte
dd 0x0 ; 4 byte
dd 0x0 ; 4 byte
; GDT for code segment. base = 0x00000000, length = 0xfffff
; for flags, refer to os-dev.pdf document, page 36
gdt_code:
dw 0xffff ; segment length, bits 0-15
dw 0x0 ; segment base, bits 0-15
db 0x0 ; segment base, bits 16-23
db 10011010b ; flags (8 bits)
db 11001111b ; flags (4 bits) + segment length, bits 16-19
db 0x0 ; segment base, bits 24-31
; GDT for data segment. base and length identical to code segment
; some flags changed, again, refer to os-dev.pdf
gdt_data:
dw 0xffff
dw 0x0
db 0x0
db 10010010b
db 11001111b
db 0x0
gdt_end:
; GDT descriptor
gdt_descriptor:
dw gdt_end - gdt_start - 1 ; size (16 bit), always one less of its true size
dd gdt_start ; address (32 bit)
; define some constants for later use
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
|
; A017271: a(n) = (10*n)^3.
; 0,1000,8000,27000,64000,125000,216000,343000,512000,729000,1000000,1331000,1728000,2197000,2744000,3375000,4096000,4913000,5832000,6859000,8000000,9261000,10648000,12167000,13824000,15625000,17576000,19683000,21952000,24389000,27000000,29791000,32768000,35937000,39304000,42875000,46656000,50653000,54872000,59319000,64000000,68921000,74088000,79507000,85184000,91125000,97336000,103823000,110592000,117649000,125000000,132651000,140608000,148877000,157464000,166375000,175616000,185193000,195112000
mul $0,10
pow $0,3
|
; stdio_error_ebadf_zc
; 06.2008 aralbrec
PUBLIC stdio_error_ebadf_zc
EXTERN stdio_errno_zc
INCLUDE "../stdio.def"
pop hl
.stdio_error_ebadf_zc
ld hl,EBADF
jp stdio_errno_zc
|
; A292542: Number of 4-cycles in the n-Sierpinski tetrahedron graph.
; 3,39,156,624,2496,9984,39936,159744,638976,2555904,10223616,40894464,163577856,654311424,2617245696,10468982784,41875931136,167503724544,670014898176,2680059592704,10720238370816,42880953483264,171523813933056,686095255732224
seq $0,330246 ; a(n) = 4^(n+1) + (4^n-1)/3.
sub $0,1
div $0,4
mul $0,9
add $0,3
|
#include "config.h"
[GLOBAL tasks_switch_to_user]
tasks_switch_to_user:
mov ebx, [esp+4]
mov ax, GDT_USER_DS_SELECTOR
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov eax, esp
push GDT_USER_DS_SELECTOR
push eax
pushf
push GDT_USER_CS_SELECTOR
push ebx
iret
|
; A011665: A binary m-sequence: expansion of reciprocal of x^5+x^4+x^3+x^2+1.
; 0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,0,1,1,1,1,1,0,0,1,0,0,1,1,0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,0,1,1,1,1,1,0,0,1,0,0,1,1,0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,0
mov $2,$0
mul $0,2
sub $2,8
sub $0,$2
cal $0,11747 ; Expansion of (1 + x^2 + x^4)/(1 + x^2 + x^3 + x^4 + x^5) mod 2.
add $0,5
mov $1,4
mul $1,$0
mul $1,3
log $1,2
sub $1,5
|
; A079309: a(n) = C(1,1) + C(3,2) + C(5,3) + ... + C(2*n-1,n).
; 1,4,14,49,175,637,2353,8788,33098,125476,478192,1830270,7030570,27088870,104647630,405187825,1571990935,6109558585,23782190485,92705454895,361834392115,1413883873975,5530599237775,21654401079325,84859704298201,332818970772253,1306288683596309,5130633983976529,20164267233747049,79296558016177761,312010734643808305,1228322805115103572,4838037022123236442,19064557759743524812,75157696668074947528,296413966806493337130,1169479248974306442046,4615789573320937119346,18224297007920453127146,71977901374588541357956,284370191798984402172376,1123825434904929947296036,4442601977416807683831436,17566854668259233278312336,69480565312035938963147896,274878290033065513629236416,1087728860205650638903544176,4305262367138800093114345726,17044068496629228544479560026,67489740769411325211885808654,267294168202783551227887028710,1058827092265758138906661092778,4195089621571883863671614931538,16623981867340604328480876440698,65887591132387532716270312967914,261182613575966427396435579200806,1035510246422437132619546985668062,4106119824951545101607747390624422,16284469678778854673527050691637782,64591924098960515975473620452324110,256237890815091041140573126716030526
add $0,1
mov $1,2
lpb $0
mov $2,$0
sub $0,1
add $2,$0
bin $2,$0
add $1,$2
lpe
sub $1,2
mov $0,$1
|
; ===============================================================
; Feb 2021
; ===============================================================
;
; void *memset_wr(void *s, int c, size_t n)
;
; Write c into the first n bytes of s.
;
; Only writes to memory, doesn't read.
;
; ===============================================================
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_string
PUBLIC asm_memset_wr
asm_memset_wr:
;
; enter : hl = void *s
; e = char c
; bc = uint n
;
; exit : hl = void *s
; de = ptr in s to byte after last one written
; bc = 0
; carry reset
;
; uses : af, bc, de
ld a,b
or c
ld a,e
ld e,l
ld d,h
ret z
push hl
ld e,a
loop:
ld (hl),e
inc hl
dec bc
ld a,b
or c
jr nz,loop
ex de,hl
pop hl
ret
|
; A094195: G.f.: (1-4*x)/((1-5*x)*(1-x)^2).
; 1,3,10,42,199,981,4888,24420,122077,610359,3051766,15258798,76293955,381469737,1907348644,9536743176,47683715833,238418579115,1192092895522,5960464477554,29802322387711,149011611938493,745058059692400,3725290298461932,18626451492309589
lpb $0,1
sub $0,1
add $2,1
add $3,$2
add $1,$3
add $1,1
mov $2,$3
mul $3,4
lpe
add $1,1
|
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this software.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// 2. 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.
//
// 3. Neither the name of the Corporation nor the names of the
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "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 SANDIA CORPORATION OR THE
// 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.
//
// Questions? Contact Siva Rajamanickam (srajama@sandia.gov)
//
// ************************************************************************
//@HEADER
*/
#define KOKKOSKERNELS_IMPL_COMPILE_LIBRARY true
#include "KokkosKernels_config.h"
#if defined (KOKKOSKERNELS_INST_KOKKOS_COMPLEX_DOUBLE_) \
&& defined (KOKKOSKERNELS_INST_LAYOUTLEFT) \
&& defined (KOKKOSKERNELS_INST_EXECSPACE_CUDA) \
&& defined (KOKKOSKERNELS_INST_MEMSPACE_CUDASPACE) \
&& defined (KOKKOSKERNELS_INST_MEMSPACE_CUDASPACE) \
&& defined (KOKKOSKERNELS_INST_ORDINAL_INT64_T) \
&& defined (KOKKOSKERNELS_INST_OFFSET_INT)
#include "KokkosSparse_spgemm_numeric_spec.hpp"
namespace KokkosSparse {
namespace Impl {
KOKKOSSPARSE_SPGEMM_NUMERIC_ETI_SPEC_INST(Kokkos::complex<double>, int64_t, int, Kokkos::LayoutLeft, Kokkos::Cuda, Kokkos::CudaSpace, Kokkos::CudaSpace)
} // Impl
} // KokkosSparse
#endif
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x12895, %rcx
nop
nop
nop
cmp %r9, %r9
mov (%rcx), %rax
nop
nop
and %r11, %r11
lea addresses_D_ht+0xfe6d, %rax
nop
nop
nop
nop
nop
cmp $17613, %r13
movups (%rax), %xmm1
vpextrq $0, %xmm1, %rbx
nop
nop
nop
dec %r13
lea addresses_WT_ht+0xa6f9, %rsi
lea addresses_A_ht+0x78ad, %rdi
nop
nop
nop
nop
nop
cmp $4843, %rax
mov $87, %rcx
rep movsb
nop
nop
nop
nop
add $21597, %rsi
lea addresses_D_ht+0x1569d, %rdi
nop
nop
nop
nop
nop
sub $42404, %rax
mov $0x6162636465666768, %rbx
movq %rbx, (%rdi)
nop
nop
cmp $4881, %rdi
lea addresses_WT_ht+0x313d, %rbx
nop
nop
add %rsi, %rsi
movw $0x6162, (%rbx)
nop
nop
nop
add $46181, %rax
lea addresses_WC_ht+0x3525, %rsi
clflush (%rsi)
sub %r9, %r9
movw $0x6162, (%rsi)
nop
add $8975, %r13
lea addresses_A_ht+0x1567d, %rax
nop
nop
nop
nop
sub %rsi, %rsi
movb $0x61, (%rax)
nop
nop
nop
nop
nop
xor $52848, %rbx
lea addresses_D_ht+0x1e05d, %r13
nop
nop
xor $57962, %r11
vmovups (%r13), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r9
nop
xor $4912, %rdi
lea addresses_WT_ht+0x18525, %rsi
lea addresses_D_ht+0x11465, %rdi
nop
nop
nop
nop
nop
add %rax, %rax
mov $93, %rcx
rep movsb
nop
nop
nop
nop
nop
add $52278, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r9
push %rbp
push %rbx
push %rcx
push %rdx
push %rsi
// Load
lea addresses_PSE+0x1f67f, %r10
mfence
mov (%r10), %ebp
nop
xor $44244, %rbx
// Faulty Load
lea addresses_WC+0x1a8ad, %r9
nop
nop
nop
nop
dec %rdx
movb (%r9), %cl
lea oracles, %rsi
and $0xff, %rcx
shlq $12, %rcx
mov (%rsi,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
{'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
title "Jump Unwind"
;++
;
; Copyright (c) 2000 Microsoft Corporation
;
; Module Name:
;
; jmpunwind.asm
;
; Abstract:
;
; This module implements the AMD64 specific routine to perform jump unwind.
;
; Author:
;
; David N. Cutler (davec) 22-Dec-2000
;
; Environment:
;
; Any mode.
;
;--
include ksamd64.inc
extern RtlUnwindEx:proc
subttl "Jump Unwind"
;++
;
; VOID
; _local_unwind (
; IN PVOID TargetFrame,
; IN PVOID TargetIp
; )
;
; Routine Description:
;
; This function performs a transfer of control to unwind for local unwinds.
;
; Arguments:
;
; TargetFrame (rcx) - Supplies the establisher frame pointer of the
; target of the unwind.
;
; TargetIp (rdx) - Supplies the target instruction address where control
; is to be transferred to after the unwind operation is complete.
;
; Return Value:
;
; None.
;
;--
NESTED_ENTRY _local_unwind, _TEXT$00
alloc_stack (CONTEXT_FRAME_LENGTH + 8) ; allocate stack
END_PROLOGUE
;
; The first two arguments to the unwind routine are the same as the two
; arguments to this routine.
;
xor r8, r8 ; set NULL exception record address
xor r9, r9 ; set zero return value
;
; The context frame has space allocated for six argument home addresses.
;
mov CxP5Home[rsp], rsp ; set context frame address argument
mov CxP6Home[rsp], r8 ; set NULL history table address
call RtlUnwindEx ; perform unwind operation
add rsp, CONTEXT_FRAME_LENGTH + 8 ; deallocate stack frame
ret ; return
NESTED_END _local_unwind, _TEXT$00
end
|
; A271357: a(n) = k*Fibonacci(2*n+1) + (k+1)*Fibonacci(2*n), where k=3.
; 3,10,27,71,186,487,1275,3338,8739,22879,59898,156815,410547,1074826,2813931,7366967,19286970,50493943,132194859,346090634,906077043,2372140495,6210344442,16258892831,42566334051,111440109322,291753993915,763821872423,1999711623354,5235312997639,13706227369563,35883369111050,93943879963587,245948270779711,643900932375546,1685754526346927,4413362646665235
mov $1,3
mov $2,4
lpb $0,1
sub $0,1
add $2,$1
add $1,$2
lpe
|
#include "kernel.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 50
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_HEADER_END
start:
pcall(getLcdLock)
pcall(getKeypadLock)
pcall(allocScreenBuffer)
xor a
kld((topThread), a)
kld((cursorWasAtBottom), a)
ld ix, threadTable
redraw:
kcall(drawInterface)
kcall(drawThreads)
kld(a, (totalThreads))
or a
kjp(z, noThreads)
xor a
kld((hasToRedraw), a)
mainLoop:
pcall(fastCopy)
pcall(flushKeys)
pcall(waitKey)
cp kClear
kjp(z, launchLauncher)
cp kYEqu
kjp(z, launchLauncher)
cp kUp
jr z, doUp
cp kDown
jr z, doDown
cp k2nd
kjp(z, doSelect)
cp kEnter
kjp(z, doSelect)
cp kDel
kjp(z, doKill)
cp kGraph
kjp(z, doOptions)
jr mainLoop
doUp:
ld a, e
cp 12
jr nz, doUp_noScroll
kld(a, (topThread))
or a
jr z, mainLoop
dec a
kld((topThread), a)
xor a
kld((cursorWasAtBottom), a)
inc a
kld((hasToRedraw), a)
ld a, e
add a, 6
doUp_noScroll:
pcall(putSpriteXOR)
sub 6
ld e, a
pcall(putSpriteOR)
push hl
push de
push ix \ pop hl
; Loop to the previous available thread
doUp_loop:
ld a, l
sub 8
ld l, a
push hl
ld a, (hl)
ld b, KEXC_NAME
ex de, hl
pcall(getThreadHeader)
ex de, hl
jr z, _
pop hl \ jr doUp_loop
_: pop ix
pop de
pop hl
kld(a, (hasToRedraw))
or a
kjp(nz, redraw)
kjp(mainLoop)
doDown:
kld(a, (topThread))
ld c, a
kld(a, (totalThreads))
dec a
sub c
add a, a
ld c, a
add a, a
add a, c
add a, 12
ld c, a
ld a, e
cp c
kjp(z, mainLoop)
cp 6 * 6 + 12
jr nz, doDown_noScroll
kld(hl, topThread)
inc (hl)
ld a, 1
kld((cursorWasAtBottom), a)
kld((hasToRedraw), a)
ld a, e
sub 6
doDown_noScroll:
pcall(putSpriteXOR)
add a, 6
ld e, a
pcall(putSpriteOR)
push hl \ push de
push ix \ pop hl
; Loop to the next available thread
doDown_loop:
ld a, 8
add a, l
ld l, a
push hl
ld a, (hl)
ld b, KEXC_NAME
ex de, hl
pcall(getThreadHeader)
ex de, hl
jr z, _
pop hl \ jr doDown_loop
_: pop ix
pop de
pop hl
kld(a, (hasToRedraw))
or a
kjp(nz, redraw)
kjp(mainLoop)
doSelect:
pcall(flushKeys)
di
ld a, (ix)
bit 3, (ix + 5)
pcall(nz, resetLegacyLcdMode)
; TODO: This could be more elegant
ld (hwLockLcd), a
ld (hwLockKeypad), a
pcall(resumeThread)
pcall(killCurrentThread)
doKill:
xor a
kld((cursorWasAtBottom), a)
kld((topThread), a)
di
ld a, (ix)
pcall(killThread)
ei
kjp(redraw - 3)
doOptions:
xor a
kld((cursorWasAtBottom), a)
kld((topThread), a)
kcall(drawOptions)
pcall(fastCopy)
_: pcall(flushKeys)
pcall(waitKey)
cp kClear
kjp(z, redraw - 3)
cp kGraph
kjp(z, redraw - 3)
cp k2nd
jr z, doKill
cp kEnter
jr z, doKill
jr -_
launchLauncher:
kld(de, launcherPath)
di
pcall(launchProgram)
pcall(killCurrentThread)
noThreads:
kcall(drawInterface)
ld b, 0
ld de, (1 << 8) + 12
kld(hl, noProgramsStr)
pcall(drawStr)
pcall(fastCopy)
_: pcall(flushKeys)
pcall(waitKey)
cp kClear
jr z, _
cp kYEqu
jr nz, -_
_: pcall(flushKeys)
jr launchLauncher
drawThreads:
xor a
kld((totalThreads), a)
kld((displayedThreads), a)
ld de, (5 * 256) + 12
ld hl, threadTable
ld a, (activeThreads) \ ld b, a
drawThreads_loop:
push hl \ push de
push de
push bc
ld a, (hl)
inc hl \ ld c, (hl)
inc hl \ ld b, (hl)
push bc
ld b, KEXC_NAME
ex de, hl
pcall(getThreadHeader)
pop bc
jr nz, pop_skipThread
or a
adc hl, bc ; HL points to thread name
pop bc
pop de
push hl
kld(a, (totalThreads))
kld(hl, topThread)
cp (hl)
pop hl
jr nc, dispThread
pop de
ld a, -6
add a, e
ld e, a
push de
kld(a, (totalThreads))
jr noDispThread
dispThread:
ld c, a
ld a, 6 * 6 + 12
cp e
ld a, c
jr c, noDispThread
pcall(drawStr)
noDispThread:
inc a
kld((totalThreads), a)
jr skipThread
pop_skipThread:
pop bc
pop de
skipThread:
pop de \ pop hl
ld a, 6 \ add a, e \ ld e, a
ld a, 8 \ add a, l \ ld l, a
djnz drawThreads_loop
kld(a, (topThread))
or a
jr z, noTopSprite
kld(hl, moreThreadsUpSprite)
ld b, 3
ld de, 90 * 256 + 12
pcall(PutSpriteOR)
noTopSprite:
kld(a, (totalThreads))
kld(hl, topThread)
sub (hl)
cp 8
jr c, noBottomSprite
kld(hl, moreThreadsDownSprite)
ld b, 3
ld de, 90 * 256 + 49
pcall(PutSpriteOR)
noBottomSprite:
kld(a, (cursorWasAtBottom))
ld hl, 1 * 256 + 12
or a
jr z, $ + 6
ld de, 6 * 6
add hl, de
ex de, hl
ld b, 5
kld(hl, selectionIndicatorSprite)
pcall(PutSpriteOR)
ret
drawInterface:
pcall(clearBuffer)
; Castle top
xor a
ld l, 2
pcall(setPixel)
kld(hl, castleTopSprite)
ld b, 12
ld de, 0x0100
_: ld a, 8
push bc
ld b, 3
pcall(putSpriteOR)
pop bc
add a, d
ld d, a
djnz -_
kld(hl, hotkeyLeftSprite)
ld b, 8
ld de, 0x0038
pcall(putSpriteOR)
kld(hl, hotkeyRightSprite)
ld de, 0x5838
pcall(putSpriteOR)
kld(hl, hotkeyArrowLeftSprite)
ld b, 5
ld de, 0x003A
pcall(putSpriteOR)
kld(hl, hotkeyPlusSprite)
ld b, 5
ld de, 0x5A3A
pcall(putSpriteOR)
kld(hl, backStr)
ld de, 9 * 256 + 58
pcall(drawStr)
kld(hl, optionsStr)
ld de, 60 * 256 + 58
pcall(drawStr)
kld(hl, runningProgramsStr)
ld de, 1 * 256 + 4
pcall(drawStr)
ld hl, 0x000A
ld de, 0x5F0A
pcall(drawLine)
ret
drawOptions:
kld(hl, hotkeyPlusSprite)
ld de, 0x5A3A
pcall(putSpriteXOR)
kld(hl, hotkeyArrowUpSprite)
ld de, 0x593A
pcall(putSpriteOR)
ld e, 55 - (61 - ((61 * 256 + 50) >> 8)) ; TODO: Wat
ld l, 48
ld c, 96 - 54 + (61 - ((61 * 256 + 50) >> 8))
ld b, 56 - 47
pcall(rectOR)
ld e, 56 - (61 - ((61 * 256 + 50) >> 8))
ld l, 49
ld c, 95 - 55 + (61 - ((61 * 256 + 50) >> 8))
ld b, 55 - 48
pcall(rectXOR)
ld e, 87
ld l, 56
ld c, 9
ld b, 2
pcall(rectAND)
ld a, 87
ld l, 57
pcall(setPixel)
kld(hl, forceQuitStr)
ld de, 61 * 256 + 50
pcall(drawStr)
kld(hl, selectionIndicatorSprite)
ld b, 5
ld de, ((57 - (61 - ((61 * 256 + 50) >> 8))) * 256) + 50
pcall(putSpriteOR)
ret
castleTopSprite: ; 8x3
.db 0b11110000
.db 0b10010000
.db 0b10011111
hotkeyLeftSprite: ; 8x8
.db 0b01111100
.db 0b10000010
.db 0b00000001
.db 0b00000001
.db 0b00000001
.db 0b00000001
.db 0b00000001
.db 0b10000010
hotkeyRightSprite: ; 8x8
.db 0b00111110
.db 0b01000001
.db 0b10000000
.db 0b10000000
.db 0b10000000
.db 0b10000000
.db 0b10000000
.db 0b01000001
hotkeyPlusSprite: ; 8x5
.db 0b00100000
.db 0b00100000
.db 0b11111000
.db 0b00100000
.db 0b00100000
hotkeyArrowLeftSprite: ; 8x5
.db 0b0010000
.db 0b0100000
.db 0b1111100
.db 0b0100000
.db 0b0010000
hotkeyArrowUpSprite: ; 8x5
.db 0b0010000
.db 0b0111000
.db 0b1010100
.db 0b0010000
.db 0b0010000
selectionIndicatorSprite: ; 8x5
.db 0b10000000
.db 0b11000000
.db 0b11100000
.db 0b11000000
.db 0b10000000
moreThreadsUpSprite: ; 8x3
.db 0b00100000
.db 0b01110000
.db 0b11111000
moreThreadsDownSprite: ; 8x3
.db 0b11111000
.db 0b01110000
.db 0b00100000
backStr:
.db "Launcher", 0
optionsStr:
.db "Options", 0
runningProgramsStr:
.db "Running Programs", 0
noProgramsStr:
.db "No programs running!", 0
forceQuitStr:
.db "Kill", 0
totalThreads:
.db 0
topThread:
.db 0
cursorWasAtBottom:
.db 0
displayedThreads:
.db 0
hasToRedraw:
.db 0
launcherPath:
.db "/bin/launcher", 0
|
; A036603: a(n) = n! in binary.
; 1,1,10,110,11000,1111000,1011010000,1001110110000,1001110110000000,1011000100110000000,1101110101111100000000,10011000010001010100000000,11100100011001111110000000000,101110011001010001100110000000000
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
seq $0,7088 ; The binary numbers (or binary words, or binary vectors, or binary expansion of n): numbers written in base 2.
|
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. 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 <LibGUI/AboutDialog.h>
#include <LibGUI/Application.h>
#include <LibGUI/Icon.h>
#include <LibGfx/Bitmap.h>
#include <stdio.h>
#include <sys/utsname.h>
int main(int argc, char** argv)
{
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio sendfd shared_buffer accept rpath", nullptr) < 0) {
perror("pledge");
return 1;
}
if (unveil("/res", "r") < 0) {
perror("unveil");
return 1;
}
unveil(nullptr, nullptr);
auto app_icon = GUI::Icon::default_icon("ladybug");
GUI::AboutDialog::show("SerenityOS", nullptr, nullptr, app_icon.bitmap_for_size(32));
return app->exec();
}
|
// Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Security.Cryptography
// Name: DeriveBytes
// C++ Typed Name: mscorlib::System::Security::Cryptography::DeriveBytes
#include <gtest/gtest.h>
#include <mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_DeriveBytes.h>
#include <mscorlib/System/mscorlib_System_Byte.h>
#include <mscorlib/System/mscorlib_System_Type.h>
#include <mscorlib/System/mscorlib_System_String.h>
namespace mscorlib
{
namespace System
{
namespace Security
{
namespace Cryptography
{
//Public Methods Tests
// Method GetBytes
// Signature: mscorlib::System::Int32 cb
TEST(mscorlib_System_Security_Cryptography_DeriveBytes_Fixture,GetBytes_Test)
{
}
// Method Reset
// Signature:
TEST(mscorlib_System_Security_Cryptography_DeriveBytes_Fixture,Reset_Test)
{
}
// Method Dispose
// Signature:
TEST(mscorlib_System_Security_Cryptography_DeriveBytes_Fixture,Dispose_Test)
{
}
}
}
}
}
|
; A007581: a(n) = (2^n+1)*(2^n+2)/6.
; 1,2,5,15,51,187,715,2795,11051,43947,175275,700075,2798251,11188907,44747435,178973355,715860651,2863377067,11453377195,45813246635,183252462251,733008800427,2932033104555,11728128223915,46912504507051,187650001250987,750599971449515,3002399818689195,12009599140539051,48038396293720747,192153584638012075,768614337478306475,3074457347765742251,12297829386768001707,49191317538482072235,196765270136748419755,787061080512633940651,3148244321981816285867,12592977287789826189995
mov $1,2
pow $1,$0
add $1,2
bin $1,2
div $1,3
mov $0,$1
|
// Copyright (c) 2012-2019 The Starwels developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/wallet.h>
#include <wallet/test/wallet_test_fixture.h>
#include <stdint.h>
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(accounting_tests, WalletTestingSetup)
static void
GetResults(CWallet *wallet, std::map<CAmount, CAccountingEntry>& results)
{
std::list<CAccountingEntry> aes;
results.clear();
BOOST_CHECK(wallet->ReorderTransactions() == DB_LOAD_OK);
wallet->ListAccountCreditDebit("", aes);
for (CAccountingEntry& ae : aes)
{
results[ae.nOrderPos] = ae;
}
}
BOOST_AUTO_TEST_CASE(acc_orderupgrade)
{
std::vector<CWalletTx*> vpwtx;
CWalletTx wtx;
CAccountingEntry ae;
std::map<CAmount, CAccountingEntry> results;
LOCK(pwalletMain->cs_wallet);
ae.strAccount = "";
ae.nCreditDebit = 1;
ae.nTime = 1333333333;
ae.strOtherAccount = "b";
ae.strComment = "";
pwalletMain->AddAccountingEntry(ae);
wtx.mapValue["comment"] = "z";
pwalletMain->AddToWallet(wtx);
vpwtx.push_back(&pwalletMain->mapWallet[wtx.GetHash()]);
vpwtx[0]->nTimeReceived = (unsigned int)1333333335;
vpwtx[0]->nOrderPos = -1;
ae.nTime = 1333333336;
ae.strOtherAccount = "c";
pwalletMain->AddAccountingEntry(ae);
GetResults(pwalletMain.get(), results);
BOOST_CHECK(pwalletMain->nOrderPosNext == 3);
BOOST_CHECK(2 == results.size());
BOOST_CHECK(results[0].nTime == 1333333333);
BOOST_CHECK(results[0].strComment.empty());
BOOST_CHECK(1 == vpwtx[0]->nOrderPos);
BOOST_CHECK(results[2].nTime == 1333333336);
BOOST_CHECK(results[2].strOtherAccount == "c");
ae.nTime = 1333333330;
ae.strOtherAccount = "d";
ae.nOrderPos = pwalletMain->IncOrderPosNext();
pwalletMain->AddAccountingEntry(ae);
GetResults(pwalletMain.get(), results);
BOOST_CHECK(results.size() == 3);
BOOST_CHECK(pwalletMain->nOrderPosNext == 4);
BOOST_CHECK(results[0].nTime == 1333333333);
BOOST_CHECK(1 == vpwtx[0]->nOrderPos);
BOOST_CHECK(results[2].nTime == 1333333336);
BOOST_CHECK(results[3].nTime == 1333333330);
BOOST_CHECK(results[3].strComment.empty());
wtx.mapValue["comment"] = "y";
{
CMutableTransaction tx(*wtx.tx);
--tx.nLockTime; // Just to change the hash :)
wtx.SetTx(MakeTransactionRef(std::move(tx)));
}
pwalletMain->AddToWallet(wtx);
vpwtx.push_back(&pwalletMain->mapWallet[wtx.GetHash()]);
vpwtx[1]->nTimeReceived = (unsigned int)1333333336;
wtx.mapValue["comment"] = "x";
{
CMutableTransaction tx(*wtx.tx);
--tx.nLockTime; // Just to change the hash :)
wtx.SetTx(MakeTransactionRef(std::move(tx)));
}
pwalletMain->AddToWallet(wtx);
vpwtx.push_back(&pwalletMain->mapWallet[wtx.GetHash()]);
vpwtx[2]->nTimeReceived = (unsigned int)1333333329;
vpwtx[2]->nOrderPos = -1;
GetResults(pwalletMain.get(), results);
BOOST_CHECK(results.size() == 3);
BOOST_CHECK(pwalletMain->nOrderPosNext == 6);
BOOST_CHECK(0 == vpwtx[2]->nOrderPos);
BOOST_CHECK(results[1].nTime == 1333333333);
BOOST_CHECK(2 == vpwtx[0]->nOrderPos);
BOOST_CHECK(results[3].nTime == 1333333336);
BOOST_CHECK(results[4].nTime == 1333333330);
BOOST_CHECK(results[4].strComment.empty());
BOOST_CHECK(5 == vpwtx[1]->nOrderPos);
ae.nTime = 1333333334;
ae.strOtherAccount = "e";
ae.nOrderPos = -1;
pwalletMain->AddAccountingEntry(ae);
GetResults(pwalletMain.get(), results);
BOOST_CHECK(results.size() == 4);
BOOST_CHECK(pwalletMain->nOrderPosNext == 7);
BOOST_CHECK(0 == vpwtx[2]->nOrderPos);
BOOST_CHECK(results[1].nTime == 1333333333);
BOOST_CHECK(2 == vpwtx[0]->nOrderPos);
BOOST_CHECK(results[3].nTime == 1333333336);
BOOST_CHECK(results[3].strComment.empty());
BOOST_CHECK(results[4].nTime == 1333333330);
BOOST_CHECK(results[4].strComment.empty());
BOOST_CHECK(results[5].nTime == 1333333334);
BOOST_CHECK(6 == vpwtx[1]->nOrderPos);
}
BOOST_AUTO_TEST_SUITE_END()
|
###############################################################################
# Copyright 2019 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
.p2align 6, 0x90
ALPHA_MUL_CNT:
.quad 0x87, 0x1
.p2align 6, 0x90
.globl n0_cpAESDecryptXTS_AES_NI
.type n0_cpAESDecryptXTS_AES_NI, @function
n0_cpAESDecryptXTS_AES_NI:
sub $(104), %rsp
movslq %r8d, %r8
movdqu (%r9), %xmm15
shl $(4), %r8
movdqa (%r8,%rcx), %xmm0
movdqa ALPHA_MUL_CNT(%rip), %xmm8
pshufd $(95), %xmm15, %xmm9
movslq %edx, %rdx
movdqa %xmm9, %xmm14
paddd %xmm9, %xmm9
movdqa %xmm15, %xmm10
psrad $(31), %xmm14
paddq %xmm15, %xmm15
pand %xmm8, %xmm14
pxor %xmm0, %xmm10
pxor %xmm14, %xmm15
movdqa %xmm9, %xmm14
paddd %xmm9, %xmm9
movdqa %xmm15, %xmm11
psrad $(31), %xmm14
paddq %xmm15, %xmm15
pand %xmm8, %xmm14
pxor %xmm0, %xmm11
pxor %xmm14, %xmm15
movdqa %xmm9, %xmm14
paddd %xmm9, %xmm9
movdqa %xmm15, %xmm12
psrad $(31), %xmm14
paddq %xmm15, %xmm15
pand %xmm8, %xmm14
pxor %xmm0, %xmm12
pxor %xmm14, %xmm15
movdqa %xmm9, %xmm14
paddd %xmm9, %xmm9
movdqa %xmm15, %xmm13
psrad $(31), %xmm14
paddq %xmm15, %xmm15
pand %xmm8, %xmm14
pxor %xmm0, %xmm13
pxor %xmm14, %xmm15
movdqa %xmm15, %xmm14
psrad $(31), %xmm9
paddq %xmm15, %xmm15
pand %xmm8, %xmm9
pxor %xmm0, %xmm14
pxor %xmm9, %xmm15
movdqa %xmm15, %xmm8
pxor %xmm0, %xmm15
sub $(6), %rdx
jc .Lshort_inputgas_1
.p2align 6, 0x90
.Lblks_loopgas_1:
pxor (%rcx), %xmm0
lea (-96)(%r8), %rax
lea (96)(%rcx), %r10
movdqu (%rsi), %xmm2
movdqu (16)(%rsi), %xmm3
movdqu (32)(%rsi), %xmm4
movdqu (48)(%rsi), %xmm5
movdqu (64)(%rsi), %xmm6
movdqu (80)(%rsi), %xmm7
movdqa (-16)(%r8,%rcx), %xmm1
pxor %xmm10, %xmm2
pxor %xmm11, %xmm3
pxor %xmm12, %xmm4
pxor %xmm13, %xmm5
pxor %xmm14, %xmm6
pxor %xmm15, %xmm7
pxor %xmm0, %xmm10
pxor %xmm0, %xmm11
pxor %xmm0, %xmm12
pxor %xmm0, %xmm13
pxor %xmm0, %xmm14
pxor %xmm0, %xmm15
movdqa (-32)(%r8,%rcx), %xmm0
movdqa %xmm10, (%rsp)
movdqa %xmm11, (16)(%rsp)
movdqa %xmm12, (32)(%rsp)
movdqa %xmm13, (48)(%rsp)
movdqa %xmm14, (64)(%rsp)
movdqa %xmm15, (80)(%rsp)
add $(96), %rsi
.p2align 6, 0x90
.Lcipher_loopgas_1:
sub $(32), %rax
aesdec %xmm1, %xmm2
aesdec %xmm1, %xmm3
aesdec %xmm1, %xmm4
aesdec %xmm1, %xmm5
aesdec %xmm1, %xmm6
aesdec %xmm1, %xmm7
movdqa (-16)(%r10,%rax), %xmm1
aesdec %xmm0, %xmm2
aesdec %xmm0, %xmm3
aesdec %xmm0, %xmm4
aesdec %xmm0, %xmm5
aesdec %xmm0, %xmm6
aesdec %xmm0, %xmm7
movdqa (-32)(%r10,%rax), %xmm0
jnz .Lcipher_loopgas_1
movdqa (%r8,%rcx), %xmm10
movdqa %xmm8, %xmm15
pshufd $(95), %xmm8, %xmm9
movdqa ALPHA_MUL_CNT(%rip), %xmm8
aesdec %xmm1, %xmm2
aesdec %xmm1, %xmm3
aesdec %xmm1, %xmm4
aesdec %xmm1, %xmm5
aesdec %xmm1, %xmm6
aesdec %xmm1, %xmm7
movdqa (48)(%rcx), %xmm1
movdqa %xmm9, %xmm14
paddd %xmm9, %xmm9
psrad $(31), %xmm14
paddq %xmm15, %xmm15
pand %xmm8, %xmm14
pxor %xmm14, %xmm15
movdqa %xmm10, %xmm11
pxor %xmm15, %xmm10
aesdec %xmm0, %xmm2
aesdec %xmm0, %xmm3
aesdec %xmm0, %xmm4
aesdec %xmm0, %xmm5
aesdec %xmm0, %xmm6
aesdec %xmm0, %xmm7
movdqa (32)(%rcx), %xmm0
movdqa %xmm9, %xmm14
paddd %xmm9, %xmm9
psrad $(31), %xmm14
paddq %xmm15, %xmm15
pand %xmm8, %xmm14
pxor %xmm14, %xmm15
movdqa %xmm11, %xmm12
pxor %xmm15, %xmm11
aesdec %xmm1, %xmm2
aesdec %xmm1, %xmm3
aesdec %xmm1, %xmm4
aesdec %xmm1, %xmm5
aesdec %xmm1, %xmm6
aesdec %xmm1, %xmm7
movdqa (16)(%rcx), %xmm1
movdqa %xmm9, %xmm14
paddd %xmm9, %xmm9
psrad $(31), %xmm14
paddq %xmm15, %xmm15
pand %xmm8, %xmm14
pxor %xmm14, %xmm15
movdqa %xmm12, %xmm13
pxor %xmm15, %xmm12
aesdec %xmm0, %xmm2
aesdec %xmm0, %xmm3
aesdec %xmm0, %xmm4
aesdec %xmm0, %xmm5
aesdec %xmm0, %xmm6
aesdec %xmm0, %xmm7
movdqa %xmm9, %xmm14
paddd %xmm9, %xmm9
psrad $(31), %xmm14
paddq %xmm15, %xmm15
pand %xmm8, %xmm14
pxor %xmm14, %xmm15
movdqa %xmm13, %xmm14
pxor %xmm15, %xmm13
aesdec %xmm1, %xmm2
aesdec %xmm1, %xmm3
aesdec %xmm1, %xmm4
aesdec %xmm1, %xmm5
aesdec %xmm1, %xmm6
aesdec %xmm1, %xmm7
movdqa %xmm9, %xmm0
paddd %xmm9, %xmm9
psrad $(31), %xmm0
paddq %xmm15, %xmm15
pand %xmm8, %xmm0
pxor %xmm0, %xmm15
movdqa %xmm14, %xmm0
pxor %xmm15, %xmm14
aesdeclast (%rsp), %xmm2
aesdeclast (16)(%rsp), %xmm3
aesdeclast (32)(%rsp), %xmm4
aesdeclast (48)(%rsp), %xmm5
aesdeclast (64)(%rsp), %xmm6
aesdeclast (80)(%rsp), %xmm7
psrad $(31), %xmm9
paddq %xmm15, %xmm15
pand %xmm8, %xmm9
pxor %xmm9, %xmm15
movdqa %xmm15, %xmm8
pxor %xmm0, %xmm15
movdqu %xmm2, (%rdi)
movdqu %xmm3, (16)(%rdi)
movdqu %xmm4, (32)(%rdi)
movdqu %xmm5, (48)(%rdi)
movdqu %xmm6, (64)(%rdi)
movdqu %xmm7, (80)(%rdi)
add $(96), %rdi
sub $(6), %rdx
jnc .Lblks_loopgas_1
.Lshort_inputgas_1:
add $(6), %rdx
jz .Lquitgas_1
movdqa %xmm10, (%rsp)
movdqa %xmm11, (16)(%rsp)
movdqa %xmm12, (32)(%rsp)
movdqa %xmm13, (48)(%rsp)
movdqa %xmm14, (64)(%rsp)
movdqa %xmm15, (80)(%rsp)
movdqa (%r8,%rcx), %xmm0
pxor (%rcx), %xmm0
xor %rax, %rax
.Lsingle_blk_loopgas_1:
movdqu (%rsi), %xmm2
movdqa (%rsp,%rax), %xmm1
add $(16), %rsi
pxor %xmm1, %xmm2
pxor %xmm0, %xmm1
cmp $(192), %r8
jl .Lkey_128_sgas_1
.Lkey_256_sgas_1:
aesdec (208)(%rcx), %xmm2
aesdec (192)(%rcx), %xmm2
aesdec (176)(%rcx), %xmm2
aesdec (160)(%rcx), %xmm2
.Lkey_128_sgas_1:
aesdec (144)(%rcx), %xmm2
aesdec (128)(%rcx), %xmm2
aesdec (112)(%rcx), %xmm2
aesdec (96)(%rcx), %xmm2
aesdec (80)(%rcx), %xmm2
aesdec (64)(%rcx), %xmm2
aesdec (48)(%rcx), %xmm2
aesdec (32)(%rcx), %xmm2
aesdec (16)(%rcx), %xmm2
aesdeclast %xmm1, %xmm2
movdqu %xmm2, (%rdi)
add $(16), %rdi
add $(16), %rax
sub $(1), %rdx
jnz .Lsingle_blk_loopgas_1
movdqa (%rsp,%rax), %xmm10
.Lquitgas_1:
pxor (%r8,%rcx), %xmm10
movdqu %xmm10, (%r9)
pxor %xmm0, %xmm0
pxor %xmm1, %xmm1
add $(104), %rsp
ret
.Lfe1:
.size n0_cpAESDecryptXTS_AES_NI, .Lfe1-(n0_cpAESDecryptXTS_AES_NI)
|
; A138401: a(n) = prime(n)^4 - prime(n).
; 14,78,620,2394,14630,28548,83504,130302,279818,707252,923490,1874124,2825720,3418758,4879634,7890428,12117302,13845780,20151054,25411610,28398168,38950002,47458238,62742152,88529184,104060300,112550778,131079494,141158052,163047248,260144514,294499790,352275224,373300902,492884252,519885450,607573044,705911598,777796154,895744868,1026625502,1073282940,1330863170,1387487808,1506138284,1568239002,1982119230,2472973218,2655237614,2750058252,2947295288,3262808402,3373402320,3969125750,4362470144
seq $0,40 ; The prime numbers.
sub $1,$0
pow $0,4
add $1,$0
mov $0,$1
|
* = $0000
.byte 0
;
; 0000,1 Mapping
; 0002,9FFF RAM
; A000,BFFF ROM image
; C000,CFFF RAM
; D000,DFFF Probably I/O mapped here.
; E000,FFF ROM image
;
vwrite .macro
ldz #\1
lda #\2
nop
sta ($04),z
.endm
* = $E000 ; find out how much leeway.
PETFont:
.binary "c64-chargen.rom"
* = $D000
.word $D000
* = $C000
.word $C000
* = $B000
.word $B000
* = $A000
.word $A000
* = $9000
.word $9000
* = $8000
.word $8000
* = $F000
Start:
lda #$02 ; zap all memory.
sta $03
lda #$00
sta $02
Fill1: ldy #$00
Fill2: tya
lsr a
lda #$AA
bcc Fill3
lda #$55
Fill3:
sta ($02),y
iny
bne Fill2
inc $03
lda $03
cmp #$D0
bne Fill1
NoFill:
lda #$0F ; set up to write to video system.
sta $07
lda #$FD
sta $06
lda #$30
sta $05
lda #$00
sta $04
#vwrite $2F,$47
#vwrite $2F,$53
#vwrite $30,$40
#vwrite $31,$40
lda $d031 ; VIC-III Control Register B
and #$40 ; bit-6 is 4mhz
sta $d031
#vwrite $20,0 ; black border
#vwrite $21,0 ; black background
#vwrite $6F,$80 ; 60Mhz mode.
lda $d066
and #$7F
sta $d066
#vwrite $6A,$00
#vwrite $6B,$00
#vwrite $78,$00
#vwrite $5F,$00
#vwrite $5A,$78
#vwrite $5D,$C0
#vwrite $5C,80
; point VIC-IV to bottom 16KB of display memory
;
lda #$ff
sta $DD01
sta $DD00
#vwrite $18,$14
#vwrite $11,$1B
#vwrite $16,$C8
#vwrite $C5,$54
#vwrite $58,80
#vwrite $59,0
#vwrite $18,$42 ; screen address $0800 video address $2000
#vwrite $11,$1B
lda #$00 ; colour RAM at $1F800-1FFFF (2kb)
sta $0B ; char RAM appears to be here.
lda #$01
sta $0A
lda #$F8
sta $09
lda #$00
sta $08
ldz #0
SetColorRam:
tza
nop
sta ($08),z
dez
bne SetColorRam
inc $09
bne SetColorRam
Screen = $1000 ; 2k screen RAM here
ldx #0
Clear2:
txa
and #1 ; odd bits write zero
eor #1
beq _CL2Write
txa
;and #2
lsr a
_CL2Write:
sta Screen,x
sta Screen+$100,x
sta Screen+$200,x
sta Screen+$300,x
sta Screen+$400,x
sta Screen+$500,x
sta Screen+$600,x
sta Screen+$700,x
inx
bne Clear2
CSet = $800
ldx #0
CopyPetFont:
lda PETFont,x
sta CSet,x
lda PETFont+$100,x
sta CSet+$100,x
lda PETFont+$200,x
sta CSet+$200,x
lda PETFont+$300,x
sta CSet+$300,x
dex
bne CopyPetFont
lda #$36
sta $05
lda #$10
sta $04
Halt: ldz #0
nop
lda ($04),z
beq Halt
pha
lsr a
lsr a
lsr a
lsr a
jsr ToHex
sta Screen+2
pla
jsr ToHex
sta Screen+4
nop
sta ($04),z
bra Halt
Dummy: rti
ToHex: and #15
cmp #10
bcc _IsDigit
sbc #48+9
_IsDigit:
adc #48
rts
rts
* = $FFFA
.word Dummy
.word Start
.word Dummy
|
LDA 2200
MOV C,A
MVI B,00
MVI D,00
LXI H,2201
REPEAT: MOV A,M
ANI 01
JZ SKIP
MOV A,B
ADD M
MOV B,A
SKIP: INX H
DCR C
JNZ REPEAT
MOV A,B
STA 2210
HLT
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x14251, %r9
nop
nop
nop
sub $34182, %rbp
movl $0x61626364, (%r9)
nop
nop
nop
xor %r14, %r14
lea addresses_WC_ht+0x1bd01, %rcx
nop
nop
nop
nop
xor %rdi, %rdi
movb (%rcx), %al
nop
nop
nop
nop
and $34390, %rcx
lea addresses_WT_ht+0x1d341, %r9
nop
nop
nop
add %rcx, %rcx
mov $0x6162636465666768, %r8
movq %r8, (%r9)
nop
nop
nop
nop
nop
xor %rbp, %rbp
lea addresses_WC_ht+0x2401, %rsi
lea addresses_UC_ht+0x18e01, %rdi
nop
nop
nop
nop
add %rax, %rax
mov $109, %rcx
rep movsb
xor $58155, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r8
push %rax
push %rbx
push %rcx
// Store
lea addresses_WC+0x14701, %rcx
cmp %rbx, %rbx
mov $0x5152535455565758, %r8
movq %r8, %xmm4
vmovups %ymm4, (%rcx)
nop
nop
nop
nop
nop
xor $59426, %rcx
// Faulty Load
lea addresses_D+0x3401, %r15
nop
nop
nop
add %rax, %rax
mov (%r15), %r8
lea oracles, %rbx
and $0xff, %r8
shlq $12, %r8
mov (%rbx,%r8,1), %r8
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
;------------------------------------------------------------------------------
; GBA Test Collection - GBA test ROMs written in ARM assembly.
; Copyright (C) 2021 Michelle-Marie Schiller
;------------------------------------------------------------------------------
; main.asm - Hello World.
;------------------------------------------------------------------------------
format binary as 'gba'
include '../../inc/memory.inc'
include '../../inc/mmio.inc'
include '../../inc/psr.inc'
include '../../header.asm'
include '../../entrypoint.asm'
; null-terminated string macro
macro m_STR msg
{
db msg
db 0
align 4
}
;------------------------------------------------------------------------------
; void Main()
;------------------------------------------------------------------------------
; Description: Main function.
;------------------------------------------------------------------------------
; Parameters:
; None.
;------------------------------------------------------------------------------
; Returns:
; Nothing.
;------------------------------------------------------------------------------
Main:
push {r12, lr}
adr r12, .Pool
; initialize print library
mov r0, 0
mvn r1, r0
bl InitPrint
; print "Hello, World." message
mov r0, r12
ldmia r0, {r0-r2}
bl PrintStr
pop {r12, pc}
.Pool:
; PrintStr - Hello World message [0x00]
dw MEM_ROM0 + Str_HelloWorld, 1, 1
End_Main:
;------------------------------------------------------------------------------
Str_HelloWorld:
m_STR "Hello, World."
Includes_Print:
include '../../lib/print.asm'
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
|
/*************************************************************************/
/* pluginscript_script.cpp */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/*************************************************************************/
/* Copyright (c) 2007-2020 Juan Linietsky, Ariel Manzur. */
/* Copyright (c) 2014-2020 Godot Engine contributors (cf. AUTHORS.md). */
/* */
/* 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. */
/*************************************************************************/
// Godot imports
#include "core/os/file_access.h"
// PluginScript imports
#include "pluginscript_instance.h"
#include "pluginscript_script.h"
#include <stdint.h>
#ifdef DEBUG_ENABLED
#define __ASSERT_SCRIPT_REASON "Cannot retrieve PluginScript class for this script, is your code correct?"
#define ASSERT_SCRIPT_VALID() \
{ \
ERR_FAIL_COND_MSG(!can_instance(), __ASSERT_SCRIPT_REASON); \
}
#define ASSERT_SCRIPT_VALID_V(ret) \
{ \
ERR_FAIL_COND_V_MSG(!can_instance(), ret, __ASSERT_SCRIPT_REASON); \
}
#else
#define ASSERT_SCRIPT_VALID()
#define ASSERT_SCRIPT_VALID_V(ret)
#endif
void PluginScript::_bind_methods() {
ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "new", &PluginScript::_new, MethodInfo("new"));
}
PluginScriptInstance *PluginScript::_create_instance(const Variant **p_args, int p_argcount, Object *p_owner, Variant::CallError &r_error) {
r_error.error = Variant::CallError::CALL_OK;
// Create instance
PluginScriptInstance *instance = memnew(PluginScriptInstance());
if (instance->init(this, p_owner)) {
_language->lock();
_instances.insert(instance->get_owner());
_language->unlock();
} else {
r_error.error = Variant::CallError::CALL_ERROR_INSTANCE_IS_NULL;
memdelete(instance);
ERR_FAIL_V(NULL);
}
// Construct
// TODO: Support arguments in the constructor?
// There is currently no way to get the constructor function name of the script.
// instance->call("__init__", p_args, p_argcount, r_error);
if (p_argcount > 0) {
WARN_PRINT("PluginScript doesn't support arguments in the constructor");
}
return instance;
}
Variant PluginScript::_new(const Variant **p_args, int p_argcount, Variant::CallError &r_error) {
r_error.error = Variant::CallError::CALL_OK;
if (!_valid) {
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
return Variant();
}
REF ref;
Object *owner = NULL;
if (get_instance_base_type() == "") {
owner = memnew(Reference);
} else {
owner = ClassDB::instance(get_instance_base_type());
}
if (!owner) {
r_error.error = Variant::CallError::CALL_ERROR_INSTANCE_IS_NULL;
return Variant();
}
Reference *r = Object::cast_to<Reference>(owner);
if (r) {
ref = REF(r);
}
PluginScriptInstance *instance = _create_instance(p_args, p_argcount, owner, r_error);
if (!instance) {
if (ref.is_null()) {
memdelete(owner); //no owner, sorry
}
return Variant();
}
if (ref.is_valid()) {
return ref;
} else {
return owner;
}
}
#ifdef TOOLS_ENABLED
void PluginScript::_placeholder_erased(PlaceHolderScriptInstance *p_placeholder) {
placeholders.erase(p_placeholder);
}
#endif
bool PluginScript::can_instance() const {
bool can = _valid || (!_tool && !ScriptServer::is_scripting_enabled());
return can;
}
Ref<Script> PluginScript::get_base_script() const {
if (_ref_base_parent.is_valid()) {
return Ref<PluginScript>(_ref_base_parent);
} else {
return Ref<Script>();
}
}
StringName PluginScript::get_instance_base_type() const {
if (_native_parent)
return _native_parent;
if (_ref_base_parent.is_valid())
return _ref_base_parent->get_instance_base_type();
return StringName();
}
void PluginScript::update_exports() {
#ifdef TOOLS_ENABLED
ASSERT_SCRIPT_VALID();
if (placeholders.size()) {
//update placeholders if any
Map<StringName, Variant> propdefvalues;
List<PropertyInfo> propinfos;
get_script_property_list(&propinfos);
for (Set<PlaceHolderScriptInstance *>::Element *E = placeholders.front(); E; E = E->next()) {
E->get()->update(propinfos, _properties_default_values);
}
}
#endif
}
// TODO: rename p_this "p_owner" ?
ScriptInstance *PluginScript::instance_create(Object *p_this) {
ASSERT_SCRIPT_VALID_V(NULL);
// TODO check script validity ?
if (!_tool && !ScriptServer::is_scripting_enabled()) {
#ifdef TOOLS_ENABLED
// Instance a fake script for editing the values
PlaceHolderScriptInstance *si = memnew(PlaceHolderScriptInstance(get_language(), Ref<Script>(this), p_this));
placeholders.insert(si);
update_exports();
return si;
#else
return NULL;
#endif
}
StringName base_type = get_instance_base_type();
if (base_type) {
if (!ClassDB::is_parent_class(p_this->get_class_name(), base_type)) {
String msg = "Script inherits from native type '" + String(base_type) + "', so it can't be instanced in object of type: '" + p_this->get_class() + "'";
// TODO: implement PluginscriptLanguage::debug_break_parse
// if (ScriptDebugger::get_singleton()) {
// _language->debug_break_parse(get_path(), 0, msg);
// }
ERR_FAIL_V_MSG(NULL, msg);
}
}
Variant::CallError unchecked_error;
return _create_instance(NULL, 0, p_this, unchecked_error);
}
bool PluginScript::instance_has(const Object *p_this) const {
_language->lock();
bool hasit = _instances.has((Object *)p_this);
_language->unlock();
return hasit;
}
bool PluginScript::has_source_code() const {
bool has = _source != "";
return has;
}
String PluginScript::get_source_code() const {
return _source;
}
void PluginScript::set_source_code(const String &p_code) {
if (_source == p_code)
return;
_source = p_code;
}
Error PluginScript::reload(bool p_keep_state) {
ERR_FAIL_COND_V(!_language, ERR_UNCONFIGURED);
_language->lock();
ERR_FAIL_COND_V(!p_keep_state && _instances.size(), ERR_ALREADY_IN_USE);
_language->unlock();
_valid = false;
String basedir = _path;
if (basedir == "")
basedir = get_path();
if (basedir != "")
basedir = basedir.get_base_dir();
if (_data) {
_desc->finish(_data);
}
Error err;
godot_pluginscript_script_manifest manifest = _desc->init(
_language->_data,
(godot_string *)&_path,
(godot_string *)&_source,
(godot_error *)&err);
// Manifest's attributes must be explicitly freed
#define FREE_SCRIPT_MANIFEST(manifest) \
{ \
godot_string_name_destroy(&manifest.name); \
godot_string_name_destroy(&manifest.base); \
godot_dictionary_destroy(&manifest.member_lines); \
godot_array_destroy(&manifest.methods); \
godot_array_destroy(&manifest.signals); \
godot_array_destroy(&manifest.properties); \
}
if (err) {
FREE_SCRIPT_MANIFEST(manifest);
// TODO: GDscript uses `ScriptDebugger` here to jump into the parsing error
return err;
}
// Script's parent is passed as base_name which can make reference to a
// ClassDB name (i.e. `Node2D`) or a resource path (i.e. `res://foo/bar.gd`)
StringName *base_name = (StringName *)&manifest.base;
if (*base_name) {
if (ClassDB::class_exists(*base_name)) {
_native_parent = *base_name;
} else {
Ref<Script> res = ResourceLoader::load(*base_name);
if (res.is_valid()) {
_ref_base_parent = res;
} else {
String name = *(StringName *)&manifest.name;
FREE_SCRIPT_MANIFEST(manifest);
ERR_FAIL_V_MSG(ERR_PARSE_ERROR, _path + ": Script '" + name + "' has an invalid parent '" + *base_name + "'.");
}
}
}
_valid = true;
// Use the manifest to configure this script object
_data = manifest.data;
_name = *(StringName *)&manifest.name;
_tool = manifest.is_tool;
Dictionary *members = (Dictionary *)&manifest.member_lines;
for (const Variant *key = members->next(); key != NULL; key = members->next(key)) {
_member_lines[*key] = (*members)[*key];
}
Array *methods = (Array *)&manifest.methods;
_rpc_methods.clear();
_rpc_variables.clear();
if (_ref_base_parent.is_valid()) {
_rpc_methods = _ref_base_parent->get_rpc_methods();
_rpc_variables = _ref_base_parent->get_rset_properties();
}
for (int i = 0; i < methods->size(); ++i) {
Dictionary v = (*methods)[i];
MethodInfo mi = MethodInfo::from_dict(v);
_methods_info[mi.name] = mi;
// rpc_mode is passed as an optional field and is not part of MethodInfo
Variant var = v["rpc_mode"];
if (var != Variant()) {
ScriptNetData nd;
nd.name = mi.name;
nd.mode = MultiplayerAPI::RPCMode(int(var));
if (_rpc_methods.find(nd) == -1) {
_rpc_methods.push_back(nd);
}
}
}
// Sort so we are 100% that they are always the same.
_rpc_methods.sort_custom<SortNetData>();
Array *signals = (Array *)&manifest.signals;
for (int i = 0; i < signals->size(); ++i) {
Variant v = (*signals)[i];
MethodInfo mi = MethodInfo::from_dict(v);
_signals_info[mi.name] = mi;
}
Array *properties = (Array *)&manifest.properties;
for (int i = 0; i < properties->size(); ++i) {
Dictionary v = (*properties)[i];
PropertyInfo pi = PropertyInfo::from_dict(v);
_properties_info[pi.name] = pi;
_properties_default_values[pi.name] = v["default_value"];
// rset_mode is passed as an optional field and is not part of PropertyInfo
Variant var = v["rset_mode"];
if (var != Variant()) {
ScriptNetData nd;
nd.name = pi.name;
nd.mode = MultiplayerAPI::RPCMode(int(var));
if (_rpc_variables.find(nd) == -1) {
_rpc_variables.push_back(nd);
}
}
}
// Sort so we are 100% that they are always the same.
_rpc_variables.sort_custom<SortNetData>();
#ifdef TOOLS_ENABLED
/*for (Set<PlaceHolderScriptInstance*>::Element *E=placeholders.front();E;E=E->next()) {
_update_placeholder(E->get());
}*/
#endif
FREE_SCRIPT_MANIFEST(manifest);
return OK;
#undef FREE_SCRIPT_MANIFEST
}
void PluginScript::get_script_method_list(List<MethodInfo> *r_methods) const {
ASSERT_SCRIPT_VALID();
for (Map<StringName, MethodInfo>::Element *e = _methods_info.front(); e != NULL; e = e->next()) {
r_methods->push_back(e->get());
}
}
void PluginScript::get_script_property_list(List<PropertyInfo> *r_properties) const {
ASSERT_SCRIPT_VALID();
for (Map<StringName, PropertyInfo>::Element *e = _properties_info.front(); e != NULL; e = e->next()) {
r_properties->push_back(e->get());
}
}
bool PluginScript::has_method(const StringName &p_method) const {
ASSERT_SCRIPT_VALID_V(false);
return _methods_info.has(p_method);
}
MethodInfo PluginScript::get_method_info(const StringName &p_method) const {
ASSERT_SCRIPT_VALID_V(MethodInfo());
const Map<StringName, MethodInfo>::Element *e = _methods_info.find(p_method);
if (e != NULL) {
return e->get();
} else {
return MethodInfo();
}
}
bool PluginScript::has_property(const StringName &p_method) const {
ASSERT_SCRIPT_VALID_V(false);
return _properties_info.has(p_method);
}
PropertyInfo PluginScript::get_property_info(const StringName &p_property) const {
ASSERT_SCRIPT_VALID_V(PropertyInfo());
const Map<StringName, PropertyInfo>::Element *e = _properties_info.find(p_property);
if (e != NULL) {
return e->get();
} else {
return PropertyInfo();
}
}
bool PluginScript::get_property_default_value(const StringName &p_property, Variant &r_value) const {
ASSERT_SCRIPT_VALID_V(false);
#ifdef TOOLS_ENABLED
const Map<StringName, Variant>::Element *e = _properties_default_values.find(p_property);
if (e != NULL) {
r_value = e->get();
return true;
} else {
return false;
}
#endif
return false;
}
ScriptLanguage *PluginScript::get_language() const {
return _language;
}
Error PluginScript::load_source_code(const String &p_path) {
Vector<uint8_t> sourcef;
Error err;
FileAccess *f = FileAccess::open(p_path, FileAccess::READ, &err);
ERR_FAIL_COND_V_MSG(err, err, "Cannot open file '" + p_path + "'.");
int len = f->get_len();
sourcef.resize(len + 1);
uint8_t *w = sourcef.ptrw();
int r = f->get_buffer(w, len);
f->close();
memdelete(f);
ERR_FAIL_COND_V(r != len, ERR_CANT_OPEN);
w[len] = 0;
String s;
if (s.parse_utf8((const char *)w)) {
ERR_FAIL_V_MSG(ERR_INVALID_DATA, "Script '" + p_path + "' contains invalid unicode (UTF-8), so it was not loaded. Please ensure that scripts are saved in valid UTF-8 unicode.");
}
_source = s;
#ifdef TOOLS_ENABLED
// source_changed_cache=true;
#endif
_path = p_path;
return OK;
}
bool PluginScript::has_script_signal(const StringName &p_signal) const {
ASSERT_SCRIPT_VALID_V(false);
return _signals_info.has(p_signal);
}
void PluginScript::get_script_signal_list(List<MethodInfo> *r_signals) const {
ASSERT_SCRIPT_VALID();
for (Map<StringName, MethodInfo>::Element *e = _signals_info.front(); e != NULL; e = e->next()) {
r_signals->push_back(e->get());
}
}
int PluginScript::get_member_line(const StringName &p_member) const {
#ifdef TOOLS_ENABLED
if (_member_lines.has(p_member))
return _member_lines[p_member];
else
#endif
return -1;
}
Vector<ScriptNetData> PluginScript::get_rpc_methods() const {
return _rpc_methods;
}
uint16_t PluginScript::get_rpc_method_id(const StringName &p_method) const {
ASSERT_SCRIPT_VALID_V(UINT16_MAX);
for (int i = 0; i < _rpc_methods.size(); i++) {
if (_rpc_methods[i].name == p_method) {
return i;
}
}
return UINT16_MAX;
}
StringName PluginScript::get_rpc_method(const uint16_t p_rpc_method_id) const {
ASSERT_SCRIPT_VALID_V(StringName());
if (p_rpc_method_id >= _rpc_methods.size())
return StringName();
return _rpc_methods[p_rpc_method_id].name;
}
MultiplayerAPI::RPCMode PluginScript::get_rpc_mode_by_id(const uint16_t p_rpc_method_id) const {
ASSERT_SCRIPT_VALID_V(MultiplayerAPI::RPC_MODE_DISABLED);
if (p_rpc_method_id >= _rpc_methods.size())
return MultiplayerAPI::RPC_MODE_DISABLED;
return _rpc_methods[p_rpc_method_id].mode;
}
MultiplayerAPI::RPCMode PluginScript::get_rpc_mode(const StringName &p_method) const {
ASSERT_SCRIPT_VALID_V(MultiplayerAPI::RPC_MODE_DISABLED);
return get_rpc_mode_by_id(get_rpc_method_id(p_method));
}
Vector<ScriptNetData> PluginScript::get_rset_properties() const {
return _rpc_variables;
}
uint16_t PluginScript::get_rset_property_id(const StringName &p_property) const {
ASSERT_SCRIPT_VALID_V(UINT16_MAX);
for (int i = 0; i < _rpc_variables.size(); i++) {
if (_rpc_variables[i].name == p_property) {
return i;
}
}
return UINT16_MAX;
}
StringName PluginScript::get_rset_property(const uint16_t p_rset_property_id) const {
ASSERT_SCRIPT_VALID_V(StringName());
if (p_rset_property_id >= _rpc_variables.size())
return StringName();
return _rpc_variables[p_rset_property_id].name;
}
MultiplayerAPI::RPCMode PluginScript::get_rset_mode_by_id(const uint16_t p_rset_property_id) const {
ASSERT_SCRIPT_VALID_V(MultiplayerAPI::RPC_MODE_DISABLED);
if (p_rset_property_id >= _rpc_variables.size())
return MultiplayerAPI::RPC_MODE_DISABLED;
return _rpc_variables[p_rset_property_id].mode;
}
MultiplayerAPI::RPCMode PluginScript::get_rset_mode(const StringName &p_variable) const {
ASSERT_SCRIPT_VALID_V(MultiplayerAPI::RPC_MODE_DISABLED);
return get_rset_mode_by_id(get_rset_property_id(p_variable));
}
PluginScript::PluginScript() :
_data(NULL),
_desc(NULL),
_language(NULL),
_tool(false),
_valid(false),
_script_list(this) {
}
void PluginScript::init(PluginScriptLanguage *language) {
_desc = &language->_desc.script_desc;
_language = language;
#ifdef DEBUG_ENABLED
_language->lock();
_language->_script_list.add(&_script_list);
_language->unlock();
#endif
}
PluginScript::~PluginScript() {
if (_desc && _data) {
_desc->finish(_data);
}
#ifdef DEBUG_ENABLED
if (_language) {
_language->lock();
_language->_script_list.remove(&_script_list);
_language->unlock();
}
#endif
}
|
; void p_queue_init_fastcall(void *p)
SECTION code_adt_p_queue
PUBLIC _p_queue_init_fastcall
defc _p_queue_init_fastcall = asm_p_queue_init
INCLUDE "adt/p_queue/z80/asm_p_queue_init.asm"
|
assume cs: codeseg
codeseg segment
mov ax, 1000H
mov ds, ax
mov cx, 3H
mov bx, 0H
s: mov ds:[bx], bx
inc bx
loop s
a: mov al, ds:[bx]
mov ah, 0H
add dx, ax
inc bx
loop a
mov ax, 4200h
int 21h
codeseg ends
end |
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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:
///
/// @copyright
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// @copyright
/// 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.
///
/// @file is_pointer.hpp
///
#ifndef BSL_IS_POINTER_HPP
#define BSL_IS_POINTER_HPP
#include "true_type.hpp"
#include "false_type.hpp"
namespace bsl
{
/// @class bsl::is_pointer
///
/// <!-- description -->
/// @brief If the provided type is a pointer type (taking into account
/// const qualifications), provides the member constant value
/// equal to true. Otherwise the member constant value is false.
/// @include example_is_pointer_overview.hpp
///
/// <!-- template parameters -->
/// @tparam T the type to query
///
template<typename T>
class is_pointer final : public false_type
{};
/// @cond doxygen off
template<typename T>
class is_pointer<T *> final : public true_type
{};
template<typename T>
class is_pointer<T *const> final : public true_type
{};
/// @endcond doxygen on
}
#endif
|
; Unununium Operating Engine
; Copyright (c) 2000-2001, Dave Poirier
; Distributed under the BSD License.
;
; [= SDK.EHEX Hexadecimal Editor =]
; System Core compliant
;
; More information available on our website at http://uuu.wox.org/ or by email
; at core_dev@uuu.wox.org
;
; note for visual consulation, tabulations are adjusted for 8 characters and
; the source was adjusted for a screen width of 80 characters.
section .text
%include "vid/debug.ehex.inc"
%define _VERSION_HIGH_ 2
%define _VERSION_LOW_ 0
%define _VERSION_SPECIFIER_ 0
%define _COMPATIBILITY_ 1
%define _LICENSE_TYPE_ 1
%define _ASC_FIELD_X_ 11
%define _ASC_FIELD_Y_ 2
%define _COLOR_ACTIVE_ 0x0F
%define _COLOR_INACTIVE_ 0x07
%define _DEFAULT_EDIT_ENABLE_ 0
%define _DEFAULT_DECODER_ENABLE_ 1
%define _DEFAULT_FULL_ASCII_ 1
%define _DEFAULT_ALTERNATE_TYPE_ 0
%define _HEX_FIELD_X_ 29
%define _HEX_FIELD_Y_ _ASC_FIELD_Y_
%define _KEY_ARROW_DOWN_ 0x50
%define _KEY_ARROW_LEFT_ 0x4B
%define _KEY_ARROW_RIGHT_ 0x4D
%define _KEY_ARROW_UP_ 0x48
%define _KEY_ESCAPE_ 0x81
%define _KEY_F01_ 0x3B
%define _KEY_F02_ 0x3C
%define _KEY_F03_ 0x3D
%define _KEY_F04_ 0x3E
%define _KEY_F05_ 0x3F
%define _KEY_F06_ 0x40
%define _KEY_F07_ 0x41
%define _KEY_F08_ 0x42
%define _KEY_F09_ 0x43
%define _KEY_F10_ 0x44
%define _KEY_PAGEUP_ 0x49
%define _KEY_PAGEDOWN_ 0x51
%define _OFFSET_ALTERNATE_TYPE_ (0xA0*1)+(2*57)
%define _OFFSET_CURRENT_OFFSET_ (0xA0*1)+(2*17)
%define _OFFSET_DECODER_ENABLE_ (0xA0*1)+(2*28)
%define _OFFSET_EDIT_ENABLE_ (0xA0*1)+(2*32)
%define _OFFSET_FULL_ASCII_ (0xA0*1)+(2*36)
ehex_copyrights:
db "Unununium SDK.EHEX hexadecimal editor version "
db '0'+_VERSION_HIGH_,'.','0'+_VERSION_LOW_,'.','0'+_VERSION_SPECIFIER_,10
db "Copyright (c) 2000-2001, Dave Poirier",10
db "Distributed under the BSD License",0
ehex_screen: dd 0x000B8000
ehex_marker0: dd -1
ehex_marker1: dd -1
ehex_marker2: dd -1
ehex_marker3: dd -1
ehex_marker4: dd -1
ehex_marker5: dd -1
ehex_marker6: dd -1
ehex_marker7: dd -1
ehex_marker8: dd -1
ehex_marker9: dd -1
globalfunc debug.ehex.edit_mem
;------------------------------------------------------------------------------
;>
;; Allow user to view/modify memory directly then return to the caller without
;; affecting any register or flag of the caller's code
;;
;; Parameters:
;;------------
;; ESI = address where to start memory edition
;;
;; Returned values:
;;-----------------
;; EAX = (unmodified)
;; EBX = (unmodified)
;; ECX = (unmodified)
;; EDX = (unmodified)
;; EDI = (unmodified)
;; ESI = (unmodified)
;; ESP = (unmodified)
;; EBP = (unmodified)
;; Flags = (unmodified)
;;
;; Development status: completed (but dependant routines still under dev)
;<
pushfd
pushad
in al, 0x21
push eax
or al, 0x02
out 0x21, al
mov edx, (_DEFAULT_ALTERNATE_TYPE_*16)+(_DEFAULT_DECODER_ENABLE_*4)+(_DEFAULT_EDIT_ENABLE_*2)+(_DEFAULT_FULL_ASCII_*1)
.start:
mov eax, esi
mov ebx, esi
mov al, 0
mov bh, bl
and bl, 0x0F
shl bl, 1
shr bh, 4
push ebx ;<-- prepare current_x_pos * 256 + current_y_pos
push eax ;<-- prepare starting_offset
push esi ;<-- prepare current_offset
push eax ;<-- prepare data_source
.back_to_the_editor:
push edx ;<-- prepare status
; bit 0 Full Ascii view
; bit 1 Edit enabled
; bit 2 Decoder enabled
; bit 3 reserved
; bit 7-4 type of alternate output value
; bit 31-8 reserved
call _IEHEX_the_editor
; EAX = exit code
; EBX = offset desired (if eax = 5)
; stack(0) = ehex status (keep it!)
pop edx
mov esi, ebx
add esp, byte 16
test eax, 0xFFFFFF00
jnz .back_to_the_editor
cmp al, 0 ; Escape pressed
jz .end
cmp al, 1 ; PageUp
jz .page_up
cmp al, 2 ; PageDown
jz .page_down
cmp al, 5
jnz short .back_to_the_editor
jmp short .start
.end:
pop eax
out 0x21, al
popad
popfd
retn
.page_up:
lea esi, [esi - 0x100]
jmp short .start
.page_down:
lea esi, [esi + 0x100]
jmp short .start
_IEHEX_clear_display:
;------------------------------------------------------------------------------
;
; Clear the output display
;
; Parameters:
;------------
; none
;
; Returned values:
;-----------------
; EAX = 0x07200720
; EBX = (unmodified)
; ECX = 0x00000000
; EDX = (unmodified)
; EDI = ehex_screen + 4000
; ESI = (unmodified)
;
; Development status: completed
;
mov eax, 0x07200720
mov edi, [ehex_screen]
.drp000 equ $-4
mov ecx, 1000
repz stosd
retn
_IEHEX_display_hex_byte:
;------------------------------------------------------------------------------
;
; Display the hexadecimal value of AL on the output
;
; Parameters:
;------------
; AL = byte to display
; EDI = offset where to print out the hex value (note spacing for color char)
;
; Returned values:
;-----------------
; EAX = (undetermined)
; EBX = (unmodified)
; ECX = (unmodified)
; EDX = (unmodified)
; EDI = input value + 4
; ESI = (unmodified)
;
; Development status: completed
;
push eax
shr al, 4
add al, 0x90
daa
adc al, 0x40
daa
mov [edi], al
pop eax
lea edi, [edi + 2]
and al, 0x0F
add al, 0x90
daa
adc al, 0x40
daa
mov [edi], al
lea edi, [edi + 2]
retn
_IEHEX_display_hex_dword:
;------------------------------------------------------------------------------
;
; Displays the value of EDX on the output at specified address
;
; Parameters:
;------------
; EDX = dword to display
; EDI = offset to use to output the hex representation (note the spacing for
; color bytes)
;
; Returned values:
;-----------------
; EAX = (undetermined)
; EBX = (unmodified)
; ECX = (unmodified),CL
; CL = 0
; EDX = (unmodified)
; EDI = input value + 16
; ESI = (unmodified)
;
; Development status: completed
;
mov cl, 8
.displaying:
rol edx, 4
mov al, dl
and al, 0x0F
cmp al, 0x0A
sbb al, 0x69
das
mov [edi], al
add edi, byte 2
dec cl
jnz .displaying
retn
_IEHEX_display_screen:
;------------------------------------------------------------------------------
;
; Take as input a specially formatted kindof ansi screen and displays it on the
; selected output display. It can also output simple strings using the label
; _IEHEX_display_screen.direct instead of _IEHEX_display_screen
;
; Parameters:
;------------
; ESI = Pointer to screen to display
; EDI = Pointer to offset to use to print out (when displaying using .direct)
; AH = Default selected color
;
; Returned values:
;-----------------
; EAX = (undetermined),AX
; AL = 0
; AH = active color when 0 was reached
; EBX = (undetermined)
; ECX = 0 if repeated char was used, otherwise (unmodified)
; EDX = (undetermined)
; EDI = Offset where the next character would have been displayed
; ESI = Offset to first character after the 0 (NULL) end character
;
; Special notes:
;---------------
; - The 00h character (NULL) is used to terminate the screen
; - The 0Ah character is a linefeed, the equivalent of both CRLF under DOS
; - The 01h character is used to change the current active color. The first
; byte after after the marker will be used for the color directly without
; check or modification
; - The 02h charachter is used to indicate coordinates to use. This will
; modify the location on the display where the next characters will be sent.
; The first byte after the marker is the 'x' coordinate, then comes the 'y'.
; - The 03h character is used for long repeated chain of the same character.
; The first byte value after the marker is taken as the number of repetition
; and the second character is used as the actual ascii value.
;
; Development status: to be tested
;
mov edi, [ehex_screen]
.drp000 equ $-4
.direct:
.displaying:
mov al, [esi]
test al, al
jz short .end
inc esi
cmp al, 0x0A
jz short .new_line
cmp al, 0x03
jbe short .special_char
mov [edi], ax
lea edi, [edi + 2]
jmp short .displaying
.end:
retn
.special_char:
cmp al, 0x01
jz short .change_color
cmp al, 0x02
jz short .change_coordinates
; the only other possibility is 0x03=repeated char
xor ecx, ecx
mov al, [esi + 1]
mov cl, [esi]
add esi, byte 2
repz stosw
jmp short .displaying
.change_color:
mov ah, [esi]
inc esi
jmp short .displaying
.new_line:
push eax
mov eax, edi
sub eax, [ehex_screen]
.drp001 equ $-4
mov ebx, 0xA0
xor edx, edx
div ebx
inc eax
mul ebx
mov edi, eax
add edi, [ehex_screen]
.drp002 equ $-4
pop eax
jmp short .displaying
.change_coordinates:
push eax
mov ah, 0xA0
mov al, [esi + 1]
xor ebx, ebx
mul ah
mov bl, [esi]
cwde
add esi, byte 2
lea edi, [ebx * 2 + eax]
add edi, [ehex_screen]
.drp003 equ $-4
pop eax
jmp short .displaying
_IEHEX_handler_arrow_down:
;------------------------------------------------------------------------------
;
mov eax, [ss:esp + 24]
cmp ah, 0x0F
stc
jz .end
call _IEHEX_xy_pos_compute
mov eax, esi
mov ebx, edi
call _IEHEX_xy_pos_deactivate
add [ss:esp + 16], dword 0x00000010
inc byte [ss:esp + 25]
clc
.end:
retn
_IEHEX_handler_arrow_left:
;------------------------------------------------------------------------------
;
mov eax, [ss:esp + 24]
test al, al
stc
jz .end
push eax
call _IEHEX_xy_pos_compute
mov eax, esi
mov ebx, edi
call _IEHEX_xy_pos_deactivate
pop eax
dec eax
mov [ss:esp + 24], al
test al, byte 0x01
jz .end_clear_cary
dec dword [ss:esp + 16]
.end_clear_cary:
clc
.end:
retn
_IEHEX_handler_arrow_right:
;------------------------------------------------------------------------------
;
mov eax, [ss:esp + 24]
cmp al, 0x1F
stc
jz .end
push eax
call _IEHEX_xy_pos_compute
mov eax, esi
mov ebx, edi
call _IEHEX_xy_pos_deactivate
pop eax
inc eax
mov [ss:esp + 24], al
test al, byte 0x01
jnz .end_clear_cary
inc dword [ss:esp + 16]
.end_clear_cary:
clc
.end:
retn
_IEHEX_handler_arrow_up:
;------------------------------------------------------------------------------
;
mov eax, [ss:esp + 24]
test ah, ah
stc
jz .end
call _IEHEX_xy_pos_compute
mov eax, esi
mov ebx, edi
call _IEHEX_xy_pos_deactivate
sub [ss:esp + 16], dword 0x00000010
dec byte [ss:esp + 25]
clc
.end:
retn
_IEHEX_handler_change_alternate_type:
;------------------------------------------------------------------------------
;
add [ss:esp + 8], byte 0x10
clc
retn
_IEHEX_handler_help:
;------------------------------------------------------------------------------
;
call _IEHEX_clear_display
lea esi, [ehex_scr_help]
.drp000 equ $-4
call _IEHEX_display_screen
.waiting_escape_break:
call _IEHEX_wait_keypress
cmp al, 0x81
jnz .waiting_escape_break
pop eax
jmp _IEHEX_the_editor
_IEHEX_handler_jump:
;------------------------------------------------------------------------------
; Jump to specified offset (F5)
xor edx, edx
.get_next_key:
mov edi, 0xB8000
pushad
call _IEHEX_display_hex_dword
popad
call _IEHEX_wait_keypress
or al, al
js short .get_next_key
cmp al, 0x01 ; Escape
jz short .abort
cmp al, 0x02 ; 1
jb short .get_next_key
cmp al, 0x0A ; 9
jbe short .digit
mov ah, 0
cmp al, 0x0B ; 0
jz short .use_ah
cmp al, 0x1C ; Enter
jz short .completed
mov ah, 0x0A
cmp al, 0x1E ; A
jz short .use_ah
inc ah
cmp al, 0x30 ; B
jz short .use_ah
inc ah
cmp al, 0x2E ; C
jz short .use_ah
inc ah
cmp al, 0x20 ; D
jz short .use_ah
inc ah
cmp al, 0x12 ; E
jz short .use_ah
inc ah
cmp al, 0x21 ; F
jz short .use_ah
cmp al, 0x0E
jnz short .get_next_key
shr edx, 4
jmp short .get_next_key
.digit:
dec al
mov ah, al
.use_ah:
shl edx, 4
or dl, ah
jmp short .get_next_key
.completed:
mov eax, 5
mov ebx, edx
cmp eax, 6 ; so that ZF = 0
stc
retn
.abort:
cmp eax, eax
stc
retn
_IEHEX_handler_jump_to_marker:
;------------------------------------------------------------------------------
;
; push dword 0x9802580
; call __IEDEBUG_step
; clc
; retn
_IEHEX_handler_set_marker:
;------------------------------------------------------------------------------
;
; push dword 0xAB803C45
; call __IEDEBUG_step
; clc
; retn
_IEHEX_handler_toggle_ascii_view:
;------------------------------------------------------------------------------
;
xor [ss:esp + 8], byte 0x01
clc
retn
_IEHEX_handler_toggle_decoder_enable:
;------------------------------------------------------------------------------
;
xor [ss:esp + 8], byte 0x04
clc
retn
_IEHEX_handler_toggle_edit_enable:
;------------------------------------------------------------------------------
;
xor [ss:esp + 8], byte 0x02
clc
retn
_IEHEX_refresh_edition_display:
;------------------------------------------------------------------------------
;
; Update the various byte, offset etc on screen
;
; Parameters:
;------------
; _the_editor.starting_offset
;
; Returned values:
;-----------------
; EAX = (undetermined)
; EBX = (undetermined)
; ECX = (undetermined)
; EDX = (undetermined)
; EDI = (undetermined)
; ESI = (undetermined)
;
; Development status: under development
;
mov edi, [ehex_screen]
.drp000 equ $-4
mov eax, (0xA0*2) + 2
mov esi, [ss:esp + 20 + 8] ; starting_offset
push dword [ss:esp + 12 + 8] ; data_source
lea edi, [edi + eax]
mov ch, 16
;]--Displaying HEX/ASCII fields
.displaying:
mov edx, esi
pop esi
push edx
call _IEHEX_display_hex_dword
mov cl, 16
lea ebx, [edi + 4]
lea edi, [edi + 4+32+4]
.displaying_ascii_field:
mov al, [esi]
mov [ebx], al
inc esi
lea ebx, [ebx + 2]
call _IEHEX_display_hex_byte
lea edi, [edi + 2]
dec cl
jnz .displaying_ascii_field
lea edi, [edi + 8]
mov edx, esi
pop esi
push edx
lea esi, [esi + 0x10]
dec ch
jnz .displaying
pop esi
;]--Displaying various flags (D:, E:, F:, ...)
mov ebx, [ehex_screen]
.drp003 equ $-4
mov edx, [ss:esp + 8 + 8]
;]--Displaying Full ascii view
mov al, '0'
push eax
test dl, 1
jz .display_full_ascii_view
inc eax
.display_full_ascii_view:
mov [ebx + _OFFSET_FULL_ASCII_], al
pop eax
;]--Displaying Edit enabled
push eax
test dl, 2
jz .display_edit_enable
inc eax
.display_edit_enable:
mov [ebx + _OFFSET_EDIT_ENABLE_], al
pop eax
;]--Display Decoder enabled
test dl, 4
jz .display_decoder_enable
inc eax
.display_decoder_enable:
mov [ebx + _OFFSET_DECODER_ENABLE_], al
;]--Display current offset
mov edx, [ss:esp + 16 + 8]
lea edi, [ebx + _OFFSET_CURRENT_OFFSET_]
call _IEHEX_display_hex_dword
;]--Display alternate type's type :P
mov al, [ss:esp + 8 + 8]
shr al, 4
add al, 0x90
daa
adc al, 0x40
daa
mov [ebx + _OFFSET_ALTERNATE_TYPE_], al
retn
_IEHEX_the_editor:
;------------------------------------------------------------------------------
;
; Main edition window & control subroutine. This routine doesn't manage window
; change; it will return control with an exit code to the caller, which is
; responsible for setting up the new edition window and calling back this
; routine.
;
; Parameters:
;------------
; stack(0) = status
; stack(1) = data_source
; stack(2) = current_offset
; stack(3) = starting_offset
; stack(4) = current_x_pos * 256 + current_y_pos
;
; Returned values:
;-----------------
; EAX = exit code
; 0 = Escape pressed
; 1 = PageUp pressed
; 2 = PageDown pressed
; 3 = Save requested
; 4 = Reload requested
; 5 = Specific offset requested, offset in EBX
; EBX = ???
; ECX = ???
; EDX = ???
; EDI = ???
; ESI = ???
;
; Development status: under development
;
call _IEHEX_clear_display
lea esi, [ehex_scr_edition]
.drp000 equ $-4
call _IEHEX_display_screen
.editing:
mov eax, [ss:esp + 20]
call _IEHEX_xy_pos_compute
push edi
push esi
call _IEHEX_refresh_edition_display
pop eax
pop ebx
call _IEHEX_xy_pos_activate
.wrong_keys:
call _IEHEX_wait_keypress
xor ebx, ebx
cmp al, _KEY_ESCAPE_ ;<-- End edition
jz short .exit_with_code
inc ebx
cmp al, _KEY_PAGEUP_ ;<-- Go one window before
jz short .exit_with_code
inc ebx
cmp al, _KEY_PAGEDOWN_;<-- Go one window further
jz short .exit_with_code
inc ebx
cmp al, _KEY_F10_ ;<-- Save requested
jz short .exit_with_code
inc ebx
cmp al, _KEY_F09_ ;<-- Reload requested
jz short .exit_with_code
xor ebx, ebx
call .check_functions
jnc short .editing
jz short .wrong_keys
retn
.exit_with_code:
mov eax, ebx
mov ebx, [esp + 8 + 4]
retn
.check_functions:
xor ebx, ebx
lea esi, [.functions_keys]
.drp001 equ $-4
.checking_functions:
mov ah, [esi]
test ah, ah
jz .failed_finding_function
cmp al, ah
jz .call_function
inc ebx
inc esi
jmp short .checking_functions
.failed_finding_function:
stc
cmp eax, eax
retn
.call_function:
jmp [ebx*4 + .functions_handlers]
.drp002 equ $-4
.functions_keys:
db _KEY_F05_ ; (code: 0) Jump to specified offset
db _KEY_F08_ ; (code: 1) Change alternate type for value display
db _KEY_F02_ ; (code: 2) Toggle Full Ascii View
db _KEY_F04_ ; (code: 3) Toggle Edit enable
db _KEY_F03_ ; (code: 4) Toggle Decoder enable
db _KEY_F01_ ; (code: 5) Help
db _KEY_F06_ ; (code: 6) Set Marker
db _KEY_F07_ ; (code: 7) Jump to marker
db _KEY_ARROW_UP_ ; (code: 8) Move up within current window
db _KEY_ARROW_DOWN_ ; (code: 9) Move down within current window
db _KEY_ARROW_LEFT_ ; (code: 10) Move left within current window
db _KEY_ARROW_RIGHT_ ; (code: 11) Move right within current window
db 0
align 4, db 0
.functions_handlers:
.drp003: dd _IEHEX_handler_jump
.drp004: dd _IEHEX_handler_change_alternate_type
.drp005: dd _IEHEX_handler_toggle_ascii_view
.drp006: dd _IEHEX_handler_toggle_edit_enable
.drp007: dd _IEHEX_handler_toggle_decoder_enable
.drp008: dd _IEHEX_handler_help
.drp009: dd _IEHEX_handler_set_marker
.drp00A: dd _IEHEX_handler_jump_to_marker
.drp00B: dd _IEHEX_handler_arrow_up
.drp00C: dd _IEHEX_handler_arrow_down
.drp00D: dd _IEHEX_handler_arrow_left
.drp00E: dd _IEHEX_handler_arrow_right
;.current_offset: dd 0 ; current offset relative to start of object
;.data_source: dd 0 ; location in memory where data for current window is
;.starting_offset: dd 0 ; offset of current window relative to start of object
;.current_x_pos: db 0 ; current X position in the edition window
;.current_y_pos: db 0 ; current Y position in the edition window
_IEHEX_wait_keypress:
;------------------------------------------------------------------------------
;
; Waits until a character comes in
;
; Parameters:
;------------
; none
;
; Returned values:
;-----------------
; EAX = AL = scancode
; EBX = (unmodified)
; ECX = (unmodified)
; EDX = (unmodified)
; EDI = (unmodified)
; ESI = (unmodified)
;
; Development status: temporary makeup while waiting for real keyboard handler
;
.wait_input:
in al, 0x64
test al, 0x01
jz .wait_input
in al, 0x60
retn
_IEHEX_xy_pos_activate:
;------------------------------------------------------------------------------
;
; Change the color of the character at location x,y on the output screen to the
; _COLOR_ACTIVE_
;
; Parameters:
;------------
; EAX = Pointer to the character in the hex field which have been activated
; EBX = Pointer to the character in the ascii field which have been activated
;
; Returned values:
;-----------------
; EAX = (unmodified)
; EBX = (unmodified)
; ECX = (unmodified)
; EDX = (unmodified)
; EDI = (unmodified)
; ESI = (unmodified)
;
; Development status: to be tested
;
mov [ebx + 1], byte _COLOR_ACTIVE_
mov [eax + 1], byte _COLOR_ACTIVE_
retn
_IEHEX_xy_pos_compute:
;------------------------------------------------------------------------------
;
; Compute the compute physical offset to the current activated character
;
; Parameters:
;------------
; eax = current_x_pos * 256 + current_y_pos
;
; Returned values:
;-----------------
; EAX = (undetermined)
; EBX = (undetermined)
; ECX = (unmodified)
; EDX = (unmodified)
; EDI = Pointer to the active character in the HEX field
; ESI = Pointer to the active character in the ASC field
;
; Development status: to be tested
;
xor ebx, ebx
mov bl, ah
mov bh, al
xor eax, eax
mov al, bh
push eax
mov esi, [ehex_screen]
.drp000 equ $-4
and al, 0xFE
mov edi, esi
lea esi, [esi + eax + (_ASC_FIELD_X_ * 2) + (_ASC_FIELD_Y_ * 0xA0)]
lea edi, [eax * 2 + edi + (_HEX_FIELD_X_ * 2) + (_HEX_FIELD_Y_ * 0xA0)]
mov bh, 0xA0
lea edi, [edi + eax]
mov al, bl
mul bh
lea edi, [edi + eax]
lea esi, [esi + eax]
pop eax
test al, 0x01
jz .end
lea edi, [edi + 2]
.end:
retn
_IEHEX_xy_pos_deactivate:
;------------------------------------------------------------------------------
;
; Change the color of the character at location x,y on the output screen to the
; _COLOR_INACTIVE_
;
; Parameters:
;------------
; EAX = Pointer to the previously active character in the HEX field
; EBX = Pointer to the previously active character in the ASC field
;
; Returned values:
;-----------------
; EAX = (unmodified)
; EBX = (unmodified)
; ECX = (unmodified)
; EDX = (unmodified)
; EDI = (unmodified)
; ESI = (unmodified)
;
; Development status: under development
;
mov [ebx + 1], byte _COLOR_INACTIVE_
mov [eax + 1], byte _COLOR_INACTIVE_
retn
ehex_scr_edition:
%include "scr/edition.scr"
ehex_scr_help:
%include "scr/help.scr"
|
; struct sp1_update __CALLEE__ *sp1_GetUpdateStruct_callee(uchar row, uchar col)
; 01.2008 aralbrec, Sprite Pack v3.0
; ts2068 hi-res version
INCLUDE "ts2068hr/customize.asm"
PUBLIC sp1_GetUpdateStruct_callee
PUBLIC ASMDISP_SP1_GETUPDATESTRUCT_CALLEE
.sp1_GetUpdateStruct_callee
pop hl
pop de
ex (sp),hl
ld d,l
.asmentry
; Return struct_sp1_update for row,col coordinate given
; 9 * (SP1V_DISPWIDTH * ROW + COL) + SP1V_UPDATEARRAY
;
; enter : d = row coord
; e = col coord
; exit : hl = struct update *
; uses : af, de, hl
.SP1GetUpdateStruct
ld l,d
ld h,0
ld a,d
ld d,h
cp SP1V_DISPHEIGHT
jp c, nohtadj
dec h
.nohtadj
IF SP1V_DISPWIDTH=16
add hl,hl
add hl,hl
add hl,hl
add hl,hl
ld a,e
cp SP1V_DISPWIDTH
jp c, nowiadj
dec d
.nowiadj
add hl,de ; hl = 16 * ROW + COL
ENDIF
IF SP1V_DISPWIDTH=24
add hl,hl
add hl,hl
add hl,hl
push hl
add hl,hl
ld a,e
cp SP1V_DISPWIDTH
jp c, nowiadj
dec d
.nowiadj
add hl,de
pop de
add hl,de ; hl = 24 * ROW + COL
ENDIF
IF SP1V_DISPWIDTH=32
add hl,hl
add hl,hl
add hl,hl
add hl,hl
add hl,hl
ld a,e
cp SP1V_DISPWIDTH
jp c, nowiadj
dec d
.nowiadj
add hl,de ; hl = 32 * ROW + COL
ENDIF
IF SP1V_DISPWIDTH=40
add hl,hl
add hl,hl
add hl,hl
push hl
add hl,hl
add hl,hl
ld a,e
cp SP1V_DISPWIDTH
jp c, nowiadj
dec d
.nowiadj
add hl,de
pop de
add hl,de ; hl = 40 * ROW + COL
ENDIF
IF SP1V_DISPWIDTH=48
add hl,hl
add hl,hl
add hl,hl
add hl,hl
push hl
add hl,hl
ld a,e
cp SP1V_DISPWIDTH
jp c, nowiadj
dec d
.nowiadj
add hl,de
pop de
add hl,de ; hl = 48 * ROW + COL
ENDIF
IF SP1V_DISPWIDTH=56
add hl,hl
add hl,hl
add hl,hl
push hl
add hl,hl
push hl
add hl,hl
ld a,e
cp SP1V_DISPWIDTH
jp c, nowiadj
dec d
.nowiadj
add hl,de
pop de
add hl,de
pop de
add hl,de ; hl = 56 * ROW + COL
ENDIF
IF SP1V_DISPWIDTH=64
add hl,hl
add hl,hl
add hl,hl
add hl,hl
add hl,hl
add hl,hl
ld a,e
cp SP1V_DISPWIDTH
jp c, nowiadj
dec d
.nowiadj
add hl,de ; hl = 64 * ROW + COL
ENDIF
ld d,h
ld e,l
add hl,hl
add hl,hl
add hl,hl
add hl,de ; hl = 9 * (SP1V_DISPWIDTH * ROW + COL)
ld de,SP1V_UPDATEARRAY
add hl,de
ret
DEFC ASMDISP_SP1_GETUPDATESTRUCT_CALLEE = # asmentry - sp1_GetUpdateStruct_callee
|
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://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.
*
* SPDX-License-Identifier: Apache-2.0
******************************************************************************/
//
// Created by raver119 on 12.10.2017.
//
#include "testlayers.h"
#include <NDArray.h>
#include <ops/declarable/CustomOperations.h>
using namespace nd4j;
using namespace nd4j::ops;
class ParityOpsTests : public testing::Test {
public:
};
TEST_F(ParityOpsTests, TestZeroAs1) {
auto x = NDArrayFactory::create<float>('c', {10, 10});
x.assign(1.0);
auto exp = NDArrayFactory::create<float>('c', {10, 10});
exp.assign(0.0f);
nd4j::ops::zeros_as op;
auto result = op.execute({&x}, {}, {});
auto z = result->at(0);
ASSERT_TRUE(z->isSameShape(&x));
ASSERT_TRUE(z->equalsTo(&exp));
delete result;
}
TEST_F(ParityOpsTests, TestMaximum1) {
auto x = NDArrayFactory::create<float>('c', {10, 10});
x.assign(1.0);
auto y = NDArrayFactory::create<float>('c', {10, 10});
y.assign(2.0);
nd4j::ops::maximum op;
auto result = op.execute({&x, &y}, {}, {});
auto z = result->at(0);
ASSERT_TRUE(y.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, TestMinimum1) {
auto x = NDArrayFactory::create<float>('c', {10, 10});
x.assign(1.0f);
auto y = NDArrayFactory::create<float>('c', {10, 10});
y.assign(-2.0f);
nd4j::ops::minimum op;
auto result = op.execute({&x, &y}, {}, {});
auto z = result->at(0);
ASSERT_TRUE(y.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, TestTear1) {
auto input = NDArrayFactory::create<float>('c', {10, 5});
auto tads = input.allTensorsAlongDimension({1});
for (int e = 0; e < tads->size(); e++) {
ASSERT_EQ(5, tads->at(e)->lengthOf());
tads->at(e)->assign((float) e + 1);
}
nd4j::ops::tear op;
auto result = op.execute({&input}, {}, {1});
ASSERT_EQ(10, result->size());
for (int e = 0; e < result->size(); e++)
ASSERT_TRUE(tads->at(e)->equalsTo(result->at(e)));
delete result;
delete tads;
}
TEST_F(ParityOpsTests, TestUnstack1) {
auto input = NDArrayFactory::create<float>('c', {10, 5});
auto tads = input.allTensorsAlongDimension({1});
for (int e = 0; e < tads->size(); e++) {
ASSERT_EQ(5, tads->at(e)->lengthOf());
tads->at(e)->assign((float) e + 1);
}
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {0});
ASSERT_EQ(10, result->size());
// result->at(0)->printShapeInfo("rz");
// tads->at(0)->printShapeInfo("re");
for (int e = 0; e < result->size(); e++)
ASSERT_TRUE(tads->at(e)->equalsTo(result->at(e)));
delete result;
delete tads;
}
TEST_F(ParityOpsTests, TestUnstack2) {
auto input = NDArrayFactory::create<float>('c', {5,2,6});
auto tads = input.allTensorsAlongDimension({0,1});
for (int e = 0; e < tads->size(); e++) {
ASSERT_EQ(10, tads->at(e)->lengthOf());
tads->at(e)->assign((float) e + 1);
}
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {2});
ASSERT_EQ(6, result->size());
for (int e = 0; e < result->size(); e++)
ASSERT_TRUE(tads->at(e)->equalsTo(result->at(e)));
delete result;
delete tads;
}
TEST_F(ParityOpsTests, TestUnstack3) {
auto input = NDArrayFactory::create<float>('c', {3,2,3});
auto exp = NDArrayFactory::create<float>('c', {3, 2}, {1.f, 4., 7., 10.f, 13.f, 16.f});
input.linspace(1);
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {2});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, TestUnstack4) {
auto input = NDArrayFactory::create<float>('c', {3,2,3});
auto exp = NDArrayFactory::create<float>('c', {3, 3}, { 1, 2, 3, 7, 8, 9, 13, 14, 15.});
input.linspace(1);
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {1});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, TestUnstack5) {
auto input = NDArrayFactory::create<float>('c', {3,2,3});
auto exp = NDArrayFactory::create<float>('c', {2, 3}, { 1, 2, 3, 4, 5, 6});
input.linspace(1);
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {0});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, TestUnstack6) {
auto input = NDArrayFactory::create<float>('c', {1, 1, 1});
auto exp = NDArrayFactory::create<float>('c', {1, 1}, {1});
input.linspace(1);
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {0});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, TestUnstack7) {
auto input = NDArrayFactory::create<float>('c', {1, 1, 1});
auto exp = NDArrayFactory::create<float>('c', {1, 1}, {1});
input.linspace(1);
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {1});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, TestUnstack8) {
auto input = NDArrayFactory::create<float>('c', {1, 1});
auto exp = NDArrayFactory::create<float>('c', {1}, {1});
input.linspace(1);
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {0});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, TestUnstack9) {
auto input = NDArrayFactory::create<float>('c', {1, 1});
auto exp = NDArrayFactory::create<float>('c', {1}, {1});
input.linspace(1);
nd4j::ops::unstack op;
auto result = op.execute({&input}, {}, {1});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, ExpandDimsTest1) {
auto input = NDArrayFactory::create<float>('c', {5, 5});
input.linspace(1);
auto reshaped = input.reshape('c', {5, 1, 5});
nd4j::ops::expand_dims op;
auto result = op.execute({&input}, {}, {1});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(reshaped->isSameShape(z));
ASSERT_TRUE(reshaped->equalsTo(z));
delete result;
delete reshaped;
}
TEST_F(ParityOpsTests, ExpandDimsTest2) {
auto input = NDArrayFactory::create<float>('c', {3, 4});
input.linspace(1);
auto reshaped = input.reshape('c', {1, 3, 4});
nd4j::ops::expand_dims op;
auto result = op.execute({&input}, {}, {0});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(reshaped->isSameShape(z));
ASSERT_TRUE(reshaped->equalsTo(z));
delete result;
delete reshaped;
}
TEST_F(ParityOpsTests, ExpandDimsTest3) {
auto input = NDArrayFactory::create<float>('c', {3, 4});
input.linspace(1);
auto reshaped = input.reshape('c', {3, 1, 4});
nd4j::ops::expand_dims op;
auto result = op.execute({&input}, {}, {-2});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(reshaped->isSameShape(z));
ASSERT_TRUE(reshaped->equalsTo(z));
delete result;
delete reshaped;
}
TEST_F(ParityOpsTests, ExpandDimsTest4) {
auto input = NDArrayFactory::create<float>('c', {3, 4});
input.linspace(1);
auto reshaped = input.reshape('c', {1, 3, 4});
nd4j::ops::expand_dims op;
auto result = op.execute({&input}, {}, {-3});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(reshaped->isSameShape(z));
ASSERT_TRUE(reshaped->equalsTo(z));
delete result;
delete reshaped;
}
TEST_F(ParityOpsTests, Test_Shape_1) {
auto x = NDArrayFactory::create<float>('c', {3, 4, 5, 6});
auto exp = NDArrayFactory::create<Nd4jLong>('c', {4}, {3, 4, 5, 6});
nd4j::ops::shape_of op;
auto result = op.execute({&x}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
z->printShapeInfo("z shape");
z->printIndexedBuffer(" z buffr");
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Equals_1) {
auto x = NDArrayFactory::create<float>('c', {1, 5}, {1, 2, 3, 4, 5});
auto y = NDArrayFactory::create<float>('c', {1, 5}, {1, 0, 3, 0, 5});
auto exp = NDArrayFactory::create<bool>('c', {1, 5}, {1, 0, 1, 0, 1});
nd4j::ops::equals op;
auto result = op.execute({&x, &y}, {}, {}, {}, false, nd4j::DataType::BOOL);
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_NotEquals_1) {
auto x = NDArrayFactory::create<float>('c', {1, 5}, {1, 2, 3, 4, 5});
auto y = NDArrayFactory::create<float>('c', {1, 5}, {1, 0, 3, 0, 5});
auto exp = NDArrayFactory::create<bool>('c', {1, 5}, {0, 1, 0, 1, 0});
nd4j::ops::not_equals op;
auto result = op.execute({&x, &y}, {}, {}, {}, false, nd4j::DataType::BOOL);
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Less_1) {
auto x = NDArrayFactory::create<float>('c', {1, 5}, {1, 2, 3, 4, 5});
auto y = NDArrayFactory::create<float>('c', {1, 5}, {5, 4, 3, 2, 1});
auto exp = NDArrayFactory::create<bool>('c', {1, 5}, {1, 1, 0, 0, 0});
nd4j::ops::less op;
auto result = op.execute({&x, &y}, {}, {}, {}, false, nd4j::DataType::BOOL);
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_LessEquals_1) {
auto x = NDArrayFactory::create<float>('c', {1, 5}, {1, 2, 3, 4, 5});
auto y = NDArrayFactory::create<float>('c', {1, 5}, {5, 4, 3, 2, 1});
auto exp = NDArrayFactory::create<bool>('c', {1, 5}, {1, 1, 1, 0, 0});
nd4j::ops::less_equal op;
auto result = op.execute({&x, &y}, {}, {}, {}, false, nd4j::DataType::BOOL);
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_GreaterEquals_1) {
auto x = NDArrayFactory::create<float>('c', {1, 5}, {1, 2, 3, 4, 5});
auto y = NDArrayFactory::create<float>('c', {1, 5}, {5, 4, 3, 2, 1});
auto exp = NDArrayFactory::create<bool>('c', {1, 5}, {0, 0, 1, 1, 1});
nd4j::ops::greater_equal op;
auto result = op.execute({&x, &y}, {}, {}, {}, false, nd4j::DataType::BOOL);
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_GreaterEquals_2) {
auto x = NDArrayFactory::create<double>('c', {1, 5}, {1, 2, 3, 4, 5});
auto y = NDArrayFactory::create<double>('c', {1, 5}, {5, 4, 3, 2, 1});
auto exp = NDArrayFactory::create<bool>('c', {1, 5}, {0, 0, 1, 1, 1});
nd4j::ops::greater_equal op;
auto result = op.execute({&x, &y}, {}, {}, {}, false);
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Greater_1) {
auto x = NDArrayFactory::create<float>('c', {1, 5}, {1, 2, 3, 4, 5});
auto y = NDArrayFactory::create<float>('c', {1, 5}, {5, 4, 3, 2, 1});
auto exp = NDArrayFactory::create<bool>('c', {1, 5}, {0, 0, 0, 1, 1});
nd4j::ops::greater op;
auto result = op.execute({&x, &y}, {}, {}, {}, false, nd4j::DataType::BOOL);
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Where_1) {
auto mask = NDArrayFactory::create<bool>('c', {3, 3}, {1, 1, 1, 0, 0, 0, 1, 1, 1});
auto x = NDArrayFactory::create<float>('c', {3, 3}, {1, 2, 3, 4, 5, 6, 7, 8, 9});
auto y = NDArrayFactory::create<float>('c', {3, 3}, {9, 8, 7, 6, 5, 4, 3, 2, 1});
auto exp = NDArrayFactory::create<float>('c', {3, 3}, {1, 2, 3, 6, 5, 4, 7, 8, 9});
nd4j::ops::Where op;
auto result = op.execute({&mask, &x, &y}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
// z->printIndexedBuffer("result");
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Where_2) {
auto mask = NDArrayFactory::create<bool>('c', {1, 3}, {1, 0, 0});
auto x = NDArrayFactory::create<float>('c', {3, 3}, {1, 2, 3, 4, 5, 6, 7, 8, 9});
auto y = NDArrayFactory::create<float>('c', {3, 3}, {9, 8, 7, 6, 5, 4, 3, 2, 1});
auto exp = NDArrayFactory::create<float>('c', {3, 3}, {1, 2, 3, 6, 5, 4, 3, 2, 1});
nd4j::ops::Where op;
auto result = op.execute({&mask, &x, &y}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Where_3) {
auto mask = NDArrayFactory::create<bool>('c', {2, 2, 3}, {0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1});
auto exp = NDArrayFactory::create<Nd4jLong>('c', {5, 3}, {0, 0, 1, 0, 0, 2, 0, 1, 1, 1, 0, 0, 1, 1, 2});
nd4j::ops::Where op;
auto result = op.execute({&mask}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
// z->printShapeInfo("z");
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Select_1) {
auto mask = NDArrayFactory::create<bool>('c', {1, 3}, {1, 0, 0});
auto x = NDArrayFactory::create<float>('c', {3, 3}, {1, 2, 3, 4, 5, 6, 7, 8, 9});
auto y = NDArrayFactory::create<float>('c', {3, 3}, {9, 8, 7, 6, 5, 4, 3, 2, 1});
auto exp = NDArrayFactory::create<float>('c', {3, 3}, {1, 2, 3, 6, 5, 4, 3, 2, 1});
nd4j::ops::select op;
auto result = op.execute({&mask, &x, &y}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Select_2) {
auto mask = NDArrayFactory::create<bool>('c', {2, 2}, {1, 0, 1, 0});
auto x = NDArrayFactory::create<float>('c', {2, 2}, {1, 2, 3, 4 });
auto y = NDArrayFactory::create<float>('c', {2, 2}, {9, 8, 7, 6});
auto exp = NDArrayFactory::create<float>('c', {2, 2}, {1, 8, 3, 6});
nd4j::ops::select op;
auto result = op.execute({&mask, &x, &y}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Select_3) {
auto mask = NDArrayFactory::create<bool>('c', {1, 1}, {false});
auto x = NDArrayFactory::create<float>('c', {1, 1}, {1});
auto y = NDArrayFactory::create<float>('c', {1, 1}, {2});
auto exp = NDArrayFactory::create<float>('c', {1, 1}, {2});
nd4j::ops::select op;
auto result = op.execute({&mask, &x, &y}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Reshape_TF_1) {
auto x = NDArrayFactory::create<int>('c', {2, 2}, {1, 2, 3, 4});
auto shape = NDArrayFactory::create<int>('c', {1, 3}, {1, 2, 2});
auto exp = NDArrayFactory::create<int>('c', {1, 2, 2}, {1, 2, 3, 4});
nd4j::ops::reshape op;
auto result = op.execute({&x, &shape}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Bias_Add_1) {
auto x = NDArrayFactory::create<float>('c', {10, 5});
x.assign(0.0);
auto bias = NDArrayFactory::create<float>('c', {1, 5}, {1, 2, 3, 4, 5});
nd4j::ops::biasadd op;
auto result = op.execute({&x, &bias}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
auto tads = z->allTensorsAlongDimension({1});
for (int e = 0; e < tads->size(); e++) {
ASSERT_TRUE(bias.equalsTo(tads->at(e)));
}
delete tads;
delete result;
}
TEST_F(ParityOpsTests, Test_Scatter_Add_1) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2}, {1, 2, 3, 4});
NDArray idc('c', {1}, {0}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {1, 2}, {1, 1});
auto exp = NDArrayFactory::create<float>('c', {2, 2}, {2, 3, 3, 4});
nd4j::ops::scatter_add op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Scatter_Add_2) {
auto vec = NDArrayFactory::create<float>('c', {4}, {1, 2, 3, 4});
NDArray idc('c', {1, 4}, {0, 1, 2, 3}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {1, 4}, {1, 1, 1, 1});
auto exp = NDArrayFactory::create<float>('c', {1, 4}, {2, 3, 4, 5});
nd4j::ops::scatter_add op;
auto result = op.execute({&vec, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Scatter_Add_3) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 2, 3, 4, 5, 6, 7, 8});
NDArray idc('c', {1}, {0}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {1, 2, 2}, {1, 1, 1, 1});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 2}, {2, 3, 4, 5, 5, 6, 7, 8});
nd4j::ops::scatter_add op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Scatter_Add_4) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 2, 3, 4, 5, 6, 7, 8});
NDArray idc('c', {1, 2}, {0, 0}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {1, 2, 2, 2}, {1, 1, 1, 1, 1, 1, 1, 1});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 2}, {3, 4, 5, 6, 5, 6, 7, 8});
nd4j::ops::scatter_add op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Scatter_Add_5) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 3}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1});
NDArray idc('c', {2, 2}, {1, 1, 0, 0}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {2, 2, 2, 3}, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 3}, {9., 11., 13.,15., 17., 19., 9., 11., 13.,15., 17., 19.});
nd4j::ops::scatter_add op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Scatter_Add_6) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 1, 1, 1, 1, 1, 1, 1});
NDArray idc('c', {2, 2}, {1, 1, 0, 0}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {2, 2, 2, 2}, {1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 2}, {7, 9, 11, 13, 7, 9, 11, 13});
nd4j::ops::scatter_add op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, Test_Scatter_Add_7) {
auto matrix = NDArrayFactory::create<float>('c', {10, 3}, {1.f,2.f,3.f,4.f,5.f,6.f,7.f,8.f,9.f,10.f,11.f,12.f,13.f,14.f,15.f,16.f,17.f,18.f,19.f,20.f,21.f,22.f,23.f,24.f,25.f,26.f,27.f,28.f,29.f,30.f});
NDArray idc('c', {0}, {5}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {3}, {10.f, 20.f, 30.f});
auto exp = NDArrayFactory::create<float>('c', {10, 3}, {1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f, 10.f,11.f,12.f, 13.f,14.f,15.f, 26.f,37.f,48.f, 19.f,20.f,21.f, 22.f,23.f,24.f, 25.f,26.f,27.f, 28.f,29.f,30.f});
nd4j::ops::scatter_add op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMax_test1) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2}, {1, 2, 3, 4});
NDArray idc('c', {1}, {0.}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {1, 2}, {10, 1});
auto exp = NDArrayFactory::create<float>('c', {2, 2}, {10, 2, 3, 4});
nd4j::ops::scatter_max op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMax_test2) {
auto vec = NDArrayFactory::create<float>('c', {4}, {1, 2, 3, 4});
NDArray idc('c', {1, 4}, {0, 1, 2, 3}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {1, 4}, {10, 1, 30, 1});
auto exp = NDArrayFactory::create<float>('c', {1, 4}, {10, 2, 30, 4});
nd4j::ops::scatter_max op;
auto result = op.execute({&vec, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMax_test3) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 2, 3, 4, 5, 6, 7, 8});
NDArray idc('c', {1}, {0}, nd4j::DataType::INT64);
auto updates = NDArrayFactory::create<float>('c', {1, 2, 2}, {10, 1, 30, 1});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 2}, {10, 2, 30, 4, 5, 6, 7, 8});
nd4j::ops::scatter_max op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMax_test4) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 2, 3, 4, 5, 6, 7, 8});
NDArray idc('c', {1,2}, {0,0}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {1, 2, 2, 2}, {1,10,1,10, 1,1,10,1.});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 10, 10, 10, 5, 6, 7, 8});
nd4j::ops::scatter_max op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMax_test5) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 3}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1});
NDArray idc('c', {2, 2}, {1, 1, 0, 0}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2, 2, 2, 3}, {2,10,1,10, 2,10,1,10, 2,10,1,10, 10,2,10,1, 10,2,10,1, 10,2,10,1.});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 3}, {10, 2, 10, 2, 10, 2, 2, 10, 2, 10, 2, 10});
nd4j::ops::scatter_max op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMax_test6) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 1, 1, 1, 1, 1, 1, 1});
NDArray idc('c', {2, 2}, {1, 1, 0, 0}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2, 2, 2, 2}, {0,2,0,2, 0,2,0,2, 2,0,2,0., 2,0,2,0});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 2}, {2, 1, 2, 1, 1, 2, 1, 2});
nd4j::ops::scatter_max op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMin_test1) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2}, {1, 2, 3, 4});
NDArray idc('c', {1}, {0}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {1, 2}, {-1, 1});
auto exp = NDArrayFactory::create<float>('c', {2, 2}, {-1, 1, 3, 4});
nd4j::ops::scatter_min op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMin_test2) {
auto vec = NDArrayFactory::create<float>('c', {4}, {1, 2, 3, 4});
NDArray idc('c', {1, 4}, {0, 1, 2, 3}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {1, 4}, {10, 1, 30, 1});
auto exp = NDArrayFactory::create<float>('c', {1, 4}, {1, 1, 3, 1});
nd4j::ops::scatter_min op;
auto result = op.execute({&vec, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMin_test3) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 2, 3, 4, 5, 6, 7, 8});
NDArray idc('c', {1}, {0}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {1, 2, 2}, {10, 1, 30, 2});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 1, 3, 2, 5, 6, 7, 8});
nd4j::ops::scatter_min op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
TEST_F(ParityOpsTests, scatterMin_test4) {
auto matrix = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 2, 3, 4, 5, 6, 7, 8});
NDArray idc('c', {1,2}, {0,0}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {1, 2, 2, 2}, {1,10,1,10, 1,1,10,1.});
auto exp = NDArrayFactory::create<float>('c', {2, 2, 2}, {1, 1, 1, 1, 5, 6, 7, 8});
nd4j::ops::scatter_min op;
auto result = op.execute({&matrix, &idc, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_test1) {
NDArray indices('c', {2, 1}, {1., 0.}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2, 4}, {10.f, 20.f, 30.f, 40.f, 50.f, 60.f, 70.f, 80.f});
auto shape = NDArrayFactory::create<int>('c', {2}, {3, 4});
auto exp = NDArrayFactory::create<float>('c', {3, 4}, {50.f, 60.f, 70.f, 80.f, 10.f, 20.f, 30.f, 40.f, 0.f, 0.f, 0.f, 0.f});
nd4j::ops::scatter_nd op;
auto result = op.execute({&indices, &updates, &shape}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_test2) {
NDArray indices('c', {3, 1}, {4., 2., 0.}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {3, 4});
auto shape = NDArrayFactory::create<int>('c', {2}, {5, 4});
auto exp = NDArrayFactory::create<float>('c', {5, 4}, {9.f,10.f,11.f,12.f, 0.f, 0.f, 0.f, 0.f, 5.f, 6.f, 7.f, 8.f, 0.f, 0.f, 0.f, 0.f, 1.f, 2.f, 3.f, 4.f});
updates.linspace(1.f);
nd4j::ops::scatter_nd op;
auto result = op.execute({&indices, &updates, &shape}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_test3) {
NDArray indices('c', {2, 3, 1}, {0., 2., 7., 3., 6., 9.}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2,3, 3,4});
auto shape = NDArrayFactory::create<int>('c', {3}, {10, 3, 4});
auto exp = NDArrayFactory::create<float>('c', {10, 3, 4}, {1.f, 2.f, 3.f, 4., 5.f, 6.f, 7.f, 8., 9.f, 10.f, 11.f, 12., 0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0.,
13.f, 14.f, 15.f, 16.,17.f, 18.f, 19.f, 20.,21.f, 22.f, 23.f, 24.,37.f, 38.f, 39.f, 40.,41.f, 42.f, 43.f, 44.,45.f, 46.f, 47.f, 48.,
0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0.,
49.f, 50.f, 51.f, 52.,53.f, 54.f, 55.f, 56.,57.f, 58.f, 59.f, 60.,25.f, 26.f, 27.f, 28.,29.f, 30.f, 31.f, 32.,33.f, 34.f, 35.f, 36.,
0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0., 0.f, 0.f, 0.f, 0.,61.f, 62.f, 63.f, 64.,65.f, 66.f, 67.f, 68.,69.f, 70.f, 71.f, 72.,});
updates.linspace(1.f);
nd4j::ops::scatter_nd op;
auto result = op.execute({&indices, &updates, &shape}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_test4) {
NDArray indices('c', {4, 1}, {4., 3., 1., 7.}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {4}, {9.f, 10.f, 11.f, 12.f});
auto shape = NDArrayFactory::create<int>('c', {1}, {8});
auto exp = NDArrayFactory::create<float>('c', {8}, {0.f, 11.f, 0.f, 10.f, 9.f, 0.f, 0.f, 12.f});
nd4j::ops::scatter_nd op;
auto result = op.execute({&indices, &updates, &shape}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_add_test1) {
auto input = NDArrayFactory::create<float>('c', {8}, {1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f});
NDArray indices('c', {4, 1}, {4., 3., 1., 7.}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {4}, {9.f, 10.f, 11.f, 12.f});
auto exp = NDArrayFactory::create<float>('c', {8}, {1.f, 13.f, 3.f, 14.f, 14.f, 6.f, 7.f, 20.f});
nd4j::ops::scatter_nd_add op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_add_test2) {
auto input = NDArrayFactory::create<float>('c', {6, 4});
NDArray indices('c', {3, 3, 2}, {0.f,0.f, 1.f,1.f, 2.f,2.f, 3.f,3.f, 4.f,0.f, 5.f,1.f, 0.f,2.f, 1.f,3.f, 2.f,0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {3,3});
auto exp = NDArrayFactory::create<float>('c', {6,4}, {1.f,0.f,7.f,0.f, 0.f,2.f,0.f,8.f, 9.f,0.f,3.f,0.f, 0.f,0.f,0.f,4.f, 5.f,0.f,0.f,0.f, 0.f,6.f,0.f,0.f});
input = 0.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_add op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
// z->printIndexedBuffer();
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_add_test3) {
auto input = NDArrayFactory::create<float>('c', {6, 4});
NDArray indices('c', {2, 3, 1}, {5.f, 1.f, 2.f, 3.f, 4.f, 0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2,3,4});
auto exp = NDArrayFactory::create<float>('c', {6,4}, {21.f, 22.f, 23.f, 24.f, 5.f, 6.f, 7.f, 8.f, 9.f, 10.f, 11.f, 12.f,13.f, 14.f, 15.f, 16.f,17.f, 18.f, 19.f, 20.f, 1.f, 2.f, 3.f, 4.f});
input = 0.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_add op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
//////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_add_test4) {
auto input = NDArrayFactory::create<float>('c', {6, 4, 5});
NDArray indices('c', {3, 3, 2}, {0.f,0.f, 1.f,1.f, 2.f,2.f, 3.f,3.f, 4.f,0.f, 5.f,1.f, 0.f,2.f, 1.f,3.f, 2.f,0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {3,3,5});
auto exp = NDArrayFactory::create<float>('c', {6,4,5}, {1.f, 2.f, 3.f, 4.f, 5.f, 0.f, 0.f, 0.f, 0.f, 0.f,31.f, 32.f, 33.f, 34.f, 35.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 6.f, 7.f, 8.f, 9.f, 10.f, 0.f, 0.f, 0.f, 0.f, 0.f,36.f, 37.f, 38.f, 39.f, 40.f,
41.f, 42.f, 43.f, 44.f, 45.f, 0.f, 0.f, 0.f, 0.f, 0.f,11.f, 12.f, 13.f, 14.f, 15.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,16.f, 17.f, 18.f, 19.f, 20.f,
21.f, 22.f, 23.f, 24.f, 25.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f,26.f, 27.f, 28.f, 29.f, 30.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f});
input = 0.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_add op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
//////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_add_test5) {
auto input = NDArrayFactory::create<float>('c', {6,5,4,3,2});
NDArray indices('c', {2,2,3}, {0.f,0.f,0.f, 1.f,1.f,1.f, 2.f,2.f,2.f, 3.f,3.f,3.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2,2,3,2});
auto exp = NDArrayFactory::create<float>('c', {6,5,4,3,2}, { 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 7.f, 8.f, 9.f, 10.f,11.f, 12.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,13.f, 14.f,15.f, 16.f,17.f, 18.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,19.f, 20.f,21.f, 22.f,23.f, 24.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f});
input = 0.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_add op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_sub_test1) {
auto input = NDArrayFactory::create<float>('c', {8}, {1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f});
NDArray indices('c', {4, 1}, {4.f, 3.f, 1.f, 7.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {4}, {9.f, 10.f, 11.f, 12.f});
auto exp = NDArrayFactory::create<float>('c', {8}, {1.f, -9.f, 3.f, -6.f, -4.f, 6.f, 7.f, -4.f});
nd4j::ops::scatter_nd_sub op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_sub_test2) {
auto input = NDArrayFactory::create<float>('c', {6, 4});
NDArray indices('c', {3, 3, 2}, {0.f,0.f, 1.f,1.f, 2.f,2.f, 3.f,3.f, 4.f,0.f, 5.f,1.f, 0.f,2.f, 1.f,3.f, 2.f,0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {3,3});
auto exp = NDArrayFactory::create<float>('c', {6,4}, {-1.f,0.f,-7.f,0.f, 0.f,-2.f,0.f,-8.f, -9.f,0.f,-3.f,0.f, 0.f,0.f,0.f,-4.f, -5.f,0.f,0.f,0.f, 0.f,-6.f,0.f,0.f});
input = 0.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_sub op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
// z->printIndexedBuffer();
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_sub_test3) {
auto input = NDArrayFactory::create<float>('c', {6, 4});
NDArray indices('c', {2, 3, 1}, {5.f, 1.f, 2.f, 3.f,4.f, 0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2,3,4});
auto exp = NDArrayFactory::create<float>('c', {6,4}, {-21.f,-22.f,-23.f,-24., -5.f, -6.f, -7.f, -8., -9.f,-10.f,-11.f,-12., -13.f,-14.f,-15.f,-16., -17.f,-18.f,-19.f,-20., -1.f, -2.f, -3.f, -4.f});
input = 0.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_sub op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
//////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_sub_test4) {
auto input = NDArrayFactory::create<float>('c', {6, 4, 5});
NDArray indices('c', {3, 3, 2}, {0.f,0.f, 1.f,1.f, 2.f,2.f, 3.f,3.f, 4.f,0.f, 5.f,1.f, 0.f,2.f, 1.f,3.f, 2.f,0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {3,3,5});
auto exp = NDArrayFactory::create<float>('c', {6,4,5}, {-1.f, -2.f, -3.f, -4.f, -5.f, 0.f, 0.f, 0.f, 0.f, 0.f,-31.f, -32.f, -33.f, -34.f, -35.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, -6.f, -7.f, -8.f, -9.f, -10.f, 0.f, 0.f, 0.f, 0.f, 0.f,-36.f, -37.f, -38.f, -39.f, -40.f,
-41.f, -42.f, -43.f, -44.f, -45.f, 0.f, 0.f, 0.f, 0.f, 0.f,-11.f, -12.f, -13.f, -14.f, -15.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,-16.f, -17.f, -18.f, -19.f, -20.f,
-21.f, -22.f, -23.f, -24.f, -25.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f,-26.f, -27.f, -28.f, -29.f, -30.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f});
input = 0.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_sub op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
//////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_sub_test5) {
auto input = NDArrayFactory::create<float>('c', {6,5,4,3,2});
NDArray indices('c', {2,2,3}, {0.f,0.f,0.f, 1.f,1.f,1.f, 2.f,2.f,2.f, 3.f,3.f,3.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2,2,3,2});
auto exp = NDArrayFactory::create<float>('c', {6,5,4,3,2}, { -1.f, -2.f, -3.f, -4.f, -5.f, -6.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, -7.f, -8.f, -9.f, -10.f,-11.f, -12.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,-13.f, -14.f,-15.f, -16.f,-17.f, -18.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,-19.f, -20.f,-21.f, -22.f,-23.f,-24.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f});
input = 0.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_sub op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_update_test1) {
auto input = NDArrayFactory::create<float>('c', {8}, {1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f});
NDArray indices('c', {4, 1}, {4.f, 3.f, 1.f, 7.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {4}, {9.f, 10.f, 11.f, 12.f});
auto exp = NDArrayFactory::create<float>('c', {8}, {1.f, 11.f, 3.f, 10.f, 9.f, 6.f, 7.f, 12.f});
nd4j::ops::scatter_nd_update op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_update_test2) {
auto input = NDArrayFactory::create<float>('c', {6, 4});
NDArray indices('c', {3, 3, 2}, {0.f,0.f, 1.f,1.f, 2.f,2.f, 3.f,3.f, 4.f,0.f, 5.f,1.f, 0.f,2.f, 1.f,3.f, 2.f,0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {3,3});
auto exp = NDArrayFactory::create<float>('c', {6,4}, {1.f,-1.f,7.f,-1.f, -1.f,2.f,-1.f,8.f, 9.f,-1.f,3.f,-1.f, -1.f,-1.f,-1.f,4.f, 5.f,-1.f,-1.f,-1.f, -1.f,6.f,-1.f,-1.f});
input = -1.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_update op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
// z->printIndexedBuffer();
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
////////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_update_test3) {
auto input = NDArrayFactory::create<float>('c', {6, 4});
NDArray indices('c', {2, 3, 1}, {5.f, 1.f, 2.f, 3.f, 4.f, 0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2,3,4});
auto exp = NDArrayFactory::create<float>('c', {6,4}, {21.f, 22.f, 23.f, 24.f, 5.f, 6.f, 7.f, 8.f, 9.f, 10.f, 11.f, 12.f,13.f, 14.f, 15.f, 16.f,17.f, 18.f, 19.f, 20.f, 1.f, 2.f, 3.f, 4.f,});
input = -1.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_update op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
//////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_update_test4) {
auto input = NDArrayFactory::create<float>('c', {6, 4, 5});
NDArray indices('c', {3, 3, 2}, {0.f,0.f, 1.f,1.f, 2.f,2.f, 3.f,3.f, 4.f,0.f, 5.f,1.f, 0.f,2.f, 1.f,3.f, 2.f,0.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {3,3,5});
auto exp = NDArrayFactory::create<float>('c', {6,4,5}, {1.f, 2.f, 3.f, 4.f, 5.f, -1.f, -1.f, -1.f, -1.f, -1.f,31.f, 32.f, 33.f, 34.f, 35.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, 6.f, 7.f, 8.f, 9.f, 10.f, -1.f, -1.f, -1.f, -1.f, -1.f,36.f, 37.f, 38.f, 39.f, 40.f,
41.f, 42.f, 43.f, 44.f, 45.f, -1.f, -1.f, -1.f, -1.f, -1.f,11.f, 12.f, 13.f, 14.f, 15.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,16.f, 17.f, 18.f, 19.f, 20.f,
21.f, 22.f, 23.f, 24.f, 25.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f,26.f, 27.f, 28.f, 29.f, 30.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f});
input = -1.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_update op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
//////////////////////////////////////////////////////////////////////
TEST_F(ParityOpsTests, scatterND_update_test5) {
auto input = NDArrayFactory::create<float>('c', {6,5,4,3,2});
NDArray indices('c', {2,2,3}, {0.f,0.f,0.f, 1.f,1.f,1.f, 2.f,2.f,2.f, 3.f,3.f,3.f}, nd4j::DataType::INT32);
auto updates = NDArrayFactory::create<float>('c', {2,2,3,2});
auto exp = NDArrayFactory::create<float>('c', {6,5,4,3,2}, { 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, 7.f, 8.f, 9.f, 10.f,11.f, 12.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,13.f, 14.f,15.f, 16.f,17.f, 18.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,19.f, 20.f,21.f, 22.f,23.f, 24.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f,
-1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f, -1.f});
input = -1.f;
updates.linspace(1.f);
nd4j::ops::scatter_nd_update op;
auto result = op.execute({&input, &indices, &updates}, {}, {});
ASSERT_EQ(ND4J_STATUS_OK, result->status());
auto z = result->at(0);
ASSERT_TRUE(exp.isSameShape(z));
ASSERT_TRUE(exp.equalsTo(z));
delete result;
}
|
#include<iostream>
using namespace std;
int main()
{
system("netsh interface ipv4 set address name=\"Wi-Fi\" source=dhcp");
cout << "Attempting to switch to dynamic";
return 0;
} |
#include "c4/ast/ast.hpp"
#include "c4/std/string.hpp"
#include <c4/c4_push.hpp>
namespace c4 {
namespace ast {
thread_local std::vector<const char*> CompilationDb::s_cmd;
thread_local std::vector<std::string> CompilationDb::s_cmd_buf;
Cursor Cursor::first_child() const
{
struct _fchdata
{
Cursor this_;
Cursor child;
} data_{*this, clang_getNullCursor()};
visit_children(*this, [](Cursor c, Cursor parent, void *d_){
auto d = (_fchdata $) d_;
if(parent.is_same(d->this_) && d->child.is_null())
{
d->child = c;
return CXChildVisit_Break;
}
// clang is still calling after returning break, so renew the vows here
return CXChildVisit_Break;
}, &data_);
return data_.child;
}
Cursor Cursor::next_sibling() const
{
if(is_null()) return clang_getNullCursor();
struct _nsibdata
{
Cursor this_;
Cursor next;
bool gotit;
} data_{*this, clang_getNullCursor(), false};
Cursor parent = clang_getCursorLexicalParent(*this);
if(clang_Cursor_isNull(parent))
{
parent = root();
}
if(parent.is_same(*this)) return clang_getNullCursor();
visit_children(parent, [](Cursor c, Cursor parent_, void* d_){
C4_UNUSED(parent_);
auto d = (_nsibdata $) d_;
if( ! d->gotit)
{
if(c.is_same(d->this_))
{
d->gotit = true;
return CXChildVisit_Continue;
}
}
else
{
d->next = c;
return CXChildVisit_Break;
}
return CXChildVisit_Continue;
}, &data_);
return data_.next;
}
void Cursor::print_recursive(const char* msg, unsigned indent) const
{
struct _visit_data
{
const char *msg_;
unsigned indent_;
Cursor prev_parent;
Cursor prev_child;
} vd{msg, indent, clang_getNullCursor(), *this};
visit_children(*this, [](Cursor c, Cursor parent, void *data_) {
auto vd_ = (_visit_data $) data_;
if(parent.is_same(vd_->prev_child))
{
++vd_->indent_;
}
else if(c.is_same(vd_->prev_parent))
{
--vd_->indent_;
}
c.print(vd_->msg_, vd_->indent_);
vd_->prev_parent = parent;
vd_->prev_child = c;
return CXChildVisit_Recurse;
}, &vd);
}
void Cursor::print(const char* msg, unsigned indent) const
{
CXSourceLocation loc = clang_getCursorLocation(*this);
CXFile f;
unsigned line, col, offs;
clang_getExpansionLocation(loc, &f, &line, &col, &offs);
print_str(clang_getFileName(f));
if(msg) printf(": %s: ", msg);
printf(":%u:%u: %*s", line, col, 2*indent, "");
print_str(clang_getCursorKindSpelling(kind()));
print_str(clang_getCursorDisplayName(*this), /*skip_empty*/true, ": name='%s'");
print_str(clang_getTypeSpelling(clang_getCursorType(*this)), /*skip_empty*/true, ": type='%s'");
print_str(clang_getCursorSpelling(*this), /*skip_empty*/true, ": spell='%s'");
printf("\n");
}
Cursor Cursor::tag_subject() const
{
C4_CHECK(kind() == CXCursor_MacroExpansion);
CXSourceRange ext = clang_getCursorExtent(*this);
CXSourceLocation loc = clang_getRangeEnd(ext);
CXFile file;
unsigned line, col, offs;
clang_getExpansionLocation(loc, &file, &line, &col, &offs);
CXTranslationUnit tu = clang_Cursor_getTranslationUnit(*this);
CXCursor ret = clang_getNullCursor();
int num_tries = 0;
do {
C4_CHECK(num_tries++ < 1024);
++offs;
CXSourceLocation lookup = clang_getLocationForOffset(tu, file, ++offs);
ret = clang_getCursor(tu, lookup);
} while(clang_Cursor_isNull(ret) || ret.kind == CXCursor_NoDeclFound);
return ret;
}
csubstr Cursor::tag_annotations(csubstr file_contents) const
{
C4_CHECK(kind() == CXCursor_MacroExpansion);
CXSourceRange ext = clang_getCursorExtent(*this);
CXSourceLocation b = clang_getRangeStart(ext);
CXSourceLocation e = clang_getRangeEnd(ext);
unsigned boffs, eoffs;
clang_getExpansionLocation(b, nullptr, nullptr, nullptr, &boffs);
clang_getExpansionLocation(e, nullptr, nullptr, nullptr, &eoffs);
csubstr s = file_contents.range(boffs, eoffs);
s = s.pair_range_nested('(', ')');
C4_CHECK(s.len >= 2 && s.begins_with('(') && s.ends_with(')'));
s = s.range(1, s.len-1).trim(' ');
return s;
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
namespace detail {
struct _visitor_data
{
visitor_pfn visitor;
void *data;
CXTranslationUnit transunit;
bool same_unit_only;
bool should_break;
};
inline CXChildVisitResult _visit_impl(CXCursor cursor, CXCursor parent, CXClientData data);
} // namespace detail
void visit_children(Cursor root, visitor_pfn visitor, void *data, bool same_unit_only)
{
detail::_visitor_data vd{visitor, data, clang_Cursor_getTranslationUnit(root), same_unit_only, false};
clang_visitChildren(root, &detail::_visit_impl, &vd);
}
inline CXChildVisitResult detail::_visit_impl(CXCursor cursor, CXCursor parent, CXClientData data)
{
_visitor_data *C4_RESTRICT vd = reinterpret_cast<_visitor_data*>(data);
//printf("fdx: "); Cursor ccc = cursor; ccc.print("before filter");
if(vd->should_break)
{
// clang is still calling after returning break, so renew the vows here
return CXChildVisit_Break;
}
// skip builtin cursors or cursors from other translation units
if((vd->same_unit_only && (clang_Cursor_getTranslationUnit(cursor) != vd->transunit))
|| clang_Cursor_isMacroBuiltin(cursor))
{
//printf("skip diff unit....\n");
return CXChildVisit_Continue;
}
// apparently the conditions above are not enough to filter out builtin
// macros such as __cplusplus or _MSC_VER. So try to catch those here.
else if(cursor.kind == CXCursor_MacroDefinition)
{
// is there a smarter way to do this?
CXSourceLocation loc = clang_getCursorLocation(cursor);
CXFile f;
unsigned line, col, offs;
clang_getExpansionLocation(loc, &f, &line, &col, &offs);
CXString s = clang_getFileName(f);
const char *cs = clang_getCString(s);
if(cs == nullptr)
{
clang_disposeString(s);
//printf("skip builtin....\n");
return CXChildVisit_Continue;
}
clang_disposeString(s);
}
//printf("after filter, calling\n");
auto ret = vd->visitor(cursor, parent, vd->data);
//printf("call done!\n");
if(ret == CXChildVisit_Break)
{
// hack to make sure we break
//printf("break this!\n");
vd->should_break = true;
}
return ret;
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//! The returned csubstr is zero-terminated!
const char* StringCollection::store(CXString s)
{
csubstr ss = to_csubstr(clang_getCString(s));
if(ss.empty()) return "";
// insert a page with an appropriate capacity
if(m_pages.empty() || (m_pages.back().size() + ss.len >= m_pages.back().capacity()))
{
// the page size
size_t pglen = ss.len < default_page_size ? default_page_size : ss.len;
// make sure pglen is a power of two times the default page size
if(pglen > default_page_size)
{
size_t pgsz = default_page_size;
while(pgsz < pglen) pgsz *= 2u;
pglen = pgsz;
}
m_pages.emplace_back();
m_pages.back().reserve(pglen);
}
auto &page = m_pages.back();
C4_ASSERT_MSG(page.size() + ss.len < page.capacity());
auto const *before = page.data();
size_t curr = page.size();
page.insert(page.end(), ss.begin(), ss.end());
page.insert(page.end(), 0); // make sure it is zero-terminated
auto const *after = page.data();
C4_ASSERT(before == after);
m_strings.push_back(to_csubstr(page).sub(curr));
return m_strings.back().str;
}
} // namespace ast
} // namespace c4
#include <c4/c4_pop.hpp>
|
Name: control_data.asm
Type: file
Size: 12255
Last-Modified: '1993-07-20T07:13:21Z'
SHA-1: AA47917CEAD556F26BE678890420D6D28491C1CB
Description: null
|
; A098695: a(n) = 2^(n(n-1)/2) * Product_{k=1..n} k!.
; Submitted by Jon Maiga
; 1,1,4,96,18432,35389440,815372697600,263006617337856000,1357366631815981301760000,126095668058466123464363212800000,234278891648287676839670388023623680000000
mov $1,1
mov $2,2
mov $4,23
lpb $0
mov $3,$2
add $2,1
mul $4,$1
lpb $3
mov $3,30
cmp $4,5
lpe
sub $0,1
add $2,1
mul $1,$2
lpe
mov $0,$4
div $0,23
|
; A298977: Base-7 complementary numbers: n equals the product of the 7 complement (7-d) of its base-7 digits d.
; Submitted by Christian Krause
; 12,84,120,588,840,4116,5880,28812,41160,201684,288120,1411788,2016840,9882516,14117880,69177612,98825160,484243284,691776120,3389702988,4842432840,23727920916,33897029880,166095446412,237279209160,1162668124884,1660954464120,8138676874188,11626681248840,56970738119316,81386768741880,398795166835212,569707381193160,2791566167846484,3987951668352120,19540963174925388,27915661678464840,136786742224477716,195409631749253880,957507195571344012,1367867422244777160,6702550368999408084
lpb $0
sub $0,1
mov $1,7
mul $1,$3
mov $4,$2
cmp $2,2
add $2,$1
add $2,2
mov $3,$4
lpe
mov $0,$2
mul $0,36
add $0,12
|
;*****************************************************************************
;*
;* Open Watcom Project
;*
;* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
;*
;* ========================================================================
;*
;* This file contains Original Code and/or Modifications of Original
;* Code as defined in and that are subject to the Sybase Open Watcom
;* Public License version 1.0 (the 'License'). You may not use this file
;* except in compliance with the License. BY USING THIS FILE YOU AGREE TO
;* ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
;* provided with the Original Code and Modifications, and is also
;* available at www.sybase.com/developer/opensource.
;*
;* The Original Code and all software distributed under the License are
;* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
;* EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
;* ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
;* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
;* NON-INFRINGEMENT. Please see the License for the specific language
;* governing rights and limitations under the License.
;*
;* ========================================================================
;*
;* Description: Data for Alpha AXP division routines.
;*
;*****************************************************************************
.data
.globl _OtsDivData
_OtsDivData:
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x02, 0x00, 0x56, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x03, 0x00, 0x34, 0x33, 0x33, 0x33, 0x33, 0x33
.byte 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99
.byte 0x03, 0x00, 0xab, 0xaa, 0xaa, 0xaa, 0xaa, 0x2a
.byte 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x03, 0x00, 0x4a, 0x92, 0x24, 0x49, 0x92, 0x24
.byte 0x93, 0x24, 0x49, 0x92, 0x24, 0x49, 0x92, 0x24
.byte 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x04, 0x00, 0xc8, 0x71, 0x1c, 0xc7, 0x71, 0x1c
.byte 0x1d, 0xc7, 0x71, 0x1c, 0xc7, 0x71, 0x1c, 0xc7
.byte 0x04, 0x00, 0x9a, 0x99, 0x99, 0x99, 0x99, 0x19
.byte 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99
.byte 0x04, 0x00, 0x18, 0x5d, 0x74, 0xd1, 0x45, 0x17
.byte 0x18, 0x5d, 0x74, 0xd1, 0x45, 0x17, 0x5d, 0x74
.byte 0x04, 0x00, 0x56, 0x55, 0x55, 0x55, 0x55, 0x15
.byte 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x04, 0x00, 0x3c, 0xb1, 0x13, 0x3b, 0xb1, 0x13
.byte 0x14, 0x3b, 0xb1, 0x13, 0x3b, 0xb1, 0x13, 0x3b
.byte 0x04, 0x00, 0x25, 0x49, 0x92, 0x24, 0x49, 0x12
.byte 0x93, 0x24, 0x49, 0x92, 0x24, 0x49, 0x92, 0x24
.byte 0x04, 0x00, 0x12, 0x11, 0x11, 0x11, 0x11, 0x11
.byte 0x12, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
.byte 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x05, 0x00, 0x10, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f
.byte 0xe2, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1
.byte 0x05, 0x00, 0xe4, 0x38, 0x8e, 0xe3, 0x38, 0x0e
.byte 0x1d, 0xc7, 0x71, 0x1c, 0xc7, 0x71, 0x1c, 0xc7
.byte 0x05, 0x00, 0xd8, 0x50, 0x5e, 0x43, 0x79, 0x0d
.byte 0xbd, 0x86, 0xf2, 0x1a, 0xca, 0x6b, 0x28, 0xaf
.byte 0x05, 0x00, 0xcd, 0xcc, 0xcc, 0xcc, 0xcc, 0x0c
.byte 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99
.byte 0x05, 0x00, 0xc4, 0x30, 0x0c, 0xc3, 0x30, 0x0c
.byte 0x19, 0x86, 0x61, 0x18, 0x86, 0x61, 0x18, 0x86
.byte 0x05, 0x00, 0x8c, 0x2e, 0xba, 0xe8, 0xa2, 0x0b
.byte 0x18, 0x5d, 0x74, 0xd1, 0x45, 0x17, 0x5d, 0x74
.byte 0x05, 0x00, 0x91, 0x85, 0x2c, 0x64, 0x21, 0x0b
.byte 0xc9, 0x42, 0x16, 0xb2, 0x90, 0x85, 0x2c, 0x64
.byte 0x05, 0x00, 0xab, 0xaa, 0xaa, 0xaa, 0xaa, 0x0a
.byte 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x05, 0x00, 0x0b, 0xd7, 0xa3, 0x70, 0x3d, 0x0a
.byte 0x15, 0xae, 0x47, 0xe1, 0x7a, 0x14, 0xae, 0x47
.byte 0x05, 0x00, 0x9e, 0xd8, 0x89, 0x9d, 0xd8, 0x09
.byte 0x14, 0x3b, 0xb1, 0x13, 0x3b, 0xb1, 0x13, 0x3b
.byte 0x05, 0x00, 0x98, 0xd0, 0x5e, 0x42, 0x7b, 0x09
.byte 0xbe, 0x84, 0xf6, 0x12, 0xda, 0x4b, 0x68, 0x2f
.byte 0x05, 0x00, 0x93, 0x24, 0x49, 0x92, 0x24, 0x09
.byte 0x93, 0x24, 0x49, 0x92, 0x24, 0x49, 0x92, 0x24
.byte 0x05, 0x00, 0x3e, 0x8d, 0xb0, 0xdc, 0xd3, 0x08
.byte 0x1b, 0x61, 0xb9, 0xa7, 0x11, 0x96, 0x7b, 0x1a
.byte 0x05, 0x00, 0x89, 0x88, 0x88, 0x88, 0x88, 0x08
.byte 0x12, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
.byte 0x05, 0x00, 0x09, 0x21, 0x84, 0x10, 0x42, 0x08
.byte 0x11, 0x42, 0x08, 0x21, 0x84, 0x10, 0x42, 0x08
.byte 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x06, 0x00, 0x08, 0x1f, 0x7c, 0xf0, 0xc1, 0x07
.byte 0x20, 0x7c, 0xf0, 0xc1, 0x07, 0x1f, 0x7c, 0xf0
.byte 0x06, 0x00, 0x88, 0x87, 0x87, 0x87, 0x87, 0x07
.byte 0xe2, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1
.byte 0x06, 0x00, 0x76, 0x50, 0x07, 0x75, 0x50, 0x07
.byte 0x1e, 0xd4, 0x41, 0x1d, 0xd4, 0x41, 0x1d, 0xd4
.byte 0x06, 0x00, 0x72, 0x1c, 0xc7, 0x71, 0x1c, 0x07
.byte 0x1d, 0xc7, 0x71, 0x1c, 0xc7, 0x71, 0x1c, 0xc7
.byte 0x06, 0x00, 0x6f, 0x30, 0x45, 0x3e, 0xeb, 0x06
.byte 0x15, 0xf9, 0xac, 0x1b, 0x4c, 0x91, 0xcf, 0xba
.byte 0x06, 0x00, 0x6c, 0x28, 0xaf, 0xa1, 0xbc, 0x06
.byte 0xbd, 0x86, 0xf2, 0x1a, 0xca, 0x6b, 0x28, 0xaf
.byte 0x06, 0x00, 0x6a, 0x90, 0x06, 0x69, 0x90, 0x06
.byte 0x1b, 0xa4, 0x41, 0x1a, 0xa4, 0x41, 0x1a, 0xa4
.byte 0x06, 0x00, 0x67, 0x66, 0x66, 0x66, 0x66, 0x06
.byte 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99
.byte 0x06, 0x00, 0x07, 0xe7, 0x63, 0x70, 0x3e, 0x06
.byte 0x19, 0x9c, 0x8f, 0xc1, 0xf9, 0x18, 0x9c, 0x8f
.byte 0x06, 0x00, 0x62, 0x18, 0x86, 0x61, 0x18, 0x06
.byte 0x19, 0x86, 0x61, 0x18, 0x86, 0x61, 0x18, 0x86
.byte 0x06, 0x00, 0x42, 0x5f, 0xd0, 0x17, 0xf4, 0x05
.byte 0x7e, 0x41, 0x5f, 0xd0, 0x17, 0xf4, 0x05, 0x7d
.byte 0x06, 0x00, 0x46, 0x17, 0x5d, 0x74, 0xd1, 0x05
.byte 0x18, 0x5d, 0x74, 0xd1, 0x45, 0x17, 0x5d, 0x74
.byte 0x06, 0x00, 0x5c, 0xb0, 0x05, 0x5b, 0xb0, 0x05
.byte 0x17, 0x6c, 0xc1, 0x16, 0x6c, 0xc1, 0x16, 0x6c
.byte 0x06, 0x00, 0xc9, 0x42, 0x16, 0xb2, 0x90, 0x05
.byte 0xc9, 0x42, 0x16, 0xb2, 0x90, 0x85, 0x2c, 0x64
.byte 0x06, 0x00, 0xc5, 0xe4, 0x0a, 0x62, 0x72, 0x05
.byte 0x63, 0x72, 0x05, 0x31, 0xb9, 0x82, 0x98, 0x5c
.byte 0x06, 0x00, 0x56, 0x55, 0x55, 0x55, 0x55, 0x05
.byte 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x06, 0x00, 0xc2, 0xcb, 0x29, 0x78, 0x39, 0x05
.byte 0x83, 0x97, 0x53, 0xf0, 0x72, 0x0a, 0x5e, 0x4e
.byte 0x06, 0x00, 0x86, 0xeb, 0x51, 0xb8, 0x1e, 0x05
.byte 0x15, 0xae, 0x47, 0xe1, 0x7a, 0x14, 0xae, 0x47
.byte 0x06, 0x00, 0x06, 0x05, 0x05, 0x05, 0x05, 0x05
.byte 0x42, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41
.byte 0x06, 0x00, 0x4f, 0xec, 0xc4, 0x4e, 0xec, 0x04
.byte 0x14, 0x3b, 0xb1, 0x13, 0x3b, 0xb1, 0x13, 0x3b
.byte 0x06, 0x00, 0xdf, 0xca, 0x3e, 0x87, 0xd4, 0x04
.byte 0x53, 0x13, 0x8c, 0xb7, 0xb2, 0xcf, 0x21, 0x35
.byte 0x06, 0x00, 0x4c, 0x68, 0x2f, 0xa1, 0xbd, 0x04
.byte 0xbe, 0x84, 0xf6, 0x12, 0xda, 0x4b, 0x68, 0x2f
.byte 0x06, 0x00, 0x05, 0x79, 0x4a, 0x90, 0xa7, 0x04
.byte 0x13, 0xe4, 0x29, 0x41, 0x9e, 0x12, 0xe4, 0x29
.byte 0x06, 0x00, 0x4a, 0x92, 0x24, 0x49, 0x92, 0x04
.byte 0x93, 0x24, 0x49, 0x92, 0x24, 0x49, 0x92, 0x24
.byte 0x06, 0x00, 0x48, 0x70, 0x1f, 0xc1, 0x7d, 0x04
.byte 0x7e, 0x04, 0xf7, 0x11, 0xdc, 0x47, 0x70, 0x1f
.byte 0x06, 0x00, 0x9f, 0x46, 0x58, 0xee, 0x69, 0x04
.byte 0x1b, 0x61, 0xb9, 0xa7, 0x11, 0x96, 0x7b, 0x1a
.byte 0x06, 0x00, 0x4a, 0xdd, 0x97, 0xc7, 0x56, 0x04
.byte 0x46, 0xd0, 0x70, 0x52, 0xf7, 0xe5, 0xb1, 0x15
.byte 0x06, 0x00, 0x45, 0x44, 0x44, 0x44, 0x44, 0x04
.byte 0x12, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
.byte 0x06, 0x00, 0x37, 0xef, 0x53, 0x5c, 0x32, 0x04
.byte 0x11, 0xac, 0xa3, 0xcd, 0xfb, 0x14, 0x97, 0x0c
.byte 0x06, 0x00, 0x85, 0x10, 0x42, 0x08, 0x21, 0x04
.byte 0x11, 0x42, 0x08, 0x21, 0x84, 0x10, 0x42, 0x08
.byte 0x06, 0x00, 0x42, 0x10, 0x04, 0x41, 0x10, 0x04
.byte 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04
.byte 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x07, 0x00, 0x40, 0xf0, 0x03, 0x3f, 0xf0, 0x03
.byte 0x20, 0xf8, 0x81, 0x1f, 0xf8, 0x81, 0x1f, 0xf8
.byte 0x07, 0x00, 0x84, 0x0f, 0x3e, 0xf8, 0xe0, 0x03
.byte 0x20, 0x7c, 0xf0, 0xc1, 0x07, 0x1f, 0x7c, 0xf0
.byte 0x07, 0x00, 0x17, 0x7e, 0x35, 0x26, 0xd2, 0x03
.byte 0xa1, 0x72, 0x76, 0x0b, 0xbf, 0x1a, 0x13, 0xe9
.byte 0x07, 0x00, 0xc4, 0xc3, 0xc3, 0xc3, 0xc3, 0x03
.byte 0xe2, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1
.byte 0x07, 0x00, 0x31, 0xd7, 0x0e, 0xcc, 0xb5, 0x03
.byte 0x61, 0xae, 0x1d, 0x98, 0x6b, 0x07, 0xe6, 0xda
.byte 0x07, 0x00, 0x3b, 0xa8, 0x83, 0x3a, 0xa8, 0x03
.byte 0x1e, 0xd4, 0x41, 0x1d, 0xd4, 0x41, 0x1d, 0xd4
.byte 0x07, 0x00, 0x74, 0x20, 0xd1, 0x0a, 0x9b, 0x03
.byte 0x13, 0xad, 0xb0, 0x39, 0x90, 0x68, 0x85, 0xcd
.byte 0x07, 0x00, 0x39, 0x8e, 0xe3, 0x38, 0x8e, 0x03
.byte 0x1d, 0xc7, 0x71, 0x1c, 0xc7, 0x71, 0x1c, 0xc7
.byte 0x07, 0x00, 0x39, 0x70, 0xe0, 0xc0, 0x81, 0x03
.byte 0x04, 0x07, 0x0e, 0x1c, 0x38, 0x70, 0xe0, 0xc0
.byte 0x07, 0x00, 0x38, 0x98, 0x22, 0x9f, 0x75, 0x03
.byte 0x15, 0xf9, 0xac, 0x1b, 0x4c, 0x91, 0xcf, 0xba
.byte 0x07, 0x00, 0x04, 0x9d, 0x36, 0xd0, 0x69, 0x03
.byte 0x1c, 0xe8, 0xb4, 0x81, 0x4e, 0x1b, 0xe8, 0xb4
.byte 0x07, 0x00, 0x36, 0x94, 0xd7, 0x50, 0x5e, 0x03
.byte 0xbd, 0x86, 0xf2, 0x1a, 0xca, 0x6b, 0x28, 0xaf
.byte 0x07, 0x00, 0x4d, 0x0d, 0xec, 0x1d, 0x53, 0x03
.byte 0x1b, 0xd8, 0x3b, 0xa6, 0x06, 0xf6, 0x8e, 0xa9
.byte 0x07, 0x00, 0x35, 0x48, 0x83, 0x34, 0x48, 0x03
.byte 0x1b, 0xa4, 0x41, 0x1a, 0xa4, 0x41, 0x1a, 0xa4
.byte 0x07, 0x00, 0x07, 0xa2, 0xd2, 0x91, 0x3d, 0x03
.byte 0xd3, 0x91, 0x3d, 0x03, 0x51, 0xe9, 0xc8, 0x9e
.byte 0x07, 0x00, 0x34, 0x33, 0x33, 0x33, 0x33, 0x03
.byte 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99
.byte 0x07, 0x00, 0xde, 0x9a, 0x1f, 0x16, 0x29, 0x03
.byte 0x53, 0x06, 0x9e, 0x6e, 0xcd, 0x0f, 0x8b, 0x94
.byte 0x07, 0x00, 0x84, 0xf3, 0x31, 0x38, 0x1f, 0x03
.byte 0x19, 0x9c, 0x8f, 0xc1, 0xf9, 0x18, 0x9c, 0x8f
.byte 0x07, 0x00, 0x7f, 0xed, 0x21, 0x97, 0x15, 0x03
.byte 0x38, 0x9a, 0x3a, 0xbf, 0xf6, 0x90, 0xcb, 0x8a
.byte 0x07, 0x00, 0x31, 0x0c, 0xc3, 0x30, 0x0c, 0x03
.byte 0x19, 0x86, 0x61, 0x18, 0x86, 0x61, 0x18, 0x86
.byte 0x07, 0x00, 0x04, 0x03, 0x03, 0x03, 0x03, 0x03
.byte 0x82, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81
.byte 0x07, 0x00, 0xa1, 0x2f, 0xe8, 0x0b, 0xfa, 0x02
.byte 0x7e, 0x41, 0x5f, 0xd0, 0x17, 0xf4, 0x05, 0x7d
.byte 0x07, 0x00, 0x15, 0x2f, 0x90, 0x49, 0xf1, 0x02
.byte 0x79, 0x81, 0x4c, 0x8a, 0x17, 0xc8, 0xa4, 0x78
.byte 0x07, 0x00, 0xa3, 0x8b, 0x2e, 0xba, 0xe8, 0x02
.byte 0x18, 0x5d, 0x74, 0xd1, 0x45, 0x17, 0x5d, 0x74
.byte 0x07, 0x00, 0x71, 0x81, 0x0b, 0x5c, 0xe0, 0x02
.byte 0xe1, 0x02, 0x17, 0xb8, 0xc0, 0x05, 0x2e, 0x70
.byte 0x07, 0x00, 0x2e, 0xd8, 0x82, 0x2d, 0xd8, 0x02
.byte 0x17, 0x6c, 0xc1, 0x16, 0x6c, 0xc1, 0x16, 0x6c
.byte 0x07, 0x00, 0x2e, 0xd0, 0x02, 0x2d, 0xd0, 0x02
.byte 0x17, 0x68, 0x81, 0x16, 0x68, 0x81, 0x16, 0x68
.byte 0x07, 0x00, 0x65, 0x21, 0x0b, 0x59, 0xc8, 0x02
.byte 0xc9, 0x42, 0x16, 0xb2, 0x90, 0x85, 0x2c, 0x64
.byte 0x07, 0x00, 0x03, 0x0b, 0x2c, 0xb0, 0xc0, 0x02
.byte 0x17, 0x58, 0x60, 0x81, 0x05, 0x16, 0x58, 0x60
.byte 0x07, 0x00, 0x63, 0x72, 0x05, 0x31, 0xb9, 0x02
.byte 0x63, 0x72, 0x05, 0x31, 0xb9, 0x82, 0x98, 0x5c
.byte 0x07, 0x00, 0x2c, 0x10, 0x46, 0xda, 0xb1, 0x02
.byte 0x31, 0xd2, 0x8e, 0x15, 0x08, 0x23, 0xed, 0x58
.byte 0x07, 0x00, 0xab, 0xaa, 0xaa, 0xaa, 0xaa, 0x02
.byte 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x07, 0x00, 0x60, 0x5c, 0xfd, 0xa0, 0xa3, 0x02
.byte 0xd1, 0x51, 0x81, 0x2f, 0xae, 0x7e, 0xd0, 0x51
.byte 0x07, 0x00, 0xe1, 0xe5, 0x14, 0xbc, 0x9c, 0x02
.byte 0x83, 0x97, 0x53, 0xf0, 0x72, 0x0a, 0x5e, 0x4e
.byte 0x07, 0x00, 0x58, 0x0a, 0xd4, 0xfa, 0x95, 0x02
.byte 0x15, 0xa8, 0xf5, 0x2b, 0x05, 0x6a, 0xfd, 0x4a
.byte 0x07, 0x00, 0xc3, 0xf5, 0x28, 0x5c, 0x8f, 0x02
.byte 0x15, 0xae, 0x47, 0xe1, 0x7a, 0x14, 0xae, 0x47
.byte 0x07, 0x00, 0x5c, 0xac, 0x0c, 0xdf, 0x88, 0x02
.byte 0xe5, 0xae, 0x9f, 0x2d, 0x56, 0x86, 0x6f, 0x44
.byte 0x07, 0x00, 0x83, 0x82, 0x82, 0x82, 0x82, 0x02
.byte 0x42, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41
.byte 0x07, 0x00, 0x96, 0x9c, 0x97, 0x45, 0x7c, 0x02
.byte 0xc5, 0x27, 0x90, 0x4a, 0xce, 0xcb, 0x22, 0x3e
.byte 0x07, 0x00, 0x28, 0x76, 0x62, 0x27, 0x76, 0x02
.byte 0x14, 0x3b, 0xb1, 0x13, 0x3b, 0xb1, 0x13, 0x3b
.byte 0x07, 0x00, 0x28, 0x70, 0x02, 0x27, 0x70, 0x02
.byte 0x14, 0x38, 0x81, 0x13, 0x38, 0x81, 0x13, 0x38
.byte 0x07, 0x00, 0x70, 0x65, 0x9f, 0x43, 0x6a, 0x02
.byte 0x53, 0x13, 0x8c, 0xb7, 0xb2, 0xcf, 0x21, 0x35
.byte 0x07, 0x00, 0x63, 0x45, 0x69, 0x7c, 0x64, 0x02
.byte 0x6f, 0xf6, 0x0b, 0xb1, 0xa2, 0x34, 0x3e, 0x32
.byte 0x07, 0x00, 0x26, 0xb4, 0x97, 0xd0, 0x5e, 0x02
.byte 0xbe, 0x84, 0xf6, 0x12, 0xda, 0x4b, 0x68, 0x2f
.byte 0x07, 0x00, 0x26, 0xb0, 0x69, 0x3f, 0x59, 0x02
.byte 0x4e, 0xfb, 0xc9, 0x12, 0xd8, 0xb4, 0x9f, 0x2c
.byte 0x07, 0x00, 0x83, 0x3c, 0x25, 0xc8, 0x53, 0x02
.byte 0x13, 0xe4, 0x29, 0x41, 0x9e, 0x12, 0xe4, 0x29
.byte 0x07, 0x00, 0x25, 0x10, 0x17, 0x6a, 0x4e, 0x02
.byte 0xb9, 0x50, 0x73, 0x12, 0x88, 0x0b, 0x35, 0x27
.byte 0x07, 0x00, 0x25, 0x49, 0x92, 0x24, 0x49, 0x02
.byte 0x93, 0x24, 0x49, 0x92, 0x24, 0x49, 0x92, 0x24
.byte 0x07, 0x00, 0x40, 0x24, 0xf0, 0xf6, 0x43, 0x02
.byte 0x22, 0x81, 0xb7, 0x1f, 0x12, 0x78, 0xfb, 0x21
.byte 0x07, 0x00, 0x24, 0xb8, 0x8f, 0xe0, 0x3e, 0x02
.byte 0x7e, 0x04, 0xf7, 0x11, 0xdc, 0x47, 0x70, 0x1f
.byte 0x07, 0x00, 0x51, 0xb4, 0xd5, 0xe0, 0x39, 0x02
.byte 0x07, 0xcf, 0x11, 0x28, 0xda, 0x6a, 0xf0, 0x1c
.byte 0x07, 0x00, 0x50, 0x23, 0x2c, 0xf7, 0x34, 0x02
.byte 0x1b, 0x61, 0xb9, 0xa7, 0x11, 0x96, 0x7b, 0x1a
.byte 0x07, 0x00, 0x24, 0x30, 0x02, 0x23, 0x30, 0x02
.byte 0x12, 0x18, 0x81, 0x11, 0x18, 0x81, 0x11, 0x18
.byte 0x07, 0x00, 0xa5, 0xee, 0xcb, 0x63, 0x2b, 0x02
.byte 0x46, 0xd0, 0x70, 0x52, 0xf7, 0xe5, 0xb1, 0x15
.byte 0x07, 0x00, 0xba, 0x26, 0x02, 0xb9, 0x26, 0x02
.byte 0x5d, 0x13, 0x81, 0x5c, 0x13, 0x81, 0x5c, 0x13
.byte 0x07, 0x00, 0x23, 0x22, 0x22, 0x22, 0x22, 0x02
.byte 0x12, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
.byte 0x07, 0x00, 0xd4, 0x7c, 0xad, 0x9e, 0x1d, 0x02
.byte 0xe3, 0xfd, 0xc8, 0x69, 0xbe, 0x56, 0xcf, 0x0e
.byte 0x07, 0x00, 0x9c, 0xf7, 0x29, 0x2e, 0x19, 0x02
.byte 0x11, 0xac, 0xa3, 0xcd, 0xfb, 0x14, 0x97, 0x0c
.byte 0x07, 0x00, 0x03, 0x4d, 0x21, 0xd0, 0x14, 0x02
.byte 0x11, 0x68, 0x0a, 0x81, 0xa6, 0x10, 0x68, 0x0a
.byte 0x07, 0x00, 0x43, 0x08, 0x21, 0x84, 0x10, 0x02
.byte 0x11, 0x42, 0x08, 0x21, 0x84, 0x10, 0x42, 0x08
.byte 0x07, 0x00, 0x36, 0x5e, 0xba, 0x49, 0x0c, 0x02
.byte 0x77, 0xbe, 0x9f, 0x1a, 0x2f, 0xdd, 0x24, 0x06
.byte 0x07, 0x00, 0x21, 0x08, 0x82, 0x20, 0x08, 0x02
.byte 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04
.byte 0x07, 0x00, 0x41, 0x20, 0x10, 0x08, 0x04, 0x02
.byte 0x03, 0x81, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02
.byte 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x08, 0x00, 0xc1, 0x1f, 0xf0, 0x07, 0xfc, 0x01
.byte 0xfd, 0x01, 0x7f, 0xc0, 0x1f, 0xf0, 0x07, 0xfc
.byte 0x08, 0x00, 0x20, 0xf8, 0x81, 0x1f, 0xf8, 0x01
.byte 0x20, 0xf8, 0x81, 0x1f, 0xf8, 0x81, 0x1f, 0xf8
.byte 0x08, 0x00, 0xa5, 0xe4, 0x59, 0x46, 0xf4, 0x01
.byte 0x80, 0x15, 0x27, 0xa4, 0xe4, 0x59, 0x46, 0xf4
.byte 0x08, 0x00, 0xc2, 0x07, 0x1f, 0x7c, 0xf0, 0x01
.byte 0x20, 0x7c, 0xf0, 0xc1, 0x07, 0x1f, 0x7c, 0xf0
.byte 0x08, 0x00, 0x1f, 0x30, 0x7b, 0xc0, 0xec, 0x01
.byte 0xb4, 0x07, 0xcc, 0x1e, 0x30, 0x7b, 0xc0, 0xec
.byte 0x08, 0x00, 0x0c, 0xbf, 0x1a, 0x13, 0xe9, 0x01
.byte 0xa1, 0x72, 0x76, 0x0b, 0xbf, 0x1a, 0x13, 0xe9
.byte 0x08, 0x00, 0x1f, 0x90, 0xac, 0x73, 0xe5, 0x01
.byte 0xca, 0x3a, 0x57, 0x1e, 0x90, 0xac, 0x73, 0xe5
.byte 0x08, 0x00, 0xe2, 0xe1, 0xe1, 0xe1, 0xe1, 0x01
.byte 0xe2, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1
.byte 0x08, 0x00, 0x89, 0x3f, 0x6e, 0x5d, 0xde, 0x01
.byte 0x71, 0xa4, 0x68, 0x88, 0x3f, 0x6e, 0x5d, 0xde
.byte 0x08, 0x00, 0x99, 0x6b, 0x07, 0xe6, 0xda, 0x01
.byte 0x61, 0xae, 0x1d, 0x98, 0x6b, 0x07, 0xe6, 0xda
.byte 0x08, 0x00, 0x83, 0x4b, 0x65, 0x7b, 0xd7, 0x01
.byte 0x18, 0x39, 0xc3, 0x82, 0x4b, 0x65, 0x7b, 0xd7
.byte 0x08, 0x00, 0x1e, 0xd4, 0x41, 0x1d, 0xd4, 0x01
.byte 0x1e, 0xd4, 0x41, 0x1d, 0xd4, 0x41, 0x1d, 0xd4
.byte 0x08, 0x00, 0xed, 0xf6, 0x58, 0xcb, 0xd0, 0x01
.byte 0x2e, 0x43, 0x07, 0xec, 0xf6, 0x58, 0xcb, 0xd0
.byte 0x08, 0x00, 0x3a, 0x90, 0x68, 0x85, 0xcd, 0x01
.byte 0x13, 0xad, 0xb0, 0x39, 0x90, 0x68, 0x85, 0xcd
.byte 0x08, 0x00, 0xef, 0x55, 0x30, 0x4b, 0xca, 0x01
.byte 0x1d, 0x10, 0x19, 0xee, 0x55, 0x30, 0x4b, 0xca
.byte 0x08, 0x00, 0x1d, 0xc7, 0x71, 0x1c, 0xc7, 0x01
.byte 0x1d, 0xc7, 0x71, 0x1c, 0xc7, 0x71, 0x1c, 0xc7
.byte 0x08, 0x00, 0x40, 0x1c, 0xf0, 0xf8, 0xc3, 0x01
.byte 0xc4, 0x01, 0x8f, 0x3f, 0x1c, 0xf0, 0xf8, 0xc3
.byte 0x08, 0x00, 0x1d, 0x38, 0x70, 0xe0, 0xc0, 0x01
.byte 0x04, 0x07, 0x0e, 0x1c, 0x38, 0x70, 0xe0, 0xc0
.byte 0x08, 0x00, 0x41, 0x99, 0xb8, 0xd2, 0xbd, 0x01
.byte 0xaf, 0x74, 0x6f, 0x40, 0x99, 0xb8, 0xd2, 0xbd
.byte 0x08, 0x00, 0x1c, 0x4c, 0x91, 0xcf, 0xba, 0x01
.byte 0x15, 0xf9, 0xac, 0x1b, 0x4c, 0x91, 0xcf, 0xba
.byte 0x08, 0x00, 0xa4, 0xdd, 0xc3, 0xd6, 0xb7, 0x01
.byte 0xb0, 0xb2, 0x38, 0xa3, 0xdd, 0xc3, 0xd6, 0xb7
.byte 0x08, 0x00, 0x82, 0x4e, 0x1b, 0xe8, 0xb4, 0x01
.byte 0x1c, 0xe8, 0xb4, 0x81, 0x4e, 0x1b, 0xe8, 0xb4
.byte 0x08, 0x00, 0xc9, 0x06, 0x64, 0x03, 0xb2, 0x01
.byte 0x1c, 0x90, 0x0d, 0xc8, 0x06, 0x64, 0x03, 0xb2
.byte 0x08, 0x00, 0x1b, 0xca, 0x6b, 0x28, 0xaf, 0x01
.byte 0xbd, 0x86, 0xf2, 0x1a, 0xca, 0x6b, 0x28, 0xaf
.byte 0x08, 0x00, 0x58, 0xac, 0x01, 0x57, 0xac, 0x01
.byte 0x58, 0xac, 0x01, 0x57, 0xac, 0x01, 0x57, 0xac
.byte 0x08, 0x00, 0xa7, 0x06, 0xf6, 0x8e, 0xa9, 0x01
.byte 0x1b, 0xd8, 0x3b, 0xa6, 0x06, 0xf6, 0x8e, 0xa9
.byte 0x08, 0x00, 0x02, 0x6d, 0x1a, 0xd0, 0xa6, 0x01
.byte 0x1b, 0xd0, 0xa6, 0x01, 0x6d, 0x1a, 0xd0, 0xa6
.byte 0x08, 0x00, 0x1b, 0xa4, 0x41, 0x1a, 0xa4, 0x01
.byte 0x1b, 0xa4, 0x41, 0x1a, 0xa4, 0x41, 0x1a, 0xa4
.byte 0x08, 0x00, 0xa5, 0x97, 0x3f, 0x6d, 0xa1, 0x01
.byte 0x17, 0x1a, 0xb0, 0xa4, 0x97, 0x3f, 0x6d, 0xa1
.byte 0x08, 0x00, 0x04, 0x51, 0xe9, 0xc8, 0x9e, 0x01
.byte 0xd3, 0x91, 0x3d, 0x03, 0x51, 0xe9, 0xc8, 0x9e
.byte 0x08, 0x00, 0x4b, 0xee, 0x14, 0x2d, 0x9c, 0x01
.byte 0xc3, 0x19, 0x10, 0x4a, 0xee, 0x14, 0x2d, 0x9c
.byte 0x08, 0x00, 0x9a, 0x99, 0x99, 0x99, 0x99, 0x01
.byte 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99
.byte 0x08, 0x00, 0xcc, 0x80, 0x4f, 0x0e, 0x97, 0x01
.byte 0xc1, 0x27, 0x87, 0xcb, 0x80, 0x4f, 0x0e, 0x97
.byte 0x08, 0x00, 0x6f, 0xcd, 0x0f, 0x8b, 0x94, 0x01
.byte 0x53, 0x06, 0x9e, 0x6e, 0xcd, 0x0f, 0x8b, 0x94
.byte 0x08, 0x00, 0x0f, 0x9d, 0xb4, 0x0f, 0x92, 0x01
.byte 0x5a, 0x8d, 0x22, 0x0e, 0x9d, 0xb4, 0x0f, 0x92
.byte 0x08, 0x00, 0xc2, 0xf9, 0x18, 0x9c, 0x8f, 0x01
.byte 0x19, 0x9c, 0x8f, 0xc1, 0xf9, 0x18, 0x9c, 0x8f
.byte 0x08, 0x00, 0x02, 0xd3, 0x18, 0x30, 0x8d, 0x01
.byte 0x19, 0x30, 0x8d, 0x01, 0xd3, 0x18, 0x30, 0x8d
.byte 0x08, 0x00, 0xc0, 0xf6, 0x90, 0xcb, 0x8a, 0x01
.byte 0x38, 0x9a, 0x3a, 0xbf, 0xf6, 0x90, 0xcb, 0x8a
.byte 0x08, 0x00, 0xbc, 0x0a, 0x5f, 0x6e, 0x88, 0x01
.byte 0x4c, 0x99, 0x04, 0xbb, 0x0a, 0x5f, 0x6e, 0x88
.byte 0x08, 0x00, 0x19, 0x86, 0x61, 0x18, 0x86, 0x01
.byte 0x19, 0x86, 0x61, 0x18, 0x86, 0x61, 0x18, 0x86
.byte 0x08, 0x00, 0x2c, 0xab, 0x77, 0xc9, 0x83, 0x01
.byte 0x8f, 0xd2, 0xed, 0x2b, 0xab, 0x77, 0xc9, 0x83
.byte 0x08, 0x00, 0x82, 0x81, 0x81, 0x81, 0x81, 0x01
.byte 0x82, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81
.byte 0x08, 0x00, 0x18, 0xd0, 0x5f, 0x40, 0x7f, 0x01
.byte 0xfe, 0x05, 0xf4, 0x17, 0xd0, 0x5f, 0x40, 0x7f
.byte 0x08, 0x00, 0xd1, 0x17, 0xf4, 0x05, 0x7d, 0x01
.byte 0x7e, 0x41, 0x5f, 0xd0, 0x17, 0xf4, 0x05, 0x7d
.byte 0x08, 0x00, 0x0f, 0x8e, 0x20, 0xd2, 0x7a, 0x01
.byte 0x46, 0x35, 0xcc, 0x0e, 0x8e, 0x20, 0xd2, 0x7a
.byte 0x08, 0x00, 0x8b, 0x17, 0xc8, 0xa4, 0x78, 0x01
.byte 0x79, 0x81, 0x4c, 0x8a, 0x17, 0xc8, 0xa4, 0x78
.byte 0x08, 0x00, 0x4b, 0x43, 0xce, 0x7d, 0x76, 0x01
.byte 0x18, 0x10, 0x9b, 0x4a, 0x43, 0xce, 0x7d, 0x76
.byte 0x08, 0x00, 0xd2, 0x45, 0x17, 0x5d, 0x74, 0x01
.byte 0x18, 0x5d, 0x74, 0xd1, 0x45, 0x17, 0x5d, 0x74
.byte 0x08, 0x00, 0x6e, 0xf4, 0x87, 0x42, 0x72, 0x01
.byte 0x5d, 0xc0, 0xeb, 0x6d, 0xf4, 0x87, 0x42, 0x72
.byte 0x08, 0x00, 0xb9, 0xc0, 0x05, 0x2e, 0x70, 0x01
.byte 0xe1, 0x02, 0x17, 0xb8, 0xc0, 0x05, 0x2e, 0x70
.byte 0x08, 0x00, 0x34, 0xb4, 0x76, 0x1f, 0x6e, 0x01
.byte 0xb2, 0x6c, 0x7c, 0x33, 0xb4, 0x76, 0x1f, 0x6e
.byte 0x08, 0x00, 0x17, 0x6c, 0xc1, 0x16, 0x6c, 0x01
.byte 0x17, 0x6c, 0xc1, 0x16, 0x6c, 0xc1, 0x16, 0x6c
.byte 0x08, 0x00, 0x38, 0x15, 0xcd, 0x13, 0x6a, 0x01
.byte 0x3f, 0x04, 0x29, 0x37, 0x15, 0xcd, 0x13, 0x6a
.byte 0x08, 0x00, 0x17, 0x68, 0x81, 0x16, 0x68, 0x01
.byte 0x17, 0x68, 0x81, 0x16, 0x68, 0x81, 0x16, 0x68
.byte 0x08, 0x00, 0x13, 0xa5, 0xc6, 0x1e, 0x66, 0x01
.byte 0x17, 0x90, 0x2f, 0x12, 0xa5, 0xc6, 0x1e, 0x66
.byte 0x08, 0x00, 0xb3, 0x90, 0x85, 0x2c, 0x64, 0x01
.byte 0xc9, 0x42, 0x16, 0xb2, 0x90, 0x85, 0x2c, 0x64
.byte 0x08, 0x00, 0x17, 0x70, 0xa7, 0x3f, 0x62, 0x01
.byte 0x78, 0xfa, 0x23, 0x16, 0x70, 0xa7, 0x3f, 0x62
.byte 0x08, 0x00, 0x82, 0x05, 0x16, 0x58, 0x60, 0x01
.byte 0x17, 0x58, 0x60, 0x81, 0x05, 0x16, 0x58, 0x60
.byte 0x08, 0x00, 0x02, 0x8d, 0xbb, 0x75, 0x5e, 0x01
.byte 0xbc, 0x75, 0x5e, 0x01, 0x8d, 0xbb, 0x75, 0x5e
.byte 0x08, 0x00, 0x32, 0xb9, 0x82, 0x98, 0x5c, 0x01
.byte 0x63, 0x72, 0x05, 0x31, 0xb9, 0x82, 0x98, 0x5c
.byte 0x08, 0x00, 0x16, 0xb0, 0x56, 0xc0, 0x5a, 0x01
.byte 0x6c, 0x05, 0xac, 0x15, 0xb0, 0x56, 0xc0, 0x5a
.byte 0x08, 0x00, 0x16, 0x08, 0x23, 0xed, 0x58, 0x01
.byte 0x31, 0xd2, 0x8e, 0x15, 0x08, 0x23, 0xed, 0x58
.byte 0x08, 0x00, 0x07, 0xc5, 0xd3, 0x1e, 0x57, 0x01
.byte 0x23, 0x9a, 0xb3, 0x06, 0xc5, 0xd3, 0x1e, 0x57
.byte 0x08, 0x00, 0x56, 0x55, 0x55, 0x55, 0x55, 0x01
.byte 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x08, 0x00, 0x41, 0x8f, 0x94, 0x90, 0x53, 0x01
.byte 0x70, 0xac, 0xfe, 0x40, 0x8f, 0x94, 0x90, 0x53
.byte 0x08, 0x00, 0x30, 0xae, 0x7e, 0xd0, 0x51, 0x01
.byte 0xd1, 0x51, 0x81, 0x2f, 0xae, 0x7e, 0xd0, 0x51
.byte 0x08, 0x00, 0x16, 0x50, 0x01, 0x15, 0x50, 0x01
.byte 0x16, 0x50, 0x01, 0x15, 0x50, 0x01, 0x15, 0x50
.byte 0x08, 0x00, 0xf1, 0x72, 0x0a, 0x5e, 0x4e, 0x01
.byte 0x83, 0x97, 0x53, 0xf0, 0x72, 0x0a, 0x5e, 0x4e
.byte 0x08, 0x00, 0x5b, 0x72, 0x88, 0xab, 0x4c, 0x01
.byte 0x50, 0xe7, 0xf6, 0x5a, 0x72, 0x88, 0xab, 0x4c
.byte 0x08, 0x00, 0x2c, 0x05, 0x6a, 0xfd, 0x4a, 0x01
.byte 0x15, 0xa8, 0xf5, 0x2b, 0x05, 0x6a, 0xfd, 0x4a
.byte 0x08, 0x00, 0x2e, 0x3b, 0x9e, 0x53, 0x49, 0x01
.byte 0xa3, 0x6e, 0x06, 0x2d, 0x3b, 0x9e, 0x53, 0x49
.byte 0x08, 0x00, 0xe2, 0x7a, 0x14, 0xae, 0x47, 0x01
.byte 0x15, 0xae, 0x47, 0xe1, 0x7a, 0x14, 0xae, 0x47
.byte 0x08, 0x00, 0x5d, 0x7f, 0xbc, 0x0c, 0x46, 0x01
.byte 0xc1, 0xa1, 0xf9, 0x5c, 0x7f, 0xbc, 0x0c, 0x46
.byte 0x08, 0x00, 0x2e, 0x56, 0x86, 0x6f, 0x44, 0x01
.byte 0xe5, 0xae, 0x9f, 0x2d, 0x56, 0x86, 0x6f, 0x44
.byte 0x08, 0x00, 0x52, 0x5d, 0x62, 0xd6, 0x42, 0x01
.byte 0xfa, 0x6e, 0xf8, 0x51, 0x5d, 0x62, 0xd6, 0x42
.byte 0x08, 0x00, 0x42, 0x41, 0x41, 0x41, 0x41, 0x01
.byte 0x42, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41
.byte 0x08, 0x00, 0x02, 0xfb, 0x13, 0xb0, 0x3f, 0x01
.byte 0x14, 0xb0, 0x3f, 0x01, 0xfb, 0x13, 0xb0, 0x3f
.byte 0x08, 0x00, 0x4b, 0xce, 0xcb, 0x22, 0x3e, 0x01
.byte 0xc5, 0x27, 0x90, 0x4a, 0xce, 0xcb, 0x22, 0x3e
.byte 0x08, 0x00, 0xbb, 0x47, 0x5a, 0x99, 0x3c, 0x01
.byte 0x41, 0x74, 0xbe, 0xba, 0x47, 0x5a, 0x99, 0x3c
.byte 0x08, 0x00, 0x14, 0x3b, 0xb1, 0x13, 0x3b, 0x01
.byte 0x14, 0x3b, 0xb1, 0x13, 0x3b, 0xb1, 0x13, 0x3b
.byte 0x08, 0x00, 0x88, 0xc1, 0xc2, 0x91, 0x39, 0x01
.byte 0x72, 0x33, 0xf6, 0x87, 0xc1, 0xc2, 0x91, 0x39
.byte 0x08, 0x00, 0x14, 0x38, 0x81, 0x13, 0x38, 0x01
.byte 0x14, 0x38, 0x81, 0x13, 0x38, 0x81, 0x13, 0x38
.byte 0x08, 0x00, 0xe1, 0x3d, 0xdf, 0x98, 0x36, 0x01
.byte 0x54, 0x79, 0x74, 0xe0, 0x3d, 0xdf, 0x98, 0x36
.byte 0x08, 0x00, 0xb8, 0xb2, 0xcf, 0x21, 0x35, 0x01
.byte 0x53, 0x13, 0x8c, 0xb7, 0xb2, 0xcf, 0x21, 0x35
.byte 0x08, 0x00, 0x7c, 0xb5, 0x45, 0xae, 0x33, 0x01
.byte 0x0d, 0x1e, 0xcb, 0x7b, 0xb5, 0x45, 0xae, 0x33
.byte 0x08, 0x00, 0xb2, 0xa2, 0x34, 0x3e, 0x32, 0x01
.byte 0x6f, 0xf6, 0x0b, 0xb1, 0xa2, 0x34, 0x3e, 0x32
.byte 0x08, 0x00, 0x0e, 0x13, 0x90, 0xd1, 0x30, 0x01
.byte 0x31, 0x01, 0x19, 0x0d, 0x13, 0x90, 0xd1, 0x30
.byte 0x08, 0x00, 0x13, 0xda, 0x4b, 0x68, 0x2f, 0x01
.byte 0xbe, 0x84, 0xf6, 0x12, 0xda, 0x4b, 0x68, 0x2f
.byte 0x08, 0x00, 0xb9, 0x04, 0x5c, 0x02, 0x2e, 0x01
.byte 0x13, 0x70, 0x09, 0xb8, 0x04, 0x5c, 0x02, 0x2e
.byte 0x08, 0x00, 0x13, 0xd8, 0xb4, 0x9f, 0x2c, 0x01
.byte 0x4e, 0xfb, 0xc9, 0x12, 0xd8, 0xb4, 0x9f, 0x2c
.byte 0x08, 0x00, 0x13, 0xd0, 0x4a, 0x40, 0x2b, 0x01
.byte 0xae, 0x04, 0xb4, 0x12, 0xd0, 0x4a, 0x40, 0x2b
.byte 0x08, 0x00, 0x42, 0x9e, 0x12, 0xe4, 0x29, 0x01
.byte 0x13, 0xe4, 0x29, 0x41, 0x9e, 0x12, 0xe4, 0x29
.byte 0x08, 0x00, 0x8c, 0x28, 0x01, 0x8b, 0x28, 0x01
.byte 0x8c, 0x28, 0x01, 0x8b, 0x28, 0x01, 0x8b, 0x28
.byte 0x08, 0x00, 0x13, 0x88, 0x0b, 0x35, 0x27, 0x01
.byte 0xb9, 0x50, 0x73, 0x12, 0x88, 0x0b, 0x35, 0x27
.byte 0x08, 0x00, 0x0a, 0x08, 0x27, 0xe2, 0x25, 0x01
.byte 0x39, 0x11, 0x2f, 0x09, 0x08, 0x27, 0xe2, 0x25
.byte 0x08, 0x00, 0x93, 0x24, 0x49, 0x92, 0x24, 0x01
.byte 0x93, 0x24, 0x49, 0x92, 0x24, 0x49, 0x92, 0x24
.byte 0x08, 0x00, 0xac, 0x89, 0x67, 0x45, 0x23, 0x01
.byte 0x13, 0xf0, 0xcd, 0xab, 0x89, 0x67, 0x45, 0x23
.byte 0x08, 0x00, 0x20, 0x12, 0x78, 0xfb, 0x21, 0x01
.byte 0x22, 0x81, 0xb7, 0x1f, 0x12, 0x78, 0xfb, 0x21
.byte 0x08, 0x00, 0x7d, 0xc6, 0x70, 0xb4, 0x20, 0x01
.byte 0x76, 0x88, 0x0d, 0x7c, 0xc6, 0x70, 0xb4, 0x20
.byte 0x08, 0x00, 0x12, 0xdc, 0x47, 0x70, 0x1f, 0x01
.byte 0x7e, 0x04, 0xf7, 0x11, 0xdc, 0x47, 0x70, 0x1f
.byte 0x08, 0x00, 0xfc, 0xb3, 0xf3, 0x2e, 0x1e, 0x01
.byte 0x32, 0x44, 0x87, 0xfb, 0xb3, 0xf3, 0x2e, 0x1e
.byte 0x08, 0x00, 0x29, 0xda, 0x6a, 0xf0, 0x1c, 0x01
.byte 0x07, 0xcf, 0x11, 0x28, 0xda, 0x6a, 0xf0, 0x1c
.byte 0x08, 0x00, 0x6f, 0x04, 0xa4, 0xb4, 0x1b, 0x01
.byte 0x12, 0x90, 0xd2, 0x6e, 0x04, 0xa4, 0xb4, 0x1b
.byte 0x08, 0x00, 0xa8, 0x11, 0x96, 0x7b, 0x1a, 0x01
.byte 0x1b, 0x61, 0xb9, 0xa7, 0x11, 0x96, 0x7b, 0x1a
.byte 0x08, 0x00, 0xcb, 0x08, 0x38, 0x45, 0x19, 0x01
.byte 0x47, 0xc0, 0x29, 0xca, 0x08, 0x38, 0x45, 0x19
.byte 0x08, 0x00, 0x12, 0x18, 0x81, 0x11, 0x18, 0x01
.byte 0x12, 0x18, 0x81, 0x11, 0x18, 0x81, 0x11, 0x18
.byte 0x08, 0x00, 0x28, 0x94, 0x68, 0xe0, 0x16, 0x01
.byte 0xb5, 0x8e, 0x37, 0x27, 0x94, 0x68, 0xe0, 0x16
.byte 0x08, 0x00, 0x53, 0xf7, 0xe5, 0xb1, 0x15, 0x01
.byte 0x46, 0xd0, 0x70, 0x52, 0xf7, 0xe5, 0xb1, 0x15
.byte 0x08, 0x00, 0xad, 0xe0, 0xf0, 0x85, 0x14, 0x01
.byte 0x8d, 0xb6, 0xd3, 0xac, 0xe0, 0xf0, 0x85, 0x14
.byte 0x08, 0x00, 0x5d, 0x13, 0x81, 0x5c, 0x13, 0x01
.byte 0x5d, 0x13, 0x81, 0x5c, 0x13, 0x81, 0x5c, 0x13
.byte 0x08, 0x00, 0xd4, 0x75, 0x8e, 0x35, 0x12, 0x01
.byte 0xa1, 0x36, 0x03, 0xd3, 0x75, 0x8e, 0x35, 0x12
.byte 0x08, 0x00, 0x12, 0x11, 0x11, 0x11, 0x11, 0x01
.byte 0x12, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
.byte 0x08, 0x00, 0xf0, 0x0f, 0x01, 0xef, 0x0f, 0x01
.byte 0xf0, 0x0f, 0x01, 0xef, 0x0f, 0x01, 0xef, 0x0f
.byte 0x08, 0x00, 0x6a, 0xbe, 0x56, 0xcf, 0x0e, 0x01
.byte 0xe3, 0xfd, 0xc8, 0x69, 0xbe, 0x56, 0xcf, 0x0e
.byte 0x08, 0x00, 0xf5, 0x88, 0x0a, 0xb2, 0x0d, 0x01
.byte 0x8d, 0x59, 0x69, 0xf4, 0x88, 0x0a, 0xb2, 0x0d
.byte 0x08, 0x00, 0xce, 0xfb, 0x14, 0x97, 0x0c, 0x01
.byte 0x11, 0xac, 0xa3, 0xcd, 0xfb, 0x14, 0x97, 0x0c
.byte 0x08, 0x00, 0x5a, 0xc2, 0x6e, 0x7e, 0x0b, 0x01
.byte 0x36, 0x79, 0xdc, 0x59, 0xc2, 0x6e, 0x7e, 0x0b
.byte 0x08, 0x00, 0x82, 0xa6, 0x10, 0x68, 0x0a, 0x01
.byte 0x11, 0x68, 0x0a, 0x81, 0xa6, 0x10, 0x68, 0x0a
.byte 0x08, 0x00, 0x11, 0x90, 0xf3, 0x53, 0x09, 0x01
.byte 0x3a, 0x3f, 0x95, 0x10, 0x90, 0xf3, 0x53, 0x09
.byte 0x08, 0x00, 0x22, 0x84, 0x10, 0x42, 0x08, 0x01
.byte 0x11, 0x42, 0x08, 0x21, 0x84, 0x10, 0x42, 0x08
.byte 0x08, 0x00, 0x80, 0xa4, 0x60, 0x32, 0x07, 0x01
.byte 0xd0, 0x66, 0x7c, 0x7f, 0xa4, 0x60, 0x32, 0x07
.byte 0x08, 0x00, 0x1b, 0x2f, 0xdd, 0x24, 0x06, 0x01
.byte 0x77, 0xbe, 0x9f, 0x1a, 0x2f, 0xdd, 0x24, 0x06
.byte 0x08, 0x00, 0x74, 0x7d, 0x7f, 0x19, 0x05, 0x01
.byte 0x47, 0x41, 0x40, 0x73, 0x7d, 0x7f, 0x19, 0x05
.byte 0x08, 0x00, 0x11, 0x04, 0x41, 0x10, 0x04, 0x01
.byte 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04
.byte 0x08, 0x00, 0xf6, 0x51, 0x1b, 0x09, 0x03, 0x01
.byte 0xef, 0xa4, 0xe1, 0xf5, 0x51, 0x1b, 0x09, 0x03
.byte 0x08, 0x00, 0x21, 0x10, 0x08, 0x04, 0x02, 0x01
.byte 0x03, 0x81, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02
.byte 0x08, 0x00, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01
.byte 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01
.byte 0xc8, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x09, 0xfe, 0x00, 0x01, 0xff, 0x00, 0xff, 0x00
.byte 0x02, 0xfe, 0x01, 0xfe, 0x01, 0xfe, 0x01, 0xfe
.byte 0x09, 0xfc, 0xe1, 0x0f, 0xf8, 0x03, 0xfe, 0x00
.byte 0xfd, 0x01, 0x7f, 0xc0, 0x1f, 0xf0, 0x07, 0xfc
.byte 0x09, 0xfa, 0x10, 0x50, 0xe5, 0x08, 0xfd, 0x00
.byte 0xab, 0x1c, 0xa1, 0x1f, 0xa0, 0xca, 0x11, 0xfa
.byte 0x49, 0xf8, 0x10, 0xfc, 0xc0, 0x0f, 0xfc, 0x00
.byte 0x20, 0xf8, 0x81, 0x1f, 0xf8, 0x81, 0x1f, 0xf8
.byte 0x49, 0xf6, 0x07, 0x65, 0x85, 0x18, 0xfb, 0x00
.byte 0x4c, 0x57, 0xbb, 0x0d, 0xca, 0x0a, 0x31, 0xf6
.byte 0x89, 0xf4, 0x53, 0xf2, 0x2c, 0x23, 0xfa, 0x00
.byte 0x80, 0x15, 0x27, 0xa4, 0xe4, 0x59, 0x46, 0xf4
.byte 0x89, 0xf2, 0x19, 0x21, 0xb2, 0x2f, 0xf9, 0x00
.byte 0xcb, 0x50, 0xab, 0x30, 0x42, 0x64, 0x5f, 0xf2
.byte 0xc9, 0xf0, 0xe1, 0x83, 0x0f, 0x3e, 0xf8, 0x00
.byte 0x20, 0x7c, 0xf0, 0xc1, 0x07, 0x1f, 0x7c, 0xf0
.byte 0x09, 0xef, 0x2d, 0xc2, 0x3f, 0x4e, 0xf7, 0x00
.byte 0xea, 0x1e, 0xe0, 0x58, 0x84, 0x7f, 0x9c, 0xee
.byte 0x09, 0xed, 0x10, 0x98, 0x3d, 0x60, 0xf6, 0x00
.byte 0xb4, 0x07, 0xcc, 0x1e, 0x30, 0x7b, 0xc0, 0xec
.byte 0x49, 0xeb, 0xd1, 0xd5, 0x03, 0x74, 0xf5, 0x00
.byte 0x81, 0xae, 0x1e, 0xa0, 0xab, 0x07, 0xe8, 0xea
.byte 0x89, 0xe9, 0x86, 0x5f, 0x8d, 0x89, 0xf4, 0x00
.byte 0xa1, 0x72, 0x76, 0x0b, 0xbf, 0x1a, 0x13, 0xe9
.byte 0xc9, 0xe7, 0xbb, 0x2c, 0xd5, 0xa0, 0xf3, 0x00
.byte 0x6d, 0x46, 0x0e, 0x75, 0x59, 0xaa, 0x41, 0xe7
.byte 0x49, 0xe6, 0x10, 0x48, 0xd6, 0xb9, 0xf2, 0x00
.byte 0xca, 0x3a, 0x57, 0x1e, 0x90, 0xac, 0x73, 0xe5
.byte 0x89, 0xe4, 0xe1, 0xce, 0x8b, 0xd4, 0xf1, 0x00
.byte 0xf5, 0x33, 0xa7, 0xc1, 0x9d, 0x17, 0xa9, 0xe3
.byte 0xc9, 0xe2, 0xf1, 0xf0, 0xf0, 0xf0, 0xf0, 0x00
.byte 0xe2, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1, 0xe1
.byte 0x09, 0xe1, 0x10, 0xf0, 0x00, 0x0f, 0xf0, 0x00
.byte 0x1f, 0xe0, 0x01, 0x1e, 0xe0, 0x01, 0x1e, 0xe0
.byte 0x89, 0xdf, 0xc5, 0x1f, 0xb7, 0x2e, 0xef, 0x00
.byte 0x71, 0xa4, 0x68, 0x88, 0x3f, 0x6e, 0x5d, 0xde
.byte 0xc9, 0xdd, 0x01, 0xe5, 0x0e, 0x50, 0xee, 0x00
.byte 0x1e, 0xa0, 0xdc, 0x01, 0xca, 0x1d, 0xa0, 0xdc
.byte 0x49, 0xdc, 0xcd, 0xb5, 0x03, 0x73, 0xed, 0x00
.byte 0x61, 0xae, 0x1d, 0x98, 0x6b, 0x07, 0xe6, 0xda
.byte 0xc9, 0xda, 0xf4, 0x18, 0x91, 0x97, 0xec, 0x00
.byte 0x44, 0x9b, 0xf8, 0xe7, 0x31, 0x22, 0x2f, 0xd9
.byte 0x09, 0xd9, 0xc2, 0xa5, 0xb2, 0xbd, 0xeb, 0x00
.byte 0x18, 0x39, 0xc3, 0x82, 0x4b, 0x65, 0x7b, 0xd7
.byte 0x89, 0xd7, 0xac, 0x03, 0x64, 0xe5, 0xea, 0x00
.byte 0x1e, 0x20, 0x2b, 0x57, 0x07, 0xc8, 0xca, 0xd5
.byte 0x09, 0xd6, 0x0f, 0xea, 0xa0, 0x0e, 0xea, 0x00
.byte 0x1e, 0xd4, 0x41, 0x1d, 0xd4, 0x41, 0x1d, 0xd4
.byte 0x89, 0xd4, 0xe3, 0x1f, 0x65, 0x39, 0xe9, 0x00
.byte 0xb9, 0xa6, 0xb1, 0xc5, 0x3f, 0xca, 0x72, 0xd2
.byte 0x09, 0xd3, 0x77, 0x7b, 0xac, 0x65, 0xe8, 0x00
.byte 0x2e, 0x43, 0x07, 0xec, 0xf6, 0x58, 0xcb, 0xd0
.byte 0x89, 0xd1, 0x26, 0xe2, 0x72, 0x93, 0xe7, 0x00
.byte 0xb3, 0x61, 0xfc, 0x4b, 0xc4, 0xe5, 0x26, 0xcf
.byte 0x09, 0xd0, 0x1d, 0x48, 0xb4, 0xc2, 0xe6, 0x00
.byte 0x13, 0xad, 0xb0, 0x39, 0x90, 0x68, 0x85, 0xcd
.byte 0x89, 0xce, 0x0f, 0xb0, 0x6c, 0xf3, 0xe5, 0x00
.byte 0x97, 0x6d, 0xbe, 0x1c, 0x60, 0xd9, 0xe6, 0xcb
.byte 0x09, 0xcd, 0xf8, 0x2a, 0x98, 0x25, 0xe5, 0x00
.byte 0x1d, 0x10, 0x19, 0xee, 0x55, 0x30, 0x4b, 0xca
.byte 0xc9, 0xcb, 0xdd, 0xd7, 0x32, 0x59, 0xe4, 0x00
.byte 0x1d, 0x20, 0xa4, 0xb8, 0xaf, 0x65, 0xb2, 0xc8
.byte 0x49, 0xca, 0x8f, 0xe3, 0x38, 0x8e, 0xe3, 0x00
.byte 0x1d, 0xc7, 0x71, 0x1c, 0xc7, 0x71, 0x1c, 0xc7
.byte 0xc9, 0xc8, 0x6b, 0x88, 0xa6, 0xc4, 0xe2, 0x00
.byte 0x20, 0x5c, 0x98, 0xd4, 0x10, 0x4d, 0x89, 0xc5
.byte 0x89, 0xc7, 0x20, 0x0e, 0x78, 0xfc, 0xe1, 0x00
.byte 0xc4, 0x01, 0x8f, 0x3f, 0x1c, 0xf0, 0xf8, 0xc3
.byte 0x09, 0xc6, 0x76, 0xc9, 0xa9, 0x35, 0xe1, 0x00
.byte 0x6c, 0xc2, 0x01, 0xea, 0x92, 0x53, 0x6b, 0xc2
.byte 0xc9, 0xc4, 0x0f, 0x1c, 0x38, 0x70, 0xe0, 0x00
.byte 0x04, 0x07, 0x0e, 0x1c, 0x38, 0x70, 0xe0, 0xc0
.byte 0x89, 0xc3, 0x35, 0x74, 0x1f, 0xac, 0xdf, 0x00
.byte 0xbf, 0xae, 0xd8, 0x68, 0xe8, 0x3e, 0x58, 0xbf
.byte 0x09, 0xc2, 0xa1, 0x4c, 0x5c, 0xe9, 0xde, 0x00
.byte 0xaf, 0x74, 0x6f, 0x40, 0x99, 0xb8, 0xd2, 0xbd
.byte 0xc9, 0xc0, 0x42, 0x2c, 0xeb, 0x27, 0xde, 0x00
.byte 0xa3, 0xb3, 0xe7, 0x83, 0x58, 0xd6, 0x4f, 0xbc
.byte 0x89, 0xbf, 0x0e, 0xa6, 0xc8, 0x67, 0xdd, 0x00
.byte 0x15, 0xf9, 0xac, 0x1b, 0x4c, 0x91, 0xcf, 0xba
.byte 0x49, 0xbe, 0xc8, 0x58, 0xf1, 0xa8, 0xdc, 0x00
.byte 0x71, 0x35, 0xf2, 0x8f, 0xb1, 0xe2, 0x51, 0xb9
.byte 0x09, 0xbd, 0xd2, 0xee, 0x61, 0xeb, 0xdb, 0x00
.byte 0xb0, 0xb2, 0x38, 0xa3, 0xdd, 0xc3, 0xd6, 0xb7
.byte 0xc9, 0xbb, 0xf8, 0x1d, 0x17, 0x2f, 0xdb, 0x00
.byte 0x32, 0x52, 0xe0, 0xee, 0x3b, 0x2e, 0x5e, 0xb6
.byte 0x89, 0xba, 0x41, 0xa7, 0x0d, 0x74, 0xda, 0x00
.byte 0x1c, 0xe8, 0xb4, 0x81, 0x4e, 0x1b, 0xe8, 0xb4
.byte 0x49, 0xb9, 0xc1, 0x56, 0x42, 0xba, 0xd9, 0x00
.byte 0x22, 0xdd, 0x6c, 0x80, 0xad, 0x84, 0x74, 0xb3
.byte 0x09, 0xb8, 0x65, 0x03, 0xb2, 0x01, 0xd9, 0x00
.byte 0x1c, 0x90, 0x0d, 0xc8, 0x06, 0x64, 0x03, 0xb2
.byte 0xc9, 0xb6, 0xca, 0x8e, 0x59, 0x4a, 0xd8, 0x00
.byte 0x86, 0x3e, 0x2a, 0x92, 0x1d, 0xb3, 0x94, 0xb0
.byte 0x89, 0xb5, 0x0e, 0xe5, 0x35, 0x94, 0xd7, 0x00
.byte 0xbd, 0x86, 0xf2, 0x1a, 0xca, 0x6b, 0x28, 0xaf
.byte 0x49, 0xb4, 0xa5, 0xfc, 0x43, 0xdf, 0xd6, 0x00
.byte 0x1b, 0xe0, 0x05, 0x49, 0xf9, 0x87, 0xbe, 0xad
.byte 0x49, 0xb3, 0x2c, 0xd6, 0x80, 0x2b, 0xd6, 0x00
.byte 0x58, 0xac, 0x01, 0x57, 0xac, 0x01, 0x57, 0xac
.byte 0x09, 0xb2, 0x40, 0x7c, 0xe9, 0x78, 0xd5, 0x00
.byte 0xa2, 0xca, 0xbf, 0x7e, 0xf8, 0xd2, 0xf1, 0xaa
.byte 0xc9, 0xb0, 0x54, 0x03, 0x7b, 0xc7, 0xd4, 0x00
.byte 0x1b, 0xd8, 0x3b, 0xa6, 0x06, 0xf6, 0x8e, 0xa9
.byte 0xc9, 0xaf, 0x88, 0x89, 0x32, 0x17, 0xd4, 0x00
.byte 0x5c, 0x8a, 0x15, 0x0e, 0x13, 0x65, 0x2e, 0xa8
.byte 0x89, 0xae, 0x81, 0x36, 0x0d, 0x68, 0xd3, 0x00
.byte 0x1b, 0xd0, 0xa6, 0x01, 0x6d, 0x1a, 0xd0, 0xa6
.byte 0x89, 0xad, 0x45, 0x3b, 0x08, 0xba, 0xd2, 0x00
.byte 0x57, 0xa1, 0xa4, 0x88, 0x76, 0x10, 0x74, 0xa5
.byte 0x49, 0xac, 0x0e, 0xd2, 0x20, 0x0d, 0xd2, 0x00
.byte 0x1b, 0xa4, 0x41, 0x1a, 0xa4, 0x41, 0x1a, 0xa4
.byte 0x49, 0xab, 0x29, 0x3e, 0x54, 0x61, 0xd1, 0x00
.byte 0xe9, 0x04, 0xca, 0x51, 0x7c, 0xa8, 0xc2, 0xa2
.byte 0x49, 0xaa, 0xd3, 0xcb, 0x9f, 0xb6, 0xd0, 0x00
.byte 0x17, 0x1a, 0xb0, 0xa4, 0x97, 0x3f, 0x6d, 0xa1
.byte 0x09, 0xa9, 0x0e, 0xd0, 0x00, 0x0d, 0xd0, 0x00
.byte 0x1b, 0xa0, 0x01, 0x1a, 0xa0, 0x01, 0x1a, 0xa0
.byte 0x09, 0xa8, 0x82, 0xa8, 0x74, 0x64, 0xcf, 0x00
.byte 0xd3, 0x91, 0x3d, 0x03, 0x51, 0xe9, 0xc8, 0x9e
.byte 0x09, 0xa7, 0x5c, 0xbb, 0xf8, 0xbc, 0xce, 0x00
.byte 0x96, 0xd3, 0x82, 0xb6, 0x76, 0xf1, 0x79, 0x9d
.byte 0x09, 0xa6, 0x26, 0x77, 0x8a, 0x16, 0xce, 0x00
.byte 0xc3, 0x19, 0x10, 0x4a, 0xee, 0x14, 0x2d, 0x9c
.byte 0xc9, 0xa4, 0xa9, 0x52, 0x27, 0x71, 0xcd, 0x00
.byte 0x84, 0xa4, 0x0d, 0x51, 0xa5, 0x4e, 0xe2, 0x9a
.byte 0xc9, 0xa3, 0xcd, 0xcc, 0xcc, 0xcc, 0xcc, 0x00
.byte 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99
.byte 0xc9, 0xa2, 0x77, 0x6c, 0x78, 0x29, 0xcc, 0x00
.byte 0x3e, 0xf3, 0x0f, 0xec, 0xd8, 0xf0, 0x52, 0x98
.byte 0xc9, 0xa1, 0x66, 0xc0, 0x27, 0x87, 0xcb, 0x00
.byte 0xc1, 0x27, 0x87, 0xcb, 0x80, 0x4f, 0x0e, 0x97
.byte 0xc9, 0xa0, 0x1c, 0x5f, 0xd8, 0xe5, 0xca, 0x00
.byte 0x2b, 0xd9, 0x7a, 0x37, 0xbe, 0xb0, 0xcb, 0x95
.byte 0xc9, 0x9f, 0xb8, 0xe6, 0x87, 0x45, 0xca, 0x00
.byte 0x53, 0x06, 0x9e, 0x6e, 0xcd, 0x0f, 0x8b, 0x94
.byte 0xc9, 0x9e, 0xda, 0xfc, 0x33, 0xa6, 0xc9, 0x00
.byte 0x1a, 0x60, 0xce, 0xb2, 0xf9, 0x67, 0x4c, 0x93
.byte 0xc9, 0x9d, 0x88, 0x4e, 0xda, 0x07, 0xc9, 0x00
.byte 0x5a, 0x8d, 0x22, 0x0e, 0x9d, 0xb4, 0x0f, 0x92
.byte 0x09, 0x9d, 0x0d, 0x90, 0x78, 0x6a, 0xc8, 0x00
.byte 0x13, 0x4f, 0x0d, 0x19, 0x20, 0xf1, 0xd4, 0x90
.byte 0x09, 0x9c, 0xe1, 0x7c, 0x0c, 0xce, 0xc7, 0x00
.byte 0x19, 0x9c, 0x8f, 0xc1, 0xf9, 0x18, 0x9c, 0x8f
.byte 0x09, 0x9b, 0x8a, 0xd7, 0x93, 0x32, 0xc7, 0x00
.byte 0x71, 0xf0, 0x73, 0x13, 0xaf, 0x27, 0x65, 0x8e
.byte 0x09, 0x9a, 0x81, 0x69, 0x0c, 0x98, 0xc6, 0x00
.byte 0x19, 0x30, 0x8d, 0x01, 0xd3, 0x18, 0x30, 0x8d
.byte 0x49, 0x99, 0x18, 0x03, 0x74, 0xfe, 0xc5, 0x00
.byte 0x19, 0xa0, 0xf3, 0x2f, 0x06, 0xe8, 0xfc, 0x8b
.byte 0x49, 0x98, 0x60, 0x7b, 0xc8, 0x65, 0xc5, 0x00
.byte 0x38, 0x9a, 0x3a, 0xbf, 0xf6, 0x90, 0xcb, 0x8a
.byte 0x49, 0x97, 0x0d, 0xb0, 0x07, 0xce, 0xc4, 0x00
.byte 0xf7, 0xc0, 0x99, 0x18, 0x60, 0x0f, 0x9c, 0x89
.byte 0x89, 0x96, 0x5e, 0x85, 0x2f, 0x37, 0xc4, 0x00
.byte 0x4c, 0x99, 0x04, 0xbb, 0x0a, 0x5f, 0x6e, 0x88
.byte 0x89, 0x95, 0x05, 0xe6, 0x3d, 0xa1, 0xc3, 0x00
.byte 0xe7, 0x8e, 0x2b, 0x09, 0xcc, 0x7b, 0x42, 0x87
.byte 0x89, 0x94, 0x0d, 0xc3, 0x30, 0x0c, 0xc3, 0x00
.byte 0x19, 0x86, 0x61, 0x18, 0x86, 0x61, 0x18, 0x86
.byte 0xc9, 0x93, 0xc1, 0x13, 0x06, 0x78, 0xc2, 0x00
.byte 0x04, 0x3c, 0x61, 0x80, 0x27, 0x0c, 0xf0, 0x84
.byte 0xc9, 0x92, 0x96, 0xd5, 0xbb, 0xe4, 0xc1, 0x00
.byte 0x8f, 0xd2, 0xed, 0x2b, 0xab, 0x77, 0xc9, 0x83
.byte 0x09, 0x92, 0x16, 0x0c, 0x50, 0x52, 0xc1, 0x00
.byte 0x83, 0x01, 0x4a, 0x2a, 0x18, 0xa0, 0xa4, 0x82
.byte 0x49, 0x91, 0xc1, 0xc0, 0xc0, 0xc0, 0xc0, 0x00
.byte 0x82, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81
.byte 0x49, 0x90, 0x01, 0x03, 0x0c, 0x30, 0xc0, 0x00
.byte 0x19, 0x60, 0x80, 0x01, 0x06, 0x18, 0x60, 0x80
.byte 0x89, 0x8f, 0x0c, 0xe8, 0x2f, 0xa0, 0xbf, 0x00
.byte 0xfe, 0x05, 0xf4, 0x17, 0xd0, 0x5f, 0x40, 0x7f
.byte 0x89, 0x8e, 0xd3, 0x8a, 0x2a, 0x11, 0xbf, 0x00
.byte 0xba, 0xd1, 0xf1, 0xa4, 0x15, 0x55, 0x22, 0x7e
.byte 0xc9, 0x8d, 0xe9, 0x0b, 0xfa, 0x82, 0xbe, 0x00
.byte 0x7e, 0x41, 0x5f, 0xd0, 0x17, 0xf4, 0x05, 0x7d
.byte 0x09, 0x8d, 0x71, 0x91, 0x9c, 0xf5, 0xbd, 0x00
.byte 0xb4, 0xbe, 0x17, 0xe0, 0x22, 0x39, 0xeb, 0x7b
.byte 0x49, 0x8c, 0x08, 0x47, 0x10, 0x69, 0xbd, 0x00
.byte 0x46, 0x35, 0xcc, 0x0e, 0x8e, 0x20, 0xd2, 0x7a
.byte 0x49, 0x8b, 0xb2, 0x5d, 0x53, 0xdd, 0xbc, 0x00
.byte 0xf7, 0xb6, 0x98, 0x63, 0xbb, 0xa6, 0xba, 0x79
.byte 0x89, 0x8a, 0xc6, 0x0b, 0x64, 0x52, 0xbc, 0x00
.byte 0x79, 0x81, 0x4c, 0x8a, 0x17, 0xc8, 0xa4, 0x78
.byte 0xc9, 0x89, 0xd7, 0x8c, 0x40, 0xc8, 0xbb, 0x00
.byte 0x42, 0xd3, 0x60, 0xac, 0x19, 0x81, 0x90, 0x77
.byte 0x09, 0x89, 0xa6, 0x21, 0xe7, 0x3e, 0xbb, 0x00
.byte 0x18, 0x10, 0x9b, 0x4a, 0x43, 0xce, 0x7d, 0x76
.byte 0x49, 0x88, 0x0c, 0x10, 0x56, 0xb6, 0xba, 0x00
.byte 0xc3, 0xca, 0x56, 0x17, 0x20, 0xac, 0x6c, 0x75
.byte 0x89, 0x87, 0xe9, 0xa2, 0x8b, 0x2e, 0xba, 0x00
.byte 0x18, 0x5d, 0x74, 0xd1, 0x45, 0x17, 0x5d, 0x74
.byte 0xc9, 0x86, 0x10, 0x2a, 0x86, 0xa7, 0xb9, 0x00
.byte 0x10, 0xcb, 0xe8, 0x1f, 0x54, 0x0c, 0x4f, 0x73
.byte 0x09, 0x86, 0x37, 0xfa, 0x43, 0x21, 0xb9, 0x00
.byte 0x5d, 0xc0, 0xeb, 0x6d, 0xf4, 0x87, 0x42, 0x72
.byte 0x49, 0x85, 0xe4, 0x6c, 0xc3, 0x9b, 0xb8, 0x00
.byte 0x75, 0x8a, 0xc0, 0xc7, 0xd9, 0x86, 0x37, 0x71
.byte 0x89, 0x84, 0x5d, 0xe0, 0x02, 0x17, 0xb8, 0x00
.byte 0xe1, 0x02, 0x17, 0xb8, 0xc0, 0x05, 0x2e, 0x70
.byte 0xc9, 0x83, 0x94, 0xb7, 0x00, 0x93, 0xb7, 0x00
.byte 0x27, 0x6f, 0x01, 0x26, 0x6f, 0x01, 0x26, 0x6f
.byte 0x09, 0x83, 0x1a, 0x5a, 0xbb, 0x0f, 0xb7, 0x00
.byte 0xb2, 0x6c, 0x7c, 0x33, 0xb4, 0x76, 0x1f, 0x6e
.byte 0x49, 0x82, 0x0f, 0x34, 0x31, 0x8d, 0xb6, 0x00
.byte 0xb1, 0x0f, 0x86, 0x1c, 0x68, 0x62, 0x1a, 0x6d
.byte 0x89, 0x81, 0x0c, 0xb6, 0x60, 0x0b, 0xb6, 0x00
.byte 0x17, 0x6c, 0xc1, 0x16, 0x6c, 0xc1, 0x16, 0x6c
.byte 0xc9, 0x80, 0x19, 0x55, 0x48, 0x8a, 0xb5, 0x00
.byte 0xc8, 0xcf, 0xa3, 0x31, 0xaa, 0x90, 0x14, 0x6b
.byte 0x09, 0x80, 0x9c, 0x8a, 0xe6, 0x09, 0xb5, 0x00
.byte 0x3f, 0x04, 0x29, 0x37, 0x15, 0xcd, 0x13, 0x6a
.byte 0x49, 0x7f, 0x47, 0xd4, 0x39, 0x8a, 0xb4, 0x00
.byte 0x2e, 0xfd, 0x0b, 0x8d, 0xa8, 0x73, 0x14, 0x69
.byte 0x89, 0x7e, 0x0c, 0xb4, 0x40, 0x0b, 0xb4, 0x00
.byte 0x17, 0x68, 0x81, 0x16, 0x68, 0x81, 0x16, 0x68
.byte 0x09, 0x7e, 0x0c, 0xb0, 0xf9, 0x8c, 0xb3, 0x00
.byte 0x37, 0x9f, 0x71, 0x16, 0x60, 0xf3, 0x19, 0x67
.byte 0x49, 0x7d, 0x8a, 0x52, 0x63, 0x0f, 0xb3, 0x00
.byte 0x17, 0x90, 0x2f, 0x12, 0xa5, 0xc6, 0x1e, 0x66
.byte 0x89, 0x7c, 0xdb, 0x29, 0x7c, 0x92, 0xb2, 0x00
.byte 0x9f, 0x33, 0xaa, 0xb4, 0x53, 0xf8, 0x24, 0x65
.byte 0x09, 0x7c, 0x5a, 0xc8, 0x42, 0x16, 0xb2, 0x00
.byte 0xc9, 0x42, 0x16, 0xb2, 0x90, 0x85, 0x2c, 0x64
.byte 0x49, 0x7b, 0x57, 0xc4, 0xb5, 0x9a, 0xb1, 0x00
.byte 0x17, 0xe0, 0x0d, 0xac, 0x88, 0x6b, 0x35, 0x63
.byte 0x89, 0x7a, 0x0c, 0xb8, 0xd3, 0x1f, 0xb1, 0x00
.byte 0x78, 0xfa, 0x23, 0x16, 0x70, 0xa7, 0x3f, 0x62
.byte 0x09, 0x7a, 0x8e, 0x41, 0x9b, 0xa5, 0xb0, 0x00
.byte 0xa7, 0x3a, 0xe9, 0x1a, 0x83, 0x36, 0x4b, 0x61
.byte 0x49, 0x79, 0xc1, 0x02, 0x0b, 0x2c, 0xb0, 0x00
.byte 0x17, 0x58, 0x60, 0x81, 0x05, 0x16, 0x58, 0x60
.byte 0x89, 0x78, 0x4a, 0xa1, 0x21, 0xb3, 0xaf, 0x00
.byte 0x1d, 0xbe, 0xdf, 0x92, 0x42, 0x43, 0x66, 0x5f
.byte 0x09, 0x78, 0x81, 0xc6, 0xdd, 0x3a, 0xaf, 0x00
.byte 0xbc, 0x75, 0x5e, 0x01, 0x8d, 0xbb, 0x75, 0x5e
.byte 0x49, 0x77, 0x68, 0x1f, 0x3e, 0xc3, 0xae, 0x00
.byte 0x4a, 0x53, 0x2a, 0xce, 0x3e, 0x7c, 0x86, 0x5d
.byte 0xc9, 0x76, 0x99, 0x5c, 0x41, 0x4c, 0xae, 0x00
.byte 0x63, 0x72, 0x05, 0x31, 0xb9, 0x82, 0x98, 0x5c
.byte 0x09, 0x76, 0x40, 0x32, 0xe6, 0xd5, 0xad, 0x00
.byte 0x0d, 0x15, 0xa9, 0x7f, 0x64, 0xcc, 0xab, 0x5b
.byte 0x89, 0x75, 0x0b, 0x58, 0x2b, 0x60, 0xad, 0x00
.byte 0x6c, 0x05, 0xac, 0x15, 0xb0, 0x56, 0xc0, 0x5a
.byte 0xc9, 0x74, 0x1f, 0x89, 0x0f, 0xeb, 0xac, 0x00
.byte 0x77, 0xa3, 0xca, 0x3c, 0x12, 0x1f, 0xd6, 0x59
.byte 0x49, 0x74, 0x0b, 0x84, 0x91, 0x76, 0xac, 0x00
.byte 0x31, 0xd2, 0x8e, 0x15, 0x08, 0x23, 0xed, 0x58
.byte 0x89, 0x73, 0xc1, 0x0a, 0xb0, 0x02, 0xac, 0x00
.byte 0x59, 0x01, 0x56, 0x80, 0x15, 0x60, 0x05, 0x58
.byte 0x09, 0x73, 0x84, 0xe2, 0x69, 0x8f, 0xab, 0x00
.byte 0x23, 0x9a, 0xb3, 0x06, 0xc5, 0xd3, 0x1e, 0x57
.byte 0x49, 0x72, 0xe3, 0xd3, 0xbd, 0x1c, 0xab, 0x00
.byte 0xc0, 0x1e, 0x2e, 0xc5, 0xa7, 0x7b, 0x39, 0x56
.byte 0xc9, 0x71, 0xab, 0xaa, 0xaa, 0xaa, 0xaa, 0x00
.byte 0x56, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55
.byte 0x49, 0x71, 0xdd, 0x35, 0x2f, 0x39, 0xaa, 0x00
.byte 0x16, 0xe0, 0x2f, 0xb8, 0x6b, 0x5e, 0x72, 0x54
.byte 0x89, 0x70, 0xa1, 0x47, 0x4a, 0xc8, 0xa9, 0x00
.byte 0x70, 0xac, 0xfe, 0x40, 0x8f, 0x94, 0x90, 0x53
.byte 0x09, 0x70, 0x41, 0xb5, 0xfa, 0x57, 0xa9, 0x00
.byte 0xfe, 0xab, 0x54, 0x80, 0x6a, 0xf5, 0xaf, 0x52
.byte 0x89, 0x6f, 0x18, 0x57, 0x3f, 0xe8, 0xa8, 0x00
.byte 0xd1, 0x51, 0x81, 0x2f, 0xae, 0x7e, 0xd0, 0x51
.byte 0xc9, 0x6e, 0x8f, 0x08, 0x17, 0x79, 0xa8, 0x00
.byte 0xdf, 0x56, 0x4c, 0x1c, 0x11, 0x2e, 0xf2, 0x50
.byte 0x49, 0x6e, 0x0b, 0xa8, 0x80, 0x0a, 0xa8, 0x00
.byte 0x16, 0x50, 0x01, 0x15, 0x50, 0x01, 0x15, 0x50
.byte 0xc9, 0x6d, 0xeb, 0x16, 0x7b, 0x9c, 0xa7, 0x00
.byte 0x45, 0xa8, 0xc9, 0xd4, 0x2d, 0xf6, 0x38, 0x4f
.byte 0x49, 0x6d, 0x79, 0x39, 0x05, 0x2f, 0xa7, 0x00
.byte 0x83, 0x97, 0x53, 0xf0, 0x72, 0x0a, 0x5e, 0x4e
.byte 0xc9, 0x6c, 0xe2, 0xf6, 0x1d, 0xc2, 0xa6, 0x00
.byte 0x00, 0xb9, 0xc4, 0xc2, 0xed, 0x3b, 0x84, 0x4d
.byte 0x09, 0x6c, 0x2e, 0x39, 0xc4, 0x55, 0xa6, 0x00
.byte 0x50, 0xe7, 0xf6, 0x5a, 0x72, 0x88, 0xab, 0x4c
.byte 0x89, 0x6b, 0x35, 0xed, 0xf6, 0xe9, 0xa5, 0x00
.byte 0x43, 0x0e, 0xfe, 0x68, 0xda, 0xed, 0xd3, 0x4b
.byte 0x09, 0x6b, 0x96, 0x02, 0xb5, 0x7e, 0xa5, 0x00
.byte 0x15, 0xa8, 0xf5, 0x2b, 0x05, 0x6a, 0xfd, 0x4a
.byte 0x89, 0x6a, 0xb1, 0x6b, 0xfd, 0x13, 0xa5, 0x00
.byte 0x80, 0xa2, 0x14, 0x60, 0xd7, 0xfa, 0x27, 0x4a
.byte 0x09, 0x6a, 0x97, 0x1d, 0xcf, 0xa9, 0xa4, 0x00
.byte 0xa3, 0x6e, 0x06, 0x2d, 0x3b, 0x9e, 0x53, 0x49
.byte 0x89, 0x69, 0x0b, 0x10, 0x29, 0x40, 0xa4, 0x00
.byte 0x23, 0x05, 0x88, 0x14, 0x20, 0x52, 0x80, 0x48
.byte 0xc9, 0x68, 0x71, 0x3d, 0x0a, 0xd7, 0xa3, 0x00
.byte 0x15, 0xae, 0x47, 0xe1, 0x7a, 0x14, 0xae, 0x47
.byte 0x49, 0x68, 0xcc, 0xa2, 0x71, 0x6e, 0xa3, 0x00
.byte 0x51, 0x62, 0x06, 0x96, 0x45, 0xe3, 0xdc, 0x46
.byte 0xc9, 0x67, 0xaf, 0x3f, 0x5e, 0x06, 0xa3, 0x00
.byte 0xc1, 0xa1, 0xf9, 0x5c, 0x7f, 0xbc, 0x0c, 0x46
.byte 0x49, 0x67, 0x3c, 0x16, 0xcf, 0x9e, 0xa2, 0x00
.byte 0x15, 0xa0, 0x6c, 0x77, 0x2c, 0x9e, 0x3d, 0x45
.byte 0xc9, 0x66, 0x17, 0x2b, 0xc3, 0x37, 0xa2, 0x00
.byte 0xe5, 0xae, 0x9f, 0x2d, 0x56, 0x86, 0x6f, 0x44
.byte 0x49, 0x66, 0x60, 0x85, 0x39, 0xd1, 0xa1, 0x00
.byte 0xdc, 0xd1, 0xe4, 0xbe, 0x0a, 0x73, 0xa2, 0x43
.byte 0xc9, 0x65, 0xa9, 0x2e, 0x31, 0x6b, 0xa1, 0x00
.byte 0xfa, 0x6e, 0xf8, 0x51, 0x5d, 0x62, 0xd6, 0x42
.byte 0x49, 0x65, 0xf3, 0x32, 0xa9, 0x05, 0xa1, 0x00
.byte 0x3e, 0x12, 0x95, 0xe5, 0x65, 0x52, 0x0b, 0x42
.byte 0xc9, 0x64, 0xa1, 0xa0, 0xa0, 0xa0, 0xa0, 0x00
.byte 0x42, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41
.byte 0x49, 0x64, 0x74, 0x88, 0x16, 0x3c, 0xa0, 0x00
.byte 0x65, 0x60, 0x56, 0xe6, 0x10, 0x2d, 0x78, 0x40
.byte 0xc9, 0x63, 0x81, 0xfd, 0x09, 0xd8, 0x9f, 0x00
.byte 0x14, 0xb0, 0x3f, 0x01, 0xfb, 0x13, 0xb0, 0x3f
.byte 0x49, 0x63, 0x2e, 0x15, 0x7a, 0x74, 0x9f, 0x00
.byte 0xa1, 0x6d, 0xf0, 0x5a, 0x2a, 0xf4, 0xe8, 0x3e
.byte 0xc9, 0x62, 0x26, 0xe7, 0x65, 0x11, 0x9f, 0x00
.byte 0xc5, 0x27, 0x90, 0x4a, 0xce, 0xcb, 0x22, 0x3e
.byte 0x49, 0x62, 0x54, 0x8d, 0xcc, 0xae, 0x9e, 0x00
.byte 0xbe, 0x5b, 0x5c, 0xa7, 0x1a, 0x99, 0x5d, 0x3d
.byte 0x09, 0x62, 0xde, 0x23, 0xad, 0x4c, 0x9e, 0x00
.byte 0x41, 0x74, 0xbe, 0xba, 0x47, 0x5a, 0x99, 0x3c
.byte 0x89, 0x61, 0x1a, 0xc9, 0x06, 0xeb, 0x9d, 0x00
.byte 0x2d, 0x48, 0x95, 0x32, 0x92, 0x0d, 0xd6, 0x3b
.byte 0x09, 0x61, 0x8a, 0x9d, 0xd8, 0x89, 0x9d, 0x00
.byte 0x14, 0x3b, 0xb1, 0x13, 0x3b, 0xb1, 0x13, 0x3b
.byte 0x89, 0x60, 0xd7, 0xc3, 0x21, 0x29, 0x9d, 0x00
.byte 0x10, 0x26, 0x82, 0xac, 0x87, 0x43, 0x52, 0x3a
.byte 0x09, 0x60, 0xc4, 0x60, 0xe1, 0xc8, 0x9c, 0x00
.byte 0x72, 0x33, 0xf6, 0x87, 0xc1, 0xc2, 0x91, 0x39
.byte 0x89, 0x5f, 0x31, 0x9b, 0x16, 0x69, 0x9c, 0x00
.byte 0xf4, 0xdb, 0x88, 0x60, 0x36, 0x2d, 0xd2, 0x38
.byte 0x09, 0x5f, 0x0a, 0x9c, 0xc0, 0x09, 0x9c, 0x00
.byte 0x14, 0x38, 0x81, 0x13, 0x38, 0x81, 0x13, 0x38
.byte 0xc9, 0x5e, 0x4b, 0x8e, 0xde, 0xaa, 0x9b, 0x00
.byte 0x20, 0xdc, 0x5e, 0x94, 0x1c, 0xbd, 0x55, 0x37
.byte 0x49, 0x5e, 0xf1, 0x9e, 0x6f, 0x4c, 0x9b, 0x00
.byte 0x54, 0x79, 0x74, 0xe0, 0x3d, 0xdf, 0x98, 0x36
.byte 0xc9, 0x5d, 0xfa, 0xfc, 0x72, 0xee, 0x9a, 0x00
.byte 0x1f, 0x82, 0xaf, 0xf2, 0xf9, 0xe5, 0xdc, 0x35
.byte 0x49, 0x5d, 0x5c, 0xd9, 0xe7, 0x90, 0x9a, 0x00
.byte 0x53, 0x13, 0x8c, 0xb7, 0xb2, 0xcf, 0x21, 0x35
.byte 0x09, 0x5d, 0x01, 0x67, 0xcd, 0x33, 0x9a, 0x00
.byte 0x9b, 0x67, 0x34, 0x01, 0xce, 0x9a, 0x67, 0x34
.byte 0x89, 0x5c, 0xbe, 0xda, 0x22, 0xd7, 0x99, 0x00
.byte 0x0d, 0x1e, 0xcb, 0x7b, 0xb5, 0x45, 0xae, 0x33
.byte 0x09, 0x5c, 0x51, 0x6b, 0xe7, 0x7a, 0x99, 0x00
.byte 0x14, 0xa0, 0xdf, 0xa1, 0xd6, 0xce, 0xf5, 0x32
.byte 0x89, 0x5b, 0x59, 0x51, 0x1a, 0x1f, 0x99, 0x00
.byte 0x6f, 0xf6, 0x0b, 0xb1, 0xa2, 0x34, 0x3e, 0x32
.byte 0x49, 0x5b, 0x50, 0xc7, 0xba, 0xc3, 0x98, 0x00
.byte 0x14, 0x60, 0xbb, 0x9e, 0x8e, 0x75, 0x87, 0x31
.byte 0xc9, 0x5a, 0x87, 0x09, 0xc8, 0x68, 0x98, 0x00
.byte 0x31, 0x01, 0x19, 0x0d, 0x13, 0x90, 0xd1, 0x30
.byte 0x49, 0x5a, 0x21, 0x56, 0x41, 0x0e, 0x98, 0x00
.byte 0x91, 0x03, 0x26, 0x40, 0xac, 0x82, 0x1c, 0x30
.byte 0x09, 0x5a, 0x0a, 0xed, 0x25, 0xb4, 0x97, 0x00
.byte 0xbe, 0x84, 0xf6, 0x12, 0xda, 0x4b, 0x68, 0x2f
.byte 0x89, 0x59, 0xf7, 0x0f, 0x75, 0x5a, 0x97, 0x00
.byte 0x5f, 0xb1, 0x14, 0xed, 0x1f, 0xea, 0xb4, 0x2e
.byte 0x09, 0x59, 0x5d, 0x02, 0x2e, 0x01, 0x97, 0x00
.byte 0x13, 0x70, 0x09, 0xb8, 0x04, 0x5c, 0x02, 0x2e
.byte 0xc9, 0x58, 0x6b, 0x09, 0x50, 0xa8, 0x96, 0x00
.byte 0x2e, 0x01, 0x0a, 0xd5, 0x12, 0xa0, 0x50, 0x2d
.byte 0x49, 0x58, 0x0a, 0x6c, 0xda, 0x4f, 0x96, 0x00
.byte 0x4e, 0xfb, 0xc9, 0x12, 0xd8, 0xb4, 0x9f, 0x2c
.byte 0xc9, 0x57, 0xd2, 0x72, 0xcc, 0xf7, 0x95, 0x00
.byte 0xd2, 0x0f, 0x71, 0xa3, 0xe5, 0x98, 0xef, 0x2b
.byte 0x89, 0x57, 0x0a, 0x68, 0x25, 0xa0, 0x95, 0x00
.byte 0xae, 0x04, 0xb4, 0x12, 0xd0, 0x4a, 0x40, 0x2b
.byte 0x09, 0x57, 0x9f, 0x97, 0xe4, 0x48, 0x95, 0x00
.byte 0xfa, 0x53, 0x10, 0x3c, 0x2f, 0xc9, 0x91, 0x2a
.byte 0xc9, 0x56, 0x21, 0x4f, 0x09, 0xf2, 0x94, 0x00
.byte 0x13, 0xe4, 0x29, 0x41, 0x9e, 0x12, 0xe4, 0x29
.byte 0x49, 0x56, 0xc1, 0xdd, 0x92, 0x9b, 0x94, 0x00
.byte 0xca, 0x4d, 0x4a, 0x80, 0xbb, 0x25, 0x37, 0x29
.byte 0x09, 0x56, 0x46, 0x94, 0x80, 0x45, 0x94, 0x00
.byte 0x8c, 0x28, 0x01, 0x8b, 0x28, 0x01, 0x8b, 0x28
.byte 0x89, 0x55, 0x0f, 0xc5, 0xd1, 0xef, 0x93, 0x00
.byte 0xf9, 0xd6, 0xe4, 0x1c, 0x8a, 0xa3, 0xdf, 0x27
.byte 0x09, 0x55, 0x0a, 0xc4, 0x85, 0x9a, 0x93, 0x00
.byte 0xb9, 0x50, 0x73, 0x12, 0x88, 0x0b, 0x35, 0x27
.byte 0xc9, 0x54, 0xb1, 0xe6, 0x9b, 0x45, 0x93, 0x00
.byte 0xb4, 0x68, 0x12, 0x60, 0xcd, 0x37, 0x8b, 0x26
.byte 0x49, 0x54, 0x05, 0x84, 0x13, 0xf1, 0x92, 0x00
.byte 0x39, 0x11, 0x2f, 0x09, 0x08, 0x27, 0xe2, 0x25
.byte 0x09, 0x54, 0x8c, 0xf4, 0xeb, 0x9c, 0x92, 0x00
.byte 0xcb, 0x21, 0x7b, 0x17, 0xe9, 0xd7, 0x39, 0x25
.byte 0x89, 0x53, 0x4a, 0x92, 0x24, 0x49, 0x92, 0x00
.byte 0x93, 0x24, 0x49, 0x92, 0x24, 0x49, 0x92, 0x24
.byte 0x49, 0x53, 0xbc, 0xb8, 0xbc, 0xf5, 0x91, 0x00
.byte 0x9a, 0xb3, 0x05, 0x76, 0x71, 0x79, 0xeb, 0x23
.byte 0xc9, 0x52, 0xd6, 0xc4, 0xb3, 0xa2, 0x91, 0x00
.byte 0x13, 0xf0, 0xcd, 0xab, 0x89, 0x67, 0x45, 0x23
.byte 0x89, 0x52, 0x01, 0x15, 0x09, 0x50, 0x91, 0x00
.byte 0x13, 0xa0, 0x22, 0x01, 0x2a, 0x12, 0xa0, 0x22
.byte 0x09, 0x52, 0x10, 0x09, 0xbc, 0xfd, 0x90, 0x00
.byte 0x22, 0x81, 0xb7, 0x1f, 0x12, 0x78, 0xfb, 0x21
.byte 0xc9, 0x51, 0x43, 0x02, 0xcc, 0xab, 0x90, 0x00
.byte 0x13, 0x60, 0x5e, 0x85, 0x04, 0x98, 0x57, 0x21
.byte 0x89, 0x51, 0x3f, 0x63, 0x38, 0x5a, 0x90, 0x00
.byte 0x76, 0x88, 0x0d, 0x7c, 0xc6, 0x70, 0xb4, 0x20
.byte 0x09, 0x51, 0x0a, 0x90, 0x00, 0x09, 0x90, 0x00
.byte 0x13, 0x20, 0x01, 0x12, 0x20, 0x01, 0x12, 0x20
.byte 0xc9, 0x50, 0x09, 0xee, 0x23, 0xb8, 0x8f, 0x00
.byte 0x7e, 0x04, 0xf7, 0x11, 0xdc, 0x47, 0x70, 0x1f
.byte 0x49, 0x50, 0xfe, 0xe3, 0xa1, 0x67, 0x8f, 0x00
.byte 0xf1, 0xc2, 0x84, 0xfb, 0xc7, 0x43, 0xcf, 0x1e
.byte 0x09, 0x50, 0xfe, 0xd9, 0x79, 0x17, 0x8f, 0x00
.byte 0x32, 0x44, 0x87, 0xfb, 0xb3, 0xf3, 0x2e, 0x1e
.byte 0xc9, 0x4f, 0x73, 0x39, 0xab, 0xc7, 0x8e, 0x00
.byte 0x3b, 0xc8, 0xab, 0xe4, 0x72, 0x56, 0x8f, 0x1d
.byte 0x49, 0x4f, 0x15, 0x6d, 0x35, 0x78, 0x8e, 0x00
.byte 0x07, 0xcf, 0x11, 0x28, 0xda, 0x6a, 0xf0, 0x1c
.byte 0x09, 0x4f, 0xe8, 0xe0, 0x17, 0x29, 0x8e, 0x00
.byte 0x9b, 0x8d, 0x05, 0xce, 0xc1, 0x2f, 0x52, 0x1c
.byte 0x89, 0x4e, 0x38, 0x02, 0x52, 0xda, 0x8d, 0x00
.byte 0x12, 0x90, 0xd2, 0x6e, 0x04, 0xa4, 0xb4, 0x1b
.byte 0x49, 0x4e, 0x96, 0x3f, 0xe3, 0x8b, 0x8d, 0x00
.byte 0x21, 0x2b, 0xae, 0x2b, 0x7f, 0xc6, 0x17, 0x1b
.byte 0x09, 0x4e, 0xd4, 0x08, 0xcb, 0x3d, 0x8d, 0x00
.byte 0x1b, 0x61, 0xb9, 0xa7, 0x11, 0x96, 0x7b, 0x1a
.byte 0x89, 0x4d, 0x01, 0xcf, 0x08, 0xf0, 0x8c, 0x00
.byte 0x12, 0xe0, 0x19, 0x01, 0x9e, 0x11, 0xe0, 0x19
.byte 0x49, 0x4d, 0x66, 0x04, 0x9c, 0xa2, 0x8c, 0x00
.byte 0x47, 0xc0, 0x29, 0xca, 0x08, 0x38, 0x45, 0x19
.byte 0x09, 0x4d, 0x82, 0x1c, 0x84, 0x55, 0x8c, 0x00
.byte 0x95, 0xab, 0xbd, 0x02, 0x39, 0x08, 0xab, 0x18
.byte 0x89, 0x4c, 0x09, 0x8c, 0xc0, 0x08, 0x8c, 0x00
.byte 0x12, 0x18, 0x81, 0x11, 0x18, 0x81, 0x11, 0x18
.byte 0x49, 0x4c, 0xdf, 0xc8, 0x50, 0xbc, 0x8b, 0x00
.byte 0x81, 0x41, 0x68, 0xbd, 0x91, 0xa1, 0x78, 0x17
.byte 0x09, 0x4c, 0x14, 0x4a, 0x34, 0x70, 0x8b, 0x00
.byte 0xb5, 0x8e, 0x37, 0x27, 0x94, 0x68, 0xe0, 0x16
.byte 0xc9, 0x4b, 0xe2, 0x87, 0x6a, 0x24, 0x8b, 0x00
.byte 0x65, 0x11, 0x20, 0xc3, 0x0f, 0xd5, 0x48, 0x16
.byte 0x49, 0x4b, 0xaa, 0xfb, 0xf2, 0xd8, 0x8a, 0x00
.byte 0x46, 0xd0, 0x70, 0x52, 0xf7, 0xe5, 0xb1, 0x15
.byte 0x09, 0x4b, 0xef, 0x1f, 0xcd, 0x8d, 0x8a, 0x00
.byte 0xb9, 0x8c, 0x5c, 0xdd, 0x3f, 0x9a, 0x1b, 0x15
.byte 0xc9, 0x4a, 0x57, 0x70, 0xf8, 0x42, 0x8a, 0x00
.byte 0x8d, 0xb6, 0xd3, 0xac, 0xe0, 0xf0, 0x85, 0x14
.byte 0x49, 0x4a, 0xa3, 0x69, 0x74, 0xf8, 0x89, 0x00
.byte 0xc1, 0x41, 0x72, 0x44, 0xd3, 0xe8, 0xf0, 0x13
.byte 0x09, 0x4a, 0xaf, 0x89, 0x40, 0xae, 0x89, 0x00
.byte 0x5d, 0x13, 0x81, 0x5c, 0x13, 0x81, 0x5c, 0x13
.byte 0xc9, 0x49, 0x6f, 0x4f, 0x5c, 0x64, 0x89, 0x00
.byte 0xd8, 0xbb, 0x0a, 0xdc, 0x9e, 0xb8, 0xc8, 0x12
.byte 0x89, 0x49, 0xea, 0x3a, 0xc7, 0x1a, 0x89, 0x00
.byte 0xa1, 0x36, 0x03, 0xd3, 0x75, 0x8e, 0x35, 0x12
.byte 0x09, 0x49, 0x3b, 0xcd, 0x80, 0xd1, 0x88, 0x00
.byte 0xaf, 0x67, 0x82, 0x74, 0x9a, 0x01, 0xa3, 0x11
.byte 0xc9, 0x48, 0x89, 0x88, 0x88, 0x88, 0x88, 0x00
.byte 0x12, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
.byte 0x89, 0x48, 0x09, 0xf0, 0xdd, 0x3f, 0x88, 0x00
.byte 0xbf, 0xfb, 0x07, 0x11, 0xe0, 0xbb, 0x7f, 0x10
.byte 0x49, 0x48, 0xf8, 0x87, 0x80, 0xf7, 0x87, 0x00
.byte 0xf0, 0x0f, 0x01, 0xef, 0x0f, 0x01, 0xef, 0x0f
.byte 0x09, 0x48, 0x9a, 0xd5, 0x6f, 0xaf, 0x87, 0x00
.byte 0x81, 0x1a, 0x5a, 0x32, 0xab, 0xdf, 0x5e, 0x0f
.byte 0x89, 0x47, 0x35, 0x5f, 0xab, 0x67, 0x87, 0x00
.byte 0xe3, 0xfd, 0xc8, 0x69, 0xbe, 0x56, 0xcf, 0x0e
.byte 0x49, 0x47, 0x14, 0xac, 0x32, 0x20, 0x87, 0x00
.byte 0x41, 0x0e, 0x01, 0x26, 0x58, 0x65, 0x40, 0x0e
.byte 0x09, 0x47, 0x7b, 0x44, 0x05, 0xd9, 0x86, 0x00
.byte 0x8d, 0x59, 0x69, 0xf4, 0x88, 0x0a, 0xb2, 0x0d
.byte 0xc9, 0x46, 0xad, 0xb1, 0x22, 0x92, 0x86, 0x00
.byte 0x2d, 0x9d, 0xe3, 0x59, 0x63, 0x45, 0x24, 0x0d
.byte 0x89, 0x46, 0xe7, 0x7d, 0x8a, 0x4b, 0x86, 0x00
.byte 0x11, 0xac, 0xa3, 0xcd, 0xfb, 0x14, 0x97, 0x0c
.byte 0x49, 0x46, 0x5b, 0x34, 0x3c, 0x05, 0x86, 0x00
.byte 0xe7, 0x08, 0x17, 0xb4, 0x68, 0x78, 0x0a, 0x0c
.byte 0x09, 0x46, 0x2d, 0x61, 0x37, 0xbf, 0x85, 0x00
.byte 0x36, 0x79, 0xdc, 0x59, 0xc2, 0x6e, 0x7e, 0x0b
.byte 0x89, 0x45, 0x78, 0x91, 0x7b, 0x79, 0x85, 0x00
.byte 0x13, 0x57, 0xcb, 0xee, 0x22, 0xf7, 0xf2, 0x0a
.byte 0x49, 0x45, 0x41, 0x53, 0x08, 0x34, 0x85, 0x00
.byte 0x11, 0x68, 0x0a, 0x81, 0xa6, 0x10, 0x68, 0x0a
.byte 0x09, 0x45, 0x7d, 0x35, 0xdd, 0xee, 0x84, 0x00
.byte 0x0a, 0x01, 0x36, 0xf8, 0x6a, 0xba, 0xdd, 0x09
.byte 0xc9, 0x44, 0x09, 0xc8, 0xf9, 0xa9, 0x84, 0x00
.byte 0x3a, 0x3f, 0x95, 0x10, 0x90, 0xf3, 0x53, 0x09
.byte 0x89, 0x44, 0xac, 0x9b, 0x5d, 0x65, 0x84, 0x00
.byte 0x11, 0x20, 0x5e, 0x56, 0x37, 0xbb, 0xca, 0x08
.byte 0x49, 0x44, 0x11, 0x42, 0x08, 0x21, 0x84, 0x00
.byte 0x11, 0x42, 0x08, 0x21, 0x84, 0x10, 0x42, 0x08
.byte 0x09, 0x44, 0xc8, 0x4d, 0xf9, 0xdc, 0x83, 0x00
.byte 0xc2, 0x19, 0xae, 0x8e, 0x9b, 0xf2, 0xb9, 0x07
.byte 0xc9, 0x43, 0x40, 0x52, 0x30, 0x99, 0x83, 0x00
.byte 0xd0, 0x66, 0x7c, 0x7f, 0xa4, 0x60, 0x32, 0x07
.byte 0x89, 0x43, 0xc9, 0xe3, 0xac, 0x55, 0x83, 0x00
.byte 0x20, 0xb6, 0x2f, 0x91, 0xc7, 0x59, 0xab, 0x06
.byte 0x09, 0x43, 0x8e, 0x97, 0x6e, 0x12, 0x83, 0x00
.byte 0x77, 0xbe, 0x9f, 0x1a, 0x2f, 0xdd, 0x24, 0x06
.byte 0xc9, 0x42, 0x94, 0x03, 0x75, 0xcf, 0x82, 0x00
.byte 0x33, 0x66, 0x58, 0x27, 0x07, 0xea, 0x9e, 0x05
.byte 0x89, 0x42, 0xba, 0xbe, 0xbf, 0x8c, 0x82, 0x00
.byte 0x47, 0x41, 0x40, 0x73, 0x7d, 0x7f, 0x19, 0x05
.byte 0x49, 0x42, 0xb4, 0x60, 0x4e, 0x4a, 0x82, 0x00
.byte 0x8a, 0x57, 0x4c, 0x66, 0xc1, 0x9c, 0x94, 0x04
.byte 0x09, 0x42, 0x09, 0x82, 0x20, 0x08, 0x82, 0x00
.byte 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04
.byte 0xc9, 0x41, 0x13, 0xbc, 0x35, 0xc6, 0x81, 0x00
.byte 0x1d, 0xbf, 0x7f, 0x24, 0x78, 0x6b, 0x8c, 0x03
.byte 0x89, 0x41, 0xfb, 0xa8, 0x8d, 0x84, 0x81, 0x00
.byte 0xef, 0xa4, 0xe1, 0xf5, 0x51, 0x1b, 0x09, 0x03
.byte 0x49, 0x41, 0xba, 0xe3, 0x27, 0x43, 0x81, 0x00
.byte 0x5f, 0x8c, 0x9e, 0x72, 0xc7, 0x4f, 0x86, 0x02
.byte 0x09, 0x41, 0x11, 0x08, 0x04, 0x02, 0x81, 0x00
.byte 0x03, 0x81, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02
.byte 0xc9, 0x40, 0x8c, 0xb2, 0x21, 0xc1, 0x80, 0x00
.byte 0x30, 0x75, 0xa3, 0x17, 0x65, 0x43, 0x82, 0x01
.byte 0x89, 0x40, 0x81, 0x80, 0x80, 0x80, 0x80, 0x00
.byte 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01
.byte 0x49, 0x40, 0x09, 0x10, 0x20, 0x40, 0x80, 0x00
.byte 0x03, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x00
.byte 0x09, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
; A100155: Structured truncated octahedral numbers.
; 1,24,103,272,565,1016,1659,2528,3657,5080,6831,8944,11453,14392,17795,21696,26129,31128,36727,42960,49861,57464,65803,74912,84825,95576,107199,119728,133197,147640,163091,179584,197153,215832,235655,256656,278869,302328,327067,353120,380521,409304,439503,471152,504285,538936,575139,612928,652337,693400,736151,780624,826853,874872,924715,976416,1030009,1085528,1143007,1202480,1263981,1327544,1393203,1460992,1530945,1603096,1677479,1754128,1833077,1914360,1998011,2084064,2172553,2263512,2356975,2452976,2551549,2652728,2756547,2863040,2972241,3084184,3198903,3316432,3436805,3560056,3686219,3815328,3947417,4082520,4220671,4361904,4506253,4653752,4804435,4958336,5115489,5275928,5439687,5606800,5777301,5951224,6128603,6309472,6493865,6681816,6873359,7068528,7267357,7469880,7676131,7886144,8099953,8317592,8539095,8764496,8993829,9227128,9464427,9705760,9951161,10200664,10454303,10712112,10974125,11240376,11510899,11785728,12064897,12348440,12636391,12928784,13225653,13527032,13832955,14143456,14458569,14778328,15102767,15431920,15765821,16104504,16448003,16796352,17149585,17507736,17870839,18238928,18612037,18990200,19373451,19761824,20155353,20554072,20958015,21367216,21781709,22201528,22626707,23057280,23493281,23934744,24381703,24834192,25292245,25755896,26225179,26700128,27180777,27667160,28159311,28657264,29161053,29670712,30186275,30707776,31235249,31768728,32308247,32853840,33405541,33963384,34527403,35097632,35674105,36256856,36845919,37441328,38043117,38651320,39265971,39887104,40514753,41148952,41789735,42437136,43091189,43751928,44419387,45093600,45774601,46462424,47157103,47858672,48567165,49282616,50005059,50734528,51471057,52214680,52965431,53723344,54488453,55260792,56040395,56827296,57621529,58423128,59232127,60048560,60872461,61703864,62542803,63389312,64243425,65105176,65974599,66851728,67736597,68629240,69529691,70437984,71354153,72278232,73210255,74150256,75098269,76054328,77018467,77990720,78971121,79959704,80956503,81961552,82974885,83996536,85026539,86064928,87111737,88167000
mov $1,1
mov $2,$0
mul $2,2
mov $6,$0
lpb $2
add $1,1
add $1,$4
add $4,$2
sub $2,1
add $4,4
lpe
mov $3,$6
mul $3,9
add $1,$3
mov $5,$6
mul $5,$6
mov $3,$5
mul $3,3
add $1,$3
mul $5,$6
mov $3,$5
mul $3,3
add $1,$3
|
; A043565: Number of runs in base-13 representation of n.
; 1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2
dif $0,14
sub $0,1
mul $0,4
lpb $0
mov $0,45
add $1,1
lpe
add $1,1
mov $0,$1
|
; A086021: a(n) = Sum_{i=1..n} C(i+2,3)^3.
; 1,65,1065,9065,51940,227556,820260,2548260,7040385,17688385,41082041,89310585,183506960,359122960,673554960,1216893456,2126746665,3608290665,5960927665,9613191665,15167828676,23459298500,35626298500,53202298500,78227501625,113386110201,162173280465,229096696465,319918283840,441942219840,604356078656,818632682560,1099001011185,1462995355185,1932092788185,2532449974041,3295751326660,4260181598660,5471537094660,6984490886660,8864028654481,11187073085265,14044316144265,17542279976265,21805628714640,26979755064976,33233667194000,40763203194000,49794602209625,60588463209625,73444124362401,88704498032865,106761398560740,128061402208740,153112280984740,182490054446756,216846706094985,256918613542985,303535744341985,357631672109985,420254470492416,492578545455360,575917469487360,671737884463360,781674543205985,907546563166881,1051374969145865,1215401605569865,1402109502568740,1614244783912740,1854840208818276,2127240443686500,2435129164014625,2782558091014625,3173978071889625,3614272317256601,4108791913866640,4663393735562640,5284480880330640,5979045766346640,6754716025097481,7619803334963785,8583355344096785
lpb $0
mov $2,$0
cal $2,202109 ; n^3*(n+1)^3*(n+2)^3/72.
sub $0,1
add $1,$2
lpe
div $1,3
add $1,1
|
; Legacy support for old pokecrystal.
; Allows porting scripts with as few edits as possible.
; Legacy support not in this file can be found by looking for the keyword: "LEGACY"
; macros/rst.asm
callba EQUS "farcall"
callab EQUS "callfar"
; macros/scripts/audio.asm
unknownmusic0xde EQUS "sound_duty"
; macros/scripts/events.asm
checkmorn EQUS "checktime MORN"
checkday EQUS "checktime DAY"
checknite EQUS "checktime NITE"
jump EQUS "sjump"
farjump EQUS "farsjump"
priorityjump EQUS "prioritysjump"
ptcall EQUS "memcall"
ptjump EQUS "memjump"
ptpriorityjump EQUS "stopandsjump"
ptcallasm EQUS "memcallasm"
if_equal EQUS "ifequal"
if_not_equal EQUS "ifnotequal"
if_greater_than EQUS "ifgreater"
if_less_than EQUS "ifless"
end_all EQUS "endall"
checkmaptriggers EQUS "checkmapscene"
domaptrigger EQUS "setmapscene"
checktriggers EQUS "checkscene"
dotrigger EQUS "setscene"
faceperson EQUS "faceobject"
moveperson EQUS "moveobject"
writepersonxy EQUS "writeobjectxy"
spriteface EQUS "turnobject"
objectface EQUS "turnobject"
applymovement2 EQUS "applymovementlasttalked"
writebyte EQUS "setval"
addvar EQUS "addval"
copybytetovar EQUS "readmem"
copyvartobyte EQUS "writemem"
checkcode EQUS "readvar"
writevarcode EQUS "writevar"
writecode EQUS "loadvar"
MEM_BUFFER_0 EQUS "STRING_BUFFER_3"
MEM_BUFFER_1 EQUS "STRING_BUFFER_4"
MEM_BUFFER_2 EQUS "STRING_BUFFER_5"
vartomem EQUS "getnum"
mapnametotext EQUS "getcurlandmarkname"
readcoins EQUS "getcoins"
pokenamemem: MACRO
getmonname \2, \1
ENDM
itemtotext: MACRO
getitemname \2, \1
ENDM
landmarktotext: MACRO
getlandmarkname \2, \1
ENDM
trainertotext: MACRO
gettrainername \3, \1, \2
ENDM
trainerclassname: MACRO
gettrainerclassname \2, \1
ENDM
name: MACRO
getname \3, \1, \2
ENDM
stringtotext: MACRO
getstring \2, \1
ENDM
readmoney: MACRO
getmoney \2, \1
ENDM
RAM2MEM EQUS "getnum"
loadfont EQUS "opentext"
loadmenudata EQUS "loadmenu"
loadmenuheader EQUS "loadmenu"
writebackup EQUS "closewindow"
interpretmenu EQUS "_2dmenu"
interpretmenu2 EQUS "verticalmenu"
battlecheck EQUS "randomwildmon"
loadtrainerdata EQUS "loadtemptrainer"
loadpokedata EQUS "loadwildmon"
returnafterbattle EQUS "reloadmapafterbattle"
trainerstatus EQUS "trainerflagaction"
talkaftercancel EQUS "endifjustbattled"
talkaftercheck EQUS "checkjustbattled"
playrammusic EQUS "encountermusic"
reloadmapmusic EQUS "dontrestartmapmusic"
resetfuncs EQUS "endall"
storetext EQUS "battletowertext"
displaylocation EQUS "landmarktotext"
givepokeitem EQUS "givepokemail"
checkpokeitem EQUS "checkpokemail"
passtoengine EQUS "autoinput"
verbosegiveitem2 EQUS "verbosegiveitemvar"
loadbytec2cf EQUS "writeunusedbytebuffer"
; macros/scripts/maps.asm
mapconst: MACRO
map_const \1, \3, \2
ENDM
maptrigger EQUS "scene_script"
warp_def: MACRO
warp_event \2, \1, \4, \3
ENDM
xy_trigger: MACRO
coord_event \3, \2, \1, \5
ENDM
signpost: MACRO
bg_event \2, \1, \3, \4
ENDM
person_event: MACRO
; object_event \3, \2, \1, \4, \5, \6, \7, \8, \9, \10, \11, \12, \13
db \1, \2 + 4, \3 + 4, \4
dn \6, \5
db \7, \8
shift
dn \8, \9
shift
db \9
shift
dw \9
shift
dw \9
ENDM
PERSONTYPE_SCRIPT EQUS "OBJECTTYPE_SCRIPT"
PERSONTYPE_ITEMBALL EQUS "OBJECTTYPE_ITEMBALL"
PERSONTYPE_TRAINER EQUS "OBJECTTYPE_TRAINER"
; macros/scripts/movement.asm
show_person EQUS "show_object"
hide_person EQUS "hide_object"
remove_person EQUS "remove_object"
turn_head_down EQUS "turn_head DOWN"
turn_head_up EQUS "turn_head UP"
turn_head_left EQUS "turn_head LEFT"
turn_head_right EQUS "turn_head RIGHT"
turn_step_down EQUS "turn_step DOWN"
turn_step_up EQUS "turn_step UP"
turn_step_left EQUS "turn_step LEFT"
turn_step_right EQUS "turn_step RIGHT"
slow_step_down EQUS "slow_step DOWN"
slow_step_up EQUS "slow_step UP"
slow_step_left EQUS "slow_step LEFT"
slow_step_right EQUS "slow_step RIGHT"
step_down EQUS "step DOWN"
step_up EQUS "step UP"
step_left EQUS "step LEFT"
step_right EQUS "step RIGHT"
big_step_down EQUS "big_step DOWN"
big_step_up EQUS "big_step UP"
big_step_left EQUS "big_step LEFT"
big_step_right EQUS "big_step RIGHT"
slow_slide_step_down EQUS "slow_slide_step DOWN"
slow_slide_step_up EQUS "slow_slide_step UP"
slow_slide_step_left EQUS "slow_slide_step LEFT"
slow_slide_step_right EQUS "slow_slide_step RIGHT"
slide_step_down EQUS "slide_step DOWN"
slide_step_up EQUS "slide_step UP"
slide_step_left EQUS "slide_step LEFT"
slide_step_right EQUS "slide_step RIGHT"
fast_slide_step_down EQUS "fast_slide_step DOWN"
fast_slide_step_up EQUS "fast_slide_step UP"
fast_slide_step_left EQUS "fast_slide_step LEFT"
fast_slide_step_right EQUS "fast_slide_step RIGHT"
turn_away_down EQUS "turn_away DOWN"
turn_away_up EQUS "turn_away UP"
turn_away_left EQUS "turn_away LEFT"
turn_away_right EQUS "turn_away RIGHT"
turn_in_down EQUS "turn_in DOWN"
turn_in_up EQUS "turn_in UP"
turn_in_left EQUS "turn_in LEFT"
turn_in_right EQUS "turn_in RIGHT"
turn_waterfall_down EQUS "turn_waterfall DOWN"
turn_waterfall_up EQUS "turn_waterfall UP"
turn_waterfall_left EQUS "turn_waterfall LEFT"
turn_waterfall_right EQUS "turn_waterfall RIGHT"
slow_jump_step_down EQUS "slow_jump_step DOWN"
slow_jump_step_up EQUS "slow_jump_step UP"
slow_jump_step_left EQUS "slow_jump_step LEFT"
slow_jump_step_right EQUS "slow_jump_step RIGHT"
jump_step_down EQUS "jump_step DOWN"
jump_step_up EQUS "jump_step UP"
jump_step_left EQUS "jump_step LEFT"
jump_step_right EQUS "jump_step RIGHT"
fast_jump_step_down EQUS "fast_jump_step DOWN"
fast_jump_step_up EQUS "fast_jump_step UP"
fast_jump_step_left EQUS "fast_jump_step LEFT"
fast_jump_step_right EQUS "fast_jump_step RIGHT"
step_sleep_1 EQUS "step_sleep 1"
step_sleep_2 EQUS "step_sleep 2"
step_sleep_3 EQUS "step_sleep 3"
step_sleep_4 EQUS "step_sleep 4"
step_sleep_5 EQUS "step_sleep 5"
step_sleep_6 EQUS "step_sleep 6"
step_sleep_7 EQUS "step_sleep 7"
step_sleep_8 EQUS "step_sleep 8"
; macros/scripts/text.asm
text_from_ram EQUS "text_ram"
start_asm EQUS "text_asm"
deciram EQUS "text_decimal"
interpret_data EQUS "text_pause"
limited_interpret_data EQUS "text_dots"
link_wait_button EQUS "text_linkwaitbutton"
current_day EQUS "text_today"
text_jump EQUS "text_far"
; macros/scripts/battle_anims.asm
anim_enemyfeetobj EQUS "anim_battlergfx_2row"
anim_playerheadobj EQUS "anim_battlergfx_1row"
anim_clearsprites EQUS "anim_keepsprites"
|
; A090670: Odd numbers k such that 2*k-3 is a prime of the form 4*j+3.
; Submitted by Christian Krause
; 3,5,7,11,13,17,23,25,31,35,37,41,43,53,55,65,67,71,77,83,85,91,97,101,107,113,115,121,127,133,137,143,155,157,167,175,181,185,191,193,211,217,221,223,233,235,241,245,247,251,253,263,275,283,287,295,301,305,311,317,323,325,331,343,347,361,365,371,373,377,395,407,413,415,421,431,433,443,445,455,457,461,475,485,487,493,497,511,517,521,527,533,545,547,553,563,577,583,587,595
mov $2,36
mul $2,$0
mov $4,2
lpb $2
mov $3,$4
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
mov $1,$0
max $1,0
cmp $1,$0
mul $2,$1
sub $2,1
add $4,4
lpe
mov $0,$4
div $0,2
add $0,2
|
//===--- Errors.cpp - Error reporting utilities ---------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// Utilities for reporting errors to stderr, system console, and crash logs.
//
//===----------------------------------------------------------------------===//
#if defined(_WIN32)
#include <mutex>
#endif
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(_WIN32)
#include <io.h>
#endif
#include <stdarg.h>
#include "ImageInspection.h"
#include "swift/Runtime/Debug.h"
#include "swift/Runtime/Mutex.h"
#include "swift/Runtime/Portability.h"
#include "swift/Demangling/Demangle.h"
#include "llvm/ADT/StringRef.h"
#if defined(_MSC_VER)
#include <DbgHelp.h>
#else
#include <cxxabi.h>
#endif
#if __has_include(<execinfo.h>)
#include <execinfo.h>
#endif
#if SWIFT_STDLIB_HAS_ASL
#include <asl.h>
#elif defined(__ANDROID__)
#include <android/log.h>
#endif
#if defined(__ELF__)
#include <unwind.h>
#endif
#include <inttypes.h>
namespace FatalErrorFlags {
enum: uint32_t {
ReportBacktrace = 1 << 0
};
} // end namespace FatalErrorFlags
using namespace swift;
#if SWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING && SWIFT_STDLIB_HAS_DLADDR
static bool getSymbolNameAddr(llvm::StringRef libraryName,
const SymbolInfo &syminfo,
std::string &symbolName, uintptr_t &addrOut) {
// If we failed to find a symbol and thus dlinfo->dli_sname is nullptr, we
// need to use the hex address.
bool hasUnavailableAddress = syminfo.symbolName == nullptr;
if (hasUnavailableAddress) {
return false;
}
// Ok, now we know that we have some sort of "real" name. Set the outAddr.
addrOut = uintptr_t(syminfo.symbolAddress);
// First lets try to demangle using cxxabi. If this fails, we will try to
// demangle with swift. We are taking advantage of __cxa_demangle actually
// providing failure status instead of just returning the original string like
// swift demangle.
#if defined(_WIN32)
char szUndName[1024];
DWORD dwResult;
dwResult = _swift_withWin32DbgHelpLibrary([&] (bool isInitialized) -> DWORD {
if (!isInitialized) {
return 0;
}
DWORD dwFlags = UNDNAME_COMPLETE;
#if !defined(_WIN64)
dwFlags |= UNDNAME_32_BIT_DECODE;
#endif
return UnDecorateSymbolName(syminfo.symbolName.get(), szUndName,
sizeof(szUndName), dwFlags);
});
if (dwResult) {
symbolName += szUndName;
return true;
}
#else
int status;
char *demangled =
abi::__cxa_demangle(syminfo.symbolName.get(), 0, 0, &status);
if (status == 0) {
assert(demangled != nullptr &&
"If __cxa_demangle succeeds, demangled should never be nullptr");
symbolName += demangled;
free(demangled);
return true;
}
assert(demangled == nullptr &&
"If __cxa_demangle fails, demangled should be a nullptr");
#endif
// Otherwise, try to demangle with swift. If swift fails to demangle, it will
// just pass through the original output.
symbolName = demangleSymbolAsString(
syminfo.symbolName.get(), strlen(syminfo.symbolName.get()),
Demangle::DemangleOptions::SimplifiedUIDemangleOptions());
return true;
}
#endif
void swift::dumpStackTraceEntry(unsigned index, void *framePC,
bool shortOutput) {
#if SWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING && SWIFT_STDLIB_HAS_DLADDR
SymbolInfo syminfo;
// 0 is failure for lookupSymbol
if (0 == lookupSymbol(framePC, &syminfo)) {
return;
}
// If lookupSymbol succeeded then fileName is non-null. Thus, we find the
// library name here. Avoid using StringRef::rsplit because its definition
// is not provided in the header so that it requires linking with
// libSupport.a.
llvm::StringRef libraryName{syminfo.fileName};
libraryName = libraryName.substr(libraryName.rfind('/')).substr(1);
// Next we get the symbol name that we are going to use in our backtrace.
std::string symbolName;
// We initialize symbolAddr to framePC so that if we succeed in finding the
// symbol, we get the offset in the function and if we fail to find the symbol
// we just get HexAddr + 0.
uintptr_t symbolAddr = uintptr_t(framePC);
bool foundSymbol =
getSymbolNameAddr(libraryName, syminfo, symbolName, symbolAddr);
ptrdiff_t offset = 0;
if (foundSymbol) {
offset = ptrdiff_t(uintptr_t(framePC) - symbolAddr);
} else {
offset = ptrdiff_t(uintptr_t(framePC) - uintptr_t(syminfo.baseAddress));
symbolAddr = uintptr_t(framePC);
symbolName = "<unavailable>";
}
// We do not use %p here for our pointers since the format is implementation
// defined. This makes it logically impossible to check the output. Forcing
// hexadecimal solves this issue.
// If the symbol is not available, we print out <unavailable> + offset
// from the base address of where the image containing framePC is mapped.
// This gives enough info to reconstruct identical debugging target after
// this process terminates.
if (shortOutput) {
fprintf(stderr, "%s`%s + %td", libraryName.data(), symbolName.c_str(),
offset);
} else {
constexpr const char *format = "%-4u %-34s 0x%0.16" PRIxPTR " %s + %td\n";
fprintf(stderr, format, index, libraryName.data(), symbolAddr,
symbolName.c_str(), offset);
}
#else
if (shortOutput) {
fprintf(stderr, "<unavailable>");
} else {
constexpr const char *format = "%-4u 0x%0.16tx\n";
fprintf(stderr, format, index, reinterpret_cast<uintptr_t>(framePC));
}
#endif
}
#if defined(__ELF__)
struct UnwindState {
void **current;
void **end;
};
static _Unwind_Reason_Code SwiftUnwindFrame(struct _Unwind_Context *context, void *arg) {
struct UnwindState *state = static_cast<struct UnwindState *>(arg);
if (state->current == state->end) {
return _URC_END_OF_STACK;
}
uintptr_t pc;
#if defined(__arm__)
// ARM r15 is PC. UNW_REG_PC is *not* the same value, and using that will
// result in abnormal behaviour.
_Unwind_VRS_Get(context, _UVRSC_CORE, 15, _UVRSD_UINT32, &pc);
// Clear the ISA bit during the reporting.
pc &= ~(uintptr_t)0x1;
#else
pc = _Unwind_GetIP(context);
#endif
if (pc) {
*state->current++ = reinterpret_cast<void *>(pc);
}
return _URC_NO_REASON;
}
#endif
SWIFT_ALWAYS_INLINE
static bool withCurrentBacktraceImpl(std::function<void(void **, int)> call) {
#if SWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING
constexpr unsigned maxSupportedStackDepth = 128;
void *addrs[maxSupportedStackDepth];
#if defined(_WIN32)
int symbolCount = CaptureStackBackTrace(0, maxSupportedStackDepth, addrs, NULL);
#elif defined(__ELF__)
struct UnwindState state = {&addrs[0], &addrs[maxSupportedStackDepth]};
_Unwind_Backtrace(SwiftUnwindFrame, &state);
int symbolCount = state.current - addrs;
#else
int symbolCount = backtrace(addrs, maxSupportedStackDepth);
#endif
call(addrs, symbolCount);
return true;
#else
return false;
#endif
}
SWIFT_NOINLINE
bool swift::withCurrentBacktrace(std::function<void(void **, int)> call) {
return withCurrentBacktraceImpl(call);
}
SWIFT_NOINLINE
void swift::printCurrentBacktrace(unsigned framesToSkip) {
bool success = withCurrentBacktraceImpl([&](void **addrs, int symbolCount) {
for (int i = framesToSkip; i < symbolCount; ++i) {
dumpStackTraceEntry(i - framesToSkip, addrs[i]);
}
});
if (!success)
fprintf(stderr, "<backtrace unavailable>\n");
}
#ifdef SWIFT_HAVE_CRASHREPORTERCLIENT
#include <malloc/malloc.h>
// Instead of linking to CrashReporterClient.a (because it complicates the
// build system), define the only symbol from that static archive ourselves.
//
// The layout of this struct is CrashReporter ABI, so there are no ABI concerns
// here.
extern "C" {
SWIFT_LIBRARY_VISIBILITY
struct crashreporter_annotations_t gCRAnnotations
__attribute__((__section__("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION))) = {
CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0, 0};
}
#endif // SWIFT_HAVE_CRASHREPORTERCLIENT
// Report a message to any forthcoming crash log.
static void
reportOnCrash(uint32_t flags, const char *message)
{
#ifdef SWIFT_HAVE_CRASHREPORTERCLIENT
// We must use an "unsafe" mutex in this pathway since the normal "safe"
// mutex calls fatalError when an error is detected and fatalError ends up
// calling us. In other words we could get infinite recursion if the
// mutex errors.
static swift::StaticUnsafeMutex crashlogLock;
crashlogLock.lock();
char *oldMessage = (char *)CRGetCrashLogMessage();
char *newMessage;
if (oldMessage) {
swift_asprintf(&newMessage, "%s%s", oldMessage, message);
if (malloc_size(oldMessage)) free(oldMessage);
} else {
newMessage = strdup(message);
}
CRSetCrashLogMessage(newMessage);
crashlogLock.unlock();
#else
// empty
#endif // SWIFT_HAVE_CRASHREPORTERCLIENT
}
// Report a message to system console and stderr.
static void
reportNow(uint32_t flags, const char *message)
{
#if defined(_WIN32)
#define STDERR_FILENO 2
_write(STDERR_FILENO, message, strlen(message));
#else
fputs(message, stderr);
fflush(stderr);
#endif
#if SWIFT_STDLIB_HAS_ASL
asl_log(nullptr, nullptr, ASL_LEVEL_ERR, "%s", message);
#elif defined(__ANDROID__)
__android_log_print(ANDROID_LOG_FATAL, "SwiftRuntime", "%s", message);
#endif
#if SWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING
if (flags & FatalErrorFlags::ReportBacktrace) {
fputs("Current stack trace:\n", stderr);
printCurrentBacktrace();
}
#endif
}
SWIFT_NOINLINE SWIFT_RUNTIME_EXPORT void
_swift_runtime_on_report(uintptr_t flags, const char *message,
RuntimeErrorDetails *details) {
// Do nothing. This function is meant to be used by the debugger.
// The following is necessary to avoid calls from being optimized out.
asm volatile("" // Do nothing.
: // Output list, empty.
: "r" (flags), "r" (message), "r" (details) // Input list.
: // Clobber list, empty.
);
}
void swift::_swift_reportToDebugger(uintptr_t flags, const char *message,
RuntimeErrorDetails *details) {
_swift_runtime_on_report(flags, message, details);
}
bool swift::_swift_reportFatalErrorsToDebugger = true;
bool swift::_swift_shouldReportFatalErrorsToDebugger() {
return _swift_reportFatalErrorsToDebugger;
}
/// Report a fatal error to system console, stderr, and crash logs.
/// Does not crash by itself.
void swift::swift_reportError(uint32_t flags,
const char *message) {
#if defined(__APPLE__) && NDEBUG
flags &= ~FatalErrorFlags::ReportBacktrace;
#endif
reportNow(flags, message);
reportOnCrash(flags, message);
}
// Report a fatal error to system console, stderr, and crash logs, then abort.
SWIFT_NORETURN void swift::fatalErrorv(uint32_t flags, const char *format,
va_list args) {
char *log;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
swift_vasprintf(&log, format, args);
#pragma GCC diagnostic pop
swift_reportError(flags, log);
abort();
}
// Report a fatal error to system console, stderr, and crash logs, then abort.
SWIFT_NORETURN void swift::fatalError(uint32_t flags, const char *format, ...) {
va_list args;
va_start(args, format);
fatalErrorv(flags, format, args);
}
// Report a warning to system console and stderr.
void
swift::warningv(uint32_t flags, const char *format, va_list args)
{
char *log;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
swift_vasprintf(&log, format, args);
#pragma GCC diagnostic pop
reportNow(flags, log);
free(log);
}
// Report a warning to system console and stderr.
void
swift::warning(uint32_t flags, const char *format, ...)
{
va_list args;
va_start(args, format);
warningv(flags, format, args);
}
// Crash when a deleted method is called by accident.
SWIFT_RUNTIME_EXPORT SWIFT_NORETURN void swift_deletedMethodError() {
swift::fatalError(/* flags = */ 0,
"Fatal error: Call of deleted method\n");
}
// Crash due to a retain count overflow.
// FIXME: can't pass the object's address from InlineRefCounts without hacks
void swift::swift_abortRetainOverflow() {
swift::fatalError(FatalErrorFlags::ReportBacktrace,
"Fatal error: Object was retained too many times");
}
// Crash due to an unowned retain count overflow.
// FIXME: can't pass the object's address from InlineRefCounts without hacks
void swift::swift_abortUnownedRetainOverflow() {
swift::fatalError(FatalErrorFlags::ReportBacktrace,
"Fatal error: Object's unowned reference was retained too many times");
}
// Crash due to a weak retain count overflow.
// FIXME: can't pass the object's address from InlineRefCounts without hacks
void swift::swift_abortWeakRetainOverflow() {
swift::fatalError(FatalErrorFlags::ReportBacktrace,
"Fatal error: Object's weak reference was retained too many times");
}
// Crash due to retain of a dead unowned reference.
// FIXME: can't pass the object's address from InlineRefCounts without hacks
void swift::swift_abortRetainUnowned(const void *object) {
if (object) {
swift::fatalError(FatalErrorFlags::ReportBacktrace,
"Fatal error: Attempted to read an unowned reference but "
"object %p was already deallocated", object);
} else {
swift::fatalError(FatalErrorFlags::ReportBacktrace,
"Fatal error: Attempted to read an unowned reference but "
"the object was already deallocated");
}
}
/// Halt due to enabling an already enabled dynamic replacement().
void swift::swift_abortDynamicReplacementEnabling() {
swift::fatalError(FatalErrorFlags::ReportBacktrace,
"Fatal error: trying to enable a dynamic replacement "
"that is already enabled");
}
/// Halt due to disabling an already disabled dynamic replacement().
void swift::swift_abortDynamicReplacementDisabling() {
swift::fatalError(FatalErrorFlags::ReportBacktrace,
"Fatal error: trying to disable a dynamic replacement "
"that is already disabled");
}
/// Halt due to trying to use unicode data on platforms that don't have it.
void swift::swift_abortDisabledUnicodeSupport() {
swift::fatalError(FatalErrorFlags::ReportBacktrace,
"Unicode normalization data is disabled on this platform");
}
|
; A217778: Expansion of (1-x)^2*(1-3*x)/((1-3*x+x^2)*(1-5*x+5*x^2)).
; Submitted by Jon Maiga
; 1,3,10,34,117,407,1429,5055,17986,64278,230473,828391,2982825,10754459,38811802,140165322,506449789,1830590295,6618524221,23933966743,86562282258,313102489406,1132598701585,4097213146599,14822370816337,53623952036787
mov $1,1
lpb $0
sub $0,1
add $1,$3
sub $3,$4
add $3,1
sub $2,$3
add $5,1
mov $3,$5
add $4,$1
add $4,$2
mul $5,4
add $5,$2
lpe
mov $0,$5
sub $0,$3
add $0,1
|
; A220661: Irregular table, where the n-th row consists of numbers 1..n!
; 1,1,2,1,2,3,4,5,6,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67
mov $1,1
lpb $0
add $2,1
mul $1,$2
sub $0,$1
lpe
add $0,1
|
; A048584: Pisot sequence L(5,7).
; 5,7,10,15,23,36,57,91,146,235,379,612,989,1599,2586,4183,6767,10948,17713,28659,46370,75027,121395,196420,317813,514231,832042,1346271,2178311,3524580,5702889,9227467,14930354,24157819,39088171,63245988,102334157,165580143,267914298,433494439,701408735,1134903172,1836311905,2971215075,4807526978,7778742051,12586269027,20365011076,32951280101,53316291175,86267571274,139583862447,225851433719,365435296164,591286729881,956722026043,1548008755922,2504730781963,4052739537883,6557470319844,10610209857725,17167680177567,27777890035290,44945570212855,72723460248143,117669030460996,190392490709137,308061521170131,498454011879266,806515533049395,1304969544928659,2111485077978052,3416454622906709,5527939700884759,8944394323791466
mov $1,6
mov $2,4
lpb $0
sub $0,1
mov $3,$2
mov $2,$1
add $1,$3
lpe
div $1,2
add $1,2
|
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; shadowssdt asm stub for 6.0.6001-sp1-windows-vista i386
.686
.mmx
.xmm
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG __stdcall NtGdiAbortDoc( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiAbortDoc PROC STDCALL arg_01:DWORD
mov eax , 4096
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiAbortDoc ENDP
; ULONG __stdcall NtGdiAbortPath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiAbortPath PROC STDCALL arg_01:DWORD
mov eax , 4097
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiAbortPath ENDP
; ULONG __stdcall NtGdiAddFontResourceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiAddFontResourceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4098
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiAddFontResourceW ENDP
; ULONG __stdcall NtGdiAddRemoteFontToDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiAddRemoteFontToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4099
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiAddRemoteFontToDC ENDP
; ULONG __stdcall NtGdiAddFontMemResourceEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiAddFontMemResourceEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4100
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiAddFontMemResourceEx ENDP
; ULONG __stdcall NtGdiRemoveMergeFont( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiRemoveMergeFont PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4101
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiRemoveMergeFont ENDP
; ULONG __stdcall NtGdiAddRemoteMMInstanceToDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiAddRemoteMMInstanceToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4102
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiAddRemoteMMInstanceToDC ENDP
; ULONG __stdcall NtGdiAlphaBlend( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 );
_6_0_6001_sp1_windows_vista_NtGdiAlphaBlend PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD
mov eax , 4103
mov edx , 7FFE0300h
call dword ptr [edx]
ret 48
_6_0_6001_sp1_windows_vista_NtGdiAlphaBlend ENDP
; ULONG __stdcall NtGdiAngleArc( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiAngleArc PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4104
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiAngleArc ENDP
; ULONG __stdcall NtGdiAnyLinkedFonts( );
_6_0_6001_sp1_windows_vista_NtGdiAnyLinkedFonts PROC STDCALL
mov eax , 4105
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtGdiAnyLinkedFonts ENDP
; ULONG __stdcall NtGdiFontIsLinked( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiFontIsLinked PROC STDCALL arg_01:DWORD
mov eax , 4106
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiFontIsLinked ENDP
; ULONG __stdcall NtGdiArcInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_6_0_6001_sp1_windows_vista_NtGdiArcInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4107
mov edx , 7FFE0300h
call dword ptr [edx]
ret 40
_6_0_6001_sp1_windows_vista_NtGdiArcInternal ENDP
; ULONG __stdcall NtGdiBeginPath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiBeginPath PROC STDCALL arg_01:DWORD
mov eax , 4108
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiBeginPath ENDP
; ULONG __stdcall NtGdiBitBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiBitBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4109
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiBitBlt ENDP
; ULONG __stdcall NtGdiCancelDC( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiCancelDC PROC STDCALL arg_01:DWORD
mov eax , 4110
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiCancelDC ENDP
; ULONG __stdcall NtGdiCheckBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiCheckBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4111
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiCheckBitmapBits ENDP
; ULONG __stdcall NtGdiCloseFigure( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiCloseFigure PROC STDCALL arg_01:DWORD
mov eax , 4112
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiCloseFigure ENDP
; ULONG __stdcall NtGdiClearBitmapAttributes( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiClearBitmapAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4113
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiClearBitmapAttributes ENDP
; ULONG __stdcall NtGdiClearBrushAttributes( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiClearBrushAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4114
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiClearBrushAttributes ENDP
; ULONG __stdcall NtGdiColorCorrectPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiColorCorrectPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4115
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiColorCorrectPalette ENDP
; ULONG __stdcall NtGdiCombineRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiCombineRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4116
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiCombineRgn ENDP
; ULONG __stdcall NtGdiCombineTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiCombineTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4117
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiCombineTransform ENDP
; ULONG __stdcall NtGdiComputeXformCoefficients( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiComputeXformCoefficients PROC STDCALL arg_01:DWORD
mov eax , 4118
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiComputeXformCoefficients ENDP
; ULONG __stdcall NtGdiConfigureOPMProtectedOutput( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiConfigureOPMProtectedOutput PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4119
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiConfigureOPMProtectedOutput ENDP
; ULONG __stdcall NtGdiConsoleTextOut( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiConsoleTextOut PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4120
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiConsoleTextOut ENDP
; ULONG __stdcall NtGdiConvertMetafileRect( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiConvertMetafileRect PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4121
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiConvertMetafileRect ENDP
; ULONG __stdcall NtGdiCreateBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiCreateBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4122
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiCreateBitmap ENDP
; ULONG __stdcall NtGdiCreateClientObj( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiCreateClientObj PROC STDCALL arg_01:DWORD
mov eax , 4123
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiCreateClientObj ENDP
; ULONG __stdcall NtGdiCreateColorSpace( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiCreateColorSpace PROC STDCALL arg_01:DWORD
mov eax , 4124
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiCreateColorSpace ENDP
; ULONG __stdcall NtGdiCreateColorTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiCreateColorTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4125
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiCreateColorTransform ENDP
; ULONG __stdcall NtGdiCreateCompatibleBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiCreateCompatibleBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4126
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiCreateCompatibleBitmap ENDP
; ULONG __stdcall NtGdiCreateCompatibleDC( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiCreateCompatibleDC PROC STDCALL arg_01:DWORD
mov eax , 4127
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiCreateCompatibleDC ENDP
; ULONG __stdcall NtGdiCreateDIBBrush( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiCreateDIBBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4128
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiCreateDIBBrush ENDP
; ULONG __stdcall NtGdiCreateDIBitmapInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiCreateDIBitmapInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4129
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiCreateDIBitmapInternal ENDP
; ULONG __stdcall NtGdiCreateDIBSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_6_0_6001_sp1_windows_vista_NtGdiCreateDIBSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 4130
mov edx , 7FFE0300h
call dword ptr [edx]
ret 36
_6_0_6001_sp1_windows_vista_NtGdiCreateDIBSection ENDP
; ULONG __stdcall NtGdiCreateEllipticRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiCreateEllipticRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4131
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiCreateEllipticRgn ENDP
; ULONG __stdcall NtGdiCreateHalftonePalette( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiCreateHalftonePalette PROC STDCALL arg_01:DWORD
mov eax , 4132
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiCreateHalftonePalette ENDP
; ULONG __stdcall NtGdiCreateHatchBrushInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiCreateHatchBrushInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4133
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiCreateHatchBrushInternal ENDP
; ULONG __stdcall NtGdiCreateMetafileDC( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiCreateMetafileDC PROC STDCALL arg_01:DWORD
mov eax , 4134
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiCreateMetafileDC ENDP
; ULONG __stdcall NtGdiCreateOPMProtectedOutputs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiCreateOPMProtectedOutputs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4135
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiCreateOPMProtectedOutputs ENDP
; ULONG __stdcall NtGdiCreatePaletteInternal( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiCreatePaletteInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4136
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiCreatePaletteInternal ENDP
; ULONG __stdcall NtGdiCreatePatternBrushInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiCreatePatternBrushInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4137
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiCreatePatternBrushInternal ENDP
; ULONG __stdcall NtGdiCreatePen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiCreatePen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4138
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiCreatePen ENDP
; ULONG __stdcall NtGdiCreateRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiCreateRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4139
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiCreateRectRgn ENDP
; ULONG __stdcall NtGdiCreateRoundRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiCreateRoundRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4140
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiCreateRoundRectRgn ENDP
; ULONG __stdcall NtGdiCreateServerMetaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiCreateServerMetaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4141
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiCreateServerMetaFile ENDP
; ULONG __stdcall NtGdiCreateSolidBrush( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiCreateSolidBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4142
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiCreateSolidBrush ENDP
; ULONG __stdcall NtGdiD3dContextCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiD3dContextCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4143
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiD3dContextCreate ENDP
; ULONG __stdcall NtGdiD3dContextDestroy( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiD3dContextDestroy PROC STDCALL arg_01:DWORD
mov eax , 4144
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiD3dContextDestroy ENDP
; ULONG __stdcall NtGdiD3dContextDestroyAll( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiD3dContextDestroyAll PROC STDCALL arg_01:DWORD
mov eax , 4145
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiD3dContextDestroyAll ENDP
; ULONG __stdcall NtGdiD3dValidateTextureStageState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiD3dValidateTextureStageState PROC STDCALL arg_01:DWORD
mov eax , 4146
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiD3dValidateTextureStageState ENDP
; ULONG __stdcall NtGdiD3dDrawPrimitives2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiD3dDrawPrimitives2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4147
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiD3dDrawPrimitives2 ENDP
; ULONG __stdcall NtGdiDdGetDriverState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetDriverState PROC STDCALL arg_01:DWORD
mov eax , 4148
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdGetDriverState ENDP
; ULONG __stdcall NtGdiDdAddAttachedSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdAddAttachedSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4149
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdAddAttachedSurface ENDP
; ULONG __stdcall NtGdiDdAlphaBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdAlphaBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4150
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdAlphaBlt ENDP
; ULONG __stdcall NtGdiDdAttachSurface( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdAttachSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4151
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdAttachSurface ENDP
; ULONG __stdcall NtGdiDdBeginMoCompFrame( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdBeginMoCompFrame PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4152
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdBeginMoCompFrame ENDP
; ULONG __stdcall NtGdiDdBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4153
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdBlt ENDP
; ULONG __stdcall NtGdiDdCanCreateSurface( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdCanCreateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4154
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdCanCreateSurface ENDP
; ULONG __stdcall NtGdiDdCanCreateD3DBuffer( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdCanCreateD3DBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4155
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdCanCreateD3DBuffer ENDP
; ULONG __stdcall NtGdiDdColorControl( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdColorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4156
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdColorControl ENDP
; ULONG __stdcall NtGdiDdCreateDirectDrawObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdCreateDirectDrawObject PROC STDCALL arg_01:DWORD
mov eax , 4157
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdCreateDirectDrawObject ENDP
; ULONG __stdcall NtGdiDdCreateSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiDdCreateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4158
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiDdCreateSurface ENDP
; ULONG __stdcall NtGdiDdCreateD3DBuffer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiDdCreateD3DBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4159
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiDdCreateD3DBuffer ENDP
; ULONG __stdcall NtGdiDdCreateMoComp( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdCreateMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4160
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdCreateMoComp ENDP
; ULONG __stdcall NtGdiDdCreateSurfaceObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiDdCreateSurfaceObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4161
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiDdCreateSurfaceObject ENDP
; ULONG __stdcall NtGdiDdDeleteDirectDrawObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDeleteDirectDrawObject PROC STDCALL arg_01:DWORD
mov eax , 4162
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDeleteDirectDrawObject ENDP
; ULONG __stdcall NtGdiDdDeleteSurfaceObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDeleteSurfaceObject PROC STDCALL arg_01:DWORD
mov eax , 4163
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDeleteSurfaceObject ENDP
; ULONG __stdcall NtGdiDdDestroyMoComp( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdDestroyMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4164
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdDestroyMoComp ENDP
; ULONG __stdcall NtGdiDdDestroySurface( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdDestroySurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4165
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdDestroySurface ENDP
; ULONG __stdcall NtGdiDdDestroyD3DBuffer( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDestroyD3DBuffer PROC STDCALL arg_01:DWORD
mov eax , 4166
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDestroyD3DBuffer ENDP
; ULONG __stdcall NtGdiDdEndMoCompFrame( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdEndMoCompFrame PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4167
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdEndMoCompFrame ENDP
; ULONG __stdcall NtGdiDdFlip( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiDdFlip PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4168
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiDdFlip ENDP
; ULONG __stdcall NtGdiDdFlipToGDISurface( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdFlipToGDISurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4169
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdFlipToGDISurface ENDP
; ULONG __stdcall NtGdiDdGetAvailDriverMemory( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetAvailDriverMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4170
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetAvailDriverMemory ENDP
; ULONG __stdcall NtGdiDdGetBltStatus( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetBltStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4171
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetBltStatus ENDP
; ULONG __stdcall NtGdiDdGetDC( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetDC PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4172
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetDC ENDP
; ULONG __stdcall NtGdiDdGetDriverInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetDriverInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4173
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetDriverInfo ENDP
; ULONG __stdcall NtGdiDdGetDxHandle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetDxHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4174
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdGetDxHandle ENDP
; ULONG __stdcall NtGdiDdGetFlipStatus( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetFlipStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4175
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetFlipStatus ENDP
; ULONG __stdcall NtGdiDdGetInternalMoCompInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetInternalMoCompInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4176
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetInternalMoCompInfo ENDP
; ULONG __stdcall NtGdiDdGetMoCompBuffInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetMoCompBuffInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4177
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetMoCompBuffInfo ENDP
; ULONG __stdcall NtGdiDdGetMoCompGuids( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetMoCompGuids PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4178
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetMoCompGuids ENDP
; ULONG __stdcall NtGdiDdGetMoCompFormats( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetMoCompFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4179
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetMoCompFormats ENDP
; ULONG __stdcall NtGdiDdGetScanLine( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdGetScanLine PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4180
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdGetScanLine ENDP
; ULONG __stdcall NtGdiDdLock( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdLock PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4181
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdLock ENDP
; ULONG __stdcall NtGdiDdLockD3D( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdLockD3D PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4182
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdLockD3D ENDP
; ULONG __stdcall NtGdiDdQueryDirectDrawObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiDdQueryDirectDrawObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4183
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiDdQueryDirectDrawObject ENDP
; ULONG __stdcall NtGdiDdQueryMoCompStatus( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdQueryMoCompStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4184
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdQueryMoCompStatus ENDP
; ULONG __stdcall NtGdiDdReenableDirectDrawObject( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdReenableDirectDrawObject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4185
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdReenableDirectDrawObject ENDP
; ULONG __stdcall NtGdiDdReleaseDC( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdReleaseDC PROC STDCALL arg_01:DWORD
mov eax , 4186
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdReleaseDC ENDP
; ULONG __stdcall NtGdiDdRenderMoComp( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdRenderMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4187
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdRenderMoComp ENDP
; ULONG __stdcall NtGdiDdResetVisrgn( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdResetVisrgn PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4188
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdResetVisrgn ENDP
; ULONG __stdcall NtGdiDdSetColorKey( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdSetColorKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4189
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdSetColorKey ENDP
; ULONG __stdcall NtGdiDdSetExclusiveMode( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdSetExclusiveMode PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4190
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdSetExclusiveMode ENDP
; ULONG __stdcall NtGdiDdSetGammaRamp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdSetGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4191
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdSetGammaRamp ENDP
; ULONG __stdcall NtGdiDdCreateSurfaceEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdCreateSurfaceEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4192
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdCreateSurfaceEx ENDP
; ULONG __stdcall NtGdiDdSetOverlayPosition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdSetOverlayPosition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4193
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdSetOverlayPosition ENDP
; ULONG __stdcall NtGdiDdUnattachSurface( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdUnattachSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4194
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdUnattachSurface ENDP
; ULONG __stdcall NtGdiDdUnlock( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdUnlock PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4195
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdUnlock ENDP
; ULONG __stdcall NtGdiDdUnlockD3D( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdUnlockD3D PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4196
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdUnlockD3D ENDP
; ULONG __stdcall NtGdiDdUpdateOverlay( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDdUpdateOverlay PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4197
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDdUpdateOverlay ENDP
; ULONG __stdcall NtGdiDdWaitForVerticalBlank( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdWaitForVerticalBlank PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4198
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdWaitForVerticalBlank ENDP
; ULONG __stdcall NtGdiDvpCanCreateVideoPort( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpCanCreateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4199
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpCanCreateVideoPort ENDP
; ULONG __stdcall NtGdiDvpColorControl( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpColorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4200
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpColorControl ENDP
; ULONG __stdcall NtGdiDvpCreateVideoPort( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpCreateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4201
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpCreateVideoPort ENDP
; ULONG __stdcall NtGdiDvpDestroyVideoPort( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpDestroyVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4202
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpDestroyVideoPort ENDP
; ULONG __stdcall NtGdiDvpFlipVideoPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiDvpFlipVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4203
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiDvpFlipVideoPort ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortBandwidth( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortBandwidth PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4204
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortBandwidth ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortField( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortField PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4205
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortField ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortFlipStatus( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortFlipStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4206
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortFlipStatus ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortInputFormats( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortInputFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4207
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortInputFormats ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortLine( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortLine PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4208
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortLine ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortOutputFormats( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortOutputFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4209
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortOutputFormats ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortConnectInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortConnectInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4210
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoPortConnectInfo ENDP
; ULONG __stdcall NtGdiDvpGetVideoSignalStatus( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoSignalStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4211
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpGetVideoSignalStatus ENDP
; ULONG __stdcall NtGdiDvpUpdateVideoPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiDvpUpdateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4212
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiDvpUpdateVideoPort ENDP
; ULONG __stdcall NtGdiDvpWaitForVideoPortSync( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpWaitForVideoPortSync PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4213
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpWaitForVideoPortSync ENDP
; ULONG __stdcall NtGdiDvpAcquireNotification( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDvpAcquireNotification PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4214
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDvpAcquireNotification ENDP
; ULONG __stdcall NtGdiDvpReleaseNotification( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDvpReleaseNotification PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4215
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDvpReleaseNotification ENDP
; ULONG __stdcall NtGdiDxgGenericThunk( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiDxgGenericThunk PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4216
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiDxgGenericThunk ENDP
; ULONG __stdcall NtGdiDeleteClientObj( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDeleteClientObj PROC STDCALL arg_01:DWORD
mov eax , 4217
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDeleteClientObj ENDP
; ULONG __stdcall NtGdiDeleteColorSpace( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDeleteColorSpace PROC STDCALL arg_01:DWORD
mov eax , 4218
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDeleteColorSpace ENDP
; ULONG __stdcall NtGdiDeleteColorTransform( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDeleteColorTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4219
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDeleteColorTransform ENDP
; ULONG __stdcall NtGdiDeleteObjectApp( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDeleteObjectApp PROC STDCALL arg_01:DWORD
mov eax , 4220
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDeleteObjectApp ENDP
; ULONG __stdcall NtGdiDescribePixelFormat( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiDescribePixelFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4221
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiDescribePixelFormat ENDP
; ULONG __stdcall NtGdiDestroyOPMProtectedOutput( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDestroyOPMProtectedOutput PROC STDCALL arg_01:DWORD
mov eax , 4222
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDestroyOPMProtectedOutput ENDP
; ULONG __stdcall NtGdiGetPerBandInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetPerBandInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4223
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetPerBandInfo ENDP
; ULONG __stdcall NtGdiDoBanding( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiDoBanding PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4224
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiDoBanding ENDP
; ULONG __stdcall NtGdiDoPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiDoPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4225
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiDoPalette ENDP
; ULONG __stdcall NtGdiDrawEscape( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiDrawEscape PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4226
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiDrawEscape ENDP
; ULONG __stdcall NtGdiEllipse( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiEllipse PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4227
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiEllipse ENDP
; ULONG __stdcall NtGdiEnableEudc( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEnableEudc PROC STDCALL arg_01:DWORD
mov eax , 4228
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEnableEudc ENDP
; ULONG __stdcall NtGdiEndDoc( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEndDoc PROC STDCALL arg_01:DWORD
mov eax , 4229
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEndDoc ENDP
; ULONG __stdcall NtGdiEndPage( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEndPage PROC STDCALL arg_01:DWORD
mov eax , 4230
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEndPage ENDP
; ULONG __stdcall NtGdiEndPath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEndPath PROC STDCALL arg_01:DWORD
mov eax , 4231
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEndPath ENDP
; ULONG __stdcall NtGdiEnumFontChunk( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiEnumFontChunk PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4232
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiEnumFontChunk ENDP
; ULONG __stdcall NtGdiEnumFontClose( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEnumFontClose PROC STDCALL arg_01:DWORD
mov eax , 4233
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEnumFontClose ENDP
; ULONG __stdcall NtGdiEnumFontOpen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiEnumFontOpen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4234
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiEnumFontOpen ENDP
; ULONG __stdcall NtGdiEnumObjects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiEnumObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4235
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiEnumObjects ENDP
; ULONG __stdcall NtGdiEqualRgn( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiEqualRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4236
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiEqualRgn ENDP
; ULONG __stdcall NtGdiEudcLoadUnloadLink( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiEudcLoadUnloadLink PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4237
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiEudcLoadUnloadLink ENDP
; ULONG __stdcall NtGdiExcludeClipRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiExcludeClipRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4238
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiExcludeClipRect ENDP
; ULONG __stdcall NtGdiExtCreatePen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiExtCreatePen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4239
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiExtCreatePen ENDP
; ULONG __stdcall NtGdiExtCreateRegion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiExtCreateRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4240
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiExtCreateRegion ENDP
; ULONG __stdcall NtGdiExtEscape( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiExtEscape PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4241
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiExtEscape ENDP
; ULONG __stdcall NtGdiExtFloodFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiExtFloodFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4242
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiExtFloodFill ENDP
; ULONG __stdcall NtGdiExtGetObjectW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiExtGetObjectW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4243
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiExtGetObjectW ENDP
; ULONG __stdcall NtGdiExtSelectClipRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiExtSelectClipRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4244
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiExtSelectClipRgn ENDP
; ULONG __stdcall NtGdiExtTextOutW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_6_0_6001_sp1_windows_vista_NtGdiExtTextOutW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 4245
mov edx , 7FFE0300h
call dword ptr [edx]
ret 36
_6_0_6001_sp1_windows_vista_NtGdiExtTextOutW ENDP
; ULONG __stdcall NtGdiFillPath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiFillPath PROC STDCALL arg_01:DWORD
mov eax , 4246
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiFillPath ENDP
; ULONG __stdcall NtGdiFillRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiFillRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4247
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiFillRgn ENDP
; ULONG __stdcall NtGdiFlattenPath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiFlattenPath PROC STDCALL arg_01:DWORD
mov eax , 4248
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiFlattenPath ENDP
; ULONG __stdcall NtGdiFlush( );
_6_0_6001_sp1_windows_vista_NtGdiFlush PROC STDCALL
mov eax , 4249
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtGdiFlush ENDP
; ULONG __stdcall NtGdiForceUFIMapping( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiForceUFIMapping PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4250
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiForceUFIMapping ENDP
; ULONG __stdcall NtGdiFrameRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiFrameRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4251
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiFrameRgn ENDP
; ULONG __stdcall NtGdiFullscreenControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiFullscreenControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4252
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiFullscreenControl ENDP
; ULONG __stdcall NtGdiGetAndSetDCDword( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiGetAndSetDCDword PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4253
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiGetAndSetDCDword ENDP
; ULONG __stdcall NtGdiGetAppClipBox( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetAppClipBox PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4254
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetAppClipBox ENDP
; ULONG __stdcall NtGdiGetBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4255
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetBitmapBits ENDP
; ULONG __stdcall NtGdiGetBitmapDimension( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetBitmapDimension PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4256
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetBitmapDimension ENDP
; ULONG __stdcall NtGdiGetBoundsRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetBoundsRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4257
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetBoundsRect ENDP
; ULONG __stdcall NtGdiGetCertificate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiGetCertificate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4258
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiGetCertificate ENDP
; ULONG __stdcall NtGdiGetCertificateSize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetCertificateSize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4259
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetCertificateSize ENDP
; ULONG __stdcall NtGdiGetCharABCWidthsW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiGetCharABCWidthsW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4260
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiGetCharABCWidthsW ENDP
; ULONG __stdcall NtGdiGetCharacterPlacementW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiGetCharacterPlacementW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4261
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiGetCharacterPlacementW ENDP
; ULONG __stdcall NtGdiGetCharSet( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiGetCharSet PROC STDCALL arg_01:DWORD
mov eax , 4262
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiGetCharSet ENDP
; ULONG __stdcall NtGdiGetCharWidthW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiGetCharWidthW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4263
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiGetCharWidthW ENDP
; ULONG __stdcall NtGdiGetCharWidthInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetCharWidthInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4264
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetCharWidthInfo ENDP
; ULONG __stdcall NtGdiGetColorAdjustment( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetColorAdjustment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4265
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetColorAdjustment ENDP
; ULONG __stdcall NtGdiGetColorSpaceforBitmap( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiGetColorSpaceforBitmap PROC STDCALL arg_01:DWORD
mov eax , 4266
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiGetColorSpaceforBitmap ENDP
; ULONG __stdcall NtGdiGetCOPPCompatibleOPMInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetCOPPCompatibleOPMInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4267
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetCOPPCompatibleOPMInformation ENDP
; ULONG __stdcall NtGdiGetDCDword( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetDCDword PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4268
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetDCDword ENDP
; ULONG __stdcall NtGdiGetDCforBitmap( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiGetDCforBitmap PROC STDCALL arg_01:DWORD
mov eax , 4269
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiGetDCforBitmap ENDP
; ULONG __stdcall NtGdiGetDCObject( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetDCObject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4270
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetDCObject ENDP
; ULONG __stdcall NtGdiGetDCPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetDCPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4271
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetDCPoint ENDP
; ULONG __stdcall NtGdiGetDeviceCaps( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetDeviceCaps PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4272
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetDeviceCaps ENDP
; ULONG __stdcall NtGdiGetDeviceGammaRamp( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetDeviceGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4273
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetDeviceGammaRamp ENDP
; ULONG __stdcall NtGdiGetDeviceCapsAll( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetDeviceCapsAll PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4274
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetDeviceCapsAll ENDP
; ULONG __stdcall NtGdiGetDIBitsInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_6_0_6001_sp1_windows_vista_NtGdiGetDIBitsInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 4275
mov edx , 7FFE0300h
call dword ptr [edx]
ret 36
_6_0_6001_sp1_windows_vista_NtGdiGetDIBitsInternal ENDP
; ULONG __stdcall NtGdiGetETM( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetETM PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4276
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetETM ENDP
; ULONG __stdcall NtGdiGetEudcTimeStampEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetEudcTimeStampEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4277
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetEudcTimeStampEx ENDP
; ULONG __stdcall NtGdiGetFontData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiGetFontData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4278
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiGetFontData ENDP
; ULONG __stdcall NtGdiGetFontResourceInfoInternalW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiGetFontResourceInfoInternalW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4279
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiGetFontResourceInfoInternalW ENDP
; ULONG __stdcall NtGdiGetGlyphIndicesW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiGetGlyphIndicesW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4280
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiGetGlyphIndicesW ENDP
; ULONG __stdcall NtGdiGetGlyphIndicesWInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiGetGlyphIndicesWInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4281
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiGetGlyphIndicesWInternal ENDP
; ULONG __stdcall NtGdiGetGlyphOutline( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiGetGlyphOutline PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4282
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiGetGlyphOutline ENDP
; ULONG __stdcall NtGdiGetOPMInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetOPMInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4283
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetOPMInformation ENDP
; ULONG __stdcall NtGdiGetKerningPairs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetKerningPairs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4284
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetKerningPairs ENDP
; ULONG __stdcall NtGdiGetLinkedUFIs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetLinkedUFIs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4285
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetLinkedUFIs ENDP
; ULONG __stdcall NtGdiGetMiterLimit( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetMiterLimit PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4286
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetMiterLimit ENDP
; ULONG __stdcall NtGdiGetMonitorID( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetMonitorID PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4287
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetMonitorID ENDP
; ULONG __stdcall NtGdiGetNearestColor( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetNearestColor PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4288
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetNearestColor ENDP
; ULONG __stdcall NtGdiGetNearestPaletteIndex( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetNearestPaletteIndex PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4289
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetNearestPaletteIndex ENDP
; ULONG __stdcall NtGdiGetObjectBitmapHandle( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetObjectBitmapHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4290
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetObjectBitmapHandle ENDP
; ULONG __stdcall NtGdiGetOPMRandomNumber( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetOPMRandomNumber PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4291
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetOPMRandomNumber ENDP
; ULONG __stdcall NtGdiGetOutlineTextMetricsInternalW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiGetOutlineTextMetricsInternalW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4292
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiGetOutlineTextMetricsInternalW ENDP
; ULONG __stdcall NtGdiGetPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiGetPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4293
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiGetPath ENDP
; ULONG __stdcall NtGdiGetPixel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetPixel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4294
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetPixel ENDP
; ULONG __stdcall NtGdiGetRandomRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetRandomRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4295
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetRandomRgn ENDP
; ULONG __stdcall NtGdiGetRasterizerCaps( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetRasterizerCaps PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4296
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetRasterizerCaps ENDP
; ULONG __stdcall NtGdiGetRealizationInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetRealizationInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4297
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetRealizationInfo ENDP
; ULONG __stdcall NtGdiGetRegionData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetRegionData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4298
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetRegionData ENDP
; ULONG __stdcall NtGdiGetRgnBox( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetRgnBox PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4299
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetRgnBox ENDP
; ULONG __stdcall NtGdiGetServerMetaFileBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiGetServerMetaFileBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4300
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiGetServerMetaFileBits ENDP
; ULONG __stdcall NtGdiGetSpoolMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiGetSpoolMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4301
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiGetSpoolMessage ENDP
; ULONG __stdcall NtGdiGetStats( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiGetStats PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4302
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiGetStats ENDP
; ULONG __stdcall NtGdiGetStockObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiGetStockObject PROC STDCALL arg_01:DWORD
mov eax , 4303
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiGetStockObject ENDP
; ULONG __stdcall NtGdiGetStringBitmapW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiGetStringBitmapW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4304
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiGetStringBitmapW ENDP
; ULONG __stdcall NtGdiGetSuggestedOPMProtectedOutputArraySize( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetSuggestedOPMProtectedOutputArraySize PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4305
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetSuggestedOPMProtectedOutputArraySize ENDP
; ULONG __stdcall NtGdiGetSystemPaletteUse( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiGetSystemPaletteUse PROC STDCALL arg_01:DWORD
mov eax , 4306
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiGetSystemPaletteUse ENDP
; ULONG __stdcall NtGdiGetTextCharsetInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetTextCharsetInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4307
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetTextCharsetInfo ENDP
; ULONG __stdcall NtGdiGetTextExtent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiGetTextExtent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4308
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiGetTextExtent ENDP
; ULONG __stdcall NtGdiGetTextExtentExW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiGetTextExtentExW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4309
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiGetTextExtentExW ENDP
; ULONG __stdcall NtGdiGetTextFaceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiGetTextFaceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4310
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiGetTextFaceW ENDP
; ULONG __stdcall NtGdiGetTextMetricsW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetTextMetricsW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4311
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetTextMetricsW ENDP
; ULONG __stdcall NtGdiGetTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4312
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetTransform ENDP
; ULONG __stdcall NtGdiGetUFI( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiGetUFI PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4313
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiGetUFI ENDP
; ULONG __stdcall NtGdiGetEmbUFI( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiGetEmbUFI PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4314
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiGetEmbUFI ENDP
; ULONG __stdcall NtGdiGetUFIPathname( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_6_0_6001_sp1_windows_vista_NtGdiGetUFIPathname PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4315
mov edx , 7FFE0300h
call dword ptr [edx]
ret 40
_6_0_6001_sp1_windows_vista_NtGdiGetUFIPathname ENDP
; ULONG __stdcall NtGdiGetEmbedFonts( );
_6_0_6001_sp1_windows_vista_NtGdiGetEmbedFonts PROC STDCALL
mov eax , 4316
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtGdiGetEmbedFonts ENDP
; ULONG __stdcall NtGdiChangeGhostFont( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiChangeGhostFont PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4317
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiChangeGhostFont ENDP
; ULONG __stdcall NtGdiAddEmbFontToDC( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiAddEmbFontToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4318
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiAddEmbFontToDC ENDP
; ULONG __stdcall NtGdiGetFontUnicodeRanges( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetFontUnicodeRanges PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4319
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetFontUnicodeRanges ENDP
; ULONG __stdcall NtGdiGetWidthTable( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiGetWidthTable PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4320
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiGetWidthTable ENDP
; ULONG __stdcall NtGdiGradientFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiGradientFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4321
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiGradientFill ENDP
; ULONG __stdcall NtGdiHfontCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiHfontCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4322
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiHfontCreate ENDP
; ULONG __stdcall NtGdiIcmBrushInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiIcmBrushInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4323
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiIcmBrushInfo ENDP
; ULONG __stdcall bInitRedirDev( );
_6_0_6001_sp1_windows_vista_bInitRedirDev PROC STDCALL
mov eax , 4324
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_bInitRedirDev ENDP
; ULONG __stdcall NtGdiInitSpool( );
_6_0_6001_sp1_windows_vista_NtGdiInitSpool PROC STDCALL
mov eax , 4325
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtGdiInitSpool ENDP
; ULONG __stdcall NtGdiIntersectClipRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiIntersectClipRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4326
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiIntersectClipRect ENDP
; ULONG __stdcall NtGdiInvertRgn( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiInvertRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4327
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiInvertRgn ENDP
; ULONG __stdcall NtGdiLineTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiLineTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4328
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiLineTo ENDP
; ULONG __stdcall NtGdiMakeFontDir( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiMakeFontDir PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4329
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiMakeFontDir ENDP
; ULONG __stdcall NtGdiMakeInfoDC( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiMakeInfoDC PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4330
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiMakeInfoDC ENDP
; ULONG __stdcall NtGdiMaskBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 );
_6_0_6001_sp1_windows_vista_NtGdiMaskBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD
mov eax , 4331
mov edx , 7FFE0300h
call dword ptr [edx]
ret 52
_6_0_6001_sp1_windows_vista_NtGdiMaskBlt ENDP
; ULONG __stdcall NtGdiModifyWorldTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiModifyWorldTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4332
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiModifyWorldTransform ENDP
; ULONG __stdcall NtGdiMonoBitmap( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiMonoBitmap PROC STDCALL arg_01:DWORD
mov eax , 4333
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiMonoBitmap ENDP
; ULONG __stdcall NtGdiMoveTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiMoveTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4334
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiMoveTo ENDP
; ULONG __stdcall NtGdiOffsetClipRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiOffsetClipRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4335
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiOffsetClipRgn ENDP
; ULONG __stdcall NtGdiOffsetRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiOffsetRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4336
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiOffsetRgn ENDP
; ULONG __stdcall NtGdiOpenDCW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiOpenDCW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4337
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiOpenDCW ENDP
; ULONG __stdcall NtGdiPatBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiPatBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4338
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiPatBlt ENDP
; ULONG __stdcall NtGdiPolyPatBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiPolyPatBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4339
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiPolyPatBlt ENDP
; ULONG __stdcall NtGdiPathToRegion( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiPathToRegion PROC STDCALL arg_01:DWORD
mov eax , 4340
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiPathToRegion ENDP
; ULONG __stdcall NtGdiPlgBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiPlgBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4341
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiPlgBlt ENDP
; ULONG __stdcall NtGdiPolyDraw( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiPolyDraw PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4342
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiPolyDraw ENDP
; ULONG __stdcall NtGdiPolyPolyDraw( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiPolyPolyDraw PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4343
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiPolyPolyDraw ENDP
; ULONG __stdcall NtGdiPolyTextOutW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiPolyTextOutW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4344
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiPolyTextOutW ENDP
; ULONG __stdcall NtGdiPtInRegion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiPtInRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4345
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiPtInRegion ENDP
; ULONG __stdcall NtGdiPtVisible( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiPtVisible PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4346
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiPtVisible ENDP
; ULONG __stdcall NtGdiQueryFonts( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiQueryFonts PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4347
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiQueryFonts ENDP
; ULONG __stdcall NtGdiQueryFontAssocInfo( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiQueryFontAssocInfo PROC STDCALL arg_01:DWORD
mov eax , 4348
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiQueryFontAssocInfo ENDP
; ULONG __stdcall NtGdiRectangle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiRectangle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4349
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiRectangle ENDP
; ULONG __stdcall NtGdiRectInRegion( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiRectInRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4350
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiRectInRegion ENDP
; ULONG __stdcall NtGdiRectVisible( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiRectVisible PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4351
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiRectVisible ENDP
; ULONG __stdcall NtGdiRemoveFontResourceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiRemoveFontResourceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4352
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiRemoveFontResourceW ENDP
; ULONG __stdcall NtGdiRemoveFontMemResourceEx( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiRemoveFontMemResourceEx PROC STDCALL arg_01:DWORD
mov eax , 4353
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiRemoveFontMemResourceEx ENDP
; ULONG __stdcall NtGdiResetDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiResetDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4354
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiResetDC ENDP
; ULONG __stdcall NtGdiResizePalette( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiResizePalette PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4355
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiResizePalette ENDP
; ULONG __stdcall NtGdiRestoreDC( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiRestoreDC PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4356
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiRestoreDC ENDP
; ULONG __stdcall NtGdiRoundRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiRoundRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4357
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiRoundRect ENDP
; ULONG __stdcall NtGdiSaveDC( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiSaveDC PROC STDCALL arg_01:DWORD
mov eax , 4358
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiSaveDC ENDP
; ULONG __stdcall NtGdiScaleViewportExtEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiScaleViewportExtEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4359
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiScaleViewportExtEx ENDP
; ULONG __stdcall NtGdiScaleWindowExtEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiScaleWindowExtEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4360
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiScaleWindowExtEx ENDP
; ULONG __stdcall GreSelectBitmap( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_GreSelectBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4361
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_GreSelectBitmap ENDP
; ULONG __stdcall NtGdiSelectBrush( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSelectBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4362
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSelectBrush ENDP
; ULONG __stdcall NtGdiSelectClipPath( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSelectClipPath PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4363
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSelectClipPath ENDP
; ULONG __stdcall NtGdiSelectFont( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSelectFont PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4364
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSelectFont ENDP
; ULONG __stdcall NtGdiSelectPen( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSelectPen PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4365
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSelectPen ENDP
; ULONG __stdcall NtGdiSetBitmapAttributes( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSetBitmapAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4366
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSetBitmapAttributes ENDP
; ULONG __stdcall NtGdiSetBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4367
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetBitmapBits ENDP
; ULONG __stdcall NtGdiSetBitmapDimension( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiSetBitmapDimension PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4368
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiSetBitmapDimension ENDP
; ULONG __stdcall NtGdiSetBoundsRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetBoundsRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4369
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetBoundsRect ENDP
; ULONG __stdcall NtGdiSetBrushAttributes( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSetBrushAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4370
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSetBrushAttributes ENDP
; ULONG __stdcall NtGdiSetBrushOrg( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiSetBrushOrg PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4371
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiSetBrushOrg ENDP
; ULONG __stdcall NtGdiSetColorAdjustment( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSetColorAdjustment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4372
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSetColorAdjustment ENDP
; ULONG __stdcall NtGdiSetColorSpace( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSetColorSpace PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4373
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSetColorSpace ENDP
; ULONG __stdcall NtGdiSetDeviceGammaRamp( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSetDeviceGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4374
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSetDeviceGammaRamp ENDP
; ULONG __stdcall NtGdiSetDIBitsToDeviceInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 );
_6_0_6001_sp1_windows_vista_NtGdiSetDIBitsToDeviceInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD
mov eax , 4375
mov edx , 7FFE0300h
call dword ptr [edx]
ret 64
_6_0_6001_sp1_windows_vista_NtGdiSetDIBitsToDeviceInternal ENDP
; ULONG __stdcall NtGdiSetFontEnumeration( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiSetFontEnumeration PROC STDCALL arg_01:DWORD
mov eax , 4376
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiSetFontEnumeration ENDP
; ULONG __stdcall NtGdiSetFontXform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetFontXform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4377
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetFontXform ENDP
; ULONG __stdcall NtGdiSetIcmMode( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetIcmMode PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4378
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetIcmMode ENDP
; ULONG __stdcall NtGdiSetLinkedUFIs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetLinkedUFIs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4379
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetLinkedUFIs ENDP
; ULONG __stdcall NtGdiSetMagicColors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetMagicColors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4380
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetMagicColors ENDP
; ULONG __stdcall NtGdiSetMetaRgn( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiSetMetaRgn PROC STDCALL arg_01:DWORD
mov eax , 4381
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiSetMetaRgn ENDP
; ULONG __stdcall NtGdiSetMiterLimit( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetMiterLimit PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4382
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetMiterLimit ENDP
; ULONG __stdcall NtGdiGetDeviceWidth( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiGetDeviceWidth PROC STDCALL arg_01:DWORD
mov eax , 4383
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiGetDeviceWidth ENDP
; ULONG __stdcall NtGdiMirrorWindowOrg( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiMirrorWindowOrg PROC STDCALL arg_01:DWORD
mov eax , 4384
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiMirrorWindowOrg ENDP
; ULONG __stdcall NtGdiSetLayout( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetLayout PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4385
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetLayout ENDP
; ULONG __stdcall NtGdiSetOPMSigningKeyAndSequenceNumbers( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSetOPMSigningKeyAndSequenceNumbers PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4386
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSetOPMSigningKeyAndSequenceNumbers ENDP
; ULONG __stdcall NtGdiSetPixel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiSetPixel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4387
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiSetPixel ENDP
; ULONG __stdcall NtGdiSetPixelFormat( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSetPixelFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4388
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSetPixelFormat ENDP
; ULONG __stdcall NtGdiSetRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiSetRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4389
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiSetRectRgn ENDP
; ULONG __stdcall NtGdiSetSystemPaletteUse( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiSetSystemPaletteUse PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4390
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiSetSystemPaletteUse ENDP
; ULONG __stdcall NtGdiSetTextJustification( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetTextJustification PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4391
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetTextJustification ENDP
; ULONG __stdcall NtGdiSetupPublicCFONT( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetupPublicCFONT PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4392
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetupPublicCFONT ENDP
; ULONG __stdcall NtGdiSetVirtualResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiSetVirtualResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4393
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiSetVirtualResolution ENDP
; ULONG __stdcall NtGdiSetSizeDevice( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSetSizeDevice PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4394
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSetSizeDevice ENDP
; ULONG __stdcall NtGdiStartDoc( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiStartDoc PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4395
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiStartDoc ENDP
; ULONG __stdcall NtGdiStartPage( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiStartPage PROC STDCALL arg_01:DWORD
mov eax , 4396
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiStartPage ENDP
; ULONG __stdcall NtGdiStretchBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 );
_6_0_6001_sp1_windows_vista_NtGdiStretchBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD
mov eax , 4397
mov edx , 7FFE0300h
call dword ptr [edx]
ret 48
_6_0_6001_sp1_windows_vista_NtGdiStretchBlt ENDP
; ULONG __stdcall NtGdiStretchDIBitsInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 );
_6_0_6001_sp1_windows_vista_NtGdiStretchDIBitsInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD
mov eax , 4398
mov edx , 7FFE0300h
call dword ptr [edx]
ret 64
_6_0_6001_sp1_windows_vista_NtGdiStretchDIBitsInternal ENDP
; ULONG __stdcall NtGdiStrokeAndFillPath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiStrokeAndFillPath PROC STDCALL arg_01:DWORD
mov eax , 4399
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiStrokeAndFillPath ENDP
; ULONG __stdcall NtGdiStrokePath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiStrokePath PROC STDCALL arg_01:DWORD
mov eax , 4400
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiStrokePath ENDP
; ULONG __stdcall NtGdiSwapBuffers( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiSwapBuffers PROC STDCALL arg_01:DWORD
mov eax , 4401
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiSwapBuffers ENDP
; ULONG __stdcall NtGdiTransformPoints( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiTransformPoints PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4402
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiTransformPoints ENDP
; ULONG __stdcall NtGdiTransparentBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiTransparentBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4403
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiTransparentBlt ENDP
; ULONG __stdcall DxgStubReenableDirectDrawObject( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_DxgStubReenableDirectDrawObject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4404
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_DxgStubReenableDirectDrawObject ENDP
; ULONG __stdcall NtGdiUnmapMemFont( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiUnmapMemFont PROC STDCALL arg_01:DWORD
mov eax , 4405
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiUnmapMemFont ENDP
; ULONG __stdcall NtGdiUnrealizeObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiUnrealizeObject PROC STDCALL arg_01:DWORD
mov eax , 4406
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiUnrealizeObject ENDP
; ULONG __stdcall NtGdiUpdateColors( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiUpdateColors PROC STDCALL arg_01:DWORD
mov eax , 4407
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiUpdateColors ENDP
; ULONG __stdcall NtGdiWidenPath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiWidenPath PROC STDCALL arg_01:DWORD
mov eax , 4408
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiWidenPath ENDP
; ULONG __stdcall NtUserActivateKeyboardLayout( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserActivateKeyboardLayout PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4409
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserActivateKeyboardLayout ENDP
; ULONG __stdcall NtUserAddClipboardFormatListener( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserAddClipboardFormatListener PROC STDCALL arg_01:DWORD
mov eax , 4410
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserAddClipboardFormatListener ENDP
; ULONG __stdcall NtUserAlterWindowStyle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserAlterWindowStyle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4411
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserAlterWindowStyle ENDP
; ULONG __stdcall NtUserAssociateInputContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserAssociateInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4412
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserAssociateInputContext ENDP
; ULONG __stdcall NtUserAttachThreadInput( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserAttachThreadInput PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4413
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserAttachThreadInput ENDP
; ULONG __stdcall NtUserBeginPaint( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserBeginPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4414
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserBeginPaint ENDP
; ULONG __stdcall NtUserBitBltSysBmp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtUserBitBltSysBmp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4415
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtUserBitBltSysBmp ENDP
; ULONG __stdcall NtUserBlockInput( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserBlockInput PROC STDCALL arg_01:DWORD
mov eax , 4416
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserBlockInput ENDP
; ULONG __stdcall NtUserBuildHimcList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserBuildHimcList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4417
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserBuildHimcList ENDP
; ULONG __stdcall NtUserBuildHwndList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtUserBuildHwndList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4418
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtUserBuildHwndList ENDP
; ULONG __stdcall NtUserBuildNameList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserBuildNameList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4419
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserBuildNameList ENDP
; ULONG __stdcall NtUserBuildPropList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserBuildPropList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4420
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserBuildPropList ENDP
; ULONG __stdcall NtUserCallHwnd( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserCallHwnd PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4421
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserCallHwnd ENDP
; ULONG __stdcall NtUserCallHwndLock( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserCallHwndLock PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4422
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserCallHwndLock ENDP
; ULONG __stdcall NtUserCallHwndOpt( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserCallHwndOpt PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4423
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserCallHwndOpt ENDP
; ULONG __stdcall NtUserCallHwndParam( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserCallHwndParam PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4424
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserCallHwndParam ENDP
; ULONG __stdcall NtUserCallHwndParamLock( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserCallHwndParamLock PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4425
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserCallHwndParamLock ENDP
; ULONG __stdcall NtUserCallMsgFilter( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserCallMsgFilter PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4426
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserCallMsgFilter ENDP
; ULONG __stdcall NtUserCallNextHookEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserCallNextHookEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4427
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserCallNextHookEx ENDP
; ULONG __stdcall NtUserCallNoParam( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserCallNoParam PROC STDCALL arg_01:DWORD
mov eax , 4428
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserCallNoParam ENDP
; ULONG __stdcall NtUserCallOneParam( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserCallOneParam PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4429
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserCallOneParam ENDP
; ULONG __stdcall NtUserCallTwoParam( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserCallTwoParam PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4430
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserCallTwoParam ENDP
; ULONG __stdcall NtUserChangeClipboardChain( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserChangeClipboardChain PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4431
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserChangeClipboardChain ENDP
; ULONG __stdcall NtUserChangeDisplaySettings( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserChangeDisplaySettings PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4432
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserChangeDisplaySettings ENDP
; ULONG __stdcall NtUserCheckAccessForIntegrityLevel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserCheckAccessForIntegrityLevel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4433
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserCheckAccessForIntegrityLevel ENDP
; ULONG __stdcall NtUserCheckDesktopByThreadId( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserCheckDesktopByThreadId PROC STDCALL arg_01:DWORD
mov eax , 4434
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserCheckDesktopByThreadId ENDP
; ULONG __stdcall NtUserCheckWindowThreadDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserCheckWindowThreadDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4435
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserCheckWindowThreadDesktop ENDP
; ULONG __stdcall NtUserCheckImeHotKey( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserCheckImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4436
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserCheckImeHotKey ENDP
; ULONG __stdcall NtUserCheckMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserCheckMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4437
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserCheckMenuItem ENDP
; ULONG __stdcall NtUserChildWindowFromPointEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserChildWindowFromPointEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4438
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserChildWindowFromPointEx ENDP
; ULONG __stdcall NtUserClipCursor( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserClipCursor PROC STDCALL arg_01:DWORD
mov eax , 4439
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserClipCursor ENDP
; ULONG __stdcall NtUserCloseClipboard( );
_6_0_6001_sp1_windows_vista_NtUserCloseClipboard PROC STDCALL
mov eax , 4440
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserCloseClipboard ENDP
; ULONG __stdcall NtUserCloseDesktop( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserCloseDesktop PROC STDCALL arg_01:DWORD
mov eax , 4441
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserCloseDesktop ENDP
; ULONG __stdcall NtUserCloseWindowStation( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserCloseWindowStation PROC STDCALL arg_01:DWORD
mov eax , 4442
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserCloseWindowStation ENDP
; ULONG __stdcall NtUserConsoleControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserConsoleControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4443
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserConsoleControl ENDP
; ULONG __stdcall NtUserConvertMemHandle( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserConvertMemHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4444
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserConvertMemHandle ENDP
; ULONG __stdcall NtUserCopyAcceleratorTable( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserCopyAcceleratorTable PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4445
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserCopyAcceleratorTable ENDP
; ULONG __stdcall NtUserCountClipboardFormats( );
_6_0_6001_sp1_windows_vista_NtUserCountClipboardFormats PROC STDCALL
mov eax , 4446
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserCountClipboardFormats ENDP
; ULONG __stdcall NtUserCreateAcceleratorTable( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserCreateAcceleratorTable PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4447
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserCreateAcceleratorTable ENDP
; ULONG __stdcall NtUserCreateCaret( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserCreateCaret PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4448
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserCreateCaret ENDP
; ULONG __stdcall NtUserCreateDesktopEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserCreateDesktopEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4449
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserCreateDesktopEx ENDP
; ULONG __stdcall NtUserCreateInputContext( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserCreateInputContext PROC STDCALL arg_01:DWORD
mov eax , 4450
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserCreateInputContext ENDP
; ULONG __stdcall NtUserCreateLocalMemHandle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserCreateLocalMemHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4451
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserCreateLocalMemHandle ENDP
; ULONG __stdcall NtUserCreateWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 );
_6_0_6001_sp1_windows_vista_NtUserCreateWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD
mov eax , 4452
mov edx , 7FFE0300h
call dword ptr [edx]
ret 60
_6_0_6001_sp1_windows_vista_NtUserCreateWindowEx ENDP
; ULONG __stdcall NtUserCreateWindowStation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtUserCreateWindowStation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4453
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtUserCreateWindowStation ENDP
; ULONG __stdcall NtUserDdeInitialize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserDdeInitialize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4454
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserDdeInitialize ENDP
; ULONG __stdcall NtUserDeferWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtUserDeferWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4455
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtUserDeferWindowPos ENDP
; ULONG __stdcall NtUserDefSetText( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserDefSetText PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4456
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserDefSetText ENDP
; ULONG __stdcall NtUserDeleteMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserDeleteMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4457
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserDeleteMenu ENDP
; ULONG __stdcall NtUserDestroyAcceleratorTable( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserDestroyAcceleratorTable PROC STDCALL arg_01:DWORD
mov eax , 4458
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserDestroyAcceleratorTable ENDP
; ULONG __stdcall NtUserDestroyCursor( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserDestroyCursor PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4459
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserDestroyCursor ENDP
; ULONG __stdcall NtUserDestroyInputContext( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserDestroyInputContext PROC STDCALL arg_01:DWORD
mov eax , 4460
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserDestroyInputContext ENDP
; ULONG __stdcall NtUserDestroyMenu( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserDestroyMenu PROC STDCALL arg_01:DWORD
mov eax , 4461
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserDestroyMenu ENDP
; ULONG __stdcall NtUserDestroyWindow( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserDestroyWindow PROC STDCALL arg_01:DWORD
mov eax , 4462
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserDestroyWindow ENDP
; ULONG __stdcall NtUserDisableThreadIme( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserDisableThreadIme PROC STDCALL arg_01:DWORD
mov eax , 4463
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserDisableThreadIme ENDP
; ULONG __stdcall NtUserDispatchMessage( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserDispatchMessage PROC STDCALL arg_01:DWORD
mov eax , 4464
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserDispatchMessage ENDP
; ULONG __stdcall NtUserDoSoundConnect( );
_6_0_6001_sp1_windows_vista_NtUserDoSoundConnect PROC STDCALL
mov eax , 4465
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserDoSoundConnect ENDP
; ULONG __stdcall NtUserDoSoundDisconnect( );
_6_0_6001_sp1_windows_vista_NtUserDoSoundDisconnect PROC STDCALL
mov eax , 4466
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserDoSoundDisconnect ENDP
; ULONG __stdcall NtUserDragDetect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserDragDetect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4467
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserDragDetect ENDP
; ULONG __stdcall NtUserDragObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserDragObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4468
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserDragObject ENDP
; ULONG __stdcall NtUserDrawAnimatedRects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserDrawAnimatedRects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4469
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserDrawAnimatedRects ENDP
; ULONG __stdcall NtUserDrawCaption( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserDrawCaption PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4470
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserDrawCaption ENDP
; ULONG __stdcall NtUserDrawCaptionTemp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtUserDrawCaptionTemp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4471
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtUserDrawCaptionTemp ENDP
; ULONG __stdcall NtUserDrawIconEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtUserDrawIconEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4472
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtUserDrawIconEx ENDP
; ULONG __stdcall NtUserDrawMenuBarTemp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserDrawMenuBarTemp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4473
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserDrawMenuBarTemp ENDP
; ULONG __stdcall NtUserEmptyClipboard( );
_6_0_6001_sp1_windows_vista_NtUserEmptyClipboard PROC STDCALL
mov eax , 4474
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserEmptyClipboard ENDP
; ULONG __stdcall NtUserEnableMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserEnableMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4475
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserEnableMenuItem ENDP
; ULONG __stdcall NtUserEnableScrollBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserEnableScrollBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4476
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserEnableScrollBar ENDP
; ULONG __stdcall NtUserEndDeferWindowPosEx( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserEndDeferWindowPosEx PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4477
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserEndDeferWindowPosEx ENDP
; ULONG __stdcall NtUserEndMenu( );
_6_0_6001_sp1_windows_vista_NtUserEndMenu PROC STDCALL
mov eax , 4478
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserEndMenu ENDP
; ULONG __stdcall NtUserEndPaint( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserEndPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4479
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserEndPaint ENDP
; ULONG __stdcall NtUserEnumDisplayDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserEnumDisplayDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4480
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserEnumDisplayDevices ENDP
; ULONG __stdcall NtUserEnumDisplayMonitors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserEnumDisplayMonitors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4481
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserEnumDisplayMonitors ENDP
; ULONG __stdcall NtUserEnumDisplaySettings( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserEnumDisplaySettings PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4482
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserEnumDisplaySettings ENDP
; ULONG __stdcall NtUserEvent( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserEvent PROC STDCALL arg_01:DWORD
mov eax , 4483
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserEvent ENDP
; ULONG __stdcall NtUserExcludeUpdateRgn( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserExcludeUpdateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4484
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserExcludeUpdateRgn ENDP
; ULONG __stdcall NtUserFillWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserFillWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4485
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserFillWindow ENDP
; ULONG __stdcall NtUserFindExistingCursorIcon( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserFindExistingCursorIcon PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4486
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserFindExistingCursorIcon ENDP
; ULONG __stdcall NtUserFindWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserFindWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4487
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserFindWindowEx ENDP
; ULONG __stdcall NtUserFlashWindowEx( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserFlashWindowEx PROC STDCALL arg_01:DWORD
mov eax , 4488
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserFlashWindowEx ENDP
; ULONG __stdcall NtUserFrostCrashedWindow( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserFrostCrashedWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4489
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserFrostCrashedWindow ENDP
; ULONG __stdcall NtUserGetAltTabInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserGetAltTabInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4490
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserGetAltTabInfo ENDP
; ULONG __stdcall NtUserGetAncestor( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetAncestor PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4491
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetAncestor ENDP
; ULONG __stdcall NtUserGetAppImeLevel( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetAppImeLevel PROC STDCALL arg_01:DWORD
mov eax , 4492
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetAppImeLevel ENDP
; ULONG __stdcall NtUserGetAsyncKeyState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetAsyncKeyState PROC STDCALL arg_01:DWORD
mov eax , 4493
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetAsyncKeyState ENDP
; ULONG __stdcall NtUserGetAtomName( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetAtomName PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4494
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetAtomName ENDP
; ULONG __stdcall NtUserGetCaretBlinkTime( );
_6_0_6001_sp1_windows_vista_NtUserGetCaretBlinkTime PROC STDCALL
mov eax , 4495
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserGetCaretBlinkTime ENDP
; ULONG __stdcall NtUserGetCaretPos( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetCaretPos PROC STDCALL arg_01:DWORD
mov eax , 4496
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetCaretPos ENDP
; ULONG __stdcall NtUserGetClassInfoEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserGetClassInfoEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4497
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserGetClassInfoEx ENDP
; ULONG __stdcall NtUserGetClassName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetClassName PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4498
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetClassName ENDP
; ULONG __stdcall NtUserGetClipboardData( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetClipboardData PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4499
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetClipboardData ENDP
; ULONG __stdcall NtUserGetClipboardFormatName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetClipboardFormatName PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4500
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetClipboardFormatName ENDP
; ULONG __stdcall NtUserGetClipboardOwner( );
_6_0_6001_sp1_windows_vista_NtUserGetClipboardOwner PROC STDCALL
mov eax , 4501
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserGetClipboardOwner ENDP
; ULONG __stdcall NtUserGetClipboardSequenceNumber( );
_6_0_6001_sp1_windows_vista_NtUserGetClipboardSequenceNumber PROC STDCALL
mov eax , 4502
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserGetClipboardSequenceNumber ENDP
; ULONG __stdcall NtUserGetClipboardViewer( );
_6_0_6001_sp1_windows_vista_NtUserGetClipboardViewer PROC STDCALL
mov eax , 4503
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserGetClipboardViewer ENDP
; ULONG __stdcall NtUserGetClipCursor( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetClipCursor PROC STDCALL arg_01:DWORD
mov eax , 4504
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetClipCursor ENDP
; ULONG __stdcall NtUserGetComboBoxInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetComboBoxInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4505
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetComboBoxInfo ENDP
; ULONG __stdcall NtUserGetControlBrush( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetControlBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4506
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetControlBrush ENDP
; ULONG __stdcall NtUserGetControlColor( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetControlColor PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4507
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetControlColor ENDP
; ULONG __stdcall NtUserGetCPD( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetCPD PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4508
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetCPD ENDP
; ULONG __stdcall NtUserGetCursorFrameInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetCursorFrameInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4509
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetCursorFrameInfo ENDP
; ULONG __stdcall NtUserGetCursorInfo( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetCursorInfo PROC STDCALL arg_01:DWORD
mov eax , 4510
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetCursorInfo ENDP
; ULONG __stdcall NtUserGetDC( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetDC PROC STDCALL arg_01:DWORD
mov eax , 4511
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetDC ENDP
; ULONG __stdcall NtUserGetDCEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetDCEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4512
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetDCEx ENDP
; ULONG __stdcall NtUserGetDoubleClickTime( );
_6_0_6001_sp1_windows_vista_NtUserGetDoubleClickTime PROC STDCALL
mov eax , 4513
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserGetDoubleClickTime ENDP
; ULONG __stdcall NtUserGetForegroundWindow( );
_6_0_6001_sp1_windows_vista_NtUserGetForegroundWindow PROC STDCALL
mov eax , 4514
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserGetForegroundWindow ENDP
; ULONG __stdcall NtUserGetGuiResources( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetGuiResources PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4515
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetGuiResources ENDP
; ULONG __stdcall NtUserGetGUIThreadInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetGUIThreadInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4516
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetGUIThreadInfo ENDP
; ULONG __stdcall NtUserGetIconInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserGetIconInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4517
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserGetIconInfo ENDP
; ULONG __stdcall NtUserGetIconSize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetIconSize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4518
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetIconSize ENDP
; ULONG __stdcall NtUserGetImeHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4519
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetImeHotKey ENDP
; ULONG __stdcall NtUserGetImeInfoEx( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetImeInfoEx PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4520
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetImeInfoEx ENDP
; ULONG __stdcall NtUserGetInternalWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetInternalWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4521
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetInternalWindowPos ENDP
; ULONG __stdcall NtUserGetKeyboardLayoutList( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetKeyboardLayoutList PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4522
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetKeyboardLayoutList ENDP
; ULONG __stdcall NtUserGetKeyboardLayoutName( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetKeyboardLayoutName PROC STDCALL arg_01:DWORD
mov eax , 4523
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetKeyboardLayoutName ENDP
; ULONG __stdcall NtUserGetKeyboardState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetKeyboardState PROC STDCALL arg_01:DWORD
mov eax , 4524
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetKeyboardState ENDP
; ULONG __stdcall NtUserGetKeyNameText( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetKeyNameText PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4525
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetKeyNameText ENDP
; ULONG __stdcall NtUserGetKeyState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetKeyState PROC STDCALL arg_01:DWORD
mov eax , 4526
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetKeyState ENDP
; ULONG __stdcall NtUserGetListBoxInfo( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetListBoxInfo PROC STDCALL arg_01:DWORD
mov eax , 4527
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetListBoxInfo ENDP
; ULONG __stdcall NtUserGetMenuBarInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetMenuBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4528
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetMenuBarInfo ENDP
; ULONG __stdcall NtUserGetMenuIndex( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetMenuIndex PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4529
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetMenuIndex ENDP
; ULONG __stdcall NtUserGetMenuItemRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetMenuItemRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4530
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetMenuItemRect ENDP
; ULONG __stdcall NtUserGetMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4531
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetMessage ENDP
; ULONG __stdcall NtUserGetMouseMovePointsEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserGetMouseMovePointsEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4532
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserGetMouseMovePointsEx ENDP
; ULONG __stdcall NtUserGetObjectInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserGetObjectInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4533
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserGetObjectInformation ENDP
; ULONG __stdcall NtUserGetOpenClipboardWindow( );
_6_0_6001_sp1_windows_vista_NtUserGetOpenClipboardWindow PROC STDCALL
mov eax , 4534
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserGetOpenClipboardWindow ENDP
; ULONG __stdcall NtUserGetPriorityClipboardFormat( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetPriorityClipboardFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4535
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetPriorityClipboardFormat ENDP
; ULONG __stdcall NtUserGetProcessWindowStation( );
_6_0_6001_sp1_windows_vista_NtUserGetProcessWindowStation PROC STDCALL
mov eax , 4536
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserGetProcessWindowStation ENDP
; ULONG __stdcall NtUserGetRawInputBuffer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetRawInputBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4537
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetRawInputBuffer ENDP
; ULONG __stdcall NtUserGetRawInputData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserGetRawInputData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4538
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserGetRawInputData ENDP
; ULONG __stdcall NtUserGetRawInputDeviceInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetRawInputDeviceInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4539
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetRawInputDeviceInfo ENDP
; ULONG __stdcall NtUserGetRawInputDeviceList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetRawInputDeviceList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4540
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetRawInputDeviceList ENDP
; ULONG __stdcall NtUserGetRegisteredRawInputDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetRegisteredRawInputDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4541
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetRegisteredRawInputDevices ENDP
; ULONG __stdcall NtUserGetScrollBarInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetScrollBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4542
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetScrollBarInfo ENDP
; ULONG __stdcall NtUserGetSystemMenu( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetSystemMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4543
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetSystemMenu ENDP
; ULONG __stdcall NtUserGetThreadDesktop( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetThreadDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4544
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetThreadDesktop ENDP
; ULONG __stdcall NtUserGetThreadState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetThreadState PROC STDCALL arg_01:DWORD
mov eax , 4545
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetThreadState ENDP
; ULONG __stdcall NtUserGetTitleBarInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetTitleBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4546
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetTitleBarInfo ENDP
; ULONG __stdcall NtUserGetUpdatedClipboardFormats( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetUpdatedClipboardFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4547
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetUpdatedClipboardFormats ENDP
; ULONG __stdcall NtUserGetUpdateRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetUpdateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4548
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetUpdateRect ENDP
; ULONG __stdcall NtUserGetUpdateRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetUpdateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4549
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetUpdateRgn ENDP
; ULONG __stdcall NtUserGetWindowDC( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGetWindowDC PROC STDCALL arg_01:DWORD
mov eax , 4550
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGetWindowDC ENDP
; ULONG __stdcall NtUserGetWindowPlacement( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetWindowPlacement PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4551
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetWindowPlacement ENDP
; ULONG __stdcall NtUserGetWOWClass( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetWOWClass PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4552
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetWOWClass ENDP
; ULONG __stdcall NtUserGhostWindowFromHungWindow( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserGhostWindowFromHungWindow PROC STDCALL arg_01:DWORD
mov eax , 4553
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserGhostWindowFromHungWindow ENDP
; ULONG __stdcall NtUserHardErrorControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserHardErrorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4554
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserHardErrorControl ENDP
; ULONG __stdcall NtUserHideCaret( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserHideCaret PROC STDCALL arg_01:DWORD
mov eax , 4555
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserHideCaret ENDP
; ULONG __stdcall NtUserHiliteMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserHiliteMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4556
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserHiliteMenuItem ENDP
; ULONG __stdcall NtUserHungWindowFromGhostWindow( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserHungWindowFromGhostWindow PROC STDCALL arg_01:DWORD
mov eax , 4557
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserHungWindowFromGhostWindow ENDP
; ULONG __stdcall NtUserImpersonateDdeClientWindow( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserImpersonateDdeClientWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4558
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserImpersonateDdeClientWindow ENDP
; ULONG __stdcall NtUserInitialize( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserInitialize PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4559
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserInitialize ENDP
; ULONG __stdcall NtUserInitializeClientPfnArrays( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserInitializeClientPfnArrays PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4560
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserInitializeClientPfnArrays ENDP
; ULONG __stdcall NtUserInitTask( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 );
_6_0_6001_sp1_windows_vista_NtUserInitTask PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD
mov eax , 4561
mov edx , 7FFE0300h
call dword ptr [edx]
ret 48
_6_0_6001_sp1_windows_vista_NtUserInitTask ENDP
; ULONG __stdcall NtUserInternalGetWindowText( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserInternalGetWindowText PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4562
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserInternalGetWindowText ENDP
; ULONG __stdcall NtUserInternalGetWindowIcon( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserInternalGetWindowIcon PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4563
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserInternalGetWindowIcon ENDP
; ULONG __stdcall NtUserInvalidateRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserInvalidateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4564
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserInvalidateRect ENDP
; ULONG __stdcall NtUserInvalidateRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserInvalidateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4565
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserInvalidateRgn ENDP
; ULONG __stdcall NtUserIsClipboardFormatAvailable( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserIsClipboardFormatAvailable PROC STDCALL arg_01:DWORD
mov eax , 4566
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserIsClipboardFormatAvailable ENDP
; ULONG __stdcall NtUserKillTimer( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserKillTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4567
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserKillTimer ENDP
; ULONG __stdcall NtUserLoadKeyboardLayoutEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtUserLoadKeyboardLayoutEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4568
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtUserLoadKeyboardLayoutEx ENDP
; ULONG __stdcall NtUserLockWindowStation( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserLockWindowStation PROC STDCALL arg_01:DWORD
mov eax , 4569
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserLockWindowStation ENDP
; ULONG __stdcall NtUserLockWindowUpdate( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserLockWindowUpdate PROC STDCALL arg_01:DWORD
mov eax , 4570
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserLockWindowUpdate ENDP
; ULONG __stdcall NtUserLockWorkStation( );
_6_0_6001_sp1_windows_vista_NtUserLockWorkStation PROC STDCALL
mov eax , 4571
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserLockWorkStation ENDP
; ULONG __stdcall NtUserLogicalToPhysicalPoint( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserLogicalToPhysicalPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4572
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserLogicalToPhysicalPoint ENDP
; ULONG __stdcall NtUserMapVirtualKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserMapVirtualKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4573
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserMapVirtualKeyEx ENDP
; ULONG __stdcall NtUserMenuItemFromPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserMenuItemFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4574
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserMenuItemFromPoint ENDP
; ULONG __stdcall NtUserMessageCall( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtUserMessageCall PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4575
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtUserMessageCall ENDP
; ULONG __stdcall NtUserMinMaximize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserMinMaximize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4576
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserMinMaximize ENDP
; ULONG __stdcall NtUserMNDragLeave( );
_6_0_6001_sp1_windows_vista_NtUserMNDragLeave PROC STDCALL
mov eax , 4577
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserMNDragLeave ENDP
; ULONG __stdcall NtUserMNDragOver( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserMNDragOver PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4578
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserMNDragOver ENDP
; ULONG __stdcall NtUserModifyUserStartupInfoFlags( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserModifyUserStartupInfoFlags PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4579
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserModifyUserStartupInfoFlags ENDP
; ULONG __stdcall NtUserMoveWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserMoveWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4580
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserMoveWindow ENDP
; ULONG __stdcall NtUserNotifyIMEStatus( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserNotifyIMEStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4581
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserNotifyIMEStatus ENDP
; ULONG __stdcall NtUserNotifyProcessCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserNotifyProcessCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4582
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserNotifyProcessCreate ENDP
; ULONG __stdcall NtUserNotifyWinEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserNotifyWinEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4583
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserNotifyWinEvent ENDP
; ULONG __stdcall NtUserOpenClipboard( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserOpenClipboard PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4584
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserOpenClipboard ENDP
; ULONG __stdcall NtUserOpenDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserOpenDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4585
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserOpenDesktop ENDP
; ULONG __stdcall NtUserOpenInputDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserOpenInputDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4586
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserOpenInputDesktop ENDP
; ULONG __stdcall NtUserOpenThreadDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserOpenThreadDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4587
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserOpenThreadDesktop ENDP
; ULONG __stdcall NtUserOpenWindowStation( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserOpenWindowStation PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4588
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserOpenWindowStation ENDP
; ULONG __stdcall NtUserPaintDesktop( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserPaintDesktop PROC STDCALL arg_01:DWORD
mov eax , 4589
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserPaintDesktop ENDP
; ULONG __stdcall NtUserPaintMonitor( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserPaintMonitor PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4590
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserPaintMonitor ENDP
; ULONG __stdcall NtUserPeekMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserPeekMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4591
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserPeekMessage ENDP
; ULONG __stdcall NtUserPhysicalToLogicalPoint( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserPhysicalToLogicalPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4592
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserPhysicalToLogicalPoint ENDP
; ULONG __stdcall NtUserPostMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserPostMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4593
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserPostMessage ENDP
; ULONG __stdcall NtUserPostThreadMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserPostThreadMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4594
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserPostThreadMessage ENDP
; ULONG __stdcall NtUserPrintWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserPrintWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4595
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserPrintWindow ENDP
; ULONG __stdcall NtUserProcessConnect( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserProcessConnect PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4596
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserProcessConnect ENDP
; ULONG __stdcall NtUserQueryInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserQueryInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4597
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserQueryInformationThread ENDP
; ULONG __stdcall NtUserQueryInputContext( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserQueryInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4598
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserQueryInputContext ENDP
; ULONG __stdcall NtUserQuerySendMessage( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserQuerySendMessage PROC STDCALL arg_01:DWORD
mov eax , 4599
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserQuerySendMessage ENDP
; ULONG __stdcall NtUserQueryWindow( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserQueryWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4600
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserQueryWindow ENDP
; ULONG __stdcall NtUserRealChildWindowFromPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserRealChildWindowFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4601
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserRealChildWindowFromPoint ENDP
; ULONG __stdcall NtUserRealInternalGetMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserRealInternalGetMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4602
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserRealInternalGetMessage ENDP
; ULONG __stdcall NtUserRealWaitMessageEx( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserRealWaitMessageEx PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4603
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserRealWaitMessageEx ENDP
; ULONG __stdcall NtUserRedrawWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserRedrawWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4604
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserRedrawWindow ENDP
; ULONG __stdcall NtUserRegisterClassExWOW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtUserRegisterClassExWOW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4605
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtUserRegisterClassExWOW ENDP
; ULONG __stdcall NtUserRegisterErrorReportingDialog( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserRegisterErrorReportingDialog PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4606
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserRegisterErrorReportingDialog ENDP
; ULONG __stdcall NtUserRegisterUserApiHook( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserRegisterUserApiHook PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4607
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserRegisterUserApiHook ENDP
; ULONG __stdcall NtUserRegisterHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserRegisterHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4608
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserRegisterHotKey ENDP
; ULONG __stdcall NtUserRegisterRawInputDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserRegisterRawInputDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4609
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserRegisterRawInputDevices ENDP
; ULONG __stdcall NtUserRegisterTasklist( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserRegisterTasklist PROC STDCALL arg_01:DWORD
mov eax , 4610
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserRegisterTasklist ENDP
; ULONG __stdcall NtUserRegisterWindowMessage( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserRegisterWindowMessage PROC STDCALL arg_01:DWORD
mov eax , 4611
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserRegisterWindowMessage ENDP
; ULONG __stdcall NtUserRemoveClipboardFormatListener( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserRemoveClipboardFormatListener PROC STDCALL arg_01:DWORD
mov eax , 4612
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserRemoveClipboardFormatListener ENDP
; ULONG __stdcall NtUserRemoveMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserRemoveMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4613
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserRemoveMenu ENDP
; ULONG __stdcall NtUserRemoveProp( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserRemoveProp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4614
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserRemoveProp ENDP
; ULONG __stdcall NtUserResolveDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserResolveDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4615
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserResolveDesktop ENDP
; ULONG __stdcall NtUserResolveDesktopForWOW( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserResolveDesktopForWOW PROC STDCALL arg_01:DWORD
mov eax , 4616
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserResolveDesktopForWOW ENDP
; ULONG __stdcall NtUserSBGetParms( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSBGetParms PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4617
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSBGetParms ENDP
; ULONG __stdcall NtUserScrollDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtUserScrollDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4618
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtUserScrollDC ENDP
; ULONG __stdcall NtUserScrollWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtUserScrollWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4619
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtUserScrollWindowEx ENDP
; ULONG __stdcall NtUserSelectPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSelectPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4620
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSelectPalette ENDP
; ULONG __stdcall NtUserSendInput( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSendInput PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4621
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSendInput ENDP
; ULONG __stdcall NtUserSetActiveWindow( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetActiveWindow PROC STDCALL arg_01:DWORD
mov eax , 4622
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetActiveWindow ENDP
; ULONG __stdcall NtUserSetAppImeLevel( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetAppImeLevel PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4623
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetAppImeLevel ENDP
; ULONG __stdcall NtUserSetCapture( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetCapture PROC STDCALL arg_01:DWORD
mov eax , 4624
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetCapture ENDP
; ULONG __stdcall NtUserSetClassLong( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetClassLong PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4625
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetClassLong ENDP
; ULONG __stdcall NtUserSetClassWord( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetClassWord PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4626
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetClassWord ENDP
; ULONG __stdcall NtUserSetClipboardData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetClipboardData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4627
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetClipboardData ENDP
; ULONG __stdcall NtUserSetClipboardViewer( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetClipboardViewer PROC STDCALL arg_01:DWORD
mov eax , 4628
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetClipboardViewer ENDP
; ULONG __stdcall NtUserSetConsoleReserveKeys( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetConsoleReserveKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4629
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetConsoleReserveKeys ENDP
; ULONG __stdcall NtUserSetCursor( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetCursor PROC STDCALL arg_01:DWORD
mov eax , 4630
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetCursor ENDP
; ULONG __stdcall NtUserSetCursorContents( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetCursorContents PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4631
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetCursorContents ENDP
; ULONG __stdcall NtUserSetCursorIconData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetCursorIconData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4632
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetCursorIconData ENDP
; ULONG __stdcall NtUserSetFocus( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetFocus PROC STDCALL arg_01:DWORD
mov eax , 4633
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetFocus ENDP
; ULONG __stdcall NtUserSetImeHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserSetImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4634
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserSetImeHotKey ENDP
; ULONG __stdcall NtUserSetImeInfoEx( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetImeInfoEx PROC STDCALL arg_01:DWORD
mov eax , 4635
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetImeInfoEx ENDP
; ULONG __stdcall NtUserSetImeOwnerWindow( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetImeOwnerWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4636
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetImeOwnerWindow ENDP
; ULONG __stdcall NtUserSetInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4637
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetInformationProcess ENDP
; ULONG __stdcall NtUserSetInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4638
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetInformationThread ENDP
; ULONG __stdcall NtUserSetInternalWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetInternalWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4639
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetInternalWindowPos ENDP
; ULONG __stdcall NtUserSetKeyboardState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetKeyboardState PROC STDCALL arg_01:DWORD
mov eax , 4640
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetKeyboardState ENDP
; ULONG __stdcall NtUserSetMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4641
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetMenu ENDP
; ULONG __stdcall NtUserSetMenuContextHelpId( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetMenuContextHelpId PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4642
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetMenuContextHelpId ENDP
; ULONG __stdcall NtUserSetMenuDefaultItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetMenuDefaultItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4643
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetMenuDefaultItem ENDP
; ULONG __stdcall NtUserSetMenuFlagRtoL( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetMenuFlagRtoL PROC STDCALL arg_01:DWORD
mov eax , 4644
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetMenuFlagRtoL ENDP
; ULONG __stdcall NtUserSetObjectInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetObjectInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4645
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetObjectInformation ENDP
; ULONG __stdcall NtUserSetParent( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetParent PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4646
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetParent ENDP
; ULONG __stdcall NtUserSetProcessWindowStation( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetProcessWindowStation PROC STDCALL arg_01:DWORD
mov eax , 4647
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetProcessWindowStation ENDP
; ULONG __stdcall NtUserGetProp( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetProp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4648
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetProp ENDP
; ULONG __stdcall NtUserSetProp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetProp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4649
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetProp ENDP
; ULONG __stdcall NtUserSetScrollInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetScrollInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4650
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetScrollInfo ENDP
; ULONG __stdcall NtUserSetShellWindowEx( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetShellWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4651
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetShellWindowEx ENDP
; ULONG __stdcall NtUserSetSysColors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetSysColors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4652
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetSysColors ENDP
; ULONG __stdcall NtUserSetSystemCursor( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetSystemCursor PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4653
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetSystemCursor ENDP
; ULONG __stdcall NtUserSetSystemMenu( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetSystemMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4654
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetSystemMenu ENDP
; ULONG __stdcall NtUserSetSystemTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetSystemTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4655
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetSystemTimer ENDP
; ULONG __stdcall NtUserSetThreadDesktop( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserSetThreadDesktop PROC STDCALL arg_01:DWORD
mov eax , 4656
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserSetThreadDesktop ENDP
; ULONG __stdcall NtUserSetThreadLayoutHandles( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetThreadLayoutHandles PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4657
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetThreadLayoutHandles ENDP
; ULONG __stdcall NtUserSetThreadState( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetThreadState PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4658
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetThreadState ENDP
; ULONG __stdcall NtUserSetTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4659
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetTimer ENDP
; ULONG __stdcall NtUserSetProcessDPIAware( );
_6_0_6001_sp1_windows_vista_NtUserSetProcessDPIAware PROC STDCALL
mov eax , 4660
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserSetProcessDPIAware ENDP
; ULONG __stdcall NtUserSetWindowFNID( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowFNID PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4661
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetWindowFNID ENDP
; ULONG __stdcall NtUserSetWindowLong( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowLong PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4662
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetWindowLong ENDP
; ULONG __stdcall NtUserSetWindowPlacement( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowPlacement PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4663
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetWindowPlacement ENDP
; ULONG __stdcall NtUserSetWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4664
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtUserSetWindowPos ENDP
; ULONG __stdcall NtUserSetWindowRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4665
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetWindowRgn ENDP
; ULONG __stdcall NtUserGetWindowRgnEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserGetWindowRgnEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4666
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserGetWindowRgnEx ENDP
; ULONG __stdcall NtUserSetWindowRgnEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowRgnEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4667
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetWindowRgnEx ENDP
; ULONG __stdcall NtUserSetWindowsHookAW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowsHookAW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4668
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetWindowsHookAW ENDP
; ULONG __stdcall NtUserSetWindowsHookEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowsHookEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4669
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserSetWindowsHookEx ENDP
; ULONG __stdcall NtUserSetWindowStationUser( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowStationUser PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4670
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetWindowStationUser ENDP
; ULONG __stdcall NtUserSetWindowWord( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserSetWindowWord PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4671
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserSetWindowWord ENDP
; ULONG __stdcall NtUserSetWinEventHook( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtUserSetWinEventHook PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4672
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtUserSetWinEventHook ENDP
; ULONG __stdcall NtUserShowCaret( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserShowCaret PROC STDCALL arg_01:DWORD
mov eax , 4673
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserShowCaret ENDP
; ULONG __stdcall NtUserShowScrollBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserShowScrollBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4674
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserShowScrollBar ENDP
; ULONG __stdcall NtUserShowWindow( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserShowWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4675
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserShowWindow ENDP
; ULONG __stdcall NtUserShowWindowAsync( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserShowWindowAsync PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4676
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserShowWindowAsync ENDP
; ULONG __stdcall NtUserSoundSentry( );
_6_0_6001_sp1_windows_vista_NtUserSoundSentry PROC STDCALL
mov eax , 4677
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserSoundSentry ENDP
; ULONG __stdcall NtUserSwitchDesktop( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSwitchDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4678
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSwitchDesktop ENDP
; ULONG __stdcall NtUserSystemParametersInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSystemParametersInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4679
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSystemParametersInfo ENDP
; ULONG __stdcall NtUserTestForInteractiveUser( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserTestForInteractiveUser PROC STDCALL arg_01:DWORD
mov eax , 4680
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserTestForInteractiveUser ENDP
; ULONG __stdcall NtUserThunkedMenuInfo( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserThunkedMenuInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4681
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserThunkedMenuInfo ENDP
; ULONG __stdcall NtUserThunkedMenuItemInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserThunkedMenuItemInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4682
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserThunkedMenuItemInfo ENDP
; ULONG __stdcall NtUserToUnicodeEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtUserToUnicodeEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4683
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtUserToUnicodeEx ENDP
; ULONG __stdcall NtUserTrackMouseEvent( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserTrackMouseEvent PROC STDCALL arg_01:DWORD
mov eax , 4684
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserTrackMouseEvent ENDP
; ULONG __stdcall NtUserTrackPopupMenuEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserTrackPopupMenuEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4685
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserTrackPopupMenuEx ENDP
; ULONG __stdcall NtUserCalcMenuBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtUserCalcMenuBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4686
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtUserCalcMenuBar ENDP
; ULONG __stdcall NtUserPaintMenuBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtUserPaintMenuBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4687
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtUserPaintMenuBar ENDP
; ULONG __stdcall NtUserTranslateAccelerator( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserTranslateAccelerator PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4688
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserTranslateAccelerator ENDP
; ULONG __stdcall NtUserTranslateMessage( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserTranslateMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4689
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserTranslateMessage ENDP
; ULONG __stdcall NtUserUnhookWindowsHookEx( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserUnhookWindowsHookEx PROC STDCALL arg_01:DWORD
mov eax , 4690
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserUnhookWindowsHookEx ENDP
; ULONG __stdcall NtUserUnhookWinEvent( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserUnhookWinEvent PROC STDCALL arg_01:DWORD
mov eax , 4691
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserUnhookWinEvent ENDP
; ULONG __stdcall NtUserUnloadKeyboardLayout( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserUnloadKeyboardLayout PROC STDCALL arg_01:DWORD
mov eax , 4692
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserUnloadKeyboardLayout ENDP
; ULONG __stdcall NtUserUnlockWindowStation( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserUnlockWindowStation PROC STDCALL arg_01:DWORD
mov eax , 4693
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserUnlockWindowStation ENDP
; ULONG __stdcall NtUserUnregisterClass( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserUnregisterClass PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4694
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserUnregisterClass ENDP
; ULONG __stdcall NtUserUnregisterUserApiHook( );
_6_0_6001_sp1_windows_vista_NtUserUnregisterUserApiHook PROC STDCALL
mov eax , 4695
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserUnregisterUserApiHook ENDP
; ULONG __stdcall NtUserUnregisterHotKey( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserUnregisterHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4696
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserUnregisterHotKey ENDP
; ULONG __stdcall NtUserUpdateInputContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserUpdateInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4697
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserUpdateInputContext ENDP
; ULONG __stdcall NtUserUpdateInstance( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserUpdateInstance PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4698
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserUpdateInstance ENDP
; ULONG __stdcall NtUserUpdateLayeredWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_6_0_6001_sp1_windows_vista_NtUserUpdateLayeredWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4699
mov edx , 7FFE0300h
call dword ptr [edx]
ret 40
_6_0_6001_sp1_windows_vista_NtUserUpdateLayeredWindow ENDP
; ULONG __stdcall NtUserGetLayeredWindowAttributes( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserGetLayeredWindowAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4700
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserGetLayeredWindowAttributes ENDP
; ULONG __stdcall NtUserSetLayeredWindowAttributes( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserSetLayeredWindowAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4701
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserSetLayeredWindowAttributes ENDP
; ULONG __stdcall NtUserUpdatePerUserSystemParameters( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserUpdatePerUserSystemParameters PROC STDCALL arg_01:DWORD
mov eax , 4702
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserUpdatePerUserSystemParameters ENDP
; ULONG __stdcall NtUserUserHandleGrantAccess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserUserHandleGrantAccess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4703
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserUserHandleGrantAccess ENDP
; ULONG __stdcall NtUserValidateHandleSecure( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserValidateHandleSecure PROC STDCALL arg_01:DWORD
mov eax , 4704
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserValidateHandleSecure ENDP
; ULONG __stdcall NtUserValidateRect( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserValidateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4705
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserValidateRect ENDP
; ULONG __stdcall NtUserValidateTimerCallback( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserValidateTimerCallback PROC STDCALL arg_01:DWORD
mov eax , 4706
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserValidateTimerCallback ENDP
; ULONG __stdcall NtUserVkKeyScanEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserVkKeyScanEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4707
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserVkKeyScanEx ENDP
; ULONG __stdcall NtUserWaitForInputIdle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserWaitForInputIdle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4708
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserWaitForInputIdle ENDP
; ULONG __stdcall NtUserWaitForMsgAndEvent( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserWaitForMsgAndEvent PROC STDCALL arg_01:DWORD
mov eax , 4709
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserWaitForMsgAndEvent ENDP
; ULONG __stdcall NtUserWaitMessage( );
_6_0_6001_sp1_windows_vista_NtUserWaitMessage PROC STDCALL
mov eax , 4710
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserWaitMessage ENDP
; ULONG __stdcall DxgStubGenericThunk( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_DxgStubGenericThunk PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4711
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_DxgStubGenericThunk ENDP
; ULONG __stdcall NtUserWindowFromPhysicalPoint( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserWindowFromPhysicalPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4712
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserWindowFromPhysicalPoint ENDP
; ULONG __stdcall NtUserWindowFromPoint( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserWindowFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4713
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserWindowFromPoint ENDP
; ULONG __stdcall NtUserYieldTask( );
_6_0_6001_sp1_windows_vista_NtUserYieldTask PROC STDCALL
mov eax , 4714
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserYieldTask ENDP
; ULONG __stdcall NtUserRemoteConnect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserRemoteConnect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4715
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserRemoteConnect ENDP
; ULONG __stdcall NtUserRemoteRedrawRectangle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtUserRemoteRedrawRectangle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4716
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtUserRemoteRedrawRectangle ENDP
; ULONG __stdcall NtUserRemoteRedrawScreen( );
_6_0_6001_sp1_windows_vista_NtUserRemoteRedrawScreen PROC STDCALL
mov eax , 4717
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserRemoteRedrawScreen ENDP
; ULONG __stdcall NtUserRemoteStopScreenUpdates( );
_6_0_6001_sp1_windows_vista_NtUserRemoteStopScreenUpdates PROC STDCALL
mov eax , 4718
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserRemoteStopScreenUpdates ENDP
; ULONG __stdcall NtUserCtxDisplayIOCtl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserCtxDisplayIOCtl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4719
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserCtxDisplayIOCtl ENDP
; ULONG __stdcall NtUserRegisterSessionPort( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserRegisterSessionPort PROC STDCALL arg_01:DWORD
mov eax , 4720
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserRegisterSessionPort ENDP
; ULONG __stdcall NtUserUnregisterSessionPort( );
_6_0_6001_sp1_windows_vista_NtUserUnregisterSessionPort PROC STDCALL
mov eax , 4721
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserUnregisterSessionPort ENDP
; ULONG __stdcall NtUserUpdateWindowTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserUpdateWindowTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4722
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserUpdateWindowTransform ENDP
; ULONG __stdcall NtUserDwmStartRedirection( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserDwmStartRedirection PROC STDCALL arg_01:DWORD
mov eax , 4723
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserDwmStartRedirection ENDP
; ULONG __stdcall NtUserDwmStopRedirection( );
_6_0_6001_sp1_windows_vista_NtUserDwmStopRedirection PROC STDCALL
mov eax , 4724
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtUserDwmStopRedirection ENDP
; ULONG __stdcall NtUserDwmHintDxUpdate( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserDwmHintDxUpdate PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4725
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserDwmHintDxUpdate ENDP
; ULONG __stdcall NtUserDwmGetDxRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtUserDwmGetDxRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4726
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtUserDwmGetDxRgn ENDP
; ULONG __stdcall NtUserGetWindowMinimizeRect( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserGetWindowMinimizeRect PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4727
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserGetWindowMinimizeRect ENDP
; ULONG __stdcall NtGdiEngAssociateSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiEngAssociateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4728
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiEngAssociateSurface ENDP
; ULONG __stdcall NtGdiEngCreateBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiEngCreateBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4729
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiEngCreateBitmap ENDP
; ULONG __stdcall NtGdiEngCreateDeviceSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiEngCreateDeviceSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4730
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiEngCreateDeviceSurface ENDP
; ULONG __stdcall NtGdiEngCreateDeviceBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiEngCreateDeviceBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4731
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiEngCreateDeviceBitmap ENDP
; ULONG __stdcall NtGdiEngCreatePalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiEngCreatePalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4732
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiEngCreatePalette ENDP
; ULONG __stdcall NtGdiEngComputeGlyphSet( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiEngComputeGlyphSet PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4733
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiEngComputeGlyphSet ENDP
; ULONG __stdcall NtGdiEngCopyBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiEngCopyBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4734
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiEngCopyBits ENDP
; ULONG __stdcall NtGdiEngDeletePalette( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEngDeletePalette PROC STDCALL arg_01:DWORD
mov eax , 4735
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEngDeletePalette ENDP
; ULONG __stdcall NtGdiEngDeleteSurface( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEngDeleteSurface PROC STDCALL arg_01:DWORD
mov eax , 4736
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEngDeleteSurface ENDP
; ULONG __stdcall NtGdiEngEraseSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiEngEraseSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4737
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiEngEraseSurface ENDP
; ULONG __stdcall NtGdiEngUnlockSurface( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEngUnlockSurface PROC STDCALL arg_01:DWORD
mov eax , 4738
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEngUnlockSurface ENDP
; ULONG __stdcall NtGdiEngLockSurface( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEngLockSurface PROC STDCALL arg_01:DWORD
mov eax , 4739
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEngLockSurface ENDP
; ULONG __stdcall NtGdiEngBitBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiEngBitBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4740
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiEngBitBlt ENDP
; ULONG __stdcall NtGdiEngStretchBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiEngStretchBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4741
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiEngStretchBlt ENDP
; ULONG __stdcall NtGdiEngPlgBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_6_0_6001_sp1_windows_vista_NtGdiEngPlgBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4742
mov edx , 7FFE0300h
call dword ptr [edx]
ret 44
_6_0_6001_sp1_windows_vista_NtGdiEngPlgBlt ENDP
; ULONG __stdcall NtGdiEngMarkBandingSurface( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEngMarkBandingSurface PROC STDCALL arg_01:DWORD
mov eax , 4743
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEngMarkBandingSurface ENDP
; ULONG __stdcall NtGdiEngStrokePath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiEngStrokePath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4744
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiEngStrokePath ENDP
; ULONG __stdcall NtGdiEngFillPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiEngFillPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4745
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiEngFillPath ENDP
; ULONG __stdcall NtGdiEngStrokeAndFillPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_6_0_6001_sp1_windows_vista_NtGdiEngStrokeAndFillPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4746
mov edx , 7FFE0300h
call dword ptr [edx]
ret 40
_6_0_6001_sp1_windows_vista_NtGdiEngStrokeAndFillPath ENDP
; ULONG __stdcall NtGdiEngPaint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiEngPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4747
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiEngPaint ENDP
; ULONG __stdcall NtGdiEngLineTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_6_0_6001_sp1_windows_vista_NtGdiEngLineTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 4748
mov edx , 7FFE0300h
call dword ptr [edx]
ret 36
_6_0_6001_sp1_windows_vista_NtGdiEngLineTo ENDP
; ULONG __stdcall NtGdiEngAlphaBlend( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_6_0_6001_sp1_windows_vista_NtGdiEngAlphaBlend PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4749
mov edx , 7FFE0300h
call dword ptr [edx]
ret 28
_6_0_6001_sp1_windows_vista_NtGdiEngAlphaBlend ENDP
; ULONG __stdcall NtGdiEngGradientFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_6_0_6001_sp1_windows_vista_NtGdiEngGradientFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4750
mov edx , 7FFE0300h
call dword ptr [edx]
ret 40
_6_0_6001_sp1_windows_vista_NtGdiEngGradientFill ENDP
; ULONG __stdcall NtGdiEngTransparentBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_6_0_6001_sp1_windows_vista_NtGdiEngTransparentBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4751
mov edx , 7FFE0300h
call dword ptr [edx]
ret 32
_6_0_6001_sp1_windows_vista_NtGdiEngTransparentBlt ENDP
; ULONG __stdcall NtGdiEngTextOut( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_6_0_6001_sp1_windows_vista_NtGdiEngTextOut PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4752
mov edx , 7FFE0300h
call dword ptr [edx]
ret 40
_6_0_6001_sp1_windows_vista_NtGdiEngTextOut ENDP
; ULONG __stdcall NtGdiEngStretchBltROP( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 );
_6_0_6001_sp1_windows_vista_NtGdiEngStretchBltROP PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD
mov eax , 4753
mov edx , 7FFE0300h
call dword ptr [edx]
ret 52
_6_0_6001_sp1_windows_vista_NtGdiEngStretchBltROP ENDP
; ULONG __stdcall NtGdiXLATEOBJ_cGetPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiXLATEOBJ_cGetPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4754
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiXLATEOBJ_cGetPalette ENDP
; ULONG __stdcall NtGdiXLATEOBJ_iXlate( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiXLATEOBJ_iXlate PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4755
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiXLATEOBJ_iXlate ENDP
; ULONG __stdcall NtGdiXLATEOBJ_hGetColorTransform( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiXLATEOBJ_hGetColorTransform PROC STDCALL arg_01:DWORD
mov eax , 4756
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiXLATEOBJ_hGetColorTransform ENDP
; ULONG __stdcall NtGdiCLIPOBJ_bEnum( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiCLIPOBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4757
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiCLIPOBJ_bEnum ENDP
; ULONG __stdcall NtGdiCLIPOBJ_cEnumStart( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiCLIPOBJ_cEnumStart PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4758
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiCLIPOBJ_cEnumStart ENDP
; ULONG __stdcall NtGdiCLIPOBJ_ppoGetPath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiCLIPOBJ_ppoGetPath PROC STDCALL arg_01:DWORD
mov eax , 4759
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiCLIPOBJ_ppoGetPath ENDP
; ULONG __stdcall NtGdiEngDeletePath( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEngDeletePath PROC STDCALL arg_01:DWORD
mov eax , 4760
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEngDeletePath ENDP
; ULONG __stdcall NtGdiEngCreateClip( );
_6_0_6001_sp1_windows_vista_NtGdiEngCreateClip PROC STDCALL
mov eax , 4761
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtGdiEngCreateClip ENDP
; ULONG __stdcall NtGdiEngDeleteClip( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEngDeleteClip PROC STDCALL arg_01:DWORD
mov eax , 4762
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEngDeleteClip ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_ulGetBrushColor( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_ulGetBrushColor PROC STDCALL arg_01:DWORD
mov eax , 4763
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_ulGetBrushColor ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_pvAllocRbrush( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_pvAllocRbrush PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4764
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_pvAllocRbrush ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_pvGetRbrush( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_pvGetRbrush PROC STDCALL arg_01:DWORD
mov eax , 4765
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_pvGetRbrush ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_hGetColorTransform( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_hGetColorTransform PROC STDCALL arg_01:DWORD
mov eax , 4766
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_hGetColorTransform ENDP
; ULONG __stdcall NtGdiXFORMOBJ_bApplyXform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiXFORMOBJ_bApplyXform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4767
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiXFORMOBJ_bApplyXform ENDP
; ULONG __stdcall NtGdiXFORMOBJ_iGetXform( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiXFORMOBJ_iGetXform PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4768
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiXFORMOBJ_iGetXform ENDP
; ULONG __stdcall NtGdiFONTOBJ_vGetInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_vGetInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4769
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_vGetInfo ENDP
; ULONG __stdcall NtGdiFONTOBJ_pxoGetXform( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pxoGetXform PROC STDCALL arg_01:DWORD
mov eax , 4770
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pxoGetXform ENDP
; ULONG __stdcall NtGdiFONTOBJ_cGetGlyphs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_cGetGlyphs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4771
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_cGetGlyphs ENDP
; ULONG __stdcall NtGdiFONTOBJ_pifi( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pifi PROC STDCALL arg_01:DWORD
mov eax , 4772
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pifi ENDP
; ULONG __stdcall NtGdiFONTOBJ_pfdg( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pfdg PROC STDCALL arg_01:DWORD
mov eax , 4773
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pfdg ENDP
; ULONG __stdcall NtGdiFONTOBJ_pQueryGlyphAttrs( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pQueryGlyphAttrs PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4774
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pQueryGlyphAttrs ENDP
; ULONG __stdcall NtGdiFONTOBJ_pvTrueTypeFontFile( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pvTrueTypeFontFile PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4775
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_pvTrueTypeFontFile ENDP
; ULONG __stdcall NtGdiFONTOBJ_cGetAllGlyphHandles( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_cGetAllGlyphHandles PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4776
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiFONTOBJ_cGetAllGlyphHandles ENDP
; ULONG __stdcall NtGdiSTROBJ_bEnum( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4777
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_bEnum ENDP
; ULONG __stdcall NtGdiSTROBJ_bEnumPositionsOnly( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_bEnumPositionsOnly PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4778
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_bEnumPositionsOnly ENDP
; ULONG __stdcall NtGdiSTROBJ_bGetAdvanceWidths( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_bGetAdvanceWidths PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4779
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_bGetAdvanceWidths ENDP
; ULONG __stdcall NtGdiSTROBJ_vEnumStart( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_vEnumStart PROC STDCALL arg_01:DWORD
mov eax , 4780
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_vEnumStart ENDP
; ULONG __stdcall NtGdiSTROBJ_dwGetCodePage( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_dwGetCodePage PROC STDCALL arg_01:DWORD
mov eax , 4781
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiSTROBJ_dwGetCodePage ENDP
; ULONG __stdcall NtGdiPATHOBJ_vGetBounds( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_vGetBounds PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4782
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_vGetBounds ENDP
; ULONG __stdcall NtGdiPATHOBJ_bEnum( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4783
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_bEnum ENDP
; ULONG __stdcall NtGdiPATHOBJ_vEnumStart( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_vEnumStart PROC STDCALL arg_01:DWORD
mov eax , 4784
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_vEnumStart ENDP
; ULONG __stdcall NtGdiPATHOBJ_vEnumStartClipLines( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_vEnumStartClipLines PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4785
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_vEnumStartClipLines ENDP
; ULONG __stdcall NtGdiPATHOBJ_bEnumClipLines( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_bEnumClipLines PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4786
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiPATHOBJ_bEnumClipLines ENDP
; ULONG __stdcall NtGdiGetDhpdev( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiGetDhpdev PROC STDCALL arg_01:DWORD
mov eax , 4787
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiGetDhpdev ENDP
; ULONG __stdcall NtGdiEngCheckAbort( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiEngCheckAbort PROC STDCALL arg_01:DWORD
mov eax , 4788
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiEngCheckAbort ENDP
; ULONG __stdcall NtGdiHT_Get8BPPFormatPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiHT_Get8BPPFormatPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4789
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiHT_Get8BPPFormatPalette ENDP
; ULONG __stdcall NtGdiHT_Get8BPPMaskPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_6_0_6001_sp1_windows_vista_NtGdiHT_Get8BPPMaskPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4790
mov edx , 7FFE0300h
call dword ptr [edx]
ret 24
_6_0_6001_sp1_windows_vista_NtGdiHT_Get8BPPMaskPalette ENDP
; ULONG __stdcall NtGdiUpdateTransform( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiUpdateTransform PROC STDCALL arg_01:DWORD
mov eax , 4791
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiUpdateTransform ENDP
; ULONG __stdcall NtGdiSetPUMPDOBJ( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiSetPUMPDOBJ PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4792
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiSetPUMPDOBJ ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_DeleteRbrush( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_DeleteRbrush PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4793
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiBRUSHOBJ_DeleteRbrush ENDP
; ULONG __stdcall NtGdiUnmapMemFont( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiUnmapMemFont PROC STDCALL arg_01:DWORD
mov eax , 4794
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiUnmapMemFont ENDP
; ULONG __stdcall NtGdiDrawStream( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDrawStream PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4795
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDrawStream ENDP
; ULONG __stdcall NtGdiDwmGetDirtyRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiDwmGetDirtyRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4796
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiDwmGetDirtyRgn ENDP
; ULONG __stdcall NtGdiDwmGetSurfaceData( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDwmGetSurfaceData PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4797
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDwmGetSurfaceData ENDP
; ULONG __stdcall NtGdiDdDDICreateAllocation( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateAllocation PROC STDCALL arg_01:DWORD
mov eax , 4798
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateAllocation ENDP
; ULONG __stdcall NtGdiDdDDIQueryResourceInfo( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIQueryResourceInfo PROC STDCALL arg_01:DWORD
mov eax , 4799
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIQueryResourceInfo ENDP
; ULONG __stdcall NtGdiDdDDIOpenResource( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIOpenResource PROC STDCALL arg_01:DWORD
mov eax , 4800
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIOpenResource ENDP
; ULONG __stdcall NtGdiDdDDIDestroyAllocation( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyAllocation PROC STDCALL arg_01:DWORD
mov eax , 4801
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyAllocation ENDP
; ULONG __stdcall NtGdiDdDDISetAllocationPriority( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetAllocationPriority PROC STDCALL arg_01:DWORD
mov eax , 4802
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetAllocationPriority ENDP
; ULONG __stdcall NtGdiDdDDIQueryAllocationResidency( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIQueryAllocationResidency PROC STDCALL arg_01:DWORD
mov eax , 4803
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIQueryAllocationResidency ENDP
; ULONG __stdcall NtGdiDdDDICreateDevice( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateDevice PROC STDCALL arg_01:DWORD
mov eax , 4804
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateDevice ENDP
; ULONG __stdcall NtGdiDdDDIDestroyDevice( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyDevice PROC STDCALL arg_01:DWORD
mov eax , 4805
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyDevice ENDP
; ULONG __stdcall NtGdiDdDDICreateContext( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateContext PROC STDCALL arg_01:DWORD
mov eax , 4806
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateContext ENDP
; ULONG __stdcall NtGdiDdDDIDestroyContext( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyContext PROC STDCALL arg_01:DWORD
mov eax , 4807
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyContext ENDP
; ULONG __stdcall NtGdiDdDDICreateSynchronizationObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateSynchronizationObject PROC STDCALL arg_01:DWORD
mov eax , 4808
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateSynchronizationObject ENDP
; ULONG __stdcall NtGdiDdDDIDestroySynchronizationObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroySynchronizationObject PROC STDCALL arg_01:DWORD
mov eax , 4809
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroySynchronizationObject ENDP
; ULONG __stdcall NtGdiDdDDIWaitForSynchronizationObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIWaitForSynchronizationObject PROC STDCALL arg_01:DWORD
mov eax , 4810
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIWaitForSynchronizationObject ENDP
; ULONG __stdcall NtGdiDdDDISignalSynchronizationObject( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISignalSynchronizationObject PROC STDCALL arg_01:DWORD
mov eax , 4811
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISignalSynchronizationObject ENDP
; ULONG __stdcall NtGdiDdDDIGetRuntimeData( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetRuntimeData PROC STDCALL arg_01:DWORD
mov eax , 4812
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetRuntimeData ENDP
; ULONG __stdcall NtGdiDdDDIQueryAdapterInfo( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIQueryAdapterInfo PROC STDCALL arg_01:DWORD
mov eax , 4813
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIQueryAdapterInfo ENDP
; ULONG __stdcall NtGdiDdDDILock( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDILock PROC STDCALL arg_01:DWORD
mov eax , 4814
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDILock ENDP
; ULONG __stdcall NtGdiDdDDIUnlock( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIUnlock PROC STDCALL arg_01:DWORD
mov eax , 4815
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIUnlock ENDP
; ULONG __stdcall NtGdiDdDDIGetDisplayModeList( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetDisplayModeList PROC STDCALL arg_01:DWORD
mov eax , 4816
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetDisplayModeList ENDP
; ULONG __stdcall NtGdiDdDDISetDisplayMode( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetDisplayMode PROC STDCALL arg_01:DWORD
mov eax , 4817
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetDisplayMode ENDP
; ULONG __stdcall NtGdiDdDDIGetMultisampleMethodList( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetMultisampleMethodList PROC STDCALL arg_01:DWORD
mov eax , 4818
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetMultisampleMethodList ENDP
; ULONG __stdcall NtGdiDdDDIPresent( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIPresent PROC STDCALL arg_01:DWORD
mov eax , 4819
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIPresent ENDP
; ULONG __stdcall NtGdiDdDDIRender( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIRender PROC STDCALL arg_01:DWORD
mov eax , 4820
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIRender ENDP
; ULONG __stdcall NtGdiDdDDIOpenAdapterFromDeviceName( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIOpenAdapterFromDeviceName PROC STDCALL arg_01:DWORD
mov eax , 4821
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIOpenAdapterFromDeviceName ENDP
; ULONG __stdcall NtGdiDdDDIOpenAdapterFromHdc( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIOpenAdapterFromHdc PROC STDCALL arg_01:DWORD
mov eax , 4822
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIOpenAdapterFromHdc ENDP
; ULONG __stdcall NtGdiDdDDICloseAdapter( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICloseAdapter PROC STDCALL arg_01:DWORD
mov eax , 4823
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICloseAdapter ENDP
; ULONG __stdcall NtGdiDdDDIGetSharedPrimaryHandle( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetSharedPrimaryHandle PROC STDCALL arg_01:DWORD
mov eax , 4824
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetSharedPrimaryHandle ENDP
; ULONG __stdcall NtGdiDdDDIEscape( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIEscape PROC STDCALL arg_01:DWORD
mov eax , 4825
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIEscape ENDP
; ULONG __stdcall NtGdiDdDDIQueryStatistics( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIQueryStatistics PROC STDCALL arg_01:DWORD
mov eax , 4826
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIQueryStatistics ENDP
; ULONG __stdcall NtGdiDdDDISetVidPnSourceOwner( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetVidPnSourceOwner PROC STDCALL arg_01:DWORD
mov eax , 4827
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetVidPnSourceOwner ENDP
; ULONG __stdcall NtGdiDdDDIGetPresentHistory( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetPresentHistory PROC STDCALL arg_01:DWORD
mov eax , 4828
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetPresentHistory ENDP
; ULONG __stdcall NtGdiDdDDICreateOverlay( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateOverlay PROC STDCALL arg_01:DWORD
mov eax , 4829
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateOverlay ENDP
; ULONG __stdcall NtGdiDdDDIUpdateOverlay( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIUpdateOverlay PROC STDCALL arg_01:DWORD
mov eax , 4830
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIUpdateOverlay ENDP
; ULONG __stdcall NtGdiDdDDIFlipOverlay( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIFlipOverlay PROC STDCALL arg_01:DWORD
mov eax , 4831
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIFlipOverlay ENDP
; ULONG __stdcall NtGdiDdDDIDestroyOverlay( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyOverlay PROC STDCALL arg_01:DWORD
mov eax , 4832
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyOverlay ENDP
; ULONG __stdcall NtGdiDdDDIWaitForVerticalBlankEvent( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIWaitForVerticalBlankEvent PROC STDCALL arg_01:DWORD
mov eax , 4833
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIWaitForVerticalBlankEvent ENDP
; ULONG __stdcall NtGdiDdDDISetGammaRamp( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetGammaRamp PROC STDCALL arg_01:DWORD
mov eax , 4834
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetGammaRamp ENDP
; ULONG __stdcall NtGdiDdDDIGetDeviceState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetDeviceState PROC STDCALL arg_01:DWORD
mov eax , 4835
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetDeviceState ENDP
; ULONG __stdcall NtGdiDdDDICreateDCFromMemory( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateDCFromMemory PROC STDCALL arg_01:DWORD
mov eax , 4836
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICreateDCFromMemory ENDP
; ULONG __stdcall NtGdiDdDDIDestroyDCFromMemory( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyDCFromMemory PROC STDCALL arg_01:DWORD
mov eax , 4837
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIDestroyDCFromMemory ENDP
; ULONG __stdcall NtGdiDdDDISetContextSchedulingPriority( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetContextSchedulingPriority PROC STDCALL arg_01:DWORD
mov eax , 4838
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetContextSchedulingPriority ENDP
; ULONG __stdcall NtGdiDdDDIGetContextSchedulingPriority( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetContextSchedulingPriority PROC STDCALL arg_01:DWORD
mov eax , 4839
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetContextSchedulingPriority ENDP
; ULONG __stdcall NtGdiDdDDISetProcessSchedulingPriorityClass( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetProcessSchedulingPriorityClass PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4840
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetProcessSchedulingPriorityClass ENDP
; ULONG __stdcall NtGdiDdDDIGetProcessSchedulingPriorityClass( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetProcessSchedulingPriorityClass PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4841
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetProcessSchedulingPriorityClass ENDP
; ULONG __stdcall NtGdiDdDDIReleaseProcessVidPnSourceOwners( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIReleaseProcessVidPnSourceOwners PROC STDCALL arg_01:DWORD
mov eax , 4842
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIReleaseProcessVidPnSourceOwners ENDP
; ULONG __stdcall NtGdiDdDDIGetScanLine( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetScanLine PROC STDCALL arg_01:DWORD
mov eax , 4843
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIGetScanLine ENDP
; ULONG __stdcall NtGdiDdDDISetQueuedLimit( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetQueuedLimit PROC STDCALL arg_01:DWORD
mov eax , 4844
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetQueuedLimit ENDP
; ULONG __stdcall NtGdiDdDDIPollDisplayChildren( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIPollDisplayChildren PROC STDCALL arg_01:DWORD
mov eax , 4845
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIPollDisplayChildren ENDP
; ULONG __stdcall NtGdiDdDDIInvalidateActiveVidPn( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIInvalidateActiveVidPn PROC STDCALL arg_01:DWORD
mov eax , 4846
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIInvalidateActiveVidPn ENDP
; ULONG __stdcall NtGdiDdDDICheckOcclusion( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICheckOcclusion PROC STDCALL arg_01:DWORD
mov eax , 4847
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICheckOcclusion ENDP
; ULONG __stdcall NtGdiDdDDIWaitForIdle( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDIWaitForIdle PROC STDCALL arg_01:DWORD
mov eax , 4848
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDIWaitForIdle ENDP
; ULONG __stdcall NtGdiDdDDICheckMonitorPowerState( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICheckMonitorPowerState PROC STDCALL arg_01:DWORD
mov eax , 4849
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDICheckMonitorPowerState ENDP
; ULONG __stdcall NtGdiDdDDICheckExclusiveOwnership( );
_6_0_6001_sp1_windows_vista_NtGdiDdDDICheckExclusiveOwnership PROC STDCALL
mov eax , 4850
mov edx , 7FFE0300h
call dword ptr [edx]
ret
_6_0_6001_sp1_windows_vista_NtGdiDdDDICheckExclusiveOwnership ENDP
; ULONG __stdcall NtGdiDdDDISetDisplayPrivateDriverFormat( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetDisplayPrivateDriverFormat PROC STDCALL arg_01:DWORD
mov eax , 4851
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISetDisplayPrivateDriverFormat ENDP
; ULONG __stdcall NtGdiDdDDISharedPrimaryLockNotification( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISharedPrimaryLockNotification PROC STDCALL arg_01:DWORD
mov eax , 4852
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISharedPrimaryLockNotification ENDP
; ULONG __stdcall NtGdiDdDDISharedPrimaryUnLockNotification( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDdDDISharedPrimaryUnLockNotification PROC STDCALL arg_01:DWORD
mov eax , 4853
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDdDDISharedPrimaryUnLockNotification ENDP
; ULONG __stdcall DxgStubReenableDirectDrawObject( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_DxgStubReenableDirectDrawObject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4854
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_DxgStubReenableDirectDrawObject ENDP
; ULONG __stdcall DefaultHTCallBack( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_DefaultHTCallBack PROC STDCALL arg_01:DWORD
mov eax , 4855
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_DefaultHTCallBack ENDP
; ULONG __stdcall NtGdiGetNumberOfPhysicalMonitors( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiGetNumberOfPhysicalMonitors PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4856
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiGetNumberOfPhysicalMonitors ENDP
; ULONG __stdcall NtGdiGetPhysicalMonitors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_6_0_6001_sp1_windows_vista_NtGdiGetPhysicalMonitors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4857
mov edx , 7FFE0300h
call dword ptr [edx]
ret 16
_6_0_6001_sp1_windows_vista_NtGdiGetPhysicalMonitors ENDP
; ULONG __stdcall NtGdiGetPhysicalMonitorDescription( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiGetPhysicalMonitorDescription PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4858
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiGetPhysicalMonitorDescription ENDP
; ULONG __stdcall DestroyPhysicalMonitor( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_DestroyPhysicalMonitor PROC STDCALL arg_01:DWORD
mov eax , 4859
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_DestroyPhysicalMonitor ENDP
; ULONG __stdcall NtGdiDDCCIGetVCPFeature( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_6_0_6001_sp1_windows_vista_NtGdiDDCCIGetVCPFeature PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4860
mov edx , 7FFE0300h
call dword ptr [edx]
ret 20
_6_0_6001_sp1_windows_vista_NtGdiDDCCIGetVCPFeature ENDP
; ULONG __stdcall NtGdiDDCCISetVCPFeature( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDDCCISetVCPFeature PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4861
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDDCCISetVCPFeature ENDP
; ULONG __stdcall NtGdiDDCCISaveCurrentSettings( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtGdiDDCCISaveCurrentSettings PROC STDCALL arg_01:DWORD
mov eax , 4862
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtGdiDDCCISaveCurrentSettings ENDP
; ULONG __stdcall NtGdiDDCCIGetCapabilitiesStringLength( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDDCCIGetCapabilitiesStringLength PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4863
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDDCCIGetCapabilitiesStringLength ENDP
; ULONG __stdcall NtGdiDDCCIGetCapabilitiesString( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_6_0_6001_sp1_windows_vista_NtGdiDDCCIGetCapabilitiesString PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4864
mov edx , 7FFE0300h
call dword ptr [edx]
ret 12
_6_0_6001_sp1_windows_vista_NtGdiDDCCIGetCapabilitiesString ENDP
; ULONG __stdcall NtGdiDDCCIGetTimingReport( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtGdiDDCCIGetTimingReport PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4865
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtGdiDDCCIGetTimingReport ENDP
; ULONG __stdcall NtUserSetMirrorRendering( ULONG arg_01 , ULONG arg_02 );
_6_0_6001_sp1_windows_vista_NtUserSetMirrorRendering PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4866
mov edx , 7FFE0300h
call dword ptr [edx]
ret 8
_6_0_6001_sp1_windows_vista_NtUserSetMirrorRendering ENDP
; ULONG __stdcall NtUserShowSystemCursor( ULONG arg_01 );
_6_0_6001_sp1_windows_vista_NtUserShowSystemCursor PROC STDCALL arg_01:DWORD
mov eax , 4867
mov edx , 7FFE0300h
call dword ptr [edx]
ret 4
_6_0_6001_sp1_windows_vista_NtUserShowSystemCursor ENDP
|
.model small
.stack
.data
str1 db "amrita$"
str2 db "amrita$"
strlen1 db 0h
strlen2 db 0h
equal db 01h
.code
.startup
;Finding the length of the first string
mov si, offset str1
check1:cmp [si], '$'
jz len2
inc strlen1
inc si
jmp check1
;Finding the length of the second string
len2:mov si, offset str2
check2:cmp [si], '$'
jz compare
inc strlen2
inc si
jmp check2
;Comparing the Strings
compare:mov dl,strlen2
mov cl,strlen1
inc cl
cmp strlen1,dl
jnz exit1
mov dx,ds
mov es,dx
mov si, offset str1
mov di, offset str2
loop1:cmpsb
jnz exit1
loop loop1
exit1:cmp cl,0h
jz exit
mov equal,0h
exit:
.exit
end |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2021 The INFAQCOIN developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/infaqcoin-config.h"
#endif
#include "net.h"
#include "addrman.h"
#include "chainparams.h"
#include "clientversion.h"
#include "crypto/common.h"
#include "crypto/sha256.h"
#include "guiinterface.h"
#include "hash.h"
#include "netbase.h"
#include "netmessagemaker.h"
#include "primitives/transaction.h"
#include "scheduler.h"
#include "validation.h"
#ifdef WIN32
#include <string.h>
#else
#include <fcntl.h>
#endif
#ifdef USE_UPNP
#include <miniupnpc/miniupnpc.h>
#include <miniupnpc/upnpcommands.h>
#include <miniupnpc/upnperrors.h>
#endif
#include <math.h>
// Dump addresses to peers.dat and banlist.dat every 15 minutes (900s)
#define DUMP_ADDRESSES_INTERVAL 900
// We add a random period time (0 to 1 seconds) to feeler connections to prevent synchronization.
#define FEELER_SLEEP_WINDOW 1
#if !defined(HAVE_MSG_NOSIGNAL) && !defined(MSG_NOSIGNAL)
#define MSG_NOSIGNAL 0
#endif
// Fix for ancient MinGW versions, that don't have defined these in ws2tcpip.h.
// Todo: Can be removed when our pull-tester is upgraded to a modern MinGW version.
#ifdef WIN32
#ifndef PROTECTION_LEVEL_UNRESTRICTED
#define PROTECTION_LEVEL_UNRESTRICTED 10
#endif
#ifndef IPV6_PROTECTION_LEVEL
#define IPV6_PROTECTION_LEVEL 23
#endif
#endif
const static std::string NET_MESSAGE_COMMAND_OTHER = "*other*";
static const uint64_t RANDOMIZER_ID_NETGROUP = 0x6c0edd8036ef4036ULL; // SHA256("netgroup")[0:8]
static const uint64_t RANDOMIZER_ID_LOCALHOSTNONCE = 0xd93e69e2bbfa5735ULL; // SHA256("localhostnonce")[0:8]
//
// Global state variables
//
bool fDiscover = true;
bool fListen = true;
RecursiveMutex cs_mapLocalHost;
std::map<CNetAddr, LocalServiceInfo> mapLocalHost;
static bool vfLimited[NET_MAX] = {};
static CNode* pnodeLocalHost = NULL;
std::string strSubVersion;
limitedmap<CInv, int64_t> mapAlreadyAskedFor(MAX_INV_SZ);
// Signals for message handling
static CNodeSignals g_signals;
CNodeSignals& GetNodeSignals() { return g_signals; }
void CConnman::AddOneShot(const std::string& strDest)
{
LOCK(cs_vOneShots);
vOneShots.push_back(strDest);
}
unsigned short GetListenPort()
{
return (unsigned short)(gArgs.GetArg("-port", Params().GetDefaultPort()));
}
// find 'best' local address for a particular peer
bool GetLocal(CService& addr, const CNetAddr* paddrPeer)
{
if (!fListen)
return false;
int nBestScore = -1;
int nBestReachability = -1;
{
LOCK(cs_mapLocalHost);
for (std::map<CNetAddr, LocalServiceInfo>::iterator it = mapLocalHost.begin(); it != mapLocalHost.end(); it++) {
int nScore = (*it).second.nScore;
int nReachability = (*it).first.GetReachabilityFrom(paddrPeer);
if (nReachability > nBestReachability || (nReachability == nBestReachability && nScore > nBestScore)) {
addr = CService((*it).first, (*it).second.nPort);
nBestReachability = nReachability;
nBestScore = nScore;
}
}
}
return nBestScore >= 0;
}
//! Convert the pnSeeds6 array into usable address objects.
static std::vector<CAddress> convertSeed6(const std::vector<SeedSpec6>& vSeedsIn)
{
// It'll only connect to one or two seed nodes because once it connects,
// it'll get a pile of addresses with newer timestamps.
// Seed nodes are given a random 'last seen time' of between one and two
// weeks ago.
const int64_t nOneWeek = 7 * 24 * 60 * 60;
std::vector<CAddress> vSeedsOut;
vSeedsOut.reserve(vSeedsIn.size());
for (std::vector<SeedSpec6>::const_iterator i(vSeedsIn.begin()); i != vSeedsIn.end(); ++i) {
struct in6_addr ip;
memcpy(&ip, i->addr, sizeof(ip));
CAddress addr(CService(ip, i->port), NODE_NETWORK);
addr.nTime = GetTime() - GetRand(nOneWeek) - nOneWeek;
vSeedsOut.push_back(addr);
}
return vSeedsOut;
}
// get best local address for a particular peer as a CAddress
// Otherwise, return the unroutable 0.0.0.0 but filled in with
// the normal parameters, since the IP may be changed to a useful
// one by discovery.
CAddress GetLocalAddress(const CNetAddr* paddrPeer, ServiceFlags nLocalServices)
{
CAddress ret(CService(CNetAddr(), GetListenPort()), NODE_NONE);
CService addr;
if (GetLocal(addr, paddrPeer)) {
ret = CAddress(addr, nLocalServices);
}
ret.nTime = GetAdjustedTime();
return ret;
}
int GetnScore(const CService& addr)
{
LOCK(cs_mapLocalHost);
if (mapLocalHost.count(addr) == LOCAL_NONE)
return 0;
return mapLocalHost[addr].nScore;
}
// Is our peer's addrLocal potentially useful as an external IP source?
bool IsPeerAddrLocalGood(CNode* pnode)
{
CService addrLocal = pnode->GetAddrLocal();
return fDiscover && pnode->addr.IsRoutable() && addrLocal.IsRoutable() &&
!IsLimited(addrLocal.GetNetwork());
}
// pushes our own address to a peer
void AdvertiseLocal(CNode* pnode)
{
if (fListen && pnode->fSuccessfullyConnected) {
CAddress addrLocal = GetLocalAddress(&pnode->addr, pnode->GetLocalServices());
// If discovery is enabled, sometimes give our peer the address it
// tells us that it sees us as in case it has a better idea of our
// address than we do.
if (IsPeerAddrLocalGood(pnode) && (!addrLocal.IsRoutable() ||
GetRand((GetnScore(addrLocal) > LOCAL_MANUAL) ? 8 : 2) == 0)) {
addrLocal.SetIP(pnode->GetAddrLocal());
}
if (addrLocal.IsRoutable()) {
LogPrintf("%s: advertising address %s\n", __func__, addrLocal.ToString());
FastRandomContext insecure_rand;
pnode->PushAddress(addrLocal, insecure_rand);
}
}
}
// learn a new local address
bool AddLocal(const CService& addr, int nScore)
{
if (!addr.IsRoutable())
return false;
if (!fDiscover && nScore < LOCAL_MANUAL)
return false;
if (IsLimited(addr))
return false;
LogPrintf("AddLocal(%s,%i)\n", addr.ToString(), nScore);
{
LOCK(cs_mapLocalHost);
bool fAlready = mapLocalHost.count(addr) > 0;
LocalServiceInfo& info = mapLocalHost[addr];
if (!fAlready || nScore >= info.nScore) {
info.nScore = nScore + (fAlready ? 1 : 0);
info.nPort = addr.GetPort();
}
}
return true;
}
bool AddLocal(const CNetAddr& addr, int nScore)
{
return AddLocal(CService(addr, GetListenPort()), nScore);
}
bool RemoveLocal(const CService& addr)
{
LOCK(cs_mapLocalHost);
LogPrintf("RemoveLocal(%s)\n", addr.ToString());
mapLocalHost.erase(addr);
return true;
}
/** Make a particular network entirely off-limits (no automatic connects to it) */
void SetLimited(enum Network net, bool fLimited)
{
if (net == NET_UNROUTABLE)
return;
LOCK(cs_mapLocalHost);
vfLimited[net] = fLimited;
}
bool IsLimited(enum Network net)
{
LOCK(cs_mapLocalHost);
return vfLimited[net];
}
bool IsLimited(const CNetAddr& addr)
{
return IsLimited(addr.GetNetwork());
}
/** vote for a local address */
bool SeenLocal(const CService& addr)
{
{
LOCK(cs_mapLocalHost);
if (mapLocalHost.count(addr) == 0)
return false;
mapLocalHost[addr].nScore++;
}
return true;
}
/** check whether a given address is potentially local */
bool IsLocal(const CService& addr)
{
LOCK(cs_mapLocalHost);
return mapLocalHost.count(addr) > 0;
}
/** check whether a given network is one we can probably connect to */
bool IsReachable(enum Network net)
{
LOCK(cs_mapLocalHost);
return !vfLimited[net];
}
/** check whether a given address is in a network we can probably connect to */
bool IsReachable(const CNetAddr& addr)
{
enum Network net = addr.GetNetwork();
return IsReachable(net);
}
CNode* CConnman::FindNode(const CNetAddr& ip)
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodes)
if (static_cast<CNetAddr>(pnode->addr) == ip)
return (pnode);
return NULL;
}
CNode* CConnman::FindNode(const CSubNet& subNet)
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodes)
if (subNet.Match(static_cast<CNetAddr>(pnode->addr)))
return (pnode);
return NULL;
}
CNode* CConnman::FindNode(const std::string& addrName)
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodes) {
if (pnode->GetAddrName() == addrName) {
return (pnode);
}
}
return NULL;
}
CNode* CConnman::FindNode(const CService& addr)
{
LOCK(cs_vNodes);
const bool isRegTestNet = Params().IsRegTestNet();
for (CNode* pnode : vNodes) {
if (isRegTestNet) {
//if using regtest, just check the IP
if (static_cast<CNetAddr>(pnode->addr) == static_cast<CNetAddr>(addr))
return (pnode);
} else {
if (pnode->addr == addr)
return (pnode);
}
}
return NULL;
}
bool CConnman::CheckIncomingNonce(uint64_t nonce)
{
LOCK(cs_vNodes);
for(CNode* pnode : vNodes) {
if (!pnode->fSuccessfullyConnected && !pnode->fInbound && pnode->GetLocalNonce() == nonce)
return false;
}
return true;
}
CNode* CConnman::ConnectNode(CAddress addrConnect, const char* pszDest, bool fCountFailure)
{
if (pszDest == NULL) {
if (IsLocal(addrConnect)) {
LogPrintf("%s: cannot connect to local node\n", __func__);
return nullptr;
}
// Look for an existing connection
CNode* pnode = FindNode(static_cast<CService>(addrConnect));
if (pnode) {
LogPrintf("Failed to open new connection, already connected\n");
return nullptr;
}
}
/// debug print
LogPrint(BCLog::NET, "trying connection %s lastseen=%.1fhrs\n",
pszDest ? pszDest : addrConnect.ToString(),
pszDest ? 0.0 : (double)(GetAdjustedTime() - addrConnect.nTime) / 3600.0);
// Connect
SOCKET hSocket = INVALID_SOCKET;
bool proxyConnectionFailed = false;
if (pszDest ? ConnectSocketByName(addrConnect, hSocket, pszDest, Params().GetDefaultPort(), nConnectTimeout, &proxyConnectionFailed) :
ConnectSocket(addrConnect, hSocket, nConnectTimeout, &proxyConnectionFailed)) {
if (!IsSelectableSocket(hSocket)) {
LogPrintf("Cannot create connection: non-selectable socket created (fd >= FD_SETSIZE ?)\n");
CloseSocket(hSocket);
return NULL;
}
addrman.Attempt(addrConnect, fCountFailure);
// Add node
NodeId id = GetNewNodeId();
uint64_t nonce = GetDeterministicRandomizer(RANDOMIZER_ID_LOCALHOSTNONCE).Write(id).Finalize();
CNode* pnode = new CNode(id, nLocalServices, GetBestHeight(), hSocket, addrConnect, CalculateKeyedNetGroup(addrConnect), nonce, pszDest ? pszDest : "", false);
pnode->nServicesExpected = ServiceFlags(addrConnect.nServices & nRelevantServices);
pnode->AddRef();
return pnode;
} else if (!proxyConnectionFailed) {
// If connecting to the node failed, and failure is not caused by a problem connecting to
// the proxy, mark this as an attempt.
addrman.Attempt(addrConnect, fCountFailure);
}
return NULL;
}
void CConnman::DumpBanlist()
{
SweepBanned(); // clean unused entries (if bantime has expired)
if (!BannedSetIsDirty())
return;
int64_t nStart = GetTimeMillis();
CBanDB bandb;
banmap_t banmap;
SetBannedSetDirty(false);
GetBanned(banmap);
if (!bandb.Write(banmap))
SetBannedSetDirty(true);
LogPrint(BCLog::NET, "Flushed %d banned node ips/subnets to banlist.dat %dms\n",
banmap.size(), GetTimeMillis() - nStart);
}
void CNode::CloseSocketDisconnect()
{
fDisconnect = true;
LOCK(cs_hSocket);
if (hSocket != INVALID_SOCKET) {
LogPrint(BCLog::NET, "disconnecting peer=%d\n", id);
CloseSocket(hSocket);
}
}
bool CNode::DisconnectOldProtocol(int nVersionIn, int nVersionRequired, std::string strLastCommand)
{
fDisconnect = false;
if (nVersionIn < nVersionRequired) {
LogPrintf("%s : peer=%d using obsolete version %i; disconnecting\n", __func__, id, nVersionIn);
g_connman->PushMessage(this, CNetMsgMaker(INIT_PROTO_VERSION).Make(NetMsgType::REJECT, strLastCommand, REJECT_OBSOLETE, strprintf("Version must be %d or greater", ActiveProtocol())));
fDisconnect = true;
}
return fDisconnect;
}
void CConnman::ClearBanned()
{
{
LOCK(cs_setBanned);
setBanned.clear();
setBannedIsDirty = true;
}
DumpBanlist(); // store banlist to Disk
if(clientInterface)
clientInterface->BannedListChanged();
}
bool CConnman::IsBanned(CNetAddr ip)
{
bool fResult = false;
{
LOCK(cs_setBanned);
for (banmap_t::iterator it = setBanned.begin(); it != setBanned.end(); it++)
{
CSubNet subNet = (*it).first;
CBanEntry banEntry = (*it).second;
if(subNet.Match(ip) && GetTime() < banEntry.nBanUntil)
fResult = true;
}
}
return fResult;
}
bool CConnman::IsBanned(CSubNet subnet)
{
bool fResult = false;
{
LOCK(cs_setBanned);
banmap_t::iterator i = setBanned.find(subnet);
if (i != setBanned.end()) {
CBanEntry banEntry = (*i).second;
if (GetTime() < banEntry.nBanUntil)
fResult = true;
}
}
return fResult;
}
void CConnman::Ban(const CNetAddr& addr, const BanReason &banReason, int64_t bantimeoffset, bool sinceUnixEpoch)
{
CSubNet subNet(addr);
Ban(subNet, banReason, bantimeoffset, sinceUnixEpoch);
}
void CConnman::Ban(const CSubNet& subNet, const BanReason &banReason, int64_t bantimeoffset, bool sinceUnixEpoch)
{
CBanEntry banEntry(GetTime());
banEntry.banReason = banReason;
if (bantimeoffset <= 0)
{
bantimeoffset = gArgs.GetArg("-bantime", DEFAULT_MISBEHAVING_BANTIME); // Default 24-hour ban
sinceUnixEpoch = false;
}
banEntry.nBanUntil = (sinceUnixEpoch ? 0 : GetTime() )+bantimeoffset;
{
LOCK(cs_setBanned);
if (setBanned[subNet].nBanUntil < banEntry.nBanUntil) {
setBanned[subNet] = banEntry;
setBannedIsDirty = true;
}
else
return;
}
if(clientInterface)
clientInterface->BannedListChanged();
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodes) {
if (subNet.Match(static_cast<CNetAddr>(pnode->addr)))
pnode->fDisconnect = true;
}
}
if(banReason == BanReasonManuallyAdded)
DumpBanlist(); //store banlist to disk immediately if user requested ban
}
bool CConnman::Unban(const CNetAddr &addr)
{
CSubNet subNet(addr);
return Unban(subNet);
}
bool CConnman::Unban(const CSubNet &subNet)
{
{
LOCK(cs_setBanned);
if (!setBanned.erase(subNet))
return false;
setBannedIsDirty = true;
}
if(clientInterface)
clientInterface->BannedListChanged();
DumpBanlist(); //store banlist to disk immediately
return true;
}
void CConnman::GetBanned(banmap_t &banMap)
{
LOCK(cs_setBanned);
banMap = setBanned; //create a thread safe copy
}
void CConnman::SetBanned(const banmap_t &banMap)
{
LOCK(cs_setBanned);
setBanned = banMap;
setBannedIsDirty = true;
}
void CConnman::SweepBanned()
{
int64_t now = GetTime();
bool notifyUI = false;
{
LOCK(cs_setBanned);
banmap_t::iterator it = setBanned.begin();
while(it != setBanned.end())
{
CSubNet subNet = (*it).first;
CBanEntry banEntry = (*it).second;
if(now > banEntry.nBanUntil)
{
setBanned.erase(it++);
setBannedIsDirty = true;
notifyUI = true;
LogPrint(BCLog::NET, "%s: Removed banned node ip/subnet from banlist.dat: %s\n", __func__, subNet.ToString());
}
else
++it;
}
}
// update UI
if(notifyUI) {
uiInterface.BannedListChanged();
}
}
bool CConnman::BannedSetIsDirty()
{
LOCK(cs_setBanned);
return setBannedIsDirty;
}
void CConnman::SetBannedSetDirty(bool dirty)
{
LOCK(cs_setBanned); //reuse setBanned lock for the isDirty flag
setBannedIsDirty = dirty;
}
bool CConnman::IsWhitelistedRange(const CNetAddr& addr)
{
LOCK(cs_vWhitelistedRange);
for (const CSubNet& subnet : vWhitelistedRange) {
if (subnet.Match(addr))
return true;
}
return false;
}
void CConnman::AddWhitelistedRange(const CSubNet& subnet)
{
LOCK(cs_vWhitelistedRange);
vWhitelistedRange.push_back(subnet);
}
std::string CNode::GetAddrName() const {
LOCK(cs_addrName);
return addrName;
}
void CNode::MaybeSetAddrName(const std::string& addrNameIn) {
LOCK(cs_addrName);
if (addrName.empty()) {
addrName = addrNameIn;
}
}
CService CNode::GetAddrLocal() const {
LOCK(cs_addrLocal);
return addrLocal;
}
void CNode::SetAddrLocal(const CService& addrLocalIn) {
LOCK(cs_addrLocal);
if (addrLocal.IsValid()) {
error("Addr local already set for node: %i. Refusing to change from %s to %s", id, addrLocal.ToString(), addrLocalIn.ToString());
} else {
addrLocal = addrLocalIn;
}
}
#undef X
#define X(name) stats.name = name
void CNode::copyStats(CNodeStats& stats)
{
stats.nodeid = this->GetId();
X(nServices);
X(nLastSend);
X(nLastRecv);
X(nTimeConnected);
X(nTimeOffset);
stats.addrName = GetAddrName();
X(nVersion);
{
LOCK(cs_SubVer);
X(cleanSubVer);
}
X(fInbound);
X(nStartingHeight);
{
LOCK(cs_vSend);
X(mapSendBytesPerMsgCmd);
X(nSendBytes);
}
{
LOCK(cs_vRecv);
X(mapRecvBytesPerMsgCmd);
X(nRecvBytes);
}
X(fWhitelisted);
// It is common for nodes with good ping times to suddenly become lagged,
// due to a new block arriving or other large transfer.
// Merely reporting pingtime might fool the caller into thinking the node was still responsive,
// since pingtime does not update until the ping is complete, which might take a while.
// So, if a ping is taking an unusually long time in flight,
// the caller can immediately detect that this is happening.
int64_t nPingUsecWait = 0;
if ((0 != nPingNonceSent) && (0 != nPingUsecStart)) {
nPingUsecWait = GetTimeMicros() - nPingUsecStart;
}
// Raw ping time is in microseconds, but show it to user as whole seconds (INFAQCOIN users should be well used to small numbers with many decimal places by now :)
stats.dPingTime = (((double)nPingUsecTime) / 1e6);
stats.dPingWait = (((double)nPingUsecWait) / 1e6);
// Leave string empty if addrLocal invalid (not filled in yet)
CService addrLocalUnlocked = GetAddrLocal();
stats.addrLocal = addrLocalUnlocked.IsValid() ? addrLocalUnlocked.ToString() : "";
}
#undef X
bool CNode::ReceiveMsgBytes(const char* pch, unsigned int nBytes, bool& complete)
{
complete = false;
int64_t nTimeMicros = GetTimeMicros();
LOCK(cs_vRecv);
nLastRecv = nTimeMicros / 1000000;
nRecvBytes += nBytes;
while (nBytes > 0) {
// get current incomplete message, or create a new one
if (vRecvMsg.empty() ||
vRecvMsg.back().complete())
vRecvMsg.emplace_back(Params().MessageStart(), SER_NETWORK, INIT_PROTO_VERSION);
CNetMessage& msg = vRecvMsg.back();
// absorb network data
int handled;
if (!msg.in_data)
handled = msg.readHeader(pch, nBytes);
else
handled = msg.readData(pch, nBytes);
if (handled < 0)
return false;
if (msg.in_data && msg.hdr.nMessageSize > MAX_PROTOCOL_MESSAGE_LENGTH) {
LogPrint(BCLog::NET, "Oversized message from peer=%i, disconnecting", GetId());
return false;
}
pch += handled;
nBytes -= handled;
if (msg.complete()) {
// Store received bytes per message command
// to prevent a memory DOS, only allow valid commands
mapMsgCmdSize::iterator i = mapRecvBytesPerMsgCmd.find(msg.hdr.pchCommand);
if (i == mapRecvBytesPerMsgCmd.end())
i = mapRecvBytesPerMsgCmd.find(NET_MESSAGE_COMMAND_OTHER);
assert(i != mapRecvBytesPerMsgCmd.end());
i->second += msg.hdr.nMessageSize + CMessageHeader::HEADER_SIZE;
msg.nTime = nTimeMicros;
complete = true;
}
}
return true;
}
void CNode::SetSendVersion(int nVersionIn)
{
// Send version may only be changed in the version message, and
// only one version message is allowed per session. We can therefore
// treat this value as const and even atomic as long as it's only used
// once a version message has been successfully processed. Any attempt to
// set this twice is an error.
if (nSendVersion != 0) {
error("Send version already set for node: %i. Refusing to change from %i to %i", id, nSendVersion, nVersionIn);
} else {
nSendVersion = nVersionIn;
}
}
int CNode::GetSendVersion() const
{
// The send version should always be explicitly set to
// INIT_PROTO_VERSION rather than using this value until SetSendVersion
// has been called.
if (nSendVersion == 0) {
error("Requesting unset send version for node: %i. Using %i", id, INIT_PROTO_VERSION);
return INIT_PROTO_VERSION;
}
return nSendVersion;
}
int CNetMessage::readHeader(const char* pch, unsigned int nBytes)
{
// copy data to temporary parsing buffer
unsigned int nRemaining = 24 - nHdrPos;
unsigned int nCopy = std::min(nRemaining, nBytes);
memcpy(&hdrbuf[nHdrPos], pch, nCopy);
nHdrPos += nCopy;
// if header incomplete, exit
if (nHdrPos < 24)
return nCopy;
// deserialize to CMessageHeader
try {
hdrbuf >> hdr;
} catch (const std::exception&) {
return -1;
}
// reject messages larger than MAX_SIZE
if (hdr.nMessageSize > MAX_SIZE)
return -1;
// switch state to reading message data
in_data = true;
return nCopy;
}
int CNetMessage::readData(const char* pch, unsigned int nBytes)
{
unsigned int nRemaining = hdr.nMessageSize - nDataPos;
unsigned int nCopy = std::min(nRemaining, nBytes);
if (vRecv.size() < nDataPos + nCopy) {
// Allocate up to 256 KiB ahead, but never more than the total message size.
vRecv.resize(std::min(hdr.nMessageSize, nDataPos + nCopy + 256 * 1024));
}
memcpy(&vRecv[nDataPos], pch, nCopy);
nDataPos += nCopy;
return nCopy;
}
// requires LOCK(cs_vSend)
size_t CConnman::SocketSendData(CNode* pnode)
{
auto it = pnode->vSendMsg.begin();
size_t nSentSize = 0;
while (it != pnode->vSendMsg.end()) {
const auto& data = *it;
assert(data.size() > pnode->nSendOffset);
int nBytes = 0;
{
LOCK(pnode->cs_hSocket);
if (pnode->hSocket == INVALID_SOCKET)
break;
nBytes = send(pnode->hSocket, reinterpret_cast<const char*>(data.data()) + pnode->nSendOffset, data.size() - pnode->nSendOffset, MSG_NOSIGNAL | MSG_DONTWAIT);
}
if (nBytes > 0) {
pnode->nLastSend = GetTime();
pnode->nSendBytes += nBytes;
pnode->nSendOffset += nBytes;
nSentSize += nBytes;
if (pnode->nSendOffset == data.size()) {
pnode->nSendOffset = 0;
pnode->nSendSize -= data.size();
pnode->fPauseSend = pnode->nSendSize > nSendBufferMaxSize;
it++;
} else {
// could not send full message; stop sending more
break;
}
} else {
if (nBytes < 0) {
// error
int nErr = WSAGetLastError();
if (nErr != WSAEWOULDBLOCK && nErr != WSAEMSGSIZE && nErr != WSAEINTR && nErr != WSAEINPROGRESS) {
LogPrintf("socket send error %s\n", NetworkErrorString(nErr));
pnode->CloseSocketDisconnect();
}
}
// couldn't send anything at all
break;
}
}
if (it == pnode->vSendMsg.end()) {
assert(pnode->nSendOffset == 0);
assert(pnode->nSendSize == 0);
}
pnode->vSendMsg.erase(pnode->vSendMsg.begin(), it);
return nSentSize;
}
void CheckOffsetDisconnectedPeers(const CNetAddr& ip)
{
int nConnections = 0;
if (g_connman) {
g_connman->ForEachNode([&nConnections](CNode* pnode) {
if (pnode->fSuccessfullyConnected)
nConnections++;
if (nConnections == ENOUGH_CONNECTIONS)
return;
});
}
// Not enough connections. Insert peer.
static std::set<CNetAddr> setOffsetDisconnectedPeers;
setOffsetDisconnectedPeers.insert(ip);
if (setOffsetDisconnectedPeers.size() >= MAX_TIMEOFFSET_DISCONNECTIONS) {
// clear the set
setOffsetDisconnectedPeers.clear();
// Trigger the warning
std::string strWarn1 = _("Peers are being disconnected due time differences.");
std::string strWarn2 = _("Please check that your computer's date and time are correct! If your clock is wrong INFAQCOIN will not work properly.");
LogPrintf("*** Warning: %s %s\n", strWarn1, strWarn2);
static int64_t nLastGUINotif = 0;
int64_t now = GetTime();
if (nLastGUINotif + 40 < now) { // Notify the GUI if needed.
nLastGUINotif = now;
uiInterface.ThreadSafeMessageBox(strprintf("%s\n\n%s", strWarn1, strWarn2), _("Warning"), CClientUIInterface::MSG_ERROR);
}
}
}
struct NodeEvictionCandidate
{
NodeId id;
int64_t nTimeConnected;
int64_t nMinPingUsecTime;
CAddress addr;
uint64_t nKeyedNetGroup;
};
static bool ReverseCompareNodeMinPingTime(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b)
{
return a.nMinPingUsecTime > b.nMinPingUsecTime;
}
static bool ReverseCompareNodeTimeConnected(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b)
{
return a.nTimeConnected > b.nTimeConnected;
}
static bool CompareNetGroupKeyed(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) {
return a.nKeyedNetGroup < b.nKeyedNetGroup;
};
/** Try to find a connection to evict when the node is full.
* Extreme care must be taken to avoid opening the node to attacker
* triggered network partitioning.
* The strategy used here is to protect a small number of peers
* for each of several distinct characteristics which are difficult
* to forge. In order to partition a node the attacker must be
* simultaneously better at all of them than honest peers.
*/
bool CConnman::AttemptToEvictConnection(bool fPreferNewConnection)
{
std::vector<NodeEvictionCandidate> vEvictionCandidates;
{
LOCK(cs_vNodes);
for (CNode *node : vNodes) {
if (node->fWhitelisted)
continue;
if (!node->fInbound)
continue;
if (node->fDisconnect)
continue;
NodeEvictionCandidate candidate = {node->id, node->nTimeConnected, node->nMinPingUsecTime, node->addr, node->nKeyedNetGroup};
vEvictionCandidates.push_back(candidate);
}
}
if (vEvictionCandidates.empty()) return false;
// Protect connections with certain characteristics
// Deterministically select 4 peers to protect by netgroup.
// An attacker cannot predict which netgroups will be protected
std::sort(vEvictionCandidates.begin(), vEvictionCandidates.end(), CompareNetGroupKeyed);
vEvictionCandidates.erase(vEvictionCandidates.end() - std::min(4, static_cast<int>(vEvictionCandidates.size())), vEvictionCandidates.end());
if (vEvictionCandidates.empty()) return false;
// Protect the 8 nodes with the lowest minimum ping time.
// An attacker cannot manipulate this metric without physically moving nodes closer to the target.
std::sort(vEvictionCandidates.begin(), vEvictionCandidates.end(), ReverseCompareNodeMinPingTime);
vEvictionCandidates.erase(vEvictionCandidates.end() - std::min(8, static_cast<int>(vEvictionCandidates.size())), vEvictionCandidates.end());
if (vEvictionCandidates.empty()) return false;
// Protect the half of the remaining nodes which have been connected the longest.
// This replicates the non-eviction implicit behavior, and precludes attacks that start later.
std::sort(vEvictionCandidates.begin(), vEvictionCandidates.end(), ReverseCompareNodeTimeConnected);
vEvictionCandidates.erase(vEvictionCandidates.end() - static_cast<int>(vEvictionCandidates.size() / 2), vEvictionCandidates.end());
if (vEvictionCandidates.empty()) return false;
// Identify the network group with the most connections and youngest member.
// (vEvictionCandidates is already sorted by reverse connect time)
uint64_t naMostConnections;
unsigned int nMostConnections = 0;
int64_t nMostConnectionsTime = 0;
std::map<uint64_t, std::vector<NodeEvictionCandidate> > mapAddrCounts;
for (const NodeEvictionCandidate& node : vEvictionCandidates) {
mapAddrCounts[node.nKeyedNetGroup].push_back(node);
int64_t grouptime = mapAddrCounts[node.nKeyedNetGroup][0].nTimeConnected;
size_t groupsize = mapAddrCounts[node.nKeyedNetGroup].size();
if (groupsize > nMostConnections || (groupsize == nMostConnections && grouptime > nMostConnectionsTime)) {
nMostConnections = groupsize;
nMostConnectionsTime = grouptime;
naMostConnections = node.nKeyedNetGroup;
}
}
// Reduce to the network group with the most connections
vEvictionCandidates = std::move(mapAddrCounts[naMostConnections]);
// Do not disconnect peers if there is only 1 connection from their network group
if (vEvictionCandidates.size() <= 1)
// unless we prefer the new connection (for whitelisted peers)
if (!fPreferNewConnection)
return false;
// Disconnect from the network group with the most connections
NodeId evicted = vEvictionCandidates.front().id;
LOCK(cs_vNodes);
for(std::vector<CNode*>::const_iterator it(vNodes.begin()); it != vNodes.end(); ++it) {
if ((*it)->GetId() == evicted) {
(*it)->fDisconnect = true;
return true;
}
}
return false;
}
void CConnman::AcceptConnection(const ListenSocket& hListenSocket) {
struct sockaddr_storage sockaddr;
socklen_t len = sizeof(sockaddr);
SOCKET hSocket = accept(hListenSocket.socket, (struct sockaddr*)&sockaddr, &len);
CAddress addr;
int nInbound = 0;
int nMaxInbound = nMaxConnections - (nMaxOutbound + nMaxFeeler);
assert(nMaxInbound > 0);
if (hSocket != INVALID_SOCKET)
if (!addr.SetSockAddr((const struct sockaddr*)&sockaddr))
LogPrintf("Warning: Unknown socket family\n");
bool whitelisted = hListenSocket.whitelisted || IsWhitelistedRange(addr);
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodes)
if (pnode->fInbound)
nInbound++;
}
if (hSocket == INVALID_SOCKET) {
int nErr = WSAGetLastError();
if (nErr != WSAEWOULDBLOCK)
LogPrintf("socket error accept failed: %s\n", NetworkErrorString(nErr));
return;
}
if (!IsSelectableSocket(hSocket)) {
LogPrintf("connection from %s dropped: non-selectable socket\n", addr.ToString());
CloseSocket(hSocket);
return;
}
if (IsBanned(addr) && !whitelisted) {
LogPrint(BCLog::NET, "connection from %s dropped (banned)\n", addr.ToString());
CloseSocket(hSocket);
return;
}
if (nInbound >= nMaxConnections - MAX_OUTBOUND_CONNECTIONS) {
if (!AttemptToEvictConnection(whitelisted)) {
// No connection to evict, disconnect the new connection
LogPrint(BCLog::NET, "failed to find an eviction candidate - connection dropped (full)\n");
CloseSocket(hSocket);
return;
}
}
NodeId id = GetNewNodeId();
uint64_t nonce = GetDeterministicRandomizer(RANDOMIZER_ID_LOCALHOSTNONCE).Write(id).Finalize();
CNode* pnode = new CNode(id, nLocalServices, GetBestHeight(), hSocket, addr, CalculateKeyedNetGroup(addr), nonce, "", true);
pnode->AddRef();
pnode->fWhitelisted = whitelisted;
GetNodeSignals().InitializeNode(pnode, *this);
LogPrint(BCLog::NET, "connection from %s accepted\n", addr.ToString());
{
LOCK(cs_vNodes);
vNodes.push_back(pnode);
}
}
void CConnman::ThreadSocketHandler()
{
unsigned int nPrevNodeCount = 0;
while (!interruptNet) {
//
// Disconnect nodes
//
{
LOCK(cs_vNodes);
// Disconnect unused nodes
std::vector<CNode*> vNodesCopy = vNodes;
for (CNode* pnode : vNodesCopy) {
if (pnode->fDisconnect) {
// remove from vNodes
vNodes.erase(remove(vNodes.begin(), vNodes.end(), pnode), vNodes.end());
// release outbound grant (if any)
pnode->grantOutbound.Release();
// close socket and cleanup
pnode->CloseSocketDisconnect();
// hold in disconnected pool until all refs are released
if (pnode->fNetworkNode || pnode->fInbound)
pnode->Release();
vNodesDisconnected.push_back(pnode);
}
}
}
{
// Delete disconnected nodes
std::list<CNode*> vNodesDisconnectedCopy = vNodesDisconnected;
for (CNode* pnode : vNodesDisconnectedCopy) {
// wait until threads are done using it
if (pnode->GetRefCount() <= 0) {
bool fDelete = false;
{
TRY_LOCK(pnode->cs_inventory, lockInv);
if (lockInv) {
TRY_LOCK(pnode->cs_vSend, lockSend);
if (lockSend) {
fDelete = true;
}
}
}
if (fDelete) {
vNodesDisconnected.remove(pnode);
DeleteNode(pnode);
}
}
}
}
size_t vNodesSize;
{
LOCK(cs_vNodes);
vNodesSize = vNodes.size();
}
if(vNodesSize != nPrevNodeCount) {
nPrevNodeCount = vNodesSize;
if(clientInterface)
clientInterface->NotifyNumConnectionsChanged(nPrevNodeCount);
}
//
// Find which sockets have data to receive
//
struct timeval timeout;
timeout.tv_sec = 0;
timeout.tv_usec = 50000; // frequency to poll pnode->vSend
fd_set fdsetRecv;
fd_set fdsetSend;
fd_set fdsetError;
FD_ZERO(&fdsetRecv);
FD_ZERO(&fdsetSend);
FD_ZERO(&fdsetError);
SOCKET hSocketMax = 0;
bool have_fds = false;
for (const ListenSocket& hListenSocket : vhListenSocket) {
FD_SET(hListenSocket.socket, &fdsetRecv);
hSocketMax = std::max(hSocketMax, hListenSocket.socket);
have_fds = true;
}
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodes) {
// Implement the following logic:
// * If there is data to send, select() for sending data. As this only
// happens when optimistic write failed, we choose to first drain the
// write buffer in this case before receiving more. This avoids
// needlessly queueing received data, if the remote peer is not themselves
// receiving data. This means properly utilizing TCP flow control signalling.
// * Otherwise, if there is space left in the receive buffer, select() for
// receiving data.
// * Hand off all complete messages to the processor, to be handled without
// blocking here.
bool select_recv = !pnode->fPauseRecv;
bool select_send;
{
LOCK(pnode->cs_vSend);
select_send = !pnode->vSendMsg.empty();
}
LOCK(pnode->cs_hSocket);
if (pnode->hSocket == INVALID_SOCKET)
continue;
FD_SET(pnode->hSocket, &fdsetError);
hSocketMax = std::max(hSocketMax, pnode->hSocket);
have_fds = true;
if (select_send) {
FD_SET(pnode->hSocket, &fdsetSend);
continue;
}
if (select_recv) {
FD_SET(pnode->hSocket, &fdsetRecv);
}
}
}
int nSelect = select(have_fds ? hSocketMax + 1 : 0,
&fdsetRecv, &fdsetSend, &fdsetError, &timeout);
if (interruptNet)
return;
if (nSelect == SOCKET_ERROR) {
if (have_fds) {
int nErr = WSAGetLastError();
LogPrintf("socket select error %s\n", NetworkErrorString(nErr));
for (unsigned int i = 0; i <= hSocketMax; i++)
FD_SET(i, &fdsetRecv);
}
FD_ZERO(&fdsetSend);
FD_ZERO(&fdsetError);
if (!interruptNet.sleep_for(std::chrono::milliseconds(timeout.tv_usec/1000)))
return;
}
//
// Accept new connections
//
for (const ListenSocket& hListenSocket : vhListenSocket) {
if (hListenSocket.socket != INVALID_SOCKET && FD_ISSET(hListenSocket.socket, &fdsetRecv)) {
AcceptConnection(hListenSocket);
}
}
//
// Service each socket
//
std::vector<CNode*> vNodesCopy;
{
LOCK(cs_vNodes);
vNodesCopy = vNodes;
for (CNode* pnode : vNodesCopy)
pnode->AddRef();
}
for (CNode* pnode : vNodesCopy) {
if (interruptNet)
return;
//
// Receive
//
bool recvSet = false;
bool sendSet = false;
bool errorSet = false;
{
LOCK(pnode->cs_hSocket);
if (pnode->hSocket == INVALID_SOCKET)
continue;
recvSet = FD_ISSET(pnode->hSocket, &fdsetRecv);
sendSet = FD_ISSET(pnode->hSocket, &fdsetSend);
errorSet = FD_ISSET(pnode->hSocket, &fdsetError);
}
if (recvSet || errorSet) {
{
{
// typical socket buffer is 8K-64K
char pchBuf[0x10000];
int nBytes = 0;
{
LOCK(pnode->cs_hSocket);
if (pnode->hSocket == INVALID_SOCKET)
continue;
nBytes = recv(pnode->hSocket, pchBuf, sizeof(pchBuf), MSG_DONTWAIT);
}
if (nBytes > 0) {
bool notify = false;
if (!pnode->ReceiveMsgBytes(pchBuf, nBytes, notify))
pnode->CloseSocketDisconnect();
RecordBytesRecv(nBytes);
if (notify) {
size_t nSizeAdded = 0;
auto it(pnode->vRecvMsg.begin());
for (; it != pnode->vRecvMsg.end(); ++it) {
if (!it->complete())
break;
nSizeAdded += it->vRecv.size() + CMessageHeader::HEADER_SIZE;
}
{
LOCK(pnode->cs_vProcessMsg);
pnode->vProcessMsg.splice(pnode->vProcessMsg.end(), pnode->vRecvMsg, pnode->vRecvMsg.begin(), it);
pnode->nProcessQueueSize += nSizeAdded;
pnode->fPauseRecv = pnode->nProcessQueueSize > nReceiveFloodSize;
}
WakeMessageHandler();
}
} else if (nBytes == 0) {
// socket closed gracefully
if (!pnode->fDisconnect)
LogPrint(BCLog::NET, "socket closed\n");
pnode->CloseSocketDisconnect();
} else if (nBytes < 0) {
// error
int nErr = WSAGetLastError();
if (nErr != WSAEWOULDBLOCK && nErr != WSAEMSGSIZE && nErr != WSAEINTR && nErr != WSAEINPROGRESS) {
if (!pnode->fDisconnect)
LogPrintf("socket recv error %s\n", NetworkErrorString(nErr));
pnode->CloseSocketDisconnect();
}
}
}
}
}
//
// Send
//
if (sendSet) {
LOCK(pnode->cs_vSend);
size_t nBytes = SocketSendData(pnode);
if (nBytes)
RecordBytesSent(nBytes);
}
//
// Inactivity checking
//
int64_t nTime = GetTime();
if (nTime - pnode->nTimeConnected > 60) {
if (pnode->nLastRecv == 0 || pnode->nLastSend == 0) {
LogPrint(BCLog::NET, "socket no message in first 60 seconds, %d %d from %d\n", pnode->nLastRecv != 0, pnode->nLastSend != 0, pnode->id);
pnode->fDisconnect = true;
} else if (nTime - pnode->nLastSend > TIMEOUT_INTERVAL) {
LogPrintf("socket sending timeout: %is\n", nTime - pnode->nLastSend);
pnode->fDisconnect = true;
} else if (nTime - pnode->nLastRecv > (pnode->nVersion > BIP0031_VERSION ? TIMEOUT_INTERVAL : 90 * 60)) {
LogPrintf("socket receive timeout: %is\n", nTime - pnode->nLastRecv);
pnode->fDisconnect = true;
} else if (pnode->nPingNonceSent && pnode->nPingUsecStart + TIMEOUT_INTERVAL * 1000000 < GetTimeMicros()) {
LogPrintf("ping timeout: %fs\n", 0.000001 * (GetTimeMicros() - pnode->nPingUsecStart));
pnode->fDisconnect = true;
}
}
}
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodesCopy)
pnode->Release();
}
}
}
void CConnman::WakeMessageHandler()
{
{
std::lock_guard<std::mutex> lock(mutexMsgProc);
fMsgProcWake = true;
}
condMsgProc.notify_one();
}
#ifdef USE_UPNP
static CThreadInterrupt g_upnp_interrupt;
static std::thread g_upnp_thread;
void ThreadMapPort()
{
std::string port = strprintf("%u", GetListenPort());
const char* multicastif = 0;
const char* minissdpdpath = 0;
struct UPNPDev* devlist = 0;
char lanaddr[64];
#ifndef UPNPDISCOVER_SUCCESS
/* miniupnpc 1.5 */
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
#elif MINIUPNPC_API_VERSION < 14
/* miniupnpc 1.6 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
#else
/* miniupnpc 1.9.20150730 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
#endif
struct UPNPUrls urls;
struct IGDdatas data;
int r;
r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
if (r == 1) {
if (fDiscover) {
char externalIPAddress[40];
r = UPNP_GetExternalIPAddress(urls.controlURL, data.first.servicetype, externalIPAddress);
if (r != UPNPCOMMAND_SUCCESS)
LogPrintf("UPnP: GetExternalIPAddress() returned %d\n", r);
else {
if (externalIPAddress[0]) {
CNetAddr resolved;
if (LookupHost(externalIPAddress, resolved, false)) {
LogPrintf("UPnP: ExternalIPAddress = %s\n", resolved.ToString().c_str());
AddLocal(resolved, LOCAL_UPNP);
}
} else
LogPrintf("UPnP: GetExternalIPAddress failed.\n");
}
}
std::string strDesc = "INFAQCOIN " + FormatFullVersion();
do {
#ifndef UPNPDISCOVER_SUCCESS
/* miniupnpc 1.5 */
r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
port.c_str(), port.c_str(), lanaddr, strDesc.c_str(), "TCP", 0);
#else
/* miniupnpc 1.6 */
r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
port.c_str(), port.c_str(), lanaddr, strDesc.c_str(), "TCP", 0, "0");
#endif
if (r!=UPNPCOMMAND_SUCCESS)
LogPrintf("AddPortMapping(%s, %s, %s) failed with code %d (%s)\n",
port, port, lanaddr, r, strupnperror(r));
else
LogPrintf("UPnP Port Mapping successful.\n");
}
while(g_upnp_interrupt.sleep_for(std::chrono::minutes(20)));
r = UPNP_DeletePortMapping(urls.controlURL, data.first.servicetype, port.c_str(), "TCP", 0);
LogPrintf("UPNP_DeletePortMapping() returned: %d\n", r);
freeUPNPDevlist(devlist); devlist = nullptr;
FreeUPNPUrls(&urls);
} else {
LogPrintf("No valid UPnP IGDs found\n");
freeUPNPDevlist(devlist);
devlist = 0;
if (r != 0)
FreeUPNPUrls(&urls);
}
}
void StartMapPort()
{
if (!g_upnp_thread.joinable()) {
assert(!g_upnp_interrupt);
g_upnp_thread = std::thread(std::bind(&TraceThread<void (*)()>, "upnp", &ThreadMapPort));
}
}
void InterruptMapPort()
{
if (g_upnp_thread.joinable()) {
g_upnp_interrupt();
}
}
void StopMapPort()
{
if (g_upnp_thread.joinable()) {
g_upnp_thread.join();
g_upnp_interrupt.reset();
}
}
#else
void StartMapPort()
{
// Intentionally left blank.
}
void InterruptMapPort()
{
// Intentionally left blank.
}
void StopMapPort()
{
// Intentionally left blank.
}
#endif
static std::string GetDNSHost(const CDNSSeedData& data, ServiceFlags* requiredServiceBits)
{
//use default host for non-filter-capable seeds or if we use the default service bits (NODE_NETWORK)
if (!data.supportsServiceBitsFiltering || *requiredServiceBits == NODE_NETWORK) {
*requiredServiceBits = NODE_NETWORK;
return data.host;
}
return strprintf("x%x.%s", *requiredServiceBits, data.host);
}
void CConnman::ThreadDNSAddressSeed()
{
// goal: only query DNS seeds if address need is acute
if ((addrman.size() > 0) &&
(!gArgs.GetBoolArg("-forcednsseed", DEFAULT_FORCEDNSSEED))) {
if (!interruptNet.sleep_for(std::chrono::seconds(11)))
return;
LOCK(cs_vNodes);
if (vNodes.size() >= 2) {
LogPrintf("P2P peers available. Skipped DNS seeding.\n");
return;
}
}
const std::vector<CDNSSeedData>& vSeeds = Params().DNSSeeds();
int found = 0;
LogPrintf("Loading addresses from DNS seeds (could take a while)\n");
for (const CDNSSeedData& seed : vSeeds) {
if (interruptNet) {
return;
}
if (HaveNameProxy()) {
AddOneShot(seed.host);
} else {
std::vector<CNetAddr> vIPs;
std::vector<CAddress> vAdd;
ServiceFlags requiredServiceBits = nRelevantServices;
if (LookupHost(GetDNSHost(seed, &requiredServiceBits).c_str(), vIPs, 0, true)) {
for (CNetAddr& ip : vIPs) {
int nOneDay = 24 * 3600;
CAddress addr = CAddress(CService(ip, Params().GetDefaultPort()), requiredServiceBits);
addr.nTime = GetTime() - 3 * nOneDay - GetRand(4 * nOneDay); // use a random age between 3 and 7 days old
vAdd.push_back(addr);
found++;
}
}
if (interruptNet) {
return;
}
// TODO: The seed name resolve may fail, yielding an IP of [::], which results in
// addrman assigning the same source to results from different seeds.
// This should switch to a hard-coded stable dummy IP for each seed name, so that the
// resolve is not required at all.
if (!vIPs.empty()) {
CService seedSource;
Lookup(seed.name.c_str(), seedSource, 0, true);
addrman.Add(vAdd, seedSource);
}
}
}
LogPrintf("%d addresses found from DNS seeds\n", found);
}
void CConnman::DumpAddresses()
{
int64_t nStart = GetTimeMillis();
CAddrDB adb;
adb.Write(addrman);
LogPrint(BCLog::NET, "Flushed %d addresses to peers.dat %dms\n",
addrman.size(), GetTimeMillis() - nStart);
}
void CConnman::DumpData()
{
DumpAddresses();
DumpBanlist();
}
void CConnman::ProcessOneShot()
{
std::string strDest;
{
LOCK(cs_vOneShots);
if (vOneShots.empty())
return;
strDest = vOneShots.front();
vOneShots.pop_front();
}
CAddress addr;
CSemaphoreGrant grant(*semOutbound, true);
if (grant) {
if (!OpenNetworkConnection(addr, false, &grant, strDest.c_str(), true))
AddOneShot(strDest);
}
}
void CConnman::ThreadOpenConnections()
{
// Connect to specific addresses
if (gArgs.IsArgSet("-connect")) {
for (int64_t nLoop = 0;; nLoop++) {
ProcessOneShot();
for (const std::string& strAddr : gArgs.GetArgs("-connect")) {
CAddress addr(CService(), NODE_NONE);
OpenNetworkConnection(addr, false, nullptr, strAddr.c_str());
for (int i = 0; i < 10 && i < nLoop; i++) {
if (!interruptNet.sleep_for(std::chrono::milliseconds(500)))
return;
}
}
if (!interruptNet.sleep_for(std::chrono::milliseconds(500)))
return;
}
}
// Initiate network connections
int64_t nStart = GetTime();
// Minimum time before next feeler connection (in microseconds).
int64_t nNextFeeler = PoissonNextSend(nStart * 1000 * 1000, FEELER_INTERVAL);
while (!interruptNet) {
ProcessOneShot();
if (!interruptNet.sleep_for(std::chrono::milliseconds(500)))
return;
CSemaphoreGrant grant(*semOutbound);
if (interruptNet)
return;
// Add seed nodes if DNS seeds are all down (an infrastructure attack?).
if (addrman.size() == 0 && (GetTime() - nStart > 60)) {
static bool done = false;
if (!done) {
LogPrintf("Adding fixed seed nodes as DNS doesn't seem to be available.\n");
CNetAddr local;
LookupHost("127.0.0.1", local, false);
addrman.Add(convertSeed6(Params().FixedSeeds()), local);
done = true;
}
}
//
// Choose an address to connect to based on most recently seen
//
CAddress addrConnect;
// Only connect out to one peer per network group (/16 for IPv4).
// Do this here so we don't have to critsect vNodes inside mapAddresses critsect.
int nOutbound = 0;
std::set<std::vector<unsigned char> > setConnected;
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodes) {
if (!pnode->fInbound) {
setConnected.insert(pnode->addr.GetGroup());
nOutbound++;
}
}
}
// Feeler Connections
//
// Design goals:
// * Increase the number of connectable addresses in the tried table.
//
// Method:
// * Choose a random address from new and attempt to connect to it if we can connect
// successfully it is added to tried.
// * Start attempting feeler connections only after node finishes making outbound
// connections.
// * Only make a feeler connection once every few minutes.
//
bool fFeeler = false;
if (nOutbound >= nMaxOutbound) {
int64_t nTime = GetTimeMicros(); // The current time right now (in microseconds).
if (nTime > nNextFeeler) {
nNextFeeler = PoissonNextSend(nTime, FEELER_INTERVAL);
fFeeler = true;
} else {
continue;
}
}
addrman.ResolveCollisions();
int64_t nANow = GetAdjustedTime();
int nTries = 0;
while (!interruptNet) {
CAddrInfo addr = addrman.SelectTriedCollision();
// SelectTriedCollision returns an invalid address if it is empty.
if (!fFeeler || !addr.IsValid()) {
addr = addrman.Select(fFeeler);
}
// if we selected an invalid address, restart
if (!addr.IsValid() || setConnected.count(addr.GetGroup()) || IsLocal(addr))
break;
// If we didn't find an appropriate destination after trying 100 addresses fetched from addrman,
// stop this loop, and let the outer loop run again (which sleeps, adds seed nodes, recalculates
// already-connected network ranges, ...) before trying new addrman addresses.
nTries++;
if (nTries > 100)
break;
if (IsLimited(addr))
continue;
// only connect to full nodes
if ((addr.nServices & REQUIRED_SERVICES) != REQUIRED_SERVICES)
continue;
// only consider very recently tried nodes after 30 failed attempts
if (nANow - addr.nLastTry < 600 && nTries < 30)
continue;
// do not allow non-default ports, unless after 50 invalid addresses selected already
if (addr.GetPort() != Params().GetDefaultPort() && nTries < 50)
continue;
addrConnect = addr;
break;
}
if (addrConnect.IsValid()) {
if (fFeeler) {
// Add small amount of random noise before connection to avoid synchronization.
int randsleep = GetRandInt(FEELER_SLEEP_WINDOW * 1000);
if (!interruptNet.sleep_for(std::chrono::milliseconds(randsleep)))
return;
LogPrint(BCLog::NET, "Making feeler connection to %s\n", addrConnect.ToString());
}
OpenNetworkConnection(addrConnect, (int)setConnected.size() >= std::min(nMaxConnections - 1, 2), &grant, nullptr, false, fFeeler);
}
}
}
std::vector<AddedNodeInfo> CConnman::GetAddedNodeInfo()
{
std::vector<AddedNodeInfo> ret;
std::list<std::string> lAddresses(0);
{
LOCK(cs_vAddedNodes);
ret.reserve(vAddedNodes.size());
for (std::string& strAddNode : vAddedNodes)
lAddresses.push_back(strAddNode);
}
// Build a map of all already connected addresses (by IP:port and by name) to inbound/outbound and resolved CService
std::map<CService, bool> mapConnected;
std::map<std::string, std::pair<bool, CService> > mapConnectedByName;
{
LOCK(cs_vNodes);
for (const CNode* pnode : vNodes) {
if (pnode->addr.IsValid()) {
mapConnected[pnode->addr] = pnode->fInbound;
}
std::string addrName = pnode->GetAddrName();
if (!addrName.empty()) {
mapConnectedByName[std::move(addrName)] = std::make_pair(pnode->fInbound, static_cast<const CService&>(pnode->addr));
}
}
}
for (std::string& strAddNode : lAddresses) {
CService service(LookupNumeric(strAddNode.c_str(), Params().GetDefaultPort()));
if (service.IsValid()) {
// strAddNode is an IP:port
auto it = mapConnected.find(service);
if (it != mapConnected.end()) {
ret.emplace_back(strAddNode, service, true, it->second);
} else {
ret.emplace_back(strAddNode, CService(), false, false);
}
} else {
// strAddNode is a name
auto it = mapConnectedByName.find(strAddNode);
if (it != mapConnectedByName.end()) {
ret.emplace_back(strAddNode, it->second.second, true, it->second.first);
} else {
ret.emplace_back(strAddNode, CService(), false, false);
}
}
}
return ret;
}
void CConnman::ThreadOpenAddedConnections()
{
{
LOCK(cs_vAddedNodes);
vAddedNodes = gArgs.GetArgs("-addnode");
}
for (unsigned int i = 0; true; i++) {
std::vector<AddedNodeInfo> vInfo = GetAddedNodeInfo();
for (const AddedNodeInfo& info : vInfo) {
if (!info.fConnected) {
CSemaphoreGrant grant(*semOutbound);
// If strAddedNode is an IP/port, decode it immediately, so
// OpenNetworkConnection can detect existing connections to that IP/port.
CService service(LookupNumeric(info.strAddedNode.c_str(), Params().GetDefaultPort()));
OpenNetworkConnection(CAddress(service, NODE_NONE), false, &grant, info.strAddedNode.c_str(), false);
if (!interruptNet.sleep_for(std::chrono::milliseconds(500)))
return;
}
}
if (!interruptNet.sleep_for(std::chrono::minutes(2)))
return;
}
}
// if successful, this moves the passed grant to the constructed node
bool CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFailure, CSemaphoreGrant* grantOutbound, const char* pszDest, bool fOneShot, bool fFeeler)
{
//
// Initiate outbound network connection
//
if (interruptNet) {
return false;
}
if (!pszDest) {
if (IsLocal(addrConnect) ||
FindNode(static_cast<CNetAddr>(addrConnect)) || IsBanned(addrConnect) ||
FindNode(addrConnect.ToStringIPPort()))
return false;
} else if (FindNode(pszDest))
return false;
CNode* pnode = ConnectNode(addrConnect, pszDest, fCountFailure);
if (!pnode)
return false;
if (grantOutbound)
grantOutbound->MoveTo(pnode->grantOutbound);
pnode->fNetworkNode = true;
if (fOneShot)
pnode->fOneShot = true;
if (fFeeler)
pnode->fFeeler = true;
GetNodeSignals().InitializeNode(pnode, *this);
{
LOCK(cs_vNodes);
vNodes.push_back(pnode);
}
return true;
}
void CConnman::ThreadMessageHandler()
{
while (!flagInterruptMsgProc) {
std::vector<CNode*> vNodesCopy;
{
LOCK(cs_vNodes);
vNodesCopy = vNodes;
for (CNode* pnode : vNodesCopy) {
pnode->AddRef();
}
}
bool fMoreWork = false;
for (CNode* pnode : vNodesCopy) {
if (pnode->fDisconnect)
continue;
// Receive messages
bool fMoreNodeWork = GetNodeSignals().ProcessMessages(pnode, *this, flagInterruptMsgProc);
fMoreWork |= (fMoreNodeWork && !pnode->fPauseSend);
if (flagInterruptMsgProc)
return;
// Send messages
{
LOCK(pnode->cs_sendProcessing);
GetNodeSignals().SendMessages(pnode, *this, flagInterruptMsgProc);
}
if (flagInterruptMsgProc)
return;
}
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodesCopy)
pnode->Release();
}
std::unique_lock<std::mutex> lock(mutexMsgProc);
if (!fMoreWork) {
condMsgProc.wait_until(lock, std::chrono::steady_clock::now() + std::chrono::milliseconds(100), [this] { return fMsgProcWake; });
}
fMsgProcWake = false;
}
}
bool CConnman::BindListenPort(const CService& addrBind, std::string& strError, bool fWhitelisted)
{
strError = "";
int nOne = 1;
// Create socket for listening for incoming connections
struct sockaddr_storage sockaddr;
socklen_t len = sizeof(sockaddr);
if (!addrBind.GetSockAddr((struct sockaddr*)&sockaddr, &len)) {
strError = strprintf("Error: Bind address family for %s not supported", addrBind.ToString());
LogPrintf("%s\n", strError);
return false;
}
SOCKET hListenSocket = socket(((struct sockaddr*)&sockaddr)->sa_family, SOCK_STREAM, IPPROTO_TCP);
if (hListenSocket == INVALID_SOCKET) {
strError = strprintf("Error: Couldn't open socket for incoming connections (socket returned error %s)", NetworkErrorString(WSAGetLastError()));
LogPrintf("%s\n", strError);
return false;
}
if (!IsSelectableSocket(hListenSocket)) {
strError = "Error: Couldn't create a listenable socket for incoming connections";
LogPrintf("%s\n", strError);
return false;
}
#ifndef WIN32
#ifdef SO_NOSIGPIPE
// Different way of disabling SIGPIPE on BSD
setsockopt(hListenSocket, SOL_SOCKET, SO_NOSIGPIPE, (void*)&nOne, sizeof(int));
#endif
// Allow binding if the port is still in TIME_WAIT state after
// the program was closed and restarted. Not an issue on windows!
setsockopt(hListenSocket, SOL_SOCKET, SO_REUSEADDR, (void*)&nOne, sizeof(int));
#endif
// Set to non-blocking, incoming connections will also inherit this
if (!SetSocketNonBlocking(hListenSocket, true)) {
strError = strprintf("BindListenPort: Setting listening socket to non-blocking failed, error %s\n", NetworkErrorString(WSAGetLastError()));
LogPrintf("%s\n", strError);
return false;
}
// some systems don't have IPV6_V6ONLY but are always v6only; others do have the option
// and enable it by default or not. Try to enable it, if possible.
if (addrBind.IsIPv6()) {
#ifdef IPV6_V6ONLY
#ifdef WIN32
setsockopt(hListenSocket, IPPROTO_IPV6, IPV6_V6ONLY, (const char*)&nOne, sizeof(int));
#else
setsockopt(hListenSocket, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&nOne, sizeof(int));
#endif
#endif
#ifdef WIN32
int nProtLevel = PROTECTION_LEVEL_UNRESTRICTED;
setsockopt(hListenSocket, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL, (const char*)&nProtLevel, sizeof(int));
#endif
}
if (::bind(hListenSocket, (struct sockaddr*)&sockaddr, len) == SOCKET_ERROR) {
int nErr = WSAGetLastError();
if (nErr == WSAEADDRINUSE)
strError = strprintf(_("Unable to bind to %s on this computer. INFAQCOIN is probably already running."), addrBind.ToString());
else
strError = strprintf(_("Unable to bind to %s on this computer (bind returned error %s)"), addrBind.ToString(), NetworkErrorString(nErr));
LogPrintf("%s\n", strError);
CloseSocket(hListenSocket);
return false;
}
LogPrintf("Bound to %s\n", addrBind.ToString());
// Listen for incoming connections
if (listen(hListenSocket, SOMAXCONN) == SOCKET_ERROR) {
strError = strprintf(_("Error: Listening for incoming connections failed (listen returned error %s)"), NetworkErrorString(WSAGetLastError()));
LogPrintf("%s\n", strError);
CloseSocket(hListenSocket);
return false;
}
vhListenSocket.emplace_back(hListenSocket, fWhitelisted);
if (addrBind.IsRoutable() && fDiscover && !fWhitelisted)
AddLocal(addrBind, LOCAL_BIND);
return true;
}
void Discover()
{
if (!fDiscover)
return;
#ifdef WIN32
// Get local host IP
char pszHostName[256] = "";
if (gethostname(pszHostName, sizeof(pszHostName)) != SOCKET_ERROR) {
std::vector<CNetAddr> vaddr;
if (LookupHost(pszHostName, vaddr, 0, true)) {
for (const CNetAddr& addr : vaddr) {
if (AddLocal(addr, LOCAL_IF))
LogPrintf("%s: %s - %s\n", __func__, pszHostName, addr.ToString());
}
}
}
#else
// Get local host ip
struct ifaddrs* myaddrs;
if (getifaddrs(&myaddrs) == 0) {
for (struct ifaddrs* ifa = myaddrs; ifa != NULL; ifa = ifa->ifa_next) {
if (ifa->ifa_addr == NULL) continue;
if ((ifa->ifa_flags & IFF_UP) == 0) continue;
if (strcmp(ifa->ifa_name, "lo") == 0) continue;
if (strcmp(ifa->ifa_name, "lo0") == 0) continue;
if (ifa->ifa_addr->sa_family == AF_INET) {
struct sockaddr_in* s4 = (struct sockaddr_in*)(ifa->ifa_addr);
CNetAddr addr(s4->sin_addr);
if (AddLocal(addr, LOCAL_IF))
LogPrintf("%s: IPv4 %s: %s\n", __func__, ifa->ifa_name, addr.ToString());
} else if (ifa->ifa_addr->sa_family == AF_INET6) {
struct sockaddr_in6* s6 = (struct sockaddr_in6*)(ifa->ifa_addr);
CNetAddr addr(s6->sin6_addr);
if (AddLocal(addr, LOCAL_IF))
LogPrintf("%s: IPv6 %s: %s\n", __func__, ifa->ifa_name, addr.ToString());
}
}
freeifaddrs(myaddrs);
}
#endif
}
CConnman::CConnman(uint64_t nSeed0In, uint64_t nSeed1In) : nSeed0(nSeed0In), nSeed1(nSeed1In)
{
setBannedIsDirty = false;
fAddressesInitialized = false;
nLastNodeId = 0;
nSendBufferMaxSize = 0;
nReceiveFloodSize = 0;
semOutbound = NULL;
nMaxConnections = 0;
nMaxOutbound = 0;
nBestHeight = 0;
clientInterface = NULL;
flagInterruptMsgProc = false;
}
NodeId CConnman::GetNewNodeId()
{
return nLastNodeId.fetch_add(1, std::memory_order_relaxed);
}
bool CConnman::Start(CScheduler& scheduler, std::string& strNodeError, Options connOptions)
{
nTotalBytesRecv = 0;
nTotalBytesSent = 0;
nRelevantServices = connOptions.nRelevantServices;
nLocalServices = connOptions.nLocalServices;
nMaxConnections = connOptions.nMaxConnections;
nMaxOutbound = std::min(connOptions.nMaxOutbound, nMaxConnections);
nMaxFeeler = connOptions.nMaxFeeler;
nSendBufferMaxSize = connOptions.nSendBufferMaxSize;
nReceiveFloodSize = connOptions.nReceiveFloodSize;
SetBestHeight(connOptions.nBestHeight);
clientInterface = connOptions.uiInterface;
if (clientInterface)
clientInterface->InitMessage(_("Loading addresses..."));
// Load addresses from peers.dat
int64_t nStart = GetTimeMillis();
{
CAddrDB adb;
if (adb.Read(addrman))
LogPrintf("Loaded %i addresses from peers.dat %dms\n", addrman.size(), GetTimeMillis() - nStart);
else {
addrman.Clear(); // Addrman can be in an inconsistent state after failure, reset it
LogPrintf("Invalid or missing peers.dat; recreating\n");
DumpAddresses();
}
}
if (clientInterface)
clientInterface->InitMessage(_("Loading banlist..."));
// Load addresses from banlist.dat
nStart = GetTimeMillis();
CBanDB bandb;
banmap_t banmap;
if (bandb.Read(banmap)) {
SetBanned(banmap); // thread save setter
SetBannedSetDirty(false); // no need to write down, just read data
SweepBanned(); // sweep out unused entries
LogPrint(BCLog::NET, "Loaded %d banned node ips/subnets from banlist.dat %dms\n",
banmap.size(), GetTimeMillis() - nStart);
} else {
LogPrintf("Invalid or missing banlist.dat; recreating\n");
SetBannedSetDirty(true); // force write
DumpBanlist();
}
// Initialize random numbers. Even when rand() is only usable for trivial use-cases most nodes should have a different
// seed after all the file-IO done at this point. Should be good enough even when nodes are started via scripts.
srand(time(NULL));
fAddressesInitialized = true;
if (semOutbound == NULL) {
// initialize semaphore
semOutbound = new CSemaphore(std::min((nMaxOutbound + nMaxFeeler), nMaxConnections));
}
if (pnodeLocalHost == nullptr) {
CNetAddr local;
LookupHost("127.0.0.1", local, false);
NodeId id = GetNewNodeId();
uint64_t nonce = GetDeterministicRandomizer(RANDOMIZER_ID_LOCALHOSTNONCE).Write(id).Finalize();
pnodeLocalHost = new CNode(id, nLocalServices, GetBestHeight(), INVALID_SOCKET, CAddress(CService(local, 0), nLocalServices), 0, nonce);
GetNodeSignals().InitializeNode(pnodeLocalHost, *this);
}
//
// Start threads
//
InterruptSocks5(false);
interruptNet.reset();
flagInterruptMsgProc = false;
{
std::unique_lock<std::mutex> lock(mutexMsgProc);
fMsgProcWake = false;
}
// Send and receive from sockets, accept connections
threadSocketHandler = std::thread(&TraceThread<std::function<void()> >, "net", std::function<void()>(std::bind(&CConnman::ThreadSocketHandler, this)));
if (!gArgs.GetBoolArg("-dnsseed", true))
LogPrintf("DNS seeding disabled\n");
else
threadDNSAddressSeed = std::thread(&TraceThread<std::function<void()> >, "dnsseed", std::function<void()>(std::bind(&CConnman::ThreadDNSAddressSeed, this)));
// Initiate outbound connections from -addnode
threadOpenAddedConnections = std::thread(&TraceThread<std::function<void()> >, "addcon", std::function<void()>(std::bind(&CConnman::ThreadOpenAddedConnections, this)));
// Initiate outbound connections unless connect=0
if (!gArgs.IsArgSet("-connect") || gArgs.GetArgs("-connect").size() != 1 || gArgs.GetArgs("-connect")[0] != "0")
threadOpenConnections = std::thread(&TraceThread<std::function<void()> >, "opencon", std::function<void()>(std::bind(&CConnman::ThreadOpenConnections, this)));
// Process messages
threadMessageHandler = std::thread(&TraceThread<std::function<void()> >, "msghand", std::function<void()>(std::bind(&CConnman::ThreadMessageHandler, this)));
// Dump network addresses
scheduler.scheduleEvery(std::bind(&CConnman::DumpData, this), DUMP_ADDRESSES_INTERVAL * 1000);
return true;
}
class CNetCleanup
{
public:
CNetCleanup() {}
~CNetCleanup()
{
#ifdef WIN32
// Shutdown Windows Sockets
WSACleanup();
#endif
}
}
instance_of_cnetcleanup;
void CExplicitNetCleanup::callCleanup()
{
// Explicit call to destructor of CNetCleanup because it's not implicitly called
// when the wallet is restarted from within the wallet itself.
CNetCleanup* tmp = new CNetCleanup();
delete tmp; // Stroustrup's gonna kill me for that
}
void CConnman::Interrupt()
{
{
std::lock_guard<std::mutex> lock(mutexMsgProc);
flagInterruptMsgProc = true;
}
condMsgProc.notify_all();
interruptNet();
InterruptSocks5(true);
if (semOutbound)
for (int i=0; i<(nMaxOutbound + nMaxFeeler); i++)
semOutbound->post();
}
void CConnman::Stop()
{
if (threadMessageHandler.joinable())
threadMessageHandler.join();
if (threadOpenConnections.joinable())
threadOpenConnections.join();
if (threadOpenAddedConnections.joinable())
threadOpenAddedConnections.join();
if (threadDNSAddressSeed.joinable())
threadDNSAddressSeed.join();
if (threadSocketHandler.joinable())
threadSocketHandler.join();
if (fAddressesInitialized)
{
DumpData();
fAddressesInitialized = false;
}
// Close sockets
for(CNode* pnode : vNodes)
pnode->CloseSocketDisconnect();
for(ListenSocket& hListenSocket : vhListenSocket)
if (hListenSocket.socket != INVALID_SOCKET)
if (!CloseSocket(hListenSocket.socket))
LogPrintf("CloseSocket(hListenSocket) failed with error %s\n", NetworkErrorString(WSAGetLastError()));
// clean up some globals (to help leak detection)
for(CNode* pnode : vNodes) {
DeleteNode(pnode);
}
for(CNode* pnode : vNodesDisconnected) {
DeleteNode(pnode);
}
vNodes.clear();
vNodesDisconnected.clear();
vhListenSocket.clear();
delete semOutbound;
semOutbound = NULL;
if(pnodeLocalHost)
DeleteNode(pnodeLocalHost);
pnodeLocalHost = NULL;
}
void CConnman::DeleteNode(CNode* pnode)
{
assert(pnode);
bool fUpdateConnectionTime = false;
GetNodeSignals().FinalizeNode(pnode->GetId(), fUpdateConnectionTime);
if(fUpdateConnectionTime)
addrman.Connected(pnode->addr);
delete pnode;
}
CConnman::~CConnman()
{
Interrupt();
Stop();
}
size_t CConnman::GetAddressCount() const
{
return addrman.size();
}
void CConnman::SetServices(const CService &addr, ServiceFlags nServices)
{
addrman.SetServices(addr, nServices);
}
void CConnman::MarkAddressGood(const CAddress& addr)
{
addrman.Good(addr);
}
void CConnman::AddNewAddress(const CAddress& addr, const CAddress& addrFrom, int64_t nTimePenalty)
{
addrman.Add(addr, addrFrom, nTimePenalty);
}
void CConnman::AddNewAddresses(const std::vector<CAddress>& vAddr, const CAddress& addrFrom, int64_t nTimePenalty)
{
addrman.Add(vAddr, addrFrom, nTimePenalty);
}
std::vector<CAddress> CConnman::GetAddresses()
{
return addrman.GetAddr();
}
bool CConnman::AddNode(const std::string& strNode)
{
LOCK(cs_vAddedNodes);
for(std::vector<std::string>::const_iterator it = vAddedNodes.begin(); it != vAddedNodes.end(); ++it) {
if (strNode == *it)
return false;
}
vAddedNodes.push_back(strNode);
return true;
}
bool CConnman::RemoveAddedNode(const std::string& strNode)
{
LOCK(cs_vAddedNodes);
for(std::vector<std::string>::iterator it = vAddedNodes.begin(); it != vAddedNodes.end(); ++it) {
if (strNode == *it) {
vAddedNodes.erase(it);
return true;
}
}
return false;
}
size_t CConnman::GetNodeCount(NumConnections flags)
{
LOCK(cs_vNodes);
if (flags == CConnman::CONNECTIONS_ALL) // Shortcut if we want total
return vNodes.size();
int nNum = 0;
for(std::vector<CNode*>::const_iterator it = vNodes.begin(); it != vNodes.end(); ++it)
if (flags & ((*it)->fInbound ? CONNECTIONS_IN : CONNECTIONS_OUT))
nNum++;
return nNum;
}
void CConnman::GetNodeStats(std::vector<CNodeStats>& vstats)
{
vstats.clear();
LOCK(cs_vNodes);
vstats.reserve(vNodes.size());
for(std::vector<CNode*>::iterator it = vNodes.begin(); it != vNodes.end(); ++it) {
CNode* pnode = *it;
vstats.emplace_back();
pnode->copyStats(vstats.back());
}
}
bool CConnman::DisconnectNode(const std::string& strNode)
{
LOCK(cs_vNodes);
if (CNode* pnode = FindNode(strNode)) {
pnode->fDisconnect = true;
return true;
}
return false;
}
bool CConnman::DisconnectNode(NodeId id)
{
LOCK(cs_vNodes);
for(CNode* pnode : vNodes) {
if (id == pnode->id) {
pnode->fDisconnect = true;
return true;
}
}
return false;
}
void CConnman::RelayInv(CInv& inv)
{
LOCK(cs_vNodes);
for (CNode* pnode : vNodes){
if((pnode->nServices == NODE_BLOOM_WITHOUT_MN) && inv.IsMasterNodeType())continue;
if (pnode->nVersion >= ActiveProtocol())
pnode->PushInventory(inv);
}
}
void CConnman::RecordBytesRecv(uint64_t bytes)
{
LOCK(cs_totalBytesRecv);
nTotalBytesRecv += bytes;
}
void CConnman::RecordBytesSent(uint64_t bytes)
{
LOCK(cs_totalBytesSent);
nTotalBytesSent += bytes;
}
uint64_t CConnman::GetTotalBytesRecv()
{
LOCK(cs_totalBytesRecv);
return nTotalBytesRecv;
}
uint64_t CConnman::GetTotalBytesSent()
{
LOCK(cs_totalBytesSent);
return nTotalBytesSent;
}
ServiceFlags CConnman::GetLocalServices() const
{
return nLocalServices;
}
void CConnman::SetBestHeight(int height)
{
nBestHeight.store(height, std::memory_order_release);
}
int CConnman::GetBestHeight() const
{
return nBestHeight.load(std::memory_order_acquire);
}
unsigned int CConnman::GetReceiveFloodSize() const { return nReceiveFloodSize; }
unsigned int CConnman::GetSendBufferSize() const{ return nSendBufferMaxSize; }
CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress& addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const std::string& addrNameIn, bool fInboundIn) :
nTimeConnected(GetTime()),
addr(addrIn),
fInbound(fInboundIn),
id(idIn),
nKeyedNetGroup(nKeyedNetGroupIn),
addrKnown(5000, 0.001),
filterInventoryKnown(50000, 0.000001),
nLocalHostNonce(nLocalHostNonceIn),
nLocalServices(nLocalServicesIn),
nMyStartingHeight(nMyStartingHeightIn),
nSendVersion(0)
{
nServices = NODE_NONE;
nServicesExpected = NODE_NONE;
hSocket = hSocketIn;
nRecvVersion = INIT_PROTO_VERSION;
nLastSend = 0;
nLastRecv = 0;
nSendBytes = 0;
nRecvBytes = 0;
nTimeOffset = 0;
addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn;
nVersion = 0;
strSubVer = "";
fWhitelisted = false;
fOneShot = false;
fClient = false; // set by version message
fFeeler = false;
fNetworkNode = false;
fSuccessfullyConnected = false;
fDisconnect = false;
nRefCount = 0;
nSendSize = 0;
nSendOffset = 0;
hashContinue = UINT256_ZERO;
nStartingHeight = -1;
filterInventoryKnown.reset();
fSendMempool = false;
fGetAddr = false;
nNextLocalAddrSend = 0;
nNextAddrSend = 0;
nNextInvSend = 0;
fRelayTxes = false;
pfilter = new CBloomFilter();
timeLastMempoolReq = 0;
nPingNonceSent = 0;
nPingUsecStart = 0;
nPingUsecTime = 0;
fPingQueued = false;
nMinPingUsecTime = std::numeric_limits<int64_t>::max();
fPauseRecv = false;
fPauseSend = false;
nProcessQueueSize = 0;
for (const std::string &msg : getAllNetMessageTypes())
mapRecvBytesPerMsgCmd[msg] = 0;
mapRecvBytesPerMsgCmd[NET_MESSAGE_COMMAND_OTHER] = 0;
if (fLogIPs)
LogPrint(BCLog::NET, "Added connection to %s peer=%d\n", addrName, id);
else
LogPrint(BCLog::NET, "Added connection peer=%d\n", id);
}
CNode::~CNode()
{
CloseSocket(hSocket);
if (pfilter)
delete pfilter;
}
void CNode::AskFor(const CInv& inv)
{
if (mapAskFor.size() > MAPASKFOR_MAX_SZ)
return;
// We're using mapAskFor as a priority queue,
// the key is the earliest time the request can be sent
int64_t nRequestTime;
limitedmap<CInv, int64_t>::const_iterator it = mapAlreadyAskedFor.find(inv);
if (it != mapAlreadyAskedFor.end())
nRequestTime = it->second;
else
nRequestTime = 0;
LogPrint(BCLog::NET, "askfor %s %d (%s) peer=%d\n", inv.ToString(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime / 1000000), id);
// Make sure not to reuse time indexes to keep things in the same order
int64_t nNow = GetTimeMicros() - 1000000;
static int64_t nLastTime;
++nLastTime;
nNow = std::max(nNow, nLastTime);
nLastTime = nNow;
// Each retry is 2 minutes after the last
nRequestTime = std::max(nRequestTime + 2 * 60 * 1000000, nNow);
if (it != mapAlreadyAskedFor.end())
mapAlreadyAskedFor.update(it, nRequestTime);
else
mapAlreadyAskedFor.insert(std::make_pair(inv, nRequestTime));
mapAskFor.insert(std::make_pair(nRequestTime, inv));
}
bool CConnman::NodeFullyConnected(const CNode* pnode)
{
return pnode && pnode->fSuccessfullyConnected && !pnode->fDisconnect;
}
void CConnman::PushMessage(CNode* pnode, CSerializedNetMsg&& msg)
{
size_t nMessageSize = msg.data.size();
size_t nTotalSize = nMessageSize + CMessageHeader::HEADER_SIZE;
LogPrint(BCLog::NET, "sending %s (%d bytes) peer=%d\n", SanitizeString(msg.command.c_str()), nMessageSize, pnode->id);
std::vector<unsigned char> serializedHeader;
serializedHeader.reserve(CMessageHeader::HEADER_SIZE);
uint256 hash = Hash(msg.data.data(), msg.data.data() + nMessageSize);
CMessageHeader hdr(Params().MessageStart(), msg.command.c_str(), nMessageSize);
memcpy(hdr.pchChecksum, hash.begin(), CMessageHeader::CHECKSUM_SIZE);
CVectorWriter{SER_NETWORK, INIT_PROTO_VERSION, serializedHeader, 0, hdr};
size_t nBytesSent = 0;
{
LOCK(pnode->cs_vSend);
bool optimisticSend(pnode->vSendMsg.empty());
//log total amount of bytes per command
pnode->mapSendBytesPerMsgCmd[msg.command] += nTotalSize;
pnode->nSendSize += nTotalSize;
if (pnode->nSendSize > nSendBufferMaxSize)
pnode->fPauseSend = true;
pnode->vSendMsg.push_back(std::move(serializedHeader));
if (nMessageSize)
pnode->vSendMsg.push_back(std::move(msg.data));
// If write queue empty, attempt "optimistic write"
if (optimisticSend == true)
nBytesSent = SocketSendData(pnode);
}
if (nBytesSent)
RecordBytesSent(nBytesSent);
}
bool CConnman::ForNode(NodeId id, std::function<bool(CNode* pnode)> func)
{
CNode* found = nullptr;
LOCK(cs_vNodes);
for (auto&& pnode : vNodes) {
if(pnode->id == id) {
found = pnode;
break;
}
}
return found != nullptr && NodeFullyConnected(found) && func(found);
}
bool CConnman::IsNodeConnected(const CAddress& addr)
{
return FindNode(addr.ToStringIPPort());
}
CNode* CConnman::ConnectNode(CAddress addrConnect)
{
return ConnectNode(addrConnect, nullptr, true);
}
// valid, reachable and routable address (except for RegTest)
bool validateMasternodeIP(const std::string& addrStr)
{
CNetAddr resolved;
if (LookupHost(addrStr.c_str(), resolved, false)) {
return ((IsReachable(resolved) && resolved.IsRoutable()) ||
(Params().IsRegTestNet() && resolved.IsValid()));
}
return false;
}
int64_t PoissonNextSend(int64_t nNow, int average_interval_seconds) {
return nNow + (int64_t)(log1p(GetRand(1ULL << 48) * -0.0000000000000035527136788 /* -1/2^48 */) * average_interval_seconds * -1000000.0 + 0.5);
}
CSipHasher CConnman::GetDeterministicRandomizer(uint64_t id)
{
return CSipHasher(nSeed0, nSeed1).Write(id);
}
uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& ad)
{
std::vector<unsigned char> vchNetGroup(ad.GetGroup());
return GetDeterministicRandomizer(RANDOMIZER_ID_NETGROUP).Write(&vchNetGroup[0], vchNetGroup.size()).Finalize();
}
|
/*
* Copyright 2002,2004 The Apache Software Foundation.
*
* 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.
*/
/*
* $Id: SimpleValueHashTableOf.hpp 176026 2004-09-08 13:57:07Z peiyongz $
*/
#include <xercesc/util/XercesDefs.hpp>
#include "SimpleHashPtr.hpp"
#include <xercesc/util/IllegalArgumentException.hpp>
#include <xercesc/util/NoSuchElementException.hpp>
#include <xercesc/util/RuntimeException.hpp>
#include <xercesc/util/XMLExceptMsgs.hpp>
#include <xercesc/util/XMLEnumerator.hpp>
#include <xercesc/util/XMLString.hpp>
XERCES_CPP_NAMESPACE_USE
//
// Forward declare the enumerator so he can be our friend. Can you say
// friend, neighbour? Of course you can...
//
template <class TVal> class ValueHashTableOfEnumerator;
template <class TVal> struct ValueHashTableBucketElem;
//
// This should really be a nested class, but some of the compilers we
// have to support cannot deal with that!
//
template <class TVal> struct ValueHashTableBucketElem
{
ValueHashTableBucketElem(void* key, const TVal& value, ValueHashTableBucketElem<TVal>* next)
: fData(value), fNext(next), fKey(key)
{
}
TVal fData;
ValueHashTableBucketElem<TVal>* fNext;
void* fKey;
};
template <class TVal> class SimpleValueHashTableOf
{
public:
// -----------------------------------------------------------------------
// Constructors and Destructor
// -----------------------------------------------------------------------
// backwards compatability - default hasher is SimpleHasPtrh
SimpleValueHashTableOf(const unsigned int modulus);
// if a hash function is passed in, it will be deleted when the hashtable is deleted.
// use a new instance of the hasher class for each hashtable, otherwise one hashtable
// may delete the hasher of a different hashtable if both use the same hasher.
SimpleValueHashTableOf(const unsigned int modulus, SimpleHashPtr* hashBase);
~SimpleValueHashTableOf();
// -----------------------------------------------------------------------
// Element management
// -----------------------------------------------------------------------
bool isEmpty() const;
bool containsKey(const void* const key) const;
void removeKey(const void* const key);
void removeAll();
// -----------------------------------------------------------------------
// Getters
// -----------------------------------------------------------------------
TVal& get(const void* const key);
const TVal& get(const void* const key) const;
// -----------------------------------------------------------------------
// Putters
// -----------------------------------------------------------------------
void put(void* key, const TVal& valueToAdopt);
private :
// -----------------------------------------------------------------------
// Declare our friends
// -----------------------------------------------------------------------
friend class ValueHashTableOfEnumerator<TVal>;
private:
// -----------------------------------------------------------------------
// Private methods
// -----------------------------------------------------------------------
ValueHashTableBucketElem<TVal>* findBucketElem(const void* const key, unsigned int& hashVal);
const ValueHashTableBucketElem<TVal>* findBucketElem(const void* const key, unsigned int& hashVal) const;
void removeBucketElem(const void* const key, unsigned int& hashVal);
void initialize(const unsigned int modulus);
// -----------------------------------------------------------------------
// Data members
//
// fBucketList
// This is the array that contains the heads of all of the list
// buckets, one for each possible hash value.
//
// fHashModulus
// The modulus used for this hash table, to hash the keys. This is
// also the number of elements in the bucket list.
//
// fHash
// The hasher for the key data type.
// -----------------------------------------------------------------------
ValueHashTableBucketElem<TVal>** fBucketList;
unsigned int fHashModulus;
SimpleHashPtr* fHash;
};
//
// An enumerator for a value array. It derives from the basic enumerator
// class, so that value vectors can be generically enumerated.
//
template <class TVal> class ValueHashTableOfEnumerator : public XMLEnumerator<TVal>
{
public :
// -----------------------------------------------------------------------
// Constructors and Destructor
// -----------------------------------------------------------------------
ValueHashTableOfEnumerator(SimpleValueHashTableOf<TVal>* const toEnum, const bool adopt = false);
virtual ~ValueHashTableOfEnumerator();
// -----------------------------------------------------------------------
// Enum interface
// -----------------------------------------------------------------------
bool hasMoreElements() const;
TVal& nextElement();
void Reset();
private :
// -----------------------------------------------------------------------
// Private methods
// -----------------------------------------------------------------------
void findNext();
// -----------------------------------------------------------------------
// Data Members
//
// fAdopted
// Indicates whether we have adopted the passed vector. If so then
// we delete the vector when we are destroyed.
//
// fCurElem
// This is the current bucket bucket element that we are on.
//
// fCurHash
// The is the current hash buck that we are working on. Once we hit
// the end of the bucket that fCurElem is in, then we have to start
// working this one up to the next non-empty bucket.
//
// fToEnum
// The value array being enumerated.
// -----------------------------------------------------------------------
bool fAdopted;
ValueHashTableBucketElem<TVal>* fCurElem;
unsigned int fCurHash;
SimpleValueHashTableOf<TVal>* fToEnum;
};
#if !defined(XERCES_TMPLSINC)
#include "SimpleValueHashTableOf.c"
#endif
|
// Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
#include "UObject/GeneratedCppIncludes.h"
#include "AdvancedSessions/Classes/AdvancedExternalUILibrary.h"
#ifdef _MSC_VER
#pragma warning (push)
#pragma warning (disable : 4883)
#endif
PRAGMA_DISABLE_DEPRECATION_WARNINGS
void EmptyLinkFunctionForGeneratedCodeAdvancedExternalUILibrary() {}
// Cross Module References
ADVANCEDSESSIONS_API UClass* Z_Construct_UClass_UAdvancedExternalUILibrary_NoRegister();
ADVANCEDSESSIONS_API UClass* Z_Construct_UClass_UAdvancedExternalUILibrary();
ENGINE_API UClass* Z_Construct_UClass_UBlueprintFunctionLibrary();
UPackage* Z_Construct_UPackage__Script_AdvancedSessions();
ADVANCEDSESSIONS_API UEnum* Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch();
ADVANCEDSESSIONS_API UScriptStruct* Z_Construct_UScriptStruct_FBPUniqueNetId();
ENGINE_API UClass* Z_Construct_UClass_APlayerController_NoRegister();
// End Cross Module References
DEFINE_FUNCTION(UAdvancedExternalUILibrary::execShowAccountUpgradeUI)
{
P_GET_STRUCT(FBPUniqueNetId,Z_Param_PlayerRequestingAccountUpgradeUI);
P_GET_ENUM_REF(EBlueprintResultSwitch,Z_Param_Out_Result);
P_FINISH;
P_NATIVE_BEGIN;
UAdvancedExternalUILibrary::ShowAccountUpgradeUI(Z_Param_PlayerRequestingAccountUpgradeUI,(EBlueprintResultSwitch&)(Z_Param_Out_Result));
P_NATIVE_END;
}
DEFINE_FUNCTION(UAdvancedExternalUILibrary::execShowProfileUI)
{
P_GET_STRUCT(FBPUniqueNetId,Z_Param_PlayerViewingProfile);
P_GET_STRUCT(FBPUniqueNetId,Z_Param_PlayerToViewProfileOf);
P_GET_ENUM_REF(EBlueprintResultSwitch,Z_Param_Out_Result);
P_FINISH;
P_NATIVE_BEGIN;
UAdvancedExternalUILibrary::ShowProfileUI(Z_Param_PlayerViewingProfile,Z_Param_PlayerToViewProfileOf,(EBlueprintResultSwitch&)(Z_Param_Out_Result));
P_NATIVE_END;
}
DEFINE_FUNCTION(UAdvancedExternalUILibrary::execCloseWebURLUI)
{
P_FINISH;
P_NATIVE_BEGIN;
UAdvancedExternalUILibrary::CloseWebURLUI();
P_NATIVE_END;
}
DEFINE_FUNCTION(UAdvancedExternalUILibrary::execShowWebURLUI)
{
P_GET_PROPERTY(FStrProperty,Z_Param_URLToShow);
P_GET_ENUM_REF(EBlueprintResultSwitch,Z_Param_Out_Result);
P_GET_TARRAY_REF(FString,Z_Param_Out_AllowedDomains);
P_GET_UBOOL(Z_Param_bEmbedded);
P_GET_UBOOL(Z_Param_bShowBackground);
P_GET_UBOOL(Z_Param_bShowCloseButton);
P_GET_PROPERTY(FIntProperty,Z_Param_OffsetX);
P_GET_PROPERTY(FIntProperty,Z_Param_OffsetY);
P_GET_PROPERTY(FIntProperty,Z_Param_SizeX);
P_GET_PROPERTY(FIntProperty,Z_Param_SizeY);
P_FINISH;
P_NATIVE_BEGIN;
UAdvancedExternalUILibrary::ShowWebURLUI(Z_Param_URLToShow,(EBlueprintResultSwitch&)(Z_Param_Out_Result),Z_Param_Out_AllowedDomains,Z_Param_bEmbedded,Z_Param_bShowBackground,Z_Param_bShowCloseButton,Z_Param_OffsetX,Z_Param_OffsetY,Z_Param_SizeX,Z_Param_SizeY);
P_NATIVE_END;
}
DEFINE_FUNCTION(UAdvancedExternalUILibrary::execShowLeaderBoardUI)
{
P_GET_PROPERTY(FStrProperty,Z_Param_LeaderboardName);
P_GET_ENUM_REF(EBlueprintResultSwitch,Z_Param_Out_Result);
P_FINISH;
P_NATIVE_BEGIN;
UAdvancedExternalUILibrary::ShowLeaderBoardUI(Z_Param_LeaderboardName,(EBlueprintResultSwitch&)(Z_Param_Out_Result));
P_NATIVE_END;
}
DEFINE_FUNCTION(UAdvancedExternalUILibrary::execShowInviteUI)
{
P_GET_OBJECT(APlayerController,Z_Param_PlayerController);
P_GET_ENUM_REF(EBlueprintResultSwitch,Z_Param_Out_Result);
P_FINISH;
P_NATIVE_BEGIN;
UAdvancedExternalUILibrary::ShowInviteUI(Z_Param_PlayerController,(EBlueprintResultSwitch&)(Z_Param_Out_Result));
P_NATIVE_END;
}
DEFINE_FUNCTION(UAdvancedExternalUILibrary::execShowFriendsUI)
{
P_GET_OBJECT(APlayerController,Z_Param_PlayerController);
P_GET_ENUM_REF(EBlueprintResultSwitch,Z_Param_Out_Result);
P_FINISH;
P_NATIVE_BEGIN;
UAdvancedExternalUILibrary::ShowFriendsUI(Z_Param_PlayerController,(EBlueprintResultSwitch&)(Z_Param_Out_Result));
P_NATIVE_END;
}
void UAdvancedExternalUILibrary::StaticRegisterNativesUAdvancedExternalUILibrary()
{
UClass* Class = UAdvancedExternalUILibrary::StaticClass();
static const FNameNativePtrPair Funcs[] = {
{ "CloseWebURLUI", &UAdvancedExternalUILibrary::execCloseWebURLUI },
{ "ShowAccountUpgradeUI", &UAdvancedExternalUILibrary::execShowAccountUpgradeUI },
{ "ShowFriendsUI", &UAdvancedExternalUILibrary::execShowFriendsUI },
{ "ShowInviteUI", &UAdvancedExternalUILibrary::execShowInviteUI },
{ "ShowLeaderBoardUI", &UAdvancedExternalUILibrary::execShowLeaderBoardUI },
{ "ShowProfileUI", &UAdvancedExternalUILibrary::execShowProfileUI },
{ "ShowWebURLUI", &UAdvancedExternalUILibrary::execShowWebURLUI },
};
FNativeFunctionRegistrar::RegisterFunctions(Class, Funcs, UE_ARRAY_COUNT(Funcs));
}
struct Z_Construct_UFunction_UAdvancedExternalUILibrary_CloseWebURLUI_Statics
{
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_CloseWebURLUI_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedExternalUI" },
{ "Comment", "// Show the UI that shows a web URL\n" },
{ "ModuleRelativePath", "Classes/AdvancedExternalUILibrary.h" },
{ "ToolTip", "Show the UI that shows a web URL" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedExternalUILibrary_CloseWebURLUI_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedExternalUILibrary, nullptr, "CloseWebURLUI", nullptr, nullptr, 0, nullptr, 0, RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04022401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_CloseWebURLUI_Statics::Function_MetaDataParams, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_CloseWebURLUI_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedExternalUILibrary_CloseWebURLUI()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedExternalUILibrary_CloseWebURLUI_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics
{
struct AdvancedExternalUILibrary_eventShowAccountUpgradeUI_Parms
{
FBPUniqueNetId PlayerRequestingAccountUpgradeUI;
EBlueprintResultSwitch Result;
};
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_Result;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_Result_Underlying;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_PlayerRequestingAccountUpgradeUI_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_PlayerRequestingAccountUpgradeUI;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_Result = { "Result", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowAccountUpgradeUI_Parms, Result), Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_Result_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_PlayerRequestingAccountUpgradeUI_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_PlayerRequestingAccountUpgradeUI = { "PlayerRequestingAccountUpgradeUI", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowAccountUpgradeUI_Parms, PlayerRequestingAccountUpgradeUI), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_PlayerRequestingAccountUpgradeUI_MetaData, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_PlayerRequestingAccountUpgradeUI_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_Result,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_Result_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::NewProp_PlayerRequestingAccountUpgradeUI,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedExternalUI" },
{ "Comment", "// Show the UI that shows the account upgrade UI (doesn't work with steam)\n" },
{ "ExpandEnumAsExecs", "Result" },
{ "ModuleRelativePath", "Classes/AdvancedExternalUILibrary.h" },
{ "ToolTip", "Show the UI that shows the account upgrade UI (doesn't work with steam)" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedExternalUILibrary, nullptr, "ShowAccountUpgradeUI", nullptr, nullptr, sizeof(AdvancedExternalUILibrary_eventShowAccountUpgradeUI_Parms), Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::Function_MetaDataParams, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics
{
struct AdvancedExternalUILibrary_eventShowFriendsUI_Parms
{
APlayerController* PlayerController;
EBlueprintResultSwitch Result;
};
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_Result;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_Result_Underlying;
static const UE4CodeGen_Private::FObjectPropertyParams NewProp_PlayerController;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::NewProp_Result = { "Result", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowFriendsUI_Parms, Result), Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::NewProp_Result_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FObjectPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::NewProp_PlayerController = { "PlayerController", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Object, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowFriendsUI_Parms, PlayerController), Z_Construct_UClass_APlayerController_NoRegister, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::NewProp_Result,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::NewProp_Result_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::NewProp_PlayerController,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedExternalUI" },
{ "Comment", "// Show the UI that handles the Friends list\n" },
{ "ExpandEnumAsExecs", "Result" },
{ "ModuleRelativePath", "Classes/AdvancedExternalUILibrary.h" },
{ "ToolTip", "Show the UI that handles the Friends list" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedExternalUILibrary, nullptr, "ShowFriendsUI", nullptr, nullptr, sizeof(AdvancedExternalUILibrary_eventShowFriendsUI_Parms), Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::Function_MetaDataParams, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics
{
struct AdvancedExternalUILibrary_eventShowInviteUI_Parms
{
APlayerController* PlayerController;
EBlueprintResultSwitch Result;
};
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_Result;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_Result_Underlying;
static const UE4CodeGen_Private::FObjectPropertyParams NewProp_PlayerController;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::NewProp_Result = { "Result", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowInviteUI_Parms, Result), Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::NewProp_Result_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FObjectPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::NewProp_PlayerController = { "PlayerController", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Object, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowInviteUI_Parms, PlayerController), Z_Construct_UClass_APlayerController_NoRegister, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::NewProp_Result,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::NewProp_Result_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::NewProp_PlayerController,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedExternalUI" },
{ "Comment", "// Show the UI that handles inviting people to your game\n" },
{ "ExpandEnumAsExecs", "Result" },
{ "ModuleRelativePath", "Classes/AdvancedExternalUILibrary.h" },
{ "ToolTip", "Show the UI that handles inviting people to your game" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedExternalUILibrary, nullptr, "ShowInviteUI", nullptr, nullptr, sizeof(AdvancedExternalUILibrary_eventShowInviteUI_Parms), Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::Function_MetaDataParams, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics
{
struct AdvancedExternalUILibrary_eventShowLeaderBoardUI_Parms
{
FString LeaderboardName;
EBlueprintResultSwitch Result;
};
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_Result;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_Result_Underlying;
static const UE4CodeGen_Private::FStrPropertyParams NewProp_LeaderboardName;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::NewProp_Result = { "Result", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowLeaderBoardUI_Parms, Result), Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::NewProp_Result_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FStrPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::NewProp_LeaderboardName = { "LeaderboardName", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Str, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowLeaderBoardUI_Parms, LeaderboardName), METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::NewProp_Result,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::NewProp_Result_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::NewProp_LeaderboardName,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedExternalUI" },
{ "Comment", "// Show the UI that shows the leaderboard (doesn't work with steam)\n" },
{ "ExpandEnumAsExecs", "Result" },
{ "ModuleRelativePath", "Classes/AdvancedExternalUILibrary.h" },
{ "ToolTip", "Show the UI that shows the leaderboard (doesn't work with steam)" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedExternalUILibrary, nullptr, "ShowLeaderBoardUI", nullptr, nullptr, sizeof(AdvancedExternalUILibrary_eventShowLeaderBoardUI_Parms), Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::Function_MetaDataParams, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics
{
struct AdvancedExternalUILibrary_eventShowProfileUI_Parms
{
FBPUniqueNetId PlayerViewingProfile;
FBPUniqueNetId PlayerToViewProfileOf;
EBlueprintResultSwitch Result;
};
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_Result;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_Result_Underlying;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_PlayerToViewProfileOf_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_PlayerToViewProfileOf;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_PlayerViewingProfile_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_PlayerViewingProfile;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_Result = { "Result", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowProfileUI_Parms, Result), Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_Result_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerToViewProfileOf_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerToViewProfileOf = { "PlayerToViewProfileOf", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowProfileUI_Parms, PlayerToViewProfileOf), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerToViewProfileOf_MetaData, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerToViewProfileOf_MetaData)) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerViewingProfile_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerViewingProfile = { "PlayerViewingProfile", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowProfileUI_Parms, PlayerViewingProfile), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerViewingProfile_MetaData, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerViewingProfile_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_Result,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_Result_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerToViewProfileOf,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::NewProp_PlayerViewingProfile,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedExternalUI" },
{ "Comment", "// Show the UI that shows the profile of a uniquenetid\n" },
{ "ExpandEnumAsExecs", "Result" },
{ "ModuleRelativePath", "Classes/AdvancedExternalUILibrary.h" },
{ "ToolTip", "Show the UI that shows the profile of a uniquenetid" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedExternalUILibrary, nullptr, "ShowProfileUI", nullptr, nullptr, sizeof(AdvancedExternalUILibrary_eventShowProfileUI_Parms), Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::Function_MetaDataParams, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics
{
struct AdvancedExternalUILibrary_eventShowWebURLUI_Parms
{
FString URLToShow;
EBlueprintResultSwitch Result;
TArray<FString> AllowedDomains;
bool bEmbedded;
bool bShowBackground;
bool bShowCloseButton;
int32 OffsetX;
int32 OffsetY;
int32 SizeX;
int32 SizeY;
};
static const UE4CodeGen_Private::FIntPropertyParams NewProp_SizeY;
static const UE4CodeGen_Private::FIntPropertyParams NewProp_SizeX;
static const UE4CodeGen_Private::FIntPropertyParams NewProp_OffsetY;
static const UE4CodeGen_Private::FIntPropertyParams NewProp_OffsetX;
static void NewProp_bShowCloseButton_SetBit(void* Obj);
static const UE4CodeGen_Private::FBoolPropertyParams NewProp_bShowCloseButton;
static void NewProp_bShowBackground_SetBit(void* Obj);
static const UE4CodeGen_Private::FBoolPropertyParams NewProp_bShowBackground;
static void NewProp_bEmbedded_SetBit(void* Obj);
static const UE4CodeGen_Private::FBoolPropertyParams NewProp_bEmbedded;
static const UE4CodeGen_Private::FArrayPropertyParams NewProp_AllowedDomains;
static const UE4CodeGen_Private::FStrPropertyParams NewProp_AllowedDomains_Inner;
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_Result;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_Result_Underlying;
static const UE4CodeGen_Private::FStrPropertyParams NewProp_URLToShow;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_SizeY = { "SizeY", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowWebURLUI_Parms, SizeY), METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_SizeX = { "SizeX", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowWebURLUI_Parms, SizeX), METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_OffsetY = { "OffsetY", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowWebURLUI_Parms, OffsetY), METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_OffsetX = { "OffsetX", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowWebURLUI_Parms, OffsetX), METADATA_PARAMS(nullptr, 0) };
void Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bShowCloseButton_SetBit(void* Obj)
{
((AdvancedExternalUILibrary_eventShowWebURLUI_Parms*)Obj)->bShowCloseButton = 1;
}
const UE4CodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bShowCloseButton = { "bShowCloseButton", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Bool | UE4CodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, 1, sizeof(bool), sizeof(AdvancedExternalUILibrary_eventShowWebURLUI_Parms), &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bShowCloseButton_SetBit, METADATA_PARAMS(nullptr, 0) };
void Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bShowBackground_SetBit(void* Obj)
{
((AdvancedExternalUILibrary_eventShowWebURLUI_Parms*)Obj)->bShowBackground = 1;
}
const UE4CodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bShowBackground = { "bShowBackground", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Bool | UE4CodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, 1, sizeof(bool), sizeof(AdvancedExternalUILibrary_eventShowWebURLUI_Parms), &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bShowBackground_SetBit, METADATA_PARAMS(nullptr, 0) };
void Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bEmbedded_SetBit(void* Obj)
{
((AdvancedExternalUILibrary_eventShowWebURLUI_Parms*)Obj)->bEmbedded = 1;
}
const UE4CodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bEmbedded = { "bEmbedded", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Bool | UE4CodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, 1, sizeof(bool), sizeof(AdvancedExternalUILibrary_eventShowWebURLUI_Parms), &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bEmbedded_SetBit, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FArrayPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_AllowedDomains = { "AllowedDomains", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Array, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowWebURLUI_Parms, AllowedDomains), EArrayPropertyFlags::None, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FStrPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_AllowedDomains_Inner = { "AllowedDomains", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Str, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_Result = { "Result", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowWebURLUI_Parms, Result), Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_Result_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FStrPropertyParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_URLToShow = { "URLToShow", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Str, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedExternalUILibrary_eventShowWebURLUI_Parms, URLToShow), METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_SizeY,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_SizeX,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_OffsetY,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_OffsetX,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bShowCloseButton,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bShowBackground,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_bEmbedded,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_AllowedDomains,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_AllowedDomains_Inner,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_Result,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_Result_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::NewProp_URLToShow,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::Function_MetaDataParams[] = {
{ "AutoCreateRefTerm", "AllowedDomains" },
{ "Category", "Online|AdvancedExternalUI" },
{ "Comment", "// Show the UI that shows a web URL\n" },
{ "CPP_Default_bEmbedded", "false" },
{ "CPP_Default_bShowBackground", "false" },
{ "CPP_Default_bShowCloseButton", "false" },
{ "CPP_Default_OffsetX", "0" },
{ "CPP_Default_OffsetY", "0" },
{ "CPP_Default_SizeX", "0" },
{ "CPP_Default_SizeY", "0" },
{ "ExpandEnumAsExecs", "Result" },
{ "ModuleRelativePath", "Classes/AdvancedExternalUILibrary.h" },
{ "ToolTip", "Show the UI that shows a web URL" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedExternalUILibrary, nullptr, "ShowWebURLUI", nullptr, nullptr, sizeof(AdvancedExternalUILibrary_eventShowWebURLUI_Parms), Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::PropPointers, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::Function_MetaDataParams, UE_ARRAY_COUNT(Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI_Statics::FuncParams);
}
return ReturnFunction;
}
UClass* Z_Construct_UClass_UAdvancedExternalUILibrary_NoRegister()
{
return UAdvancedExternalUILibrary::StaticClass();
}
struct Z_Construct_UClass_UAdvancedExternalUILibrary_Statics
{
static UObject* (*const DependentSingletons[])();
static const FClassFunctionLinkInfo FuncInfo[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Class_MetaDataParams[];
#endif
static const FCppClassTypeInfoStatic StaticCppClassTypeInfo;
static const UE4CodeGen_Private::FClassParams ClassParams;
};
UObject* (*const Z_Construct_UClass_UAdvancedExternalUILibrary_Statics::DependentSingletons[])() = {
(UObject* (*)())Z_Construct_UClass_UBlueprintFunctionLibrary,
(UObject* (*)())Z_Construct_UPackage__Script_AdvancedSessions,
};
const FClassFunctionLinkInfo Z_Construct_UClass_UAdvancedExternalUILibrary_Statics::FuncInfo[] = {
{ &Z_Construct_UFunction_UAdvancedExternalUILibrary_CloseWebURLUI, "CloseWebURLUI" }, // 1464195108
{ &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowAccountUpgradeUI, "ShowAccountUpgradeUI" }, // 2083974594
{ &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowFriendsUI, "ShowFriendsUI" }, // 1040255752
{ &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowInviteUI, "ShowInviteUI" }, // 631706187
{ &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowLeaderBoardUI, "ShowLeaderBoardUI" }, // 915626105
{ &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowProfileUI, "ShowProfileUI" }, // 1536084567
{ &Z_Construct_UFunction_UAdvancedExternalUILibrary_ShowWebURLUI, "ShowWebURLUI" }, // 627033601
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UClass_UAdvancedExternalUILibrary_Statics::Class_MetaDataParams[] = {
{ "IncludePath", "AdvancedExternalUILibrary.h" },
{ "ModuleRelativePath", "Classes/AdvancedExternalUILibrary.h" },
};
#endif
const FCppClassTypeInfoStatic Z_Construct_UClass_UAdvancedExternalUILibrary_Statics::StaticCppClassTypeInfo = {
TCppClassTypeTraits<UAdvancedExternalUILibrary>::IsAbstract,
};
const UE4CodeGen_Private::FClassParams Z_Construct_UClass_UAdvancedExternalUILibrary_Statics::ClassParams = {
&UAdvancedExternalUILibrary::StaticClass,
nullptr,
&StaticCppClassTypeInfo,
DependentSingletons,
FuncInfo,
nullptr,
nullptr,
UE_ARRAY_COUNT(DependentSingletons),
UE_ARRAY_COUNT(FuncInfo),
0,
0,
0x000000A0u,
METADATA_PARAMS(Z_Construct_UClass_UAdvancedExternalUILibrary_Statics::Class_MetaDataParams, UE_ARRAY_COUNT(Z_Construct_UClass_UAdvancedExternalUILibrary_Statics::Class_MetaDataParams))
};
UClass* Z_Construct_UClass_UAdvancedExternalUILibrary()
{
static UClass* OuterClass = nullptr;
if (!OuterClass)
{
UE4CodeGen_Private::ConstructUClass(OuterClass, Z_Construct_UClass_UAdvancedExternalUILibrary_Statics::ClassParams);
}
return OuterClass;
}
IMPLEMENT_CLASS(UAdvancedExternalUILibrary, 2546276213);
template<> ADVANCEDSESSIONS_API UClass* StaticClass<UAdvancedExternalUILibrary>()
{
return UAdvancedExternalUILibrary::StaticClass();
}
static FCompiledInDefer Z_CompiledInDefer_UClass_UAdvancedExternalUILibrary(Z_Construct_UClass_UAdvancedExternalUILibrary, &UAdvancedExternalUILibrary::StaticClass, TEXT("/Script/AdvancedSessions"), TEXT("UAdvancedExternalUILibrary"), false, nullptr, nullptr, nullptr);
DEFINE_VTABLE_PTR_HELPER_CTOR(UAdvancedExternalUILibrary);
PRAGMA_ENABLE_DEPRECATION_WARNINGS
#ifdef _MSC_VER
#pragma warning (pop)
#endif
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x4c3d, %rsi
lea addresses_WT_ht+0x763d, %rdi
nop
nop
nop
nop
nop
cmp $35138, %rdx
mov $48, %rcx
rep movsw
nop
nop
nop
nop
nop
inc %r11
lea addresses_WT_ht+0xbffd, %rsi
lea addresses_A_ht+0xe29d, %rdi
nop
nop
nop
nop
dec %r8
mov $53, %rcx
rep movsl
cmp %rdx, %rdx
lea addresses_A_ht+0xfa3d, %rdi
nop
nop
nop
nop
cmp $4736, %r10
mov $0x6162636465666768, %rdx
movq %rdx, (%rdi)
nop
nop
xor $35030, %rcx
lea addresses_WT_ht+0x1be3d, %rsi
lea addresses_A_ht+0x18e3d, %rdi
nop
nop
sub $50511, %r9
mov $69, %rcx
rep movsw
nop
nop
nop
nop
inc %rdi
lea addresses_normal_ht+0x1b63d, %rsi
lea addresses_D_ht+0x1557d, %rdi
nop
nop
nop
nop
and %rdx, %rdx
mov $21, %rcx
rep movsl
nop
nop
and %r11, %r11
lea addresses_WC_ht+0x8a1a, %r8
nop
nop
nop
cmp %rcx, %rcx
mov (%r8), %r11
nop
and %r8, %r8
lea addresses_WT_ht+0xe331, %rsi
nop
xor $46665, %r9
vmovups (%rsi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rdi
add %r9, %r9
lea addresses_D_ht+0x18d3d, %rsi
nop
nop
xor %rcx, %rcx
mov (%rsi), %r9w
nop
sub $46528, %r9
lea addresses_A_ht+0x171c1, %rsi
sub $63857, %r11
movb (%rsi), %dl
nop
nop
nop
nop
nop
sub $29456, %rsi
lea addresses_normal_ht+0xe05, %rsi
lea addresses_normal_ht+0x7dae, %rdi
nop
nop
nop
nop
nop
and %r11, %r11
mov $42, %rcx
rep movsw
nop
nop
nop
nop
and $60953, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r15
push %rdi
push %rdx
// Faulty Load
lea addresses_D+0x1e63d, %r12
nop
nop
dec %r13
movb (%r12), %r15b
lea oracles, %rdx
and $0xff, %r15
shlq $12, %r15
mov (%rdx,%r15,1), %r15
pop %rdx
pop %rdi
pop %r15
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.