Skip to content

Commit

Permalink
Merge pull request managarm#955 from managarm/complex-stubs-c
Browse files Browse the repository at this point in the history
options/ansi: Move complex-stubs.cpp to complex-stubs.c
  • Loading branch information
mintsuki authored Dec 2, 2023
2 parents 472c145 + e7f1bfa commit 85862a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#include <complex.h>

extern "C" {

long double cimagl(long double complex z) {
return __imag__(z);
}

long double creall(long double complex z) {
return __real__(z);
}


}
2 changes: 1 addition & 1 deletion options/ansi/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif
ansi_sources = files(
'generic/stdlib-stubs.cpp',
'generic/assert-stubs.cpp',
'generic/complex-stubs.cpp',
'generic/complex-stubs.c',

'generic/complex/csqrt.c',
'generic/complex/csinhf.c',
Expand Down

0 comments on commit 85862a4

Please sign in to comment.