Skip to content

Commit

Permalink
add #defines for __real__ and __imag__
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholatian committed Mar 24, 2021
1 parent 99952ee commit acb831b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions decl/include/uni/types/opt/complexf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
#include <uni/types/complexf.h>
#include <uni/types/opt/common.h>

#ifndef REAL
#define REAL __real__
#endif /* REAL */

#ifndef IMAG
#define IMAG __imag__
#endif /* IMAG */

UNI_DECL_OPT( cf16 );
UNI_DECL_OPT( cf32 );
UNI_DECL_OPT( cf64 );
Expand Down
8 changes: 8 additions & 0 deletions decl/include/uni/types/opt/complexi.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
#include <uni/types/complexi.h>
#include <uni/types/opt/common.h>

#ifndef REAL
#define REAL __real__
#endif /* REAL */

#ifndef IMAG
#define IMAG __imag__
#endif /* IMAG */

UNI_DECL_OPT( cs8 );
UNI_DECL_OPT( cs16 );
UNI_DECL_OPT( cs32 );
Expand Down

0 comments on commit acb831b

Please sign in to comment.