add from giga-device, new branch added
This commit is contained in:
@@ -0,0 +1,355 @@
|
||||
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.44.35213.0
|
||||
|
||||
include listing.inc
|
||||
|
||||
INCLUDELIB MSVCRTD
|
||||
INCLUDELIB OLDNAMES
|
||||
|
||||
_DATA SEGMENT
|
||||
COMM infolog:BYTE:0200H
|
||||
_DATA ENDS
|
||||
msvcjmc SEGMENT
|
||||
__1F8170E1_mmintrin@h DB 01H
|
||||
__39F22AB7_concurrencysal@h DB 01H
|
||||
__B3864887_sal@h DB 01H
|
||||
__AD974A83_vadefs@h DB 01H
|
||||
__D58F3DC8_vcruntime@h DB 01H
|
||||
__735960E1_corecrt@h DB 01H
|
||||
__211DB995_corecrt_malloc@h DB 01H
|
||||
__7CD62D9E_malloc@h DB 01H
|
||||
__555A519C_xmmintrin@h DB 01H
|
||||
__4C2AD0C7_winpackagefamily@h DB 01H
|
||||
__9DED9ED1_winapifamily@h DB 01H
|
||||
__12FEDF4E_sdkddkver@h DB 01H
|
||||
__D8C2DB1D_excpt@h DB 01H
|
||||
__E1459A2A_stdarg@h DB 01H
|
||||
__6B04FCB3_specstrings_undef@h DB 01H
|
||||
__F4027AF7_specstrings_strict@h DB 01H
|
||||
__B90340D4_sdv_driverspecs@h DB 01H
|
||||
__BFFF5AD3_driverspecs@h DB 01H
|
||||
__32847078_specstrings@h DB 01H
|
||||
__108B2620_corecrt_wctype@h DB 01H
|
||||
__6CD6613D_ctype@h DB 01H
|
||||
__30902A1F_kernelspecs@h DB 01H
|
||||
__376FD5CA_basetsd@h DB 01H
|
||||
__13DE2371_errno@h DB 01H
|
||||
__B7C3A181_vcruntime_string@h DB 01H
|
||||
__8ACB2152_corecrt_memcpy_s@h DB 01H
|
||||
__EA6C9D17_corecrt_memory@h DB 01H
|
||||
__0DF2AF52_corecrt_wstring@h DB 01H
|
||||
__6E889ECC_string@h DB 01H
|
||||
__9BEDF4DE_guiddef@h DB 01H
|
||||
__51BFD2FE_pshpack4@h DB 01H
|
||||
__31652CEA_poppack@h DB 01H
|
||||
__5532AE4C_pshpack2@h DB 01H
|
||||
__58A52B9A_pshpack8@h DB 01H
|
||||
__57741015_pshpack1@h DB 01H
|
||||
__CDE68C90_apiset@h DB 01H
|
||||
__0BF06E8D_ktmtypes@h DB 01H
|
||||
__40C200C0_winnt@h DB 01H
|
||||
__9336F789_minwindef@h DB 01H
|
||||
__55136115_windef@h DB 01H
|
||||
__32205BF0_apisetcconv@h DB 01H
|
||||
__B48FDEA0_minwinbase@h DB 01H
|
||||
__3551B028_apiquery2@h DB 01H
|
||||
__65BE04AA_processenv@h DB 01H
|
||||
__4767CA46_fileapi@h DB 01H
|
||||
__282E6C4B_fileapifromapp@h DB 01H
|
||||
__393AF12C_debugapi@h DB 01H
|
||||
__EBC502B8_utilapiset@h DB 01H
|
||||
__1EAD8C69_handleapi@h DB 01H
|
||||
__D8EF9B29_errhandlingapi@h DB 01H
|
||||
__97FC1204_fibersapi@h DB 01H
|
||||
__27448220_namedpipeapi@h DB 01H
|
||||
__6EA33B2A_profileapi@h DB 01H
|
||||
__EAC6F673_heapapi@h DB 01H
|
||||
__D64EEA5A_ioapiset@h DB 01H
|
||||
__144BD4B6_synchapi@h DB 01H
|
||||
__03B1C640_interlockedapi@h DB 01H
|
||||
__DC64CB38_processthreadsapi@h DB 01H
|
||||
__D719B518_sysinfoapi@h DB 01H
|
||||
__410385B1_memoryapi@h DB 01H
|
||||
__C1AD45EF_enclaveapi@h DB 01H
|
||||
__F4C3AA32_threadpoollegacyapiset@h DB 01H
|
||||
__AC5A7A9F_threadpoolapiset@h DB 01H
|
||||
__F5254B21_jobapi@h DB 01H
|
||||
__BCEA6EE8_jobapi2@h DB 01H
|
||||
__D18ACE72_wow64apiset@h DB 01H
|
||||
__669B0D4A_libloaderapi@h DB 01H
|
||||
__645F7034_securitybaseapi@h DB 01H
|
||||
__67E58557_namespaceapi@h DB 01H
|
||||
__599D9D3A_systemtopologyapi@h DB 01H
|
||||
__2337E373_processtopologyapi@h DB 01H
|
||||
__02BFF239_securityappcontainer@h DB 01H
|
||||
__9C196272_realtimeapiset@h DB 01H
|
||||
__5AB313A4_winerror@h DB 01H
|
||||
__B7E7187B_timezoneapi@h DB 01H
|
||||
__6DE9EB6F_winbase@h DB 01H
|
||||
__56B2AFF2_wingdi@h DB 01H
|
||||
__BA1161A9_tvout@h DB 01H
|
||||
__0501A018_winuser@h DB 01H
|
||||
__EF12FA99_datetimeapi@h DB 01H
|
||||
__8FA7C3CA_winnls@h DB 01H
|
||||
__390F0C47_stringapiset@h DB 01H
|
||||
__28605B0A_wincontypes@h DB 01H
|
||||
__BFBDE86D_consoleapi@h DB 01H
|
||||
__C3CAFBF0_consoleapi2@h DB 01H
|
||||
__C20891C7_consoleapi3@h DB 01H
|
||||
__717C98B6_wincon@h DB 01H
|
||||
__2884C177_verrsrc@h DB 01H
|
||||
__A3FD3A34_winver@h DB 01H
|
||||
__6F8AD9F1_reason@h DB 01H
|
||||
__4C90FD6F_winreg@h DB 01H
|
||||
__68AFEBAD_wnnc@h DB 01H
|
||||
__5A7AB086_winnetwk@h DB 01H
|
||||
__2FE8A10C_stralign@h DB 01H
|
||||
__34558472_winsvc@h DB 01H
|
||||
__058845F1_mcx@h DB 01H
|
||||
__7F16006B_ime_cmodes@h DB 01H
|
||||
__0A3AF599_imm@h DB 01H
|
||||
__9349FE86_windows@h DB 01H
|
||||
__AD5C15D8_sn_internal@h DB 01H
|
||||
__60B45B40_corecrt_stdio_config@h DB 01H
|
||||
__CFA3741E_corecrt_wstdio@h DB 01H
|
||||
__B3FE3303_stdio@h DB 01H
|
||||
__955456CD_stddef@h DB 01H
|
||||
__99AED4FB_corecrt_search@h DB 01H
|
||||
__8B813BF6_corecrt_wstdlib@h DB 01H
|
||||
__6BEC0ADA_limits@h DB 01H
|
||||
__E8FB0A68_stdlib@h DB 01H
|
||||
__500EB2D2_stb_image@h DB 01H
|
||||
__D59A24E5_stdint@h DB 01H
|
||||
__079BD6B5_khrplatform@h DB 01H
|
||||
__67B0FD84_gl@h DB 01H
|
||||
__CB07BF00_wgl@h DB 01H
|
||||
__EC888205_glfw3@h DB 01H
|
||||
__3038D850_emmintrin@h DB 01H
|
||||
__EF99B0D9_pmmintrin@h DB 01H
|
||||
__5F40C35B_tmmintrin@h DB 01H
|
||||
__767BD6D8_smmintrin@h DB 01H
|
||||
__13195F14_nmmintrin@h DB 01H
|
||||
__C6A2A55A_wmmintrin@h DB 01H
|
||||
__0D36E85D_zmmintrin@h DB 01H
|
||||
__3A224A97_immintrin@h DB 01H
|
||||
__9FB25DBE_assert@h DB 01H
|
||||
__B6859C2C_glfw_function@h DB 01H
|
||||
__D68507E7_StgSharpNative@h DB 01H
|
||||
__8ED6024B_vector@c DB 01H
|
||||
msvcjmc ENDS
|
||||
PUBLIC normalize
|
||||
PUBLIC __JustMyCode_Default
|
||||
EXTRN _RTC_InitBase:PROC
|
||||
EXTRN _RTC_Shutdown:PROC
|
||||
EXTRN __CheckForDebuggerJustMyCode:PROC
|
||||
; COMDAT pdata
|
||||
pdata SEGMENT
|
||||
$pdata$normalize DD imagerel $LN3
|
||||
DD imagerel $LN3+379
|
||||
DD imagerel $unwind$normalize
|
||||
pdata ENDS
|
||||
; COMDAT rtc$TMZ
|
||||
rtc$TMZ SEGMENT
|
||||
_RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
|
||||
rtc$TMZ ENDS
|
||||
; COMDAT rtc$IMZ
|
||||
rtc$IMZ SEGMENT
|
||||
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
|
||||
rtc$IMZ ENDS
|
||||
; COMDAT xdata
|
||||
xdata SEGMENT
|
||||
$unwind$normalize DD 025051801H
|
||||
DD 01132318H
|
||||
DD 0700c0041H
|
||||
DD 0500bH
|
||||
xdata ENDS
|
||||
; Function compile flags: /Odt
|
||||
; COMDAT __JustMyCode_Default
|
||||
_TEXT SEGMENT
|
||||
__JustMyCode_Default PROC ; COMDAT
|
||||
00000 c2 00 00 ret 0
|
||||
__JustMyCode_Default ENDP
|
||||
_TEXT ENDS
|
||||
; Function compile flags: /Odtp /RTCsu /ZI
|
||||
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\ÄÚºËÔ´´úÂë\StgSharp.Native\sn-src\vector.c
|
||||
; COMDAT normalize
|
||||
_TEXT SEGMENT
|
||||
a_length_sq$ = 16
|
||||
a_inv_length$ = 64
|
||||
dot_product$ = 112
|
||||
b_orthogonal$ = 160
|
||||
b_length_sq$ = 208
|
||||
b_inv_length$ = 256
|
||||
source$ = 512
|
||||
target$ = 520
|
||||
normalize PROC ; COMDAT
|
||||
|
||||
; 5 : {
|
||||
|
||||
$LN3:
|
||||
00000 48 89 54 24 10 mov QWORD PTR [rsp+16], rdx
|
||||
00005 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
|
||||
0000a 55 push rbp
|
||||
0000b 57 push rdi
|
||||
0000c 48 81 ec 08 02
|
||||
00 00 sub rsp, 520 ; 00000208H
|
||||
00013 48 8d 6c 24 20 lea rbp, QWORD PTR [rsp+32]
|
||||
00018 48 8d 0d 00 00
|
||||
00 00 lea rcx, OFFSET FLAT:__8ED6024B_vector@c
|
||||
0001f e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
00024 90 npad 1
|
||||
|
||||
; 6 : __m128 a_length_sq = _mm_mul_ps(*source, *source);
|
||||
|
||||
00025 48 8b 85 00 02
|
||||
00 00 mov rax, QWORD PTR source$[rbp]
|
||||
0002c 48 8b 8d 00 02
|
||||
00 00 mov rcx, QWORD PTR source$[rbp]
|
||||
00033 0f 10 00 movups xmm0, XMMWORD PTR [rax]
|
||||
00036 0f 59 01 mulps xmm0, XMMWORD PTR [rcx]
|
||||
00039 0f 29 45 10 movaps XMMWORD PTR a_length_sq$[rbp], xmm0
|
||||
|
||||
; 7 : a_length_sq = _mm_add_ps(a_length_sq,
|
||||
|
||||
0003d 0f 28 45 10 movaps xmm0, XMMWORD PTR a_length_sq$[rbp]
|
||||
00041 0f c6 45 10 b1 shufps xmm0, XMMWORD PTR a_length_sq$[rbp], 177 ; 000000b1H
|
||||
00046 0f 28 4d 10 movaps xmm1, XMMWORD PTR a_length_sq$[rbp]
|
||||
0004a 0f 58 c8 addps xmm1, xmm0
|
||||
0004d 0f 28 c1 movaps xmm0, xmm1
|
||||
00050 0f 29 45 10 movaps XMMWORD PTR a_length_sq$[rbp], xmm0
|
||||
|
||||
; 8 : _mm_shuffle_ps(a_length_sq, a_length_sq, _MM_SHUFFLE(2, 3, 0, 1)));
|
||||
; 9 : a_length_sq = _mm_add_ss(a_length_sq,
|
||||
|
||||
00054 0f 28 45 10 movaps xmm0, XMMWORD PTR a_length_sq$[rbp]
|
||||
00058 0f c6 45 10 0e shufps xmm0, XMMWORD PTR a_length_sq$[rbp], 14
|
||||
0005d 0f 28 4d 10 movaps xmm1, XMMWORD PTR a_length_sq$[rbp]
|
||||
00061 f3 0f 58 c8 addss xmm1, xmm0
|
||||
00065 0f 29 4d 10 movaps XMMWORD PTR a_length_sq$[rbp], xmm1
|
||||
|
||||
; 10 : _mm_shuffle_ps(a_length_sq, a_length_sq, _MM_SHUFFLE(0, 0, 3, 2)));
|
||||
; 11 :
|
||||
; 12 : __m128 a_inv_length = _mm_rsqrt_ps(a_length_sq);
|
||||
|
||||
00069 0f 52 45 10 rsqrtps xmm0, XMMWORD PTR a_length_sq$[rbp]
|
||||
0006d 0f 29 45 40 movaps XMMWORD PTR a_inv_length$[rbp], xmm0
|
||||
|
||||
; 13 : *source = _mm_mul_ps(*source, a_inv_length);
|
||||
|
||||
00071 48 8b 85 00 02
|
||||
00 00 mov rax, QWORD PTR source$[rbp]
|
||||
00078 0f 10 00 movups xmm0, XMMWORD PTR [rax]
|
||||
0007b 0f 59 45 40 mulps xmm0, XMMWORD PTR a_inv_length$[rbp]
|
||||
0007f 48 8b 85 00 02
|
||||
00 00 mov rax, QWORD PTR source$[rbp]
|
||||
00086 0f 11 00 movups XMMWORD PTR [rax], xmm0
|
||||
|
||||
; 14 :
|
||||
; 15 : __m128 dot_product = _mm_mul_ps(*target, *source);
|
||||
|
||||
00089 48 8b 85 08 02
|
||||
00 00 mov rax, QWORD PTR target$[rbp]
|
||||
00090 48 8b 8d 00 02
|
||||
00 00 mov rcx, QWORD PTR source$[rbp]
|
||||
00097 0f 10 00 movups xmm0, XMMWORD PTR [rax]
|
||||
0009a 0f 59 01 mulps xmm0, XMMWORD PTR [rcx]
|
||||
0009d 0f 29 45 70 movaps XMMWORD PTR dot_product$[rbp], xmm0
|
||||
|
||||
; 16 : dot_product = _mm_add_ps(dot_product,
|
||||
|
||||
000a1 0f 28 45 70 movaps xmm0, XMMWORD PTR dot_product$[rbp]
|
||||
000a5 0f c6 45 70 b1 shufps xmm0, XMMWORD PTR dot_product$[rbp], 177 ; 000000b1H
|
||||
000aa 0f 28 4d 70 movaps xmm1, XMMWORD PTR dot_product$[rbp]
|
||||
000ae 0f 58 c8 addps xmm1, xmm0
|
||||
000b1 0f 28 c1 movaps xmm0, xmm1
|
||||
000b4 0f 29 45 70 movaps XMMWORD PTR dot_product$[rbp], xmm0
|
||||
|
||||
; 17 : _mm_shuffle_ps(dot_product, dot_product, _MM_SHUFFLE(2, 3, 0, 1)));
|
||||
; 18 : dot_product = _mm_add_ss(dot_product,
|
||||
|
||||
000b8 0f 28 45 70 movaps xmm0, XMMWORD PTR dot_product$[rbp]
|
||||
000bc 0f c6 45 70 0e shufps xmm0, XMMWORD PTR dot_product$[rbp], 14
|
||||
000c1 0f 28 4d 70 movaps xmm1, XMMWORD PTR dot_product$[rbp]
|
||||
000c5 f3 0f 58 c8 addss xmm1, xmm0
|
||||
000c9 0f 29 4d 70 movaps XMMWORD PTR dot_product$[rbp], xmm1
|
||||
|
||||
; 19 : _mm_shuffle_ps(dot_product, dot_product, _MM_SHUFFLE(0, 0, 3, 2)));
|
||||
; 20 :
|
||||
; 21 : __m128 b_orthogonal = _mm_sub_ps(*target, _mm_mul_ps(*source, dot_product));
|
||||
|
||||
000cd 48 8b 85 00 02
|
||||
00 00 mov rax, QWORD PTR source$[rbp]
|
||||
000d4 0f 10 00 movups xmm0, XMMWORD PTR [rax]
|
||||
000d7 0f 59 45 70 mulps xmm0, XMMWORD PTR dot_product$[rbp]
|
||||
000db 48 8b 85 08 02
|
||||
00 00 mov rax, QWORD PTR target$[rbp]
|
||||
000e2 0f 10 08 movups xmm1, XMMWORD PTR [rax]
|
||||
000e5 0f 5c c8 subps xmm1, xmm0
|
||||
000e8 0f 28 c1 movaps xmm0, xmm1
|
||||
000eb 0f 29 85 a0 00
|
||||
00 00 movaps XMMWORD PTR b_orthogonal$[rbp], xmm0
|
||||
|
||||
; 22 :
|
||||
; 23 : __m128 b_length_sq = _mm_mul_ps(b_orthogonal, b_orthogonal);
|
||||
|
||||
000f2 0f 28 85 a0 00
|
||||
00 00 movaps xmm0, XMMWORD PTR b_orthogonal$[rbp]
|
||||
000f9 0f 59 85 a0 00
|
||||
00 00 mulps xmm0, XMMWORD PTR b_orthogonal$[rbp]
|
||||
00100 0f 29 85 d0 00
|
||||
00 00 movaps XMMWORD PTR b_length_sq$[rbp], xmm0
|
||||
|
||||
; 24 : b_length_sq = _mm_add_ps(b_length_sq,
|
||||
|
||||
00107 0f 28 85 d0 00
|
||||
00 00 movaps xmm0, XMMWORD PTR b_length_sq$[rbp]
|
||||
0010e 0f c6 85 d0 00
|
||||
00 00 b1 shufps xmm0, XMMWORD PTR b_length_sq$[rbp], 177 ; 000000b1H
|
||||
00116 0f 28 8d d0 00
|
||||
00 00 movaps xmm1, XMMWORD PTR b_length_sq$[rbp]
|
||||
0011d 0f 58 c8 addps xmm1, xmm0
|
||||
00120 0f 28 c1 movaps xmm0, xmm1
|
||||
00123 0f 29 85 d0 00
|
||||
00 00 movaps XMMWORD PTR b_length_sq$[rbp], xmm0
|
||||
|
||||
; 25 : _mm_shuffle_ps(b_length_sq, b_length_sq, _MM_SHUFFLE(2, 3, 0, 1)));
|
||||
; 26 : b_length_sq = _mm_add_ss(b_length_sq,
|
||||
|
||||
0012a 0f 28 85 d0 00
|
||||
00 00 movaps xmm0, XMMWORD PTR b_length_sq$[rbp]
|
||||
00131 0f c6 85 d0 00
|
||||
00 00 0e shufps xmm0, XMMWORD PTR b_length_sq$[rbp], 14
|
||||
00139 0f 28 8d d0 00
|
||||
00 00 movaps xmm1, XMMWORD PTR b_length_sq$[rbp]
|
||||
00140 f3 0f 58 c8 addss xmm1, xmm0
|
||||
00144 0f 29 8d d0 00
|
||||
00 00 movaps XMMWORD PTR b_length_sq$[rbp], xmm1
|
||||
|
||||
; 27 : _mm_shuffle_ps(b_length_sq, b_length_sq, _MM_SHUFFLE(0, 0, 3, 2)));
|
||||
; 28 :
|
||||
; 29 : __m128 b_inv_length = _mm_rsqrt_ps(b_length_sq);
|
||||
|
||||
0014b 0f 52 85 d0 00
|
||||
00 00 rsqrtps xmm0, XMMWORD PTR b_length_sq$[rbp]
|
||||
00152 0f 29 85 00 01
|
||||
00 00 movaps XMMWORD PTR b_inv_length$[rbp], xmm0
|
||||
|
||||
; 30 : *target = _mm_mul_ps(b_orthogonal, b_inv_length);
|
||||
|
||||
00159 0f 28 85 a0 00
|
||||
00 00 movaps xmm0, XMMWORD PTR b_orthogonal$[rbp]
|
||||
00160 0f 59 85 00 01
|
||||
00 00 mulps xmm0, XMMWORD PTR b_inv_length$[rbp]
|
||||
00167 48 8b 85 08 02
|
||||
00 00 mov rax, QWORD PTR target$[rbp]
|
||||
0016e 0f 11 00 movups XMMWORD PTR [rax], xmm0
|
||||
|
||||
; 31 : }
|
||||
|
||||
00171 48 8d a5 e8 01
|
||||
00 00 lea rsp, QWORD PTR [rbp+488]
|
||||
00178 5f pop rdi
|
||||
00179 5d pop rbp
|
||||
0017a c3 ret 0
|
||||
normalize ENDP
|
||||
_TEXT ENDS
|
||||
END
|
||||
Reference in New Issue
Block a user