SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
Loading...
Searching...
No Matches
shz_complex.h File Reference
#include "shz_cdefs.h"
#include <stddef.h>
#include "inline/shz_complex.inl.h"
Include dependency graph for shz_complex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  shz_complex_t
 

Macros

#define SHZ_CMPLXF(x, y)
 
#define SHZ_CMPLXF32(x, y)
 
#define SHZ_I
 

Typedefs

typedef shz_complex_t shz_complex
 

Functions

shz_complex_t shz_cinitf (float real, float imag) SHZ_NOEXCEPT
 
bool shz_cequalf (shz_complex_t lhs, shz_complex_t rhs) SHZ_NOEXCEPT
 
shz_complex_t shz_caddf (shz_complex_t lhs, shz_complex_t rhs) SHZ_NOEXCEPT
 
shz_complex_t shz_csubf (shz_complex_t lhs, shz_complex_t rhs) SHZ_NOEXCEPT
 
shz_complex_t shz_cmulf (shz_complex_t lhs, shz_complex_t rhs) SHZ_NOEXCEPT
 
shz_complex_t shz_cdivf (shz_complex_t lhs, shz_complex_t rhs) SHZ_NOEXCEPT
 
float shz_crealf (shz_complex_t c) SHZ_NOEXCEPT
 
float shz_cimagf (shz_complex_t c) SHZ_NOEXCEPT
 
float shz_cabsf (shz_complex_t c) SHZ_NOEXCEPT
 
float shz_cargf (shz_complex_t c) SHZ_NOEXCEPT
 
shz_complex_t shz_conjf (shz_complex_t c) SHZ_NOEXCEPT
 
shz_complex_t shz_csqrtf (shz_complex_t c) SHZ_NOEXCEPT
 
shz_complex_t shz_cpowf (shz_complex_t base, shz_complex_t exp) SHZ_NOEXCEPT
 
shz_complex_t shz_clogf (shz_complex_t c) SHZ_NOEXCEPT
 
shz_complex_t shz_cexpf (shz_complex_t c) SHZ_NOEXCEPT
 
shz_complex_t shz_clog10f (shz_complex_t c) SHZ_NOEXCEPT
 
shz_complex_t shz_csinf (shz_complex_t c) SHZ_NOEXCEPT
 
void shz_fft (shz_complex_t *s, size_t size) SHZ_NOEXCEPT
 

Detailed Description

Complex number API.

This file contains a collection of routines for working with complex (real + imaginary) numbers. The API is mostly modeled after C99's <complex.h>, although it also supports being used from C++ as well.

Author
2026 Falco Girgis

Definition in file shz_complex.h.

Macro Definition Documentation

◆ SHZ_CMPLXF

#define SHZ_CMPLXF ( x,
y )

Definition at line 21 of file shz_complex.h.

◆ SHZ_CMPLXF32

#define SHZ_CMPLXF32 ( x,
y )

Definition at line 22 of file shz_complex.h.

◆ SHZ_I

#define SHZ_I

Definition at line 23 of file shz_complex.h.

Typedef Documentation

◆ shz_complex

Definition at line 32 of file shz_complex.h.