Subversion Repository Public Repository

Divide-Dependencies

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ================================================================================================
// -*- C++ -*-
// File: defines.h
// Author: Guilherme R. Lampert
// Created on: 22/03/13
// Brief: Added this header with some defines to make the SSE library Unix friendly.
// ================================================================================================

#ifndef _VECTORMATH_DEFINES_H
#define _VECTORMATH_DEFINES_H

#if defined (_MSC_VER)
	// Visual Studio (MS compiler)
	#define _VECTORMATH_ALIGNED(type)  __declspec(align(16)) type
	#define _VECTORMATH_ALIGNED_TYPE_1 __declspec(align(16))
	#define _VECTORMATH_ALIGNED_TYPE_2
#elif defined (__GNUC__)
	// GCC
	#define _VECTORMATH_ALIGNED(type) type __attribute__((aligned(16)))
	#define _VECTORMATH_ALIGNED_TYPE_1
	#define _VECTORMATH_ALIGNED_TYPE_2 __attribute__((aligned(16)))
#else
	// Unknown
	#error "Define _VECTORMATH_ALIGNED for your compiler"
#endif

#endif // _VECTORMATH_DEFINES_H

Commits for Divide-Dependencies/debug-draw/samples/vectormath/SSE/cpp/defines.h

Diff revisions: vs.
Revision Author Commited Message
70 IonutCava picture IonutCava Wed 26 Jul, 2017 20:21:42 +0000

[Ionut]
- Added Hodgman’s variant of the debug-draw library. ref: https://github.com/hodgman/debug-draw