Skip to content

Commit

Permalink
patch: apply patch to bypass duplicate symbol fmod in x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Jan 4, 2024
1 parent ef13f10 commit 6dcd20a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/kernel_guard/src/arch/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(not(target_os = "none"), allow(dead_code))]
#![cfg_attr(not(target_os = "none"), allow(dead_code, unused_imports))]

cfg_if::cfg_if! {
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
Expand Down
2 changes: 2 additions & 0 deletions ulib/axlibc/c/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ long double scalbnl(long double x, int n)
}
#endif

#if defined(__riscv__) || defined(__riscv) || defined(__aarch64__)
double fmod(double x, double y)
{
union {
Expand Down Expand Up @@ -552,6 +553,7 @@ long double fmodl(long double x, long double y)
return ux.f;
}
#endif
#endif

#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long double fabsl(long double x)
Expand Down

0 comments on commit 6dcd20a

Please sign in to comment.