mirror of
				https://github.com/jart/cosmopolitan.git
				synced 2025-10-26 11:10:58 +00:00 
			
		
		
		
	Polish up repository and other revisions
This commit is contained in:
		
							parent
							
								
									d23bb6612e
								
							
						
					
					
						commit
						2e979c00c3
					
				
					 541 changed files with 626 additions and 590 deletions
				
			
		|  | @ -8,7 +8,7 @@ COSMOPOLITAN_C_START_ | |||
|   ((__m256i)__builtin_ia32_minps((__v16hi)(M256_0), (__v16hi)(M256_1))) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § avx2 » simd ops                                           ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » avx2 » simd ops                            ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm256_add_ps(M256_0, M256_1) \ | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| /*-*- mode:asm; indent-tabs-mode:t; tab-width:8; coding:utf-8               -*-│
 | ||||
| /*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8     -*-│
 | ||||
| │vi: set et ft=asm ts=8 sw=8 fenc=utf-8                                     :vi│ | ||||
| ╞══════════════════════════════════════════════════════════════════════════════╡ | ||||
| │ Copyright 2020 Justine Alexandra Roberts Tunney                              │ | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| /*-*- mode:asm; indent-tabs-mode:t; tab-width:8; coding:utf-8               -*-│
 | ||||
| /*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8     -*-│
 | ||||
| │vi: set et ft=asm ts=8 sw=8 fenc=utf-8                                     :vi│ | ||||
| ╞══════════════════════════════════════════════════════════════════════════════╡ | ||||
| │ Copyright 2020 Justine Alexandra Roberts Tunney                              │ | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| /*-*- mode:asm; indent-tabs-mode:t; tab-width:8; coding:utf-8               -*-│
 | ||||
| /*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8     -*-│
 | ||||
| │vi: set et ft=asm ts=8 sw=8 fenc=utf-8                                     :vi│ | ||||
| ╞══════════════════════════════════════════════════════════════════════════════╡ | ||||
| │ Copyright 2020 Justine Alexandra Roberts Tunney                              │ | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| /*-*- mode:asm; indent-tabs-mode:t; tab-width:8; coding:utf-8               -*-│
 | ||||
| /*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8     -*-│
 | ||||
| │vi: set et ft=asm ts=8 tw=8 fenc=utf-8                                     :vi│ | ||||
| ╞══════════════════════════════════════════════════════════════════════════════╡ | ||||
| │ Copyright 2020 Justine Alexandra Roberts Tunney                              │ | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| /*-*- mode:asm; indent-tabs-mode:t; tab-width:8; coding:utf-8               -*-│
 | ||||
| /*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8     -*-│
 | ||||
| │vi: set et ft=asm ts=8 tw=8 fenc=utf-8                                     :vi│ | ||||
| ╞══════════════════════════════════════════════════════════════════════════════╡ | ||||
| │ Copyright 2020 Justine Alexandra Roberts Tunney                              │ | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ | |||
| #if !(__ASSEMBLER__ + __LINKER__ + 0) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse2                                                      ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse2                                       ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| typedef char __v16qi _Vector_size(16); | ||||
|  | @ -29,7 +29,7 @@ struct thatispacked mayalias __usi128ma { | |||
| }; | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse2 » memory ops                                         ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse2 » memory ops                          ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_loadu_si128(M128IP) ((struct __usi128ma *)(M128IP))->__v | ||||
|  | @ -71,7 +71,7 @@ struct thatispacked mayalias __usi128ma { | |||
| #define _mm_load_si128(M128I)    (*(M128I)) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse2 » simd ops                                           ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse2 » simd ops                            ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_and_si128(M128I_0, M128I_1) \ | ||||
|  | @ -160,7 +160,7 @@ struct thatispacked mayalias __usi128ma { | |||
|   ((__m128i)__builtin_ia32_psrldqi128((__v2di)(__m128i)(M128I), (int)(IMM)*8)) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse2 » scalar ops                                         ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse2 » scalar ops                          ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_sqrt_sd(M128D_0, M128D_1)                          \ | ||||
|  | @ -208,7 +208,7 @@ struct thatispacked mayalias __usi128ma { | |||
|   __builtin_ia32_cmpunordsd((__v2df)(M128D_0), (__v2df)(M128D_1)) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse2 » miscellaneous                                      ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse2 » miscellaneous                       ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_pause() asm("rep nop") | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| /*-*- mode:asm; indent-tabs-mode:t; tab-width:8; coding:utf-8               -*-│
 | ||||
| /*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8     -*-│
 | ||||
| │vi: set et ft=asm ts=8 sw=8 fenc=utf-8                                     :vi│ | ||||
| ╞══════════════════════════════════════════════════════════════════════════════╡ | ||||
| │ Copyright 2020 Justine Alexandra Roberts Tunney                              │ | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
| #if !(__ASSEMBLER__ + __LINKER__ + 0) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse3                                                      ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse3                                       ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_hadd_ps(M128_0, M128_1)                        \ | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
| #if !(__ASSEMBLER__ + __LINKER__ + 0) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § ssse3                                                     ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » ssse3                                      ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_maddubs_epi16(M128I_0, M128I_1) \ | ||||
|  |  | |||
|  | @ -39,7 +39,7 @@ typedef float __m128 _Vector_size(16) aligned(16) mayalias; | |||
| typedef float __m128_u _Vector_size(16) aligned(1) mayalias; | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse » simd ops                                            ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse » simd ops                             ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_add_ps(M128_0, M128_1) \ | ||||
|  | @ -96,7 +96,7 @@ typedef float __m128_u _Vector_size(16) aligned(1) mayalias; | |||
|   __builtin_ia32_cmpunordps((__v4sf)(M128_0), (__v4sf)(M128_1)) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse » scalar ops                                          ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse » scalar ops                           ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| forceinline __m128 _mm_add_ss(__m128 m128_0, __m128 m128_1) { | ||||
|  | @ -153,7 +153,7 @@ forceinline __m128 _mm_div_ss(__m128 m128_0, __m128 m128_1) { | |||
|   __builtin_ia32_cmpunordss((__v4sf)(M128_0), (__v4sf)(M128_1)) | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse » memory ops                                          ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse » memory ops                           ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_set1_ps(M128_0)    ((__m128)(__v4sf){M128_0, M128_0, M128_0, M128_0}) | ||||
|  | @ -186,7 +186,7 @@ forceinline __m128 _mm_div_ss(__m128 m128_0, __m128 m128_1) { | |||
| #endif | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse » cast ops                                            ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse » cast ops                             ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_cvtps_epi32(M128_0) \ | ||||
|  | @ -201,7 +201,7 @@ forceinline __m128 _mm_div_ss(__m128 m128_0, __m128 m128_1) { | |||
| #endif | ||||
| 
 | ||||
| /*───────────────────────────────────────────────────────────────────────────│─╗
 | ||||
| │ cosmopolitan § sse » misc                                                ─╬─│┼ | ||||
| │ cosmopolitan § it's a trap! » sse » misc                                 ─╬─│┼ | ||||
| ╚────────────────────────────────────────────────────────────────────────────│*/ | ||||
| 
 | ||||
| #define _mm_getcsr()        (__builtin_ia32_stmxcsr()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue