Skip to content

Commit fbaab51

Browse files
committed
fixed .type @function
1 parent edcbbe8 commit fbaab51

21 files changed

Lines changed: 36 additions & 10 deletions

src/ce/lz4.src

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ _lz4_Decompress:
4545
; Fallthrough
4646

4747
.local lz4_decompress_block_internal
48-
.type lz4_decompress_block_internal, @function
4948

5049
; Input: IY = compressed block, DE = decompression buffer, BC = size of block
5150
; Output: IY = after compressed block, DE = after decompressed data, carry flag clear

src/crt/and.src

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
.section .text
44
.global __land
5+
.type __land, @function
56
.section .text
67
.global __iand
8+
.type __iand, @function
79

810
.ifdef PREFER_OS_CRT
911

src/crt/and_fast.src

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
.section .text
44
.global __land_fast
5+
.type __land_fast, @function
56
.global __iand_fast
7+
.type __iand_fast, @function
68
.global __sand_fast
9+
.type __sand_fast, @function
710

811
__land_fast:
912
; CC: 24*r(PC)+8*r(SPL)+7*w(SPL)+1

src/crt/ltod.src

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22

33
.section .text
44

5-
.global __ulltod ; (long double)unsigned long long
6-
.global __lltod ; (long double)long long
7-
.global __ultod ; (long double)unsigned long
8-
.global __ltod ; (long double)long
5+
.global __ulltod
6+
.type __ulltod, @function
7+
.global __lltod
8+
.type __lltod, @function
9+
.global __ultod
10+
.type __ultod, @function
11+
.global __ltod
12+
.type __ltod, @function
913

1014
__ulltod:
15+
; (long double)unsigned long long
1116
cp a, a ; set Z flag
1217
push af
1318
jr .L.lltod_common
1419
__lltod:
20+
; (long double)long long
1521
bit 7, b
1622
push af
1723
call nz, __llneg ; abs(BC:UDE:UHL)
@@ -115,10 +121,12 @@ __lltod:
115121
jr .L.int_to_f64_shl.finish
116122

117123
__ultod:
124+
; (long double)unsigned long
118125
cp a, a ; set Z flag
119126
push af
120127
jr .L.ltod_common
121128
__ltod:
129+
; (long double)long
122130
bit 7, e
123131
push af
124132
call nz, __lneg ; abs(E:UHL)

src/libc/abs.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.section .text
44
.global _abs
5-
.type _abs,@function
5+
.type _abs, @function
66
_abs:
77
pop hl
88
pop de

src/libc/atof.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
.section .text
44
.global _atof
5-
.global _atoff
65
.type _atof, @function
6+
.global _atoff
77
.type _atoff, @function
88

99
.ifdef PREFER_OS_LIBC

src/libc/ceilf.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
.section .text
44
.global _ceil
5-
.global _ceilf
65
.type _ceil, @function
6+
.global _ceilf
77
.type _ceilf, @function
88

99
.ifdef PREFER_OS_LIBC

src/libc/cimagf.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
.section .text
44

55
.global _cimagf
6-
.global _cimag
76
.type _cimagf, @function
7+
.global _cimag
88
.type _cimag, @function
99

1010
; float cimagf(float _Complex)

src/libc/fminmaxf.src

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ _fminmaxf_common.x_maybe_NaN:
9696
.section .text
9797

9898
.global _fmaxf
99+
.type _fmaxf, @function
99100
.global _fmax
101+
.type _fmax, @function
100102

101103
_fmaxf:
102104
_fmax:

src/libc/memmem.src

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.global _memmem
66
.type _memmem, @function
77
.local _memcmp_fast
8-
.type _memcmp_fast, @function
98

109
; void *memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len)
1110
.equ haystack, 3

0 commit comments

Comments
 (0)