Skip to content

Commit ca8629e

Browse files
committed
final fix
1 parent 40b4180 commit ca8629e

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

etc/function-definitions.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
},
9999
"ceil": {
100100
"sources": [
101+
"libm/src/math/arch/aarch64.rs",
101102
"libm/src/math/arch/i586.rs",
102103
"libm/src/math/arch/wasm32.rs",
103104
"libm/src/math/ceil.rs",
@@ -107,6 +108,7 @@
107108
},
108109
"ceilf": {
109110
"sources": [
111+
"libm/src/math/arch/aarch64.rs",
110112
"libm/src/math/arch/wasm32.rs",
111113
"libm/src/math/ceil.rs",
112114
"libm/src/math/generic/ceil.rs"
@@ -122,6 +124,7 @@
122124
},
123125
"ceilf16": {
124126
"sources": [
127+
"libm/src/math/arch/aarch64.rs",
125128
"libm/src/math/ceil.rs",
126129
"libm/src/math/generic/ceil.rs"
127130
],
@@ -311,6 +314,7 @@
311314
},
312315
"floor": {
313316
"sources": [
317+
"libm/src/math/arch/aarch64.rs",
314318
"libm/src/math/arch/i586.rs",
315319
"libm/src/math/arch/wasm32.rs",
316320
"libm/src/math/floor.rs",
@@ -320,6 +324,7 @@
320324
},
321325
"floorf": {
322326
"sources": [
327+
"libm/src/math/arch/aarch64.rs",
323328
"libm/src/math/arch/wasm32.rs",
324329
"libm/src/math/floor.rs",
325330
"libm/src/math/generic/floor.rs"
@@ -335,6 +340,7 @@
335340
},
336341
"floorf16": {
337342
"sources": [
343+
"libm/src/math/arch/aarch64.rs",
338344
"libm/src/math/floor.rs",
339345
"libm/src/math/generic/floor.rs"
340346
],
@@ -815,19 +821,22 @@
815821
},
816822
"round": {
817823
"sources": [
824+
"libm/src/math/arch/aarch64.rs",
818825
"libm/src/math/generic/round.rs",
819826
"libm/src/math/round.rs"
820827
],
821828
"type": "f64"
822829
},
823830
"roundeven": {
824831
"sources": [
832+
"libm/src/math/arch/aarch64.rs",
825833
"libm/src/math/roundeven.rs"
826834
],
827835
"type": "f64"
828836
},
829837
"roundevenf": {
830838
"sources": [
839+
"libm/src/math/arch/aarch64.rs",
831840
"libm/src/math/roundeven.rs"
832841
],
833842
"type": "f32"
@@ -840,12 +849,14 @@
840849
},
841850
"roundevenf16": {
842851
"sources": [
852+
"libm/src/math/arch/aarch64.rs",
843853
"libm/src/math/roundeven.rs"
844854
],
845855
"type": "f16"
846856
},
847857
"roundf": {
848858
"sources": [
859+
"libm/src/math/arch/aarch64.rs",
849860
"libm/src/math/generic/round.rs",
850861
"libm/src/math/round.rs"
851862
],
@@ -860,6 +871,7 @@
860871
},
861872
"roundf16": {
862873
"sources": [
874+
"libm/src/math/arch/aarch64.rs",
863875
"libm/src/math/generic/round.rs",
864876
"libm/src/math/round.rs"
865877
],
@@ -1002,6 +1014,7 @@
10021014
},
10031015
"trunc": {
10041016
"sources": [
1017+
"libm/src/math/arch/aarch64.rs",
10051018
"libm/src/math/arch/wasm32.rs",
10061019
"libm/src/math/generic/trunc.rs",
10071020
"libm/src/math/trunc.rs"
@@ -1010,6 +1023,7 @@
10101023
},
10111024
"truncf": {
10121025
"sources": [
1026+
"libm/src/math/arch/aarch64.rs",
10131027
"libm/src/math/arch/wasm32.rs",
10141028
"libm/src/math/generic/trunc.rs",
10151029
"libm/src/math/trunc.rs"
@@ -1025,6 +1039,7 @@
10251039
},
10261040
"truncf16": {
10271041
"sources": [
1042+
"libm/src/math/arch/aarch64.rs",
10281043
"libm/src/math/generic/trunc.rs",
10291044
"libm/src/math/trunc.rs"
10301045
],

libm/src/math/round.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn roundf16(x: f16) -> f16 {
1616
pub fn roundf(x: f32) -> f32 {
1717
select_implementation! {
1818
name: roundf,
19-
use_arch: all(target_arch = "aarch64", target_feature = "fp16"),
19+
use_arch: all(target_arch = "aarch64", target_feature = "neon"),
2020
args: x,
2121
}
2222

@@ -28,7 +28,7 @@ pub fn roundf(x: f32) -> f32 {
2828
pub fn round(x: f64) -> f64 {
2929
select_implementation! {
3030
name: round,
31-
use_arch: all(target_arch = "aarch64", target_feature = "fp16"),
31+
use_arch: all(target_arch = "aarch64", target_feature = "neon"),
3232
args: x,
3333
}
3434

libm/src/math/roundeven.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn roundevenf16(x: f16) -> f16 {
2020
pub fn roundevenf(x: f32) -> f32 {
2121
select_implementation! {
2222
name: roundevenf,
23-
use_arch: all(target_arch = "aarch64", target_feature = "fp16"),
23+
use_arch: all(target_arch = "aarch64", target_feature = "neon"),
2424
args: x,
2525
}
2626

@@ -33,7 +33,7 @@ pub fn roundevenf(x: f32) -> f32 {
3333
pub fn roundeven(x: f64) -> f64 {
3434
select_implementation! {
3535
name: roundeven,
36-
use_arch: all(target_arch = "aarch64", target_feature = "fp16"),
36+
use_arch: all(target_arch = "aarch64", target_feature = "neon"),
3737
args: x,
3838
}
3939

0 commit comments

Comments
 (0)