The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
557 B
35 lines
557 B
5 years ago
|
#include "symbol-underscore.h"
|
||
|
|
||
4 years ago
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||
5 years ago
|
|
||
|
.386
|
||
|
.MODEL FLAT, C
|
||
|
|
||
|
PUBLIC square_unsigned
|
||
|
_TEXT SEGMENT
|
||
|
|
||
|
square_unsigned PROC var1:DWORD
|
||
|
mov eax, var1
|
||
|
imul eax, eax
|
||
|
ret
|
||
|
square_unsigned ENDP
|
||
|
|
||
|
_TEXT ENDS
|
||
|
END
|
||
|
|
||
|
#else
|
||
|
|
||
|
.text
|
||
|
.globl SYMBOL_NAME(square_unsigned)
|
||
|
/* Only supported with GAS */
|
||
|
# if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
|
||
|
.type square_unsigned,@function
|
||
|
# endif
|
||
|
|
||
|
SYMBOL_NAME(square_unsigned):
|
||
|
movl 4(%esp), %eax
|
||
|
imull %eax, %eax
|
||
|
retl
|
||
|
|
||
|
#endif
|