zig/lib/libc/include/any-macos-any/simd/extern.h
Michael Dusan 52e8354926
macos: vendored libc: combine headers: part 1
- combine *-macos-* → any-macos-any
- SDK headers as a single tree support targeting multiple arch/versions
- bump to SDK 14.0 (release candidate)
2023-09-25 15:53:05 -04:00

49 lines
1.9 KiB
C
Vendored

/* Copyright (c) 2014 Apple, Inc. All rights reserved. */
#ifndef __SIMD_EXTERN_HEADER__
#define __SIMD_EXTERN_HEADER__
#include <simd/base.h>
#if SIMD_COMPILER_HAS_REQUIRED_FEATURES
#include <simd/types.h>
#ifdef __cplusplus
extern "C" {
#endif
#pragma mark - geometry
#if SIMD_LIBRARY_VERSION >= 2
extern float _simd_orient_vf2(simd_float2, simd_float2);
extern float _simd_orient_pf2(simd_float2, simd_float2, simd_float2);
extern float _simd_incircle_pf2(simd_float2, simd_float2, simd_float2, simd_float2);
extern float _simd_orient_vf3(simd_float3, simd_float3, simd_float3);
extern float _simd_orient_pf3(simd_float3, simd_float3, simd_float3, simd_float3);
extern float _simd_insphere_pf3(simd_float3, simd_float3, simd_float3, simd_float3, simd_float3);
extern double _simd_orient_vd2(simd_double2, simd_double2);
extern double _simd_orient_pd2(simd_double2, simd_double2, simd_double2);
extern double _simd_incircle_pd2(simd_double2, simd_double2, simd_double2, simd_double2);
/* The double3 variants of these functions take their arguments in a buffer
* to workaround the fact that double3 calling conventions are different
* depending on whether or not the executable has been compiled with AVX
* enabled. */
extern double _simd_orient_vd3(const double *);
extern double _simd_orient_pd3(const double *);
extern double _simd_insphere_pd3(const double *);
#endif /* SIMD_LIBRARY_VERSION */
#pragma mark - matrix
extern simd_float2x2 __invert_f2(simd_float2x2);
extern simd_double2x2 __invert_d2(simd_double2x2);
extern simd_float3x3 __invert_f3(simd_float3x3);
extern simd_double3x3 __invert_d3(simd_double3x3);
extern simd_float4x4 __invert_f4(simd_float4x4);
extern simd_double4x4 __invert_d4(simd_double4x4);
#ifdef __cplusplus
}
#endif
#endif /* SIMD_COMPILER_HAS_REQUIRED_FEATURES */
#endif /* __SIMD_EXTERN_HEADER__ */