Lely core libraries 2.3.4
util.h File Reference

This is the internal header file of the utilities library. More...

#include <lely/util/util.h>
#include <unistd.h>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ALIGNED_ALLOC_BITS   4
 The minimum alignment (in bits) of heap-allocated objects.
 
#define ALIGNED_ALLOC_SIZE   ((size_t)(1 << (ALIGNED_ALLOC_BITS)))
 The minimum alignment (in bytes) of heap-allocated objects.
 

Detailed Description

This is the internal header file of the utilities library.

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 util.h.

Macro Definition Documentation

◆ ALIGNED_ALLOC_BITS

#define ALIGNED_ALLOC_BITS   4

The minimum alignment (in bits) of heap-allocated objects.

This corresponds to the number of least-significant bits in a pointer guaranteed to be zero.

Definition at line 42 of file util.h.