Lely core libraries 2.3.4
features.h File Reference

This header file is part of the Lely libraries; it contains the compiler feature definitions. More...

#include <limits.h>
Include dependency graph for features.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _Alignof(x)   __alignof__(x)
 Specifies the alignment requirement of the declared object or member.
 
#define _Noreturn   __attribute__((__noreturn__))
 A function declared with a _Noreturn function specifier SHALL not return to its caller.
 
#define _Thread_local   __thread
 An object whose identifier is declared with the storage-class specifier _Thread_local has thread storage duration.
 
#define LONG_BIT   __WORDSIZE
 The number of bits in a long.
 
#define LEVEL1_DCACHE_LINESIZE   64
 The presumed size (in bytes) of a line in the L1 data cache.
 
#define LELY_VLA_SIZE_MAX   256
 The maximum size (in bytes) of stack-allocated arrays.
 

Detailed Description

This header file is part of the Lely libraries; it contains the compiler feature definitions.

Author
J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file features.h.

Macro Definition Documentation

◆ _Alignof

#define _Alignof (   x)    __alignof__(x)

Specifies the alignment requirement of the declared object or member.

Yields the alignment requirement of its operand type.

Definition at line 200 of file features.h.

◆ _Thread_local

#define _Thread_local   __thread

An object whose identifier is declared with the storage-class specifier _Thread_local has thread storage duration.

Its lifetime is the entire execution of the thread for which it is created, and its stored value is initialized when the thread is started. There is a distinct object per thread, and use of the declared name in an expression refers to the object associated with the thread evaluating the expression.

Definition at line 249 of file features.h.

◆ LEVEL1_DCACHE_LINESIZE

#define LEVEL1_DCACHE_LINESIZE   64

The presumed size (in bytes) of a line in the L1 data cache.

This value can be used with _Alignas() to prevent variables from sharing a cache line, which may increase the performance of some data structures in a multithreaded environment.

Definition at line 302 of file features.h.