mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 08:36:17 +00:00 
			
		
		
		
	Replace generated arrays with macro declarations, align cache lines to 64 bytes
This commit is contained in:
		
							parent
							
								
									951d785deb
								
							
						
					
					
						commit
						c7b8ff15ec
					
				| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
CLAY__TYPEDEF($NAME$, struct
 | 
					typedef struct
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int32_t capacity;
 | 
						int32_t capacity;
 | 
				
			||||||
	int32_t length;
 | 
						int32_t length;
 | 
				
			||||||
	$TYPE$ *internalArray;
 | 
						$TYPE$ *internalArray;
 | 
				
			||||||
});
 | 
					} $NAME$;
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
CLAY__TYPEDEF($NAME$Slice, struct
 | 
					typedef struct
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int32_t length;
 | 
						int32_t length;
 | 
				
			||||||
	$TYPE$ *internalArray;
 | 
						$TYPE$ *internalArray;
 | 
				
			||||||
});
 | 
					} $NAME$Slice;
 | 
				
			||||||
		Loading…
	
		Reference in a new issue