mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
269bdb3dbd | ||
|
|
b032b803ca | ||
|
|
26a638e11d | ||
|
|
099522ada3 | ||
|
|
4903dd62ea |
@@ -1,10 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.8.2)
|
cmake_minimum_required(VERSION 3.8.2)
|
||||||
project(cglm LANGUAGES C)
|
project(cglm VERSION 0.7.4 LANGUAGES C)
|
||||||
|
|
||||||
set(CGLM_VERSION_MAJOR 0)
|
|
||||||
set(CGLM_VERSION_MINOR 7)
|
|
||||||
set(CGLM_VERSION_PATCH 3)
|
|
||||||
set(CGLM_VERSION ${CGLM_VERSION_MAJOR}.${CGLM_VERSION_MINOR}.${CGLM_VERSION_PATCH})
|
|
||||||
|
|
||||||
set(C_STANDARD 11)
|
set(C_STANDARD 11)
|
||||||
set(C_STANDARD_REQUIRED YES)
|
set(C_STANDARD_REQUIRED YES)
|
||||||
@@ -168,8 +163,8 @@ add_library(cglm
|
|||||||
src/ray.c
|
src/ray.c
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(cglm PROPERTIES VERSION ${CGLM_VERSION}
|
set_target_properties(cglm PROPERTIES VERSION ${PROJECT_VERSION}
|
||||||
SOVERSION ${CGLM_VERSION_MAJOR})
|
SOVERSION ${PROJECT_VERSION_MAJOR})
|
||||||
|
|
||||||
target_include_directories(cglm PUBLIC
|
target_include_directories(cglm PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#*****************************************************************************
|
#*****************************************************************************
|
||||||
|
|
||||||
AC_PREREQ([2.69])
|
AC_PREREQ([2.69])
|
||||||
AC_INIT([cglm], [0.7.3], [info@recp.me])
|
AC_INIT([cglm], [0.7.4], [info@recp.me])
|
||||||
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects serial-tests])
|
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects serial-tests])
|
||||||
|
|
||||||
# Don't use the default cflags (-O2 -g), we set ours manually in Makefile.am.
|
# Don't use the default cflags (-O2 -g), we set ours manually in Makefile.am.
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ author = u'Recep Aslantas'
|
|||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = u'0.7.3'
|
version = u'0.7.4'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = u'0.7.3'
|
release = u'0.7.4'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
@@ -301,14 +301,15 @@ glm_aabb_print(vec3 bbox[2],
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
/* NOOP: Remove print from DEBUG */
|
/* NOOP: Remove print from DEBUG */
|
||||||
CGLM_INLINE void glm_mat4_print(mat4 matrix, FILE *o) { }
|
#define glm_mat4_print(...)
|
||||||
CGLM_INLINE void glm_mat3_print(mat3 matrix, FILE *o) { }
|
#define glm_mat3_print(...)
|
||||||
CGLM_INLINE void glm_mat2_print(mat2 matrix, FILE *o) { }
|
#define glm_mat2_print(...)
|
||||||
CGLM_INLINE void glm_vec4_print(vec4 vec, FILE *o) { }
|
#define glm_vec4_print(...)
|
||||||
CGLM_INLINE void glm_vec3_print(vec3 vec, FILE *o) { }
|
#define glm_vec3_print(...)
|
||||||
CGLM_INLINE void glm_ivec3_print(ivec3 vec, FILE *o) { }
|
#define glm_ivec3_print(...)
|
||||||
CGLM_INLINE void glm_vec2_print(vec2 vec, FILE *o) { }
|
#define glm_vec2_print(...)
|
||||||
CGLM_INLINE void glm_versor_print(versor vec, FILE *o) { }
|
#define glm_versor_print(...)
|
||||||
CGLM_INLINE void glm_aabb_print(vec3 bbox[2], const char *t, FILE *o) { }
|
#define glm_aabb_print(...)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif /* cglm_io_h */
|
#endif /* cglm_io_h */
|
||||||
|
|||||||
@@ -680,7 +680,7 @@ glm_vec4_negate_to(vec4 v, vec4 dest) {
|
|||||||
#if defined( __SSE__ ) || defined( __SSE2__ )
|
#if defined( __SSE__ ) || defined( __SSE2__ )
|
||||||
glmm_store(dest, _mm_xor_ps(glmm_load(v), _mm_set1_ps(-0.0f)));
|
glmm_store(dest, _mm_xor_ps(glmm_load(v), _mm_set1_ps(-0.0f)));
|
||||||
#elif defined(CGLM_NEON_FP)
|
#elif defined(CGLM_NEON_FP)
|
||||||
vst1q_f32(dest, veorq_s32(vld1q_f32(v), vdupq_n_f32(-0.0f)));
|
vst1q_f32(dest, vnegq_f32(vld1q_f32(v)));
|
||||||
#else
|
#else
|
||||||
dest[0] = -v[0];
|
dest[0] = -v[0];
|
||||||
dest[1] = -v[1];
|
dest[1] = -v[1];
|
||||||
|
|||||||
@@ -10,6 +10,6 @@
|
|||||||
|
|
||||||
#define CGLM_VERSION_MAJOR 0
|
#define CGLM_VERSION_MAJOR 0
|
||||||
#define CGLM_VERSION_MINOR 7
|
#define CGLM_VERSION_MINOR 7
|
||||||
#define CGLM_VERSION_PATCH 3
|
#define CGLM_VERSION_PATCH 4
|
||||||
|
|
||||||
#endif /* cglm_version_h */
|
#endif /* cglm_version_h */
|
||||||
|
|||||||
10
src/config.h
10
src/config.h
@@ -1,9 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c), Recep Aslantas.
|
* Copyright (c), Recep Aslantas.
|
||||||
*
|
*
|
||||||
* MIT License (MIT), http://opensource.org/licenses/MIT
|
* MIT License (MIT), http://opensource.org/licenses/MIT
|
||||||
* Full license can be found in the LICENSE file
|
* Full license can be found in the LICENSE file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef cglm__config__h_
|
#ifndef cglm__config__h_
|
||||||
#define cglm__config__h_
|
#define cglm__config__h_
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c), Recep Aslantas.
|
* Copyright (c), Recep Aslantas.
|
||||||
*
|
*
|
||||||
* MIT License (MIT), http://opensource.org/licenses/MIT
|
* MIT License (MIT), http://opensource.org/licenses/MIT
|
||||||
* Full license can be found in the LICENSE file
|
* Full license can be found in the LICENSE file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "test_common.h"
|
#include "test_common.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user